Przeglądaj źródła

表单同步字段修改

duy 2 miesięcy temu
rodzic
commit
5ad0cd3696
1 zmienionych plików z 8 dodań i 2 usunięć
  1. 8 2
      src/views/manager/projectinfo/tree.vue

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

@@ -4330,7 +4330,7 @@ export default {
    
    
       this.getCheckIdList()
       this.getCheckIdList()
       selectByNodeTable(data.id, this.projectid, this.id).then((res) => {
       selectByNodeTable(data.id, this.projectid, this.id).then((res) => {
-          if (res.data.data.length) {
+          if (res.data.data.length>0) {
             this.preTableData = res.data.data;
             this.preTableData = res.data.data;
           } else {
           } else {
             this.preTableData = [];
             this.preTableData = [];
@@ -5102,7 +5102,13 @@ export default {
       if(val.length>0){
       if(val.length>0){
         for (let index = 0; index < val.length; index++) {
         for (let index = 0; index < val.length; index++) {
           let i = val[index];
           let i = val[index];
-         arr.push(i.id)
+          if(this.templateIdList[0].type===2){
+             arr.push(i.pkeyId)
+          }else{
+             arr.push(i.id)
+          }
+           
+        //  arr.push(i.id)
         }
         }
 
 
         this.syncForm.formIds=arr.join(',')
         this.syncForm.formIds=arr.join(',')