更新了审批页面的逻辑
This commit is contained in:
parent
20283a23d9
commit
308e4e8bc5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user