|
@@ -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') {
|