diff --git a/pages/oaExamine/oaExamine.vue b/pages/oaExamine/oaExamine.vue index 7c629af..25d0094 100644 --- a/pages/oaExamine/oaExamine.vue +++ b/pages/oaExamine/oaExamine.vue @@ -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) {