Browse Source

患者收藏跳转360修改

master
bianyaqi 2 years ago
parent
commit
7071766131
  1. 5
      src/components/360View/collection.vue
  2. 4
      src/components/360View/index.vue
  3. 13
      src/page-subspecialty/App.vue

5
src/components/360View/collection.vue

@ -104,6 +104,7 @@ export default {
default: ''
}
},
inject: ['reload'],
data() {
return {
defaultExpandIds: [],
@ -222,9 +223,11 @@ export default {
onlyRead: true,
isSearch: this.platform,
patientId: scopeRow.patientId,
jzNumber: scopeRow.jzNumber
jzNumber: scopeRow.jzNumber,
isCollection: true
}
})
this.reload()
},
levelClick(data) {
this.curNode = data

4
src/components/360View/index.vue

@ -413,9 +413,9 @@ export default {
}
},
backList() {
if (this.$route.query.patientId && !this.$route.query.doctorId) {
if (this.$route.query.patientId && !this.$route.query.doctorId && !this.$route.query.isCollection) {
this.$router.go(-1)
} else if (this.$route.query.doctorId) {
} else if (this.$route.query.doctorId || this.$route.query.isCollection) {
this.$router.push('/outpatientManagement-call')
} else {
this.$parent.detailViewVisible = false

13
src/page-subspecialty/App.vue

@ -1,6 +1,6 @@
<template>
<transition name="el-fade-in-linear">
<router-view />
<router-view v-if="isRouterAlive" />
</transition>
</template>
@ -13,6 +13,11 @@
import Cookies from 'js-cookie'
import { messages } from '@/i18n'
export default {
provide() {
return {
reload: this.reload
}
},
data() {
return {
isRouterAlive: true
@ -25,6 +30,12 @@ export default {
this.i18nHandle(this.$i18n.locale)
},
methods: {
reload() {
this.isRouterAlive = false
this.$nextTick(function() {
this.isRouterAlive = true
})
},
i18nHandle(val, oldVal) {
Cookies.set('language', val)
document.querySelector('html').setAttribute('lang', val)

Loading…
Cancel
Save