|
@@ -150,6 +150,7 @@
|
|
|
<SubList
|
|
|
ref="subList"
|
|
|
v-show="tabIndex == '1'"
|
|
|
+ :tableListName="'tableList1'"
|
|
|
:menudata="menudata"
|
|
|
:tableList="tableList"
|
|
|
:echoData="subEchoData.echoData"
|
|
@@ -160,6 +161,7 @@
|
|
|
<SubList
|
|
|
ref="StatusTable"
|
|
|
v-show="tabIndex == '2'"
|
|
|
+ :tableListName="'tableList2'"
|
|
|
:menudata="menudata"
|
|
|
:tableList="tableList"
|
|
|
:echoData="countEchoData.echoData"
|
|
@@ -208,7 +210,15 @@
|
|
|
:key="val.fieldName"
|
|
|
:label="val.fieldDescription"
|
|
|
:value="val.fieldName"
|
|
|
- ></el-option>
|
|
|
+ >
|
|
|
+ <span style="float: left">{{
|
|
|
+ val.fieldDescription
|
|
|
+ }}</span>
|
|
|
+ <span
|
|
|
+ style="float: right; color: #8492a6; font-size: 13px"
|
|
|
+ >{{ val.fieldName }}</span
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="操作列按钮" prop="btnGroupList">
|
|
@@ -236,7 +246,15 @@
|
|
|
:key="val.fieldName"
|
|
|
:label="val.fieldDescription"
|
|
|
:value="val.fieldName"
|
|
|
- ></el-option>
|
|
|
+ >
|
|
|
+ <span style="float: left">{{
|
|
|
+ val.fieldDescription
|
|
|
+ }}</span>
|
|
|
+ <span
|
|
|
+ style="float: right; color: #8492a6; font-size: 13px"
|
|
|
+ >{{ val.fieldName }}</span
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="排序方式" v-show="formData.orderByColumn">
|
|
@@ -359,6 +377,83 @@
|
|
|
:dragTableList="dragTableList"
|
|
|
:tableList="tableList"
|
|
|
/>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ class="inline-large-button addcount"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="mini"
|
|
|
+ @click="addDataDialog"
|
|
|
+ >
|
|
|
+ 添加数据字段
|
|
|
+ </el-button>
|
|
|
+ <el-table
|
|
|
+ :data="dragTableStatisticList"
|
|
|
+ border
|
|
|
+ class="mb10"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <!-- <el-table-column prop="number" label="序号" width="50"> -->
|
|
|
+ <!-- style="width: 100%"> -->
|
|
|
+ <el-table-column
|
|
|
+ type="index"
|
|
|
+ label="序号"
|
|
|
+ width="50"
|
|
|
+ class-name="allowDrag"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ prop="statisticTitle"
|
|
|
+ label="统计标题"
|
|
|
+ width="83"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="statisticField"
|
|
|
+ label="统计数据"
|
|
|
+ width="80"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="statisticType"
|
|
|
+ label="统计类型"
|
|
|
+ width="50"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-dropdown>
|
|
|
+ <el-button type="warning" plain size="small">
|
|
|
+ 处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdateStat(scope.row)"
|
|
|
+ >修改
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="handleDeleteStat(scope.row)"
|
|
|
+ >删除
|
|
|
+ </el-button>
|
|
|
+ </el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="数据统计" name="datacount">
|
|
@@ -422,7 +517,15 @@
|
|
|
:key="val.fieldName"
|
|
|
:label="val.fieldDescription"
|
|
|
:value="val.fieldName"
|
|
|
- ></el-option>
|
|
|
+ >
|
|
|
+ <span style="float: left">{{
|
|
|
+ val.fieldDescription
|
|
|
+ }}</span>
|
|
|
+ <span
|
|
|
+ style="float: right; color: #8492a6; font-size: 13px"
|
|
|
+ >{{ val.fieldName }}</span
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
@@ -438,87 +541,17 @@
|
|
|
:label="item.fieldDescription"
|
|
|
:value="item.fieldName"
|
|
|
>
|
|
|
+ <span style="float: left">{{
|
|
|
+ item.fieldDescription
|
|
|
+ }}</span>
|
|
|
+ <span
|
|
|
+ style="float: right; color: #8492a6; font-size: 13px"
|
|
|
+ >{{ item.fieldName }}</span
|
|
|
+ >
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- class="inline-large-button addcount"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="addDataDialog"
|
|
|
- >
|
|
|
- 添加数据字段
|
|
|
- </el-button>
|
|
|
- <el-table
|
|
|
- :data="dragTableStatisticList"
|
|
|
- border
|
|
|
- class="mb10"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <!-- <el-table-column prop="number" label="序号" width="50"> -->
|
|
|
- <!-- style="width: 100%"> -->
|
|
|
- <el-table-column
|
|
|
- type="index"
|
|
|
- label="序号"
|
|
|
- width="50"
|
|
|
- class-name="allowDrag"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- prop="statisticTitle"
|
|
|
- label="统计标题"
|
|
|
- width="83"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="statisticField"
|
|
|
- label="统计数据"
|
|
|
- width="80"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="statisticType"
|
|
|
- label="统计类型"
|
|
|
- width="50"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- align="center"
|
|
|
- class-name="small-padding fixed-width"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-dropdown>
|
|
|
- <el-button type="warning" plain size="small">
|
|
|
- 处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
- </el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdateStat(scope.row)"
|
|
|
- >修改
|
|
|
- </el-button>
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="handleDeleteStat(scope.row)"
|
|
|
- >删除
|
|
|
- </el-button>
|
|
|
- </el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
@@ -702,11 +735,11 @@
|
|
|
<el-option
|
|
|
v-for="item in dataArr"
|
|
|
:key="item.id"
|
|
|
- :label="item.fieldName"
|
|
|
+ :label="item.fieldDescription"
|
|
|
:value="item.tableName + '.' + item.fieldName"
|
|
|
>
|
|
|
<span style="float: left; margin-right: 5px"
|
|
|
- >{{ isShowTableName }}
|
|
|
+ >{{ item.fieldDescription }}
|
|
|
</span>
|
|
|
<span style="float: right; color: #8492a6; font-size: 13px">{{
|
|
|
item.fieldName
|
|
@@ -1053,8 +1086,10 @@ export default {
|
|
|
return this.countFieldList;
|
|
|
},
|
|
|
// 表格主键
|
|
|
- primaryKeyList() {
|
|
|
- return this.tableFieldList.filter((item) => !item.isChildren);
|
|
|
+ primaryKeyList: {
|
|
|
+ get() {
|
|
|
+ return this.tableFieldList.filter((item) => !item.isChildren);
|
|
|
+ },
|
|
|
},
|
|
|
// 数据统计表格主键
|
|
|
countPrimaryKeyList() {
|
|
@@ -1196,6 +1231,7 @@ export default {
|
|
|
// 数据统计字段
|
|
|
statusFieldListHandler(list) {
|
|
|
this.statusFieldList = list;
|
|
|
+ this.countFieldList = list;
|
|
|
},
|
|
|
// 关联子表
|
|
|
subFormDataHandler(data) {
|
|
@@ -1694,7 +1730,7 @@ export default {
|
|
|
return sql;
|
|
|
},
|
|
|
// 数据统计sql
|
|
|
- countGetSQLStr() {
|
|
|
+ countGetSQLStr(countByFieldList, tableName) {
|
|
|
let prefix = "{DBNAME}.";
|
|
|
let sqlType = this.databaseType; //数据库类型
|
|
|
// let sqlType = "oracle";
|
|
@@ -1703,8 +1739,9 @@ export default {
|
|
|
sql += "SELECT ";
|
|
|
let fieldNameArr = [],
|
|
|
relaTypeArr = [];
|
|
|
+ console.log(countByFieldList);
|
|
|
this.getSQLCountString(
|
|
|
- this.countByFieldList,
|
|
|
+ countByFieldList,
|
|
|
fieldNameArr,
|
|
|
relaTypeArr,
|
|
|
sqlType
|
|
@@ -1716,9 +1753,9 @@ export default {
|
|
|
" FROM " +
|
|
|
isNeedUsername +
|
|
|
prefix +
|
|
|
- this.countData.countName +
|
|
|
+ tableName +
|
|
|
asOrSpace +
|
|
|
- this.countData.countName;
|
|
|
+ tableName;
|
|
|
if (relaTypeArr.length) {
|
|
|
sql += " " + relaTypeArr.join(" ");
|
|
|
}
|
|
@@ -1989,9 +2026,11 @@ export default {
|
|
|
echoData: JSON.stringify(echoData),
|
|
|
conditionDefaultValueMap: conditionDefault,
|
|
|
};
|
|
|
+ console.log(tableList1.tableKey, this.formData.btnGroupList);
|
|
|
// 基础信息绑定按钮
|
|
|
tableList1.dragTableBtnRelevanceList = this.getBtnMapList(
|
|
|
- tableList1.tableKey
|
|
|
+ tableList1.tableKey,
|
|
|
+ this.formData.btnGroupList
|
|
|
);
|
|
|
|
|
|
// 关联子表回显
|
|
@@ -2037,6 +2076,7 @@ export default {
|
|
|
primaryKey: this.subformData.primaryKey,
|
|
|
orderByColumn: this.subformData.orderByColumn,
|
|
|
sortOrder: this.subformData.isAsc,
|
|
|
+ statisticTitle: this.subformData.title,
|
|
|
sqlKey: uuidv4(),
|
|
|
dtColumnName: columns2, //列字
|
|
|
timeFormat: this.subformData.timeFormate,
|
|
@@ -2045,13 +2085,15 @@ export default {
|
|
|
echoData: JSON.stringify(echoData2),
|
|
|
conditionDefaultValueMap: subCondition,
|
|
|
};
|
|
|
-
|
|
|
+ console.log(2, tableList2.tableKey, this.subformData.btnGroupList);
|
|
|
tableList2.dragTableBtnRelevanceList = this.getBtnMapList(
|
|
|
- tableList2.tableKey
|
|
|
+ tableList2.tableKey,
|
|
|
+ this.subformData.btnGroupList
|
|
|
);
|
|
|
|
|
|
// 统计信息
|
|
|
let countData = this.$refs.StatusTable?.getTableInfo();
|
|
|
+
|
|
|
let countEchoData = {
|
|
|
formData: this.countData,
|
|
|
// tableFieldData: this.countFieldList,
|
|
@@ -2077,7 +2119,7 @@ export default {
|
|
|
let countTableList = {
|
|
|
tId: this.tId,
|
|
|
tableKey: countTableKey, // 暂定
|
|
|
- dtTableName: this.countData.countName,
|
|
|
+ dtTableName: countData.tableName,
|
|
|
primaryKey: this.countData.primaryKey,
|
|
|
orderByColumn: "",
|
|
|
sortOrder: "",
|
|
@@ -2085,12 +2127,18 @@ export default {
|
|
|
dtColumnName: "", //列字
|
|
|
timeFormat: "",
|
|
|
searchFieldList: countFieldLists, //搜索字段数组
|
|
|
- tableSql: this.countGetSQLStr(),
|
|
|
+ tableSql: this.countGetSQLStr(
|
|
|
+ countData.fieldInfo,
|
|
|
+ countData.tableName
|
|
|
+ ),
|
|
|
echoData: JSON.stringify(countEchoData),
|
|
|
conditionDefaultValueMap: conutCondition,
|
|
|
};
|
|
|
+ // return;
|
|
|
+ console.log(3, countTableList.tableKey, this.countData.btnGroupList);
|
|
|
countTableList.dragTableBtnRelevanceList = this.getBtnMapList(
|
|
|
- countTableList.tableKey
|
|
|
+ countTableList.tableKey,
|
|
|
+ this.countData.btnGroupList
|
|
|
);
|
|
|
let stateSqlkey = uuidv4();
|
|
|
let stateList = [
|
|
@@ -2102,14 +2150,22 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
let stateSql;
|
|
|
- let stateSqlList;
|
|
|
+ let stateSqlList = [];
|
|
|
let stateName = "";
|
|
|
// console.log(this.dragTableList)
|
|
|
// console.log(this.dragTableList);
|
|
|
// 统计状态信息
|
|
|
let search = [];
|
|
|
let conditionDefaultValueMap = {};
|
|
|
+ stateSqlList.push({
|
|
|
+ sqlKey: stateSqlkey,
|
|
|
+ tableSql: this.getCountSqlStr(
|
|
|
+ this.countGetSQLStr(countData.fieldInfo, countData.tableName),
|
|
|
+ countData.tableName
|
|
|
+ ),
|
|
|
+ });
|
|
|
this.dragTableList.forEach(async (item) => {
|
|
|
+ console.log(item.dtName, this.countData.relytableName);
|
|
|
if (item.dtName == this.countData.relytableName) {
|
|
|
// console.log(123);
|
|
|
const info = await dragTableInfo({
|
|
@@ -2138,7 +2194,7 @@ export default {
|
|
|
stateName = item.dtTableName;
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+ // return;
|
|
|
// 统计信息
|
|
|
this.dragTableStatisticList.forEach((item) => {
|
|
|
if (this.tId == "") {
|
|
@@ -2178,21 +2234,35 @@ export default {
|
|
|
tableList1.sqlKey = this.editData.sqlKey;
|
|
|
tableList1.tableKey = this.editData.tableKey;
|
|
|
tableList1.tId = this.lists[0].tId;
|
|
|
+ console.log(tableList1.dragTableBtnRelevanceList);
|
|
|
+ let btnTempList1 = tableList1.dragTableBtnRelevanceList.map(
|
|
|
+ (item) => item.btnKey
|
|
|
+ );
|
|
|
tableList1.dragTableBtnRelevanceList = this.getBtnMapList(
|
|
|
- this.editData.tableKey
|
|
|
+ this.editData.tableKey,
|
|
|
+ btnTempList1
|
|
|
);
|
|
|
// 关联子表
|
|
|
tableList2.tableKey = this.subEchoData.tableKey;
|
|
|
tableList2.sqlKey = this.subEchoData.sqlKey;
|
|
|
tableList2.tId = this.lists[1].tId;
|
|
|
+ let btnTempList2 = tableList2.dragTableBtnRelevanceList.map(
|
|
|
+ (item) => item.btnKey
|
|
|
+ );
|
|
|
tableList2.dragTableBtnRelevanceList = this.getBtnMapList(
|
|
|
- this.subEchoData.tableKey
|
|
|
+ this.subEchoData.tableKey,
|
|
|
+ btnTempList2
|
|
|
);
|
|
|
// 数据统计
|
|
|
+ console.log(this.countEchoData);
|
|
|
countTableList.tableKey = this.countEchoData.tableKey;
|
|
|
countTableList.sqlKey = this.countEchoData.sqlKey;
|
|
|
+ let btnTempList3 = countTableList.dragTableBtnRelevanceList.map(
|
|
|
+ (item) => item.btnKey
|
|
|
+ );
|
|
|
countTableList.dragTableBtnRelevanceList = this.getBtnMapList(
|
|
|
- this.countEchoData.tableKey
|
|
|
+ this.countEchoData.tableKey,
|
|
|
+ btnTempList3
|
|
|
);
|
|
|
countTableList.tId = this.lists[2].tId;
|
|
|
|
|
@@ -2219,6 +2289,7 @@ export default {
|
|
|
sort: 2,
|
|
|
}
|
|
|
);
|
|
|
+ console.log(countTableList.tableKey);
|
|
|
data.groupTableInfo = JSON.stringify(data.groupTableInfo);
|
|
|
data.dragTables.push(tableList1, tableList2, countTableList);
|
|
|
|
|
@@ -2228,7 +2299,7 @@ export default {
|
|
|
item.tableKey = this.subEchoData.tableKey;
|
|
|
});
|
|
|
|
|
|
- // console.log('回显', this.statusCount);
|
|
|
+ console.log("回显", this.statusCount);
|
|
|
stateList.forEach((item) => {
|
|
|
item.id = this.statusCount.id;
|
|
|
item.sqlKey = this.statusCount.sqlKey;
|
|
@@ -2239,11 +2310,13 @@ export default {
|
|
|
item.sqlKey = this.statusCount.sqlKey;
|
|
|
});
|
|
|
// 修改统计数据
|
|
|
+
|
|
|
await updateStatistic({
|
|
|
tableKey: this.subEchoData.tableKey,
|
|
|
dragTableStatisticList: this.dragTableStatisticList,
|
|
|
tableSqlList: this.tableSqlList,
|
|
|
searchFieldList: searchFieldList2,
|
|
|
+ conditionDefaultValueMap: subCondition,
|
|
|
dtTableName: this.subTableName,
|
|
|
});
|
|
|
|
|
@@ -2252,9 +2325,9 @@ export default {
|
|
|
tableKey: this.countEchoData.tableKey,
|
|
|
dragTableStatisticList: stateList,
|
|
|
tableSqlList: stateSqlList,
|
|
|
- searchFieldList: search,
|
|
|
+ searchFieldList: countFieldLists,
|
|
|
dtTableName: stateName,
|
|
|
- conditionDefaultValueMap: conditionDefaultValueMap,
|
|
|
+ conditionDefaultValueMap: conutCondition,
|
|
|
});
|
|
|
} else {
|
|
|
// 统计信息
|
|
@@ -2276,7 +2349,7 @@ export default {
|
|
|
groupDescription: this.formData.groupDescription,
|
|
|
groupTableInfo: [],
|
|
|
dragTables: [],
|
|
|
- templateType: "myTemplateType",
|
|
|
+ templateType: "composeForm",
|
|
|
};
|
|
|
data.groupTableInfo.push(
|
|
|
{
|
|
@@ -2297,22 +2370,23 @@ export default {
|
|
|
|
|
|
res = await addDialogGroup(data);
|
|
|
// 统计数据
|
|
|
- addStatistic({
|
|
|
+ await addStatistic({
|
|
|
tableKey: tableList2.tableKey,
|
|
|
dragTableStatisticList: this.dragTableStatisticList,
|
|
|
tableSqlList: this.tableSqlList,
|
|
|
searchFieldList: searchFieldList2,
|
|
|
dtTableName: this.subTableName,
|
|
|
+ conditionDefaultValueMap: subCondition,
|
|
|
});
|
|
|
-
|
|
|
+ console.log(stateList);
|
|
|
// 统计状态
|
|
|
- addStatistic({
|
|
|
+ await addStatistic({
|
|
|
tableKey: countTableList.tableKey,
|
|
|
dragTableStatisticList: stateList,
|
|
|
tableSqlList: stateSqlList,
|
|
|
- searchFieldList: search,
|
|
|
+ searchFieldList: countFieldLists,
|
|
|
dtTableName: stateName,
|
|
|
- conditionDefaultValueMap: conditionDefaultValueMap,
|
|
|
+ conditionDefaultValueMap: conutCondition,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -2340,9 +2414,22 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 获取数据统计的sql
|
|
|
+ getCountSqlStr(sql, tableName) {
|
|
|
+ let tempList = sql.split("FROM");
|
|
|
+ return (
|
|
|
+ "SELECT " +
|
|
|
+ tableName +
|
|
|
+ "." +
|
|
|
+ this.countData.countFile +
|
|
|
+ " as result " +
|
|
|
+ " FROM" +
|
|
|
+ tempList[1]
|
|
|
+ );
|
|
|
+ },
|
|
|
// 按钮
|
|
|
- getBtnMapList(tableKey) {
|
|
|
- let res = this.formData.btnGroupList.map((item) => {
|
|
|
+ getBtnMapList(tableKey, btnGroupList) {
|
|
|
+ let res = btnGroupList.map((item) => {
|
|
|
return {
|
|
|
tableKey,
|
|
|
btnKey: item,
|
|
@@ -2355,7 +2442,7 @@ export default {
|
|
|
this.$forceUpdate(); //强制刷新
|
|
|
},
|
|
|
// 处理统计sql语句
|
|
|
- getTableSql(sql, key) {
|
|
|
+ getTableSql(sql, key, tableName) {
|
|
|
// console.log(key);
|
|
|
let Sql;
|
|
|
let arrSql = sql.split("FROM");
|
|
@@ -2379,7 +2466,7 @@ export default {
|
|
|
console.log("zidaun", this.countData.countFile);
|
|
|
Sql =
|
|
|
"SELECT " +
|
|
|
- this.countData.countName +
|
|
|
+ tableName +
|
|
|
"." +
|
|
|
this.countData.countFile +
|
|
|
" as result " +
|
|
@@ -2444,15 +2531,15 @@ export default {
|
|
|
this.dragTableStatisticList = res.data.dragTableStatisticList;
|
|
|
} else if (item.tableKey == groupInfo[2].tableKey) {
|
|
|
let res = await getTableInfo(item.tId);
|
|
|
- // console.log('统计', res.data);
|
|
|
+ console.log("统计", res.data);
|
|
|
this.statusCount = res.data.dragTableStatisticList[0];
|
|
|
+ console.log(this.statusCount);
|
|
|
|
|
|
// console.log('zhuangt', res);
|
|
|
let echoData = JSON.parse(item.echoData);
|
|
|
this.countFieldList = echoData.tableFieldData;
|
|
|
- // console.log('echo123', echoData);
|
|
|
|
|
|
- this.countData.title = this.statusCount.statisticTitle;
|
|
|
+ this.countData.title = this.statusCount?.statisticTitle;
|
|
|
// this.countData.relaykey = this.statusCount.statisticField
|
|
|
this.countEchoData = item;
|
|
|
console.log(JSON.parse(this.countEchoData.echoData));
|
|
@@ -2480,19 +2567,20 @@ export default {
|
|
|
await this.getdragTable();
|
|
|
});
|
|
|
|
|
|
- this.getrelyList();
|
|
|
+ // this.getrelyList();
|
|
|
|
|
|
- this.getCountrelyList();
|
|
|
+ // this.getCountrelyList();
|
|
|
} else {
|
|
|
this.$message.error("数据回显失败");
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
// tab切换
|
|
|
tabhandleClick(tab, event) {
|
|
|
this.tabIndex = tab.index;
|
|
|
console.log(this.tabIndex);
|
|
|
if (this.tabIndex == "2") {
|
|
|
- this.getCountrelyList();
|
|
|
+ // this.getCountrelyList();
|
|
|
}
|
|
|
this.menudata = this.activeName != "menuedit" ? true : false;
|
|
|
},
|