fix -- 优化流程任务方法,统一响应格式

This commit is contained in:
hewenqiang
2022-02-11 10:58:39 +08:00
parent 3022396404
commit e6bfd5bf0a
6 changed files with 64 additions and 68 deletions

View File

@@ -138,8 +138,8 @@ export default {
getList() {
this.loading = true;
finishedList(this.queryParams).then(response => {
this.finishedList = response.data.records;
this.total = response.data.total;
this.finishedList = response.rows;
this.total = response.total;
this.loading = false;
});
},

View File

@@ -215,8 +215,8 @@ export default {
getList() {
this.loading = true;
myProcessList(this.queryParams).then(response => {
this.myProcessList = response.data.records;
this.total = response.data.total;
this.myProcessList = response.rows;
this.total = response.total;
this.loading = false;
});
},

View File

@@ -135,8 +135,8 @@ export default {
getList() {
this.loading = true;
todoList(this.queryParams).then(response => {
this.todoList = response.data.records;
this.total = response.data.total;
this.todoList = response.rows;
this.total = response.total;
this.loading = false;
});
},