fix: 修复

20240912_adapter_z
chenhc 10 months ago
parent 78fc5bd650
commit 3be0b09194

@ -296,7 +296,8 @@ export default {
showSearch: true, showSearch: true,
filterQuery: { filterQuery: {
tagStatus: "1", // tagStatus: this.tagStatus, //
tagStatusList: this.tagStatusList, //
billNo: null, billNo: null,
busType: null, busType: null,
workPlaceCode: null, workPlaceCode: null,
@ -439,6 +440,7 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
console.log(this.filterQuery)
orderPage(this.filterQuery).then(res => { orderPage(this.filterQuery).then(res => {
this.loading = false this.loading = false
this.list = res.data.list || [] this.list = res.data.list || []
@ -450,6 +452,19 @@ export default {
}) })
} }
, ,
getList2(_this) {
_this.loading = true;
orderPage(_this.filterQuery).then(res => {
_this.loading = false
_this.list = res.data.list || []
_this.total = res.data.total || 0
}).catch(() => {
_this.loading = false
_this.list = []
_this.total = 0
})
}
,
handleCurrentChange(val) { handleCurrentChange(val) {
this.filterQuery.page = val.page; this.filterQuery.page = val.page;
this.getList(); this.getList();
@ -570,14 +585,14 @@ export default {
errorHandle(params) errorHandle(params)
.then((response) => { .then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.getList(); this.getList2(_this);
_this.$message.success("处理成功!") _this.$message.success("处理成功!")
} else if (response.code == 520) { } else if (response.code == 520) {
_this.$message.error(response.message); _this.$message.error(response.message);
this.getList(); this.getList2(_this);
} else { } else {
_this.$message.error(response.message); _this.$message.error(response.message);
this.getList(); this.getList2(_this);
} }
}) })
.catch(() => { .catch(() => {

Loading…
Cancel
Save