更新了审批页面的逻辑

This commit is contained in:
weipengfei 2023-09-22 17:36:26 +08:00
parent 20283a23d9
commit 308e4e8bc5

View File

@ -28,19 +28,24 @@
},
data() {
return {
tabLists: [{
name: '全部',
}, {
tabLists: [ {
name: '审核中',
id: 1
}, {
name: '已通过'
name: '已通过',
id: 2
}, {
name: '未通过'
}, ],
name: '未通过',
id: 3
}, {
name: '全部',
id: 0
},],
typeTabLists: [],
current: 0,
currentID: 1, // ,,,
typeCurrent: 0,
check_status: 0,
check_status: 0, //
list: [],
loadConfig: {
page: 1,
@ -96,7 +101,7 @@
page: this.loadConfig.page,
limit: this.loadConfig.limit
}
this.current?query.check_status=this.current:null;
this.currentID?query.check_status=this.currentID:null;
let res = await approveLists(query);
this.loadConfig.status = "loadmore"
if (res.data.lists.length < this.loadConfig.limit) {
@ -108,6 +113,7 @@
},
changeCurrent(e) {
this.current = e.index;
this.currentID = e.id;
this.initList();
},
changeTypeCurrent(e) {