|
@@ -99,6 +99,7 @@
|
|
<el-button :size="size" :type="type" :disabled="row.excelIds == -1" @click="rightClick(row)">编辑元素</el-button>
|
|
<el-button :size="size" :type="type" :disabled="row.excelIds == -1" @click="rightClick(row)">编辑元素</el-button>
|
|
<el-button :size="size" :type="type" :disabled="row.excelIds == -1" @click="adjustExcel(row.id,row.excelIds)">调整表单</el-button>
|
|
<el-button :size="size" :type="type" :disabled="row.excelIds == -1" @click="adjustExcel(row.id,row.excelIds)">调整表单</el-button>
|
|
<el-button :size="size" :type="type" @click="handleEditFormula(row)">编辑公式</el-button>
|
|
<el-button :size="size" :type="type" @click="handleEditFormula(row)">编辑公式</el-button>
|
|
|
|
+ <el-button :size="size" :type="type" @click="allocatWbs(row)">分配WBS</el-button>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
</avue-crud>
|
|
</avue-crud>
|
|
@@ -108,6 +109,8 @@
|
|
</div>
|
|
</div>
|
|
<Qute ref="Qute" :projectid="projectid" :wbsid="wbsid" :onLoad1="onLoad1" :refreshTree="refreshTree"> </Qute>
|
|
<Qute ref="Qute" :projectid="projectid" :wbsid="wbsid" :onLoad1="onLoad1" :refreshTree="refreshTree"> </Qute>
|
|
<Relation ref="Relation" :GLExcelFrom="GLExcelFrom" :wbsid="wbsid" :onLoad1="onLoad1" :refreshTree="refreshTree"></Relation>
|
|
<Relation ref="Relation" :GLExcelFrom="GLExcelFrom" :wbsid="wbsid" :onLoad1="onLoad1" :refreshTree="refreshTree"></Relation>
|
|
|
|
+ <!-- 分配Wbs -->
|
|
|
|
+ <allocateDialog ref="allocateRef"></allocateDialog>
|
|
<!-- 编辑元素 -->
|
|
<!-- 编辑元素 -->
|
|
<!-- 编辑元素 -->
|
|
<!-- 编辑元素 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
@@ -230,6 +233,11 @@
|
|
<el-button type="primary" @click="editSort()">确 定</el-button>
|
|
<el-button type="primary" @click="editSort()">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 分配wbs -->
|
|
|
|
+ <allocateDialog ref="allocateRef" :projectId="projectid" :wbsId="wbsid" :wbsType="wbsType"></allocateDialog>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -245,10 +253,12 @@ import EditElement from "@/views/manager/projectinfo/editElement/editElement.vue
|
|
import dynamicExcel from "./treeTemplate/dynamicExcel.vue";
|
|
import dynamicExcel from "./treeTemplate/dynamicExcel.vue";
|
|
import FormulaEdit from "@/views/formula/edit1.vue";
|
|
import FormulaEdit from "@/views/formula/edit1.vue";
|
|
import ManualSorting from '@/components/WbsTree/ManualSorting'
|
|
import ManualSorting from '@/components/WbsTree/ManualSorting'
|
|
|
|
+import allocateDialog from "./allocateDialog.vue";//分配WBS
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- components: { dynamicExcel, EditElement, Qute,Relation,FormulaEdit,ManualSorting },
|
|
|
|
|
|
+ components: { dynamicExcel, EditElement, Qute,Relation,FormulaEdit,ManualSorting,allocateDialog},
|
|
computed:{
|
|
computed:{
|
|
ids () {
|
|
ids () {
|
|
let ids = [];
|
|
let ids = [];
|
|
@@ -413,7 +423,8 @@ export default {
|
|
curNode:{},
|
|
curNode:{},
|
|
sortTag: false,
|
|
sortTag: false,
|
|
sortTag2: false,
|
|
sortTag2: false,
|
|
- sort:[]
|
|
|
|
|
|
+ sort:[],
|
|
|
|
+ allocatedialogVisible:false//分配WBS弹窗
|
|
|
|
|
|
|
|
|
|
};
|
|
};
|
|
@@ -421,6 +432,7 @@ export default {
|
|
created() {
|
|
created() {
|
|
this.projectid = this.$route.query.pid;
|
|
this.projectid = this.$route.query.pid;
|
|
this.wbsid=this.$route.query.wbsid;
|
|
this.wbsid=this.$route.query.wbsid;
|
|
|
|
+ this.wbsType=this.$route.query.wbsType;
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
//关闭公式弹窗
|
|
//关闭公式弹窗
|
|
@@ -785,6 +797,12 @@ export default {
|
|
this.$refs.trees.setCurrentKey(this.curNode.data.id);
|
|
this.$refs.trees.setCurrentKey(this.curNode.data.id);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //分配WBS
|
|
|
|
+ allocatWbs(row){
|
|
|
|
+ console.log(row,'row');
|
|
|
|
+ this.$refs.allocateRef.show()
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|