update 产品质量分析

This commit is contained in:
lb
2023-09-27 16:53:27 +08:00
parent 9c257aa24a
commit 96b0a9e503
3 changed files with 44 additions and 14 deletions

View File

@@ -155,7 +155,7 @@ export default {
async getList() {
this.loading = true;
// 执行查询
const { data } = await this.$axios({
const { code, data } = await this.$axios({
url: '/analysis/equipment-analysis/efficiency',
method: 'get',
params: {
@@ -163,6 +163,11 @@ export default {
recordTime: this.queryParams.recordTime || null,
},
});
if (code === 0) {
this.list = data;
} else {
this.list.splice(0);
}
},
handleSearchBarBtnClick(btn) {