|
@@ -1600,6 +1600,7 @@ import {
|
|
|
syncNodeTable,
|
|
|
syncNodeinfo,
|
|
|
tabTypeLazyTree,
|
|
|
+ syncContractTabSort
|
|
|
} from "@/api/manager/wbsprivate";
|
|
|
import { findProjectTree as getAlltree } from "@/api/manager/projectinfo";
|
|
|
import { findProjectTreeTrial as getAlltreeTrial } from "@/api/manager/projectinfo";
|
|
@@ -1833,7 +1834,8 @@ export default {
|
|
|
menusData:[
|
|
|
// {icon: 'el-icon-s-promotion', label: '新增节点', key: "add"},
|
|
|
{icon: 'el-icon-s-promotion', label: '编辑节点', key: "edit",content:'编辑节点'},
|
|
|
- {icon: 'el-icon-upload', label: '同步元素表单', key: "sync1",content:'同步元素表单'},
|
|
|
+ {icon: 'el-icon-upload', label: '同步新增元素表单', key: "sync1",content:'同步新增元素表单'},
|
|
|
+ {icon: 'el-icon-upload', label: '同步元素表单排序到合同段', key: "sync3",content:'同步元素表单排序到合同段'},
|
|
|
{icon: 'el-icon-s-promotion', label: '同步节点基础信息及表单URL', key: "sync2",content:'同步节点的基础信息、类型名称、表单url等信息'},
|
|
|
{icon: 'el-icon-sort', label: '调整排序', key: "sort",content:'调整排序'},
|
|
|
{icon: 'el-icon-s-promotion', label: '删除节点', key: "del",content:'删除节点'},
|
|
@@ -3457,7 +3459,37 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ //同步元素表单排序到合同段
|
|
|
+ syncSortHandle (data) {
|
|
|
+ this.$confirm("同步元素表单排序到合同段", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }).then(() => {
|
|
|
+ let notify = this.$notify({
|
|
|
+ title: "提示",
|
|
|
+ message: "节点数据同步中...",
|
|
|
+ duration: 0,
|
|
|
+ });
|
|
|
+ syncContractTabSort(data.primaryKeyId)
|
|
|
+ .then(() => {
|
|
|
+ this.updateNodeTable();
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "同步成功",
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "error",
|
|
|
+ message: "同步失败",
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ notify.close();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
typeTreeLoadNode(node, resolve) {
|
|
|
let pid = 0;
|
|
|
if (node.level != 0) {
|
|
@@ -3648,6 +3680,10 @@ export default {
|
|
|
}else if(item.key==='sync2'){
|
|
|
this.syncProjectHandle(data)
|
|
|
}//
|
|
|
+ else if(item.key==='sync3'){
|
|
|
+ console.log('33333333');
|
|
|
+ this.syncSortHandle(data)
|
|
|
+ }
|
|
|
else if(item.key==='add'){
|
|
|
this.addNodeHandle()
|
|
|
}
|