Ver Fonte

fix: 同步元素表单排序到合同段添加参数 pKeyId

duy há 3 meses atrás
pai
commit
4e9f8aaf34
2 ficheiros alterados com 4 adições e 3 exclusões
  1. 2 2
      src/api/manager/wbsprivate.js
  2. 2 1
      src/views/manager/projectinfo/tree.vue

+ 2 - 2
src/api/manager/wbsprivate.js

@@ -144,12 +144,12 @@ export const syncNodeinfo = (pKeyId) => {
   })
 }
 //同步元素表单排序到合同段
-export const syncContractTabSort = (projectId) => {
+export const syncContractTabSort = (projectId,pKeyId) => {
   return request({
     url: 'api/blade-manager/wbsTreeContract/syncContractTabSort',
     method: 'get',
     params: {
-      projectId
+      projectId,pKeyId
     }
   })
 }

+ 2 - 1
src/views/manager/projectinfo/tree.vue

@@ -4094,6 +4094,7 @@ export default {
     },
     //同步元素表单排序到合同段
     syncSortHandle(data) {
+      let pid = data.primaryKeyId ? data.primaryKeyId : data.pKeyId;
       this.$confirm("同步元素表单排序到合同段", "提示", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
@@ -4104,7 +4105,7 @@ export default {
           message: "节点数据同步中...",
           duration: 0,
         });
-        syncContractTabSort(this.projectid)
+        syncContractTabSort(this.projectid,pid)
           .then(() => {
             this.updateNodeTable();
             this.$message({