From 308e4e8bc56f246d3ff7adf3722dfbf4c358710c Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 22 Sep 2023 17:36:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E5=AE=A1=E6=89=B9?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/oaExamine/oaExamine.vue | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) 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) {