From afa3ab977f05ab6c46dc5206774f1dabde525b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8A=B2=E9=BE=99?= <2860996570@qq.com> Date: Mon, 6 Jan 2025 18:54:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 1 + src/views/auditPages/taskManagement/index.vue | 15 ++++ src/views/auditPages/taskManagement/info.vue | 43 ++++++++++-- src/views/components/renwuType/index_v1.vue | 21 ++++-- src/views/components/renwuType/index_v2.vue | 27 ++++++-- src/views/components/renwuType/index_v3.vue | 23 +++++-- src/views/components/renwuType/index_v4.vue | 24 +++++-- src/views/components/renwuType/webType1.vue | 17 ++++- src/views/components/renwuType/webType2DW.vue | 37 ++++++---- src/views/unitPages/myTask/index.vue | 47 ++++++++----- src/views/unitPages/myTask/info.vue | 68 +++++++++++++++---- 11 files changed, 251 insertions(+), 72 deletions(-) diff --git a/src/permission.js b/src/permission.js index c568979..2cc30e1 100644 --- a/src/permission.js +++ b/src/permission.js @@ -11,6 +11,7 @@ NProgress.configure({ showSpinner: false }) const whiteList = ['/login', '/register'] router.beforeEach((to, from, next) => { + NProgress.start() if (getToken()) { to.meta.title && store.dispatch('settings/setTitle', to.meta.title) diff --git a/src/views/auditPages/taskManagement/index.vue b/src/views/auditPages/taskManagement/index.vue index da0d593..34abcf5 100644 --- a/src/views/auditPages/taskManagement/index.vue +++ b/src/views/auditPages/taskManagement/index.vue @@ -268,10 +268,21 @@ export default { } }, mounted() { + + if (localStorage.getItem('ismypagination')) { + if (JSON.parse(localStorage.getItem('ismypagination')).isfanhui) { + this.formInline = JSON.parse(localStorage.getItem('ismypagination')) + this.handleQuery() + } else { + localStorage.removeItem("ismypagination") + } + } + localStorage.removeItem("ismypaginationTow") localStorage.removeItem("activeName") this.getInfo(); this.cancalDebounce(); window.addEventListener('resize', this.cancalDebounce); + }, destroyed() { window.removeEventListener('resize', this.cancalDebounce); @@ -386,6 +397,7 @@ export default { current: 1, size: 10, } + localStorage.removeItem("ismypagination") this.getInfo(); }, //打开列表 @@ -433,6 +445,9 @@ export default { this.formInline.endTime = this.formInline.time[1] } this.pagination = { ...this.pagination, ...this.formInline }; + + this.formInline.isfanhui = false + localStorage.setItem("ismypagination", JSON.stringify(this.formInline)) this.getInfo(); }, // 页码获取 diff --git a/src/views/auditPages/taskManagement/info.vue b/src/views/auditPages/taskManagement/info.vue index 70bd782..f4990a7 100644 --- a/src/views/auditPages/taskManagement/info.vue +++ b/src/views/auditPages/taskManagement/info.vue @@ -3,6 +3,7 @@