1、修复禅道bug
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div class="sr">
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery" v-loading="loading">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh-left" @click="resetQuery">重置</el-button>
|
||||
</div>
|
||||
</div><!--search 搜索-->
|
||||
@@ -244,28 +244,37 @@ export default {
|
||||
},
|
||||
/** 查询列表 */
|
||||
getListData() {
|
||||
this.loading = true;
|
||||
this.postList = [];
|
||||
workflowToDoList(this.queryParams).then((response) => {
|
||||
if (this.activeName == "taskToDo") {
|
||||
let self = this
|
||||
self.loading = true;
|
||||
self.postList = [];
|
||||
workflowToDoList(self.queryParams).then((response) => {
|
||||
if (self.activeName == "taskToDo") {
|
||||
// 待办
|
||||
this.statustotal = response.data.totalCount;
|
||||
self.statustotal = response.data.totalCount;
|
||||
// this.$store.commit("SET_THINGNUMBER", response.data.totalCount || 0);
|
||||
this.total = response.data.totalCount;
|
||||
self.total = response.data.totalCount;
|
||||
}
|
||||
if (this.activeName == "taskDealed") {
|
||||
if (self.activeName == "taskDealed") {
|
||||
// 已办
|
||||
this.doneTotal = response.data.totalCount;
|
||||
this.total = response.data.totalCount;
|
||||
self.doneTotal = response.data.totalCount;
|
||||
self.total = response.data.totalCount;
|
||||
}
|
||||
if (this.activeName == "taskFinish") {
|
||||
if (self.activeName == "taskFinish") {
|
||||
// 办结
|
||||
this.finishedTotal = response.data.totalCount;
|
||||
this.total = response.data.totalCount;
|
||||
self.finishedTotal = response.data.totalCount;
|
||||
self.total = response.data.totalCount;
|
||||
}
|
||||
|
||||
this.postList = response.data.result;
|
||||
this.loading = false;
|
||||
self.postList = response.data.result;
|
||||
setTimeout(function () {
|
||||
self.loading = false;
|
||||
}, 500);
|
||||
|
||||
}).catch(err => {
|
||||
console.info("err=============", err)
|
||||
setTimeout(function () {
|
||||
self.loading = false;
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
|
||||
Reference in New Issue
Block a user