Bläddra i källkod

fix:补充提交

Zn 1 år sedan
förälder
incheckning
e2302a5123

+ 14 - 10
ruoyi-ui/src/views/dialogMange/index.vue

@@ -985,6 +985,8 @@ export default {
       countFieldList: [],
       // 统计状态信息回显
       statusCount: [],
+      // 回显数据单表列表
+      lists: []
     };
   },
   computed: {
@@ -2007,20 +2009,21 @@ export default {
           if(this.tId){
             // console.log('修改');
             // console.log(this.editData);
+            // 基础信息
             tableList1.sqlKey = this.editData.sqlKey
             tableList1.tableKey = this.editData.tableKey
-
-
+            tableList1.tId = this.lists[0].tId
+            tableList1.dragTableBtnRelevanceList = this.getBtnMapList(this.editData.tableKey);
+            // 关联子表
             tableList2.tableKey = this.subEchoData.tableKey
             tableList2.sqlKey = this.subEchoData.sqlKey
-
+            tableList2.tId = this.lists[1].tId
             tableList2.dragTableBtnRelevanceList = this.getBtnMapList(this.subEchoData.tableKey);
-
-            tableList1.dragTableBtnRelevanceList = this.getBtnMapList(this.echoData.sqlKey);
-
+            // 数据统计
             countTableList.tableKey = this.countEchoData.tableKey
             countTableList.sqlKey = this.countEchoData.sqlKey
-            countTableList.dragTableBtnRelevanceList = this.getBtnMapList(this.countEchoData.sqlKey);
+            countTableList.dragTableBtnRelevanceList = this.getBtnMapList(this.countEchoData.tableKey);
+            countTableList.tId = this.lists[2].tId
 
           let data = {
             id : this.tId,
@@ -2099,7 +2102,8 @@ export default {
             groupName: this.formData.groupName,
             groupDescription: this.formData.groupDescription,
             groupTableInfo: [],
-            dragTables:[]
+            dragTables:[],
+            templateType:'myTemplateType'
           }
           data.groupTableInfo.push({
             tableKey: tableList1.tableKey,
@@ -2211,14 +2215,14 @@ export default {
       // console.log(res);
       if (res.code == 200) {
         this.groupKey = res.data.groupKey
-        let lists = res.data.dragTables
+        this.lists = res.data.dragTables
 
         this.formData.groupName =  res.data.groupName
         this.formData.groupDescription = res.data.groupDescription
 
         let groupInfo =JSON.parse(res.data.groupTableInfo)
 
-        lists.forEach(async item => {
+        this.lists.forEach(async item => {
           if(item.tableKey == groupInfo[0].tableKey){
             this.editData = item;
             // console.log('123',this.editData);

+ 3 - 2
ruoyi-ui/src/views/dialogTemplate/components/index.vue

@@ -223,9 +223,9 @@ export default {
 
           const res = await dragTableInfo({queryMap: {tableKey : item.tableKey }})
           
+          console.log('butt',res.data.resultMap.button)
           this.controlBtnArr = res.data.resultMap.button[0]
           this.controlBtnArr = this.controlBtnArr.children
-          console.log('butt',this.controlBtnArr)
         }
       })
     },
@@ -244,6 +244,7 @@ export default {
         this.tableName = this.templateInfo.template.dtTableName;
         // 得到查询条件
         this.queryFromWhere = res.data.resultMap.where;
+        
         //  得到当前列表信息
         this.columns = this.columnsHandler(
           JSON.parse(this.templateInfo.template.dtColumnName)
@@ -277,7 +278,7 @@ export default {
             })
   
             this.getDataHandler(this.tableCondition[1]).then(res => {
-              console.log(res);
+              // console.log(res);
               if(sort == 0){
                 this.infoData.push(res)
                 // this.$set(this.infoData)