更新了审批页面的逻辑

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