Explorar el Código

同步id修改

duy hace 2 meses
padre
commit
5310f34be1
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)