瀏覽代碼

同步id修改

duy 2 月之前
父節點
當前提交
5310f34be1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/manager/projectinfo/tree.vue

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

@@ -2595,6 +2595,7 @@ export default {
       codeDialog:false,
  
       codeSetRef: null,
+      typeTem:''
       
     };
   },
@@ -4951,6 +4952,7 @@ export default {
             const elemet = this.templateIdList[index];
             if(elemet.id==val){
               type = elemet.type;
+              this.typeTem=elemet.type
               projectId=elemet.id
               wbsId=elemet.wbsId
              
@@ -5109,7 +5111,7 @@ export default {
       if(val.length>0){
         for (let index = 0; index < val.length; index++) {
           let i = val[index];
-          if(this.templateIdList[0].type===2){
+          if( this.typeTem===2){
              arr.push(i.pkeyId)
           }else{
              arr.push(i.id)