lph 1 год назад
Родитель
Сommit
7e3dbff9e8
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      zkqy-ui/src/views/relateTable/index.vue

+ 8 - 5
zkqy-ui/src/views/relateTable/index.vue

@@ -1080,7 +1080,6 @@ export default {
             orderByColumn: this.tableItemForm.orderByColumn,
             timeFormate: this.tableItemForm.timeFormate,
             primaryKey: this.tableItemForm.selectFields,
-            rowId: this.tableItemForm.rowId,
             tId: this.tId,
             tableKey: tableKey,
             sortOrder: this.tableItemForm.isAsc,
@@ -1385,7 +1384,8 @@ export default {
               };
               console.log(this.addDragData);
               // return;
-              this.addDragData.forEach((item, index) => {
+              // this.addDragData.forEach((item, index) => {
+              this.tableDataList.forEach((item, index) => {
                 item.menuId = result.data;
                 // item.sqlKey = tableKeyObj.tableKey
                 let echo = JSON.parse(item.echoData);
@@ -1402,7 +1402,8 @@ export default {
               data.groupName = this.groupForm.groupName;
               data.groupDescription = this.groupForm.groupDescription;
               data.groupTableInfo = JSON.stringify(data.groupTableInfo);
-              data.dragTables = this.addDragData;
+              // data.dragTables = this.addDragData;
+              data.dragTables = this.tableDataList;
 
               // 添加表格组
               let res = await addGroup(data);
@@ -1427,7 +1428,8 @@ export default {
               dragTables: [],
               id: this.groupId,
             };
-            this.addDragData.forEach((item, index) => {
+            // this.addDragData.forEach((item, index) => {
+            this.tableDataList.forEach((item, index) => {
               // item.sqlKey = tableKeyObj.tableKey
               let echo = JSON.parse(item.echoData);
               // echo.formData = this.groupForm
@@ -1443,7 +1445,8 @@ export default {
             data.groupName = this.groupForm.groupName;
             data.groupDescription = this.groupForm.groupDescription;
             data.groupTableInfo = JSON.stringify(data.groupTableInfo);
-            data.dragTables = this.addDragData;
+            // data.dragTables = this.addDragData;
+            data.dragTables = this.tableDataList;
             console.log(data);
             let res = await updataGroup(data);