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 @@