修改任务记录

This commit is contained in:
shidongli 2024-08-12 17:02:03 +08:00
parent 3eef97c54e
commit 093939a2e2
3 changed files with 12 additions and 3 deletions

View File

@ -59,6 +59,7 @@ export default {
localStorage.removeItem('manualReviewquery')
localStorage.removeItem('signRecordquery')
localStorage.removeItem('followupquery')
localStorage.removeItem('taskquery')
},
methods: {
handleClickOutside() {

View File

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

View File

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