统计代码优化
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
</a-row>
|
||||
</a-form>
|
||||
<!-- 表格 -->
|
||||
<a-spin :spinning="loading">
|
||||
<ele-pro-table ref="table" :datasource="momData" :columns="columnsMom" :where="where"
|
||||
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
||||
</ele-pro-table>
|
||||
@@ -50,6 +51,7 @@
|
||||
<ele-pro-table ref="table" :datasource="yoyData" :columns="columnsYoy" :where="where"
|
||||
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
|
||||
</ele-pro-table>
|
||||
</a-spin>
|
||||
</a-card>
|
||||
</div>
|
||||
<!-- 编辑弹窗 -->
|
||||
@@ -186,6 +188,7 @@
|
||||
methods: {
|
||||
/* 刷新表格 */
|
||||
reload() {
|
||||
this.loading = true;
|
||||
listWaterSiteYoy(this.where).then((res) => {
|
||||
console.log(res.data.data);
|
||||
if (res.data.code == 0) {
|
||||
@@ -199,6 +202,7 @@
|
||||
} else {
|
||||
this.$message.error(res.data.msg);
|
||||
}
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
/* 重置搜索 */
|
||||
|
||||
Reference in New Issue
Block a user