From 093939a2e23048ce343244ef86bbaea06d3bfa0a Mon Sep 17 00:00:00 2001 From: shidongli Date: Mon, 12 Aug 2024 17:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/index.vue | 1 + src/store/modules/tagsView.js | 8 ++++++++ src/views/system/taskExecuteRecord/index.vue | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/layout/index.vue b/src/layout/index.vue index d101131..70b4bbb 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -59,6 +59,7 @@ export default { localStorage.removeItem('manualReviewquery') localStorage.removeItem('signRecordquery') localStorage.removeItem('followupquery') + localStorage.removeItem('taskquery') }, methods: { handleClickOutside() { diff --git a/src/store/modules/tagsView.js b/src/store/modules/tagsView.js index 838b931..3ef894a 100644 --- a/src/store/modules/tagsView.js +++ b/src/store/modules/tagsView.js @@ -124,6 +124,10 @@ const actions = { if (view.fullPath == "/task/followup") { localStorage.removeItem('followupquery') } + if (view.fullPath == "/task/taskExecuteRecord") { + localStorage.removeItem('taskquery') + } + return new Promise(resolve => { dispatch('delVisitedView', view) dispatch('delCachedView', view) @@ -159,6 +163,10 @@ const actions = { if (view.fullPath != "/task/followup") { localStorage.removeItem('followupquery') } + if (view.fullPath != "/task/taskExecuteRecord") { + localStorage.removeItem('taskquery') + } + return new Promise(resolve => { dispatch('delOthersVisitedViews', view) dispatch('delOthersCachedViews', view) diff --git a/src/views/system/taskExecuteRecord/index.vue b/src/views/system/taskExecuteRecord/index.vue index 6106a73..da427be 100644 --- a/src/views/system/taskExecuteRecord/index.vue +++ b/src/views/system/taskExecuteRecord/index.vue @@ -211,8 +211,8 @@ export default { this.screenChange() }, created(){ - if (localStorage.getItem("followupquery")) { - this.queryParams = JSON.parse(localStorage.getItem("followupquery")); + if (localStorage.getItem("taskquery")) { + this.queryParams = JSON.parse(localStorage.getItem("taskquery")); this.queryParams.hospitalAgencyId = undefined; this.queryParams.campusAgencyId = undefined; this.queryParams.departmentId = undefined; @@ -272,7 +272,7 @@ export default { getList() { this.loading = true; listTaskExecuteRecord(this.queryParams).then((response) => { - localStorage.setItem("followupquery", JSON.stringify(this.queryParams)); + localStorage.setItem("taskquery", JSON.stringify(this.queryParams)); this.taskExecuteRecordList = response.rows; this.total = response.total; this.loading = false;