统计代码优化

This commit is contained in:
shixiaoman
2021-11-25 11:00:55 +08:00
parent c6ddce366d
commit 31103263e8
2 changed files with 2 additions and 3 deletions

View File

@@ -131,9 +131,6 @@
res.data.data.forEach((m) => { res.data.data.forEach((m) => {
this.momData.push(m); this.momData.push(m);
}) })
res.data.data.yoyData.forEach((y) => {
this.yoyData.push(y);
})
} else { } else {
this.$message.error(res.data.msg); this.$message.error(res.data.msg);
} }

View File

@@ -31,9 +31,11 @@
</a-row> </a-row>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->
<a-spin :spinning="loading">
<ele-pro-table ref="table" :datasource="datasource" :columns="columns" :where="where" <ele-pro-table ref="table" :datasource="datasource" :columns="columns" :where="where"
:scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)"> :scroll="{ x: 'max-content' }" @done="(d) => (data = d.data)">
</ele-pro-table> </ele-pro-table>
</a-spin>
</a-card> </a-card>
</div> </div>
<!-- 编辑弹窗 --> <!-- 编辑弹窗 -->