This commit is contained in:
2024-06-28 17:05:57 +08:00
parent 728c35b816
commit ac48a4f8bd
4 changed files with 27 additions and 22 deletions

View File

@ -63,7 +63,7 @@ const mutations = {
} }
} }
}, },
DEL_RIGHT_VIEWS: (state, view) => { DEL_RIGHT_VIEWS: (state, view) => {
const index = state.visitedViews.findIndex(v => v.path === view.path) const index = state.visitedViews.findIndex(v => v.path === view.path)
if (index === -1) { if (index === -1) {
@ -112,6 +112,15 @@ const actions = {
}, },
delView({ dispatch, state }, view) { delView({ dispatch, state }, view) {
if (view.fullPath == '/task/manualReview') {
localStorage.removeItem('routeCheckStatus')
}
if (view.fullPath == "/patient/signRecord") {
localStorage.removeItem('serviceStatus')
}
if (view.fullPath == "/task/followup") {
localStorage.removeItem('nodeExecuteStatus')
}
return new Promise(resolve => { return new Promise(resolve => {
dispatch('delVisitedView', view) dispatch('delVisitedView', view)
dispatch('delCachedView', view) dispatch('delCachedView', view)
@ -135,6 +144,15 @@ const actions = {
}, },
delOthersViews({ dispatch, state }, view) { delOthersViews({ dispatch, state }, view) {
if (view.fullPath != '/task/manualReview') {
localStorage.removeItem('routeCheckStatus')
}
if (view.fullPath != "/patient/signRecord") {
localStorage.removeItem('serviceStatus')
}
if (view.fullPath != "/task/followup") {
localStorage.removeItem('nodeExecuteStatus')
}
return new Promise(resolve => { return new Promise(resolve => {
dispatch('delOthersVisitedViews', view) dispatch('delOthersVisitedViews', view)
dispatch('delOthersCachedViews', view) dispatch('delOthersCachedViews', view)

View File

@ -216,7 +216,6 @@ export default {
created() { created() {
if (localStorage.getItem('routeCheckStatus')) { if (localStorage.getItem('routeCheckStatus')) {
this.queryParams.routeCheckStatus = localStorage.getItem('routeCheckStatus') this.queryParams.routeCheckStatus = localStorage.getItem('routeCheckStatus')
localStorage.removeItem('routeCheckStatus')
} }
this.getList(); this.getList();
this.selectAgencyinfo(); this.selectAgencyinfo();
@ -253,7 +252,6 @@ export default {
}, },
// //
handleLook(row) { handleLook(row) {
localStorage.setItem('routeCheckStatus', this.queryParams.routeCheckStatus)
this.$router.push({ this.$router.push({
path: "/task/LookAuditing", path: "/task/LookAuditing",
query: { query: {
@ -265,7 +263,6 @@ export default {
}, },
/** 审核操作 */ /** 审核操作 */
handleAuthRole(row) { handleAuthRole(row) {
localStorage.setItem('routeCheckStatus', this.queryParams.routeCheckStatus)
this.$router.push({ this.$router.push({
path: "/task/Auditing", path: "/task/Auditing",
query: { query: {

View File

@ -357,7 +357,6 @@ export default {
created() { created() {
if (localStorage.getItem('serviceStatus')) { if (localStorage.getItem('serviceStatus')) {
this.queryParams.serviceStatus = localStorage.getItem('serviceStatus') this.queryParams.serviceStatus = localStorage.getItem('serviceStatus')
localStorage.removeItem('serviceStatus')
} }
this.selectAgencyinfo(); this.selectAgencyinfo();
}, },
@ -554,7 +553,6 @@ export default {
this.getList(); this.getList();
}, },
handlenewsign(row) { handlenewsign(row) {
localStorage.setItem('serviceStatus', this.queryParams.serviceStatus)
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { // this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.replace({ this.$router.replace({
path: "/patient/newSigning", path: "/patient/newSigning",
@ -672,7 +670,6 @@ export default {
}, },
// //
handleContinue(row) { handleContinue(row) {
localStorage.setItem('serviceStatus', this.queryParams.serviceStatus)
// this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => { // this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
this.$router.replace({ this.$router.replace({
path: "/patient/continueSigning", path: "/patient/continueSigning",
@ -686,7 +683,6 @@ export default {
}, },
/** 详情操作 */ /** 详情操作 */
handleAuthRole(row) { handleAuthRole(row) {
localStorage.setItem('serviceStatus', this.queryParams.serviceStatus)
this.$router.push({ this.$router.push({
path: "/patient/patientdetails", path: "/patient/patientdetails",
query: { query: {
@ -706,7 +702,6 @@ export default {
}, },
// //
handledata(row) { handledata(row) {
localStorage.setItem('serviceStatus', this.queryParams.serviceStatus)
this.$router.push({ this.$router.push({
path: "/patient/Datadetails", path: "/patient/Datadetails",
query: { query: {

View File

@ -270,6 +270,9 @@ export default {
}; };
}, },
created() { created() {
if (localStorage.getItem('nodeExecuteStatus')) {
this.queryParams.nodeExecuteStatus = localStorage.getItem('nodeExecuteStatus')
}
this.getList(); this.getList();
this.selectAgencyinfo(); this.selectAgencyinfo();
}, },
@ -284,10 +287,11 @@ export default {
this.getList(); this.getList();
}, },
handleClick(tab, event) { handleClick(tab, event) {
this.intentionalTime = [], localStorage.setItem('nodeExecuteStatus', this.queryParams.nodeExecuteStatus)
this.mzTime = [], this.intentionalTime = []
this.ryTime = [], this.mzTime = []
this.queryParams.dischargeStartTime = null this.ryTime = []
this.queryParams.dischargeStartTime = null
this.queryParams.dischargeEndTime = null this.queryParams.dischargeEndTime = null
this.queryParams.clinicalStartTime = null this.queryParams.clinicalStartTime = null
this.queryParams.clinicalEndTime = null this.queryParams.clinicalEndTime = null
@ -642,15 +646,6 @@ export default {
} }
}); });
}, },
// handleClick(tab, event) {
// this.intentionalTime = [];
// this.queryParams.startDate = null;
// this.queryParams.endDate = null;
// // this.signTime = []
// // this.queryParams.signTimeStart = null
// // this.queryParams.signTimeEnd = null
// this.getList();
// },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;