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;