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