ソースを参照

分配日志WBS

gangyj 3 年 前
コミット
b6f9a2491e

+ 18 - 5
src/views/manager/contractinfo/detail.vue

@@ -30,7 +30,7 @@
                     prop="contractType"
                   >
                     <el-select
-                      :disabled="contractForm.id"
+                      :disabled="contractForm.id?true:false"
                       v-model="contractForm.contractType"
                       placeholder="请选择"
                       class="w-100p"
@@ -411,11 +411,11 @@
           </div>
         </el-tab-pane>
         <el-tab-pane
-          v-if="contractForm.contractType == 1"
-          label="分配WBS"
+          v-if="contractForm.contractType == 1 || contractForm.contractType == 2"
+          :label="contractForm.contractType == 2?'分配日志WBS':'分配WBS'"
           name="2"
         >
-          <div>
+          <div v-if="contractForm.contractType == 1">
             <div
               v-if="!wbsId"
               class="text-align-c"
@@ -428,6 +428,19 @@
               @onDelTree="treeChang"
             ></tree-tree>
           </div>
+          <div v-else>
+            <div
+              v-if="!wbsId"
+              class="text-align-c"
+            >项目暂未分配日志WBS树
+            </div>
+            <tree-tree
+              :left-tree-data="leftTreeData"
+              ref="treetotree"
+              @onAddTree="treeChang"
+              @onDelTree="treeChang"
+            ></tree-tree>
+          </div>
         </el-tab-pane>
         <el-tab-pane
           label="分配项目人员"
@@ -1070,7 +1083,7 @@ export default {
       });
       this.typeChang[this.activeType] = false;
       let num = Number(this.activeType);
-      if (this.contractForm.contractType == 1) {
+      if (this.contractForm.contractType == 1 || this.contractForm.contractType == 2) {
         if (type == 'n') {
           num++;
         } else if (type == 'p') {

+ 6 - 0
src/views/manager/projectinfo/list.vue

@@ -114,6 +114,12 @@
                 v-if="item.contractType==1"
                 @click="contractDetail(item,'2',item.contractType)"
               >分配WBS</el-link>
+              <el-link
+                type="primary"
+                class="mg-l-10"
+                v-if="item.contractType==2"
+                @click="contractDetail(item,'2',item.contractType)"
+              >分配日志WBS</el-link>
               <el-link
                 type="primary"
                 class="mg-l-10"