Commit 567bc658 authored by miaojiale's avatar miaojiale

修复bug

parent f5f731da
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
}, },
}, },
created() { created() {
this.getMessage() // this.getMessage()
}, },
mounted() { mounted() {
document document
......
...@@ -188,9 +188,9 @@ ...@@ -188,9 +188,9 @@
<div class="title">驳回修改提醒</div> <div class="title">驳回修改提醒</div>
<div class="refuteList"> <div class="refuteList">
<div <div
class="rufuteItem"
v-for="(item, index) in autoDialogList" v-for="(item, index) in autoDialogList"
:key="index" :key="index"
class="rufuteItem"
> >
<div class="title">{{ item.title }}病例数据驳回修改</div> <div class="title">{{ item.title }}病例数据驳回修改</div>
<div class="num">【{{ item.num }}条】</div> <div class="num">【{{ item.num }}条】</div>
...@@ -321,10 +321,17 @@ export default { ...@@ -321,10 +321,17 @@ export default {
} }
}, },
}, },
watch: {
curSelectedIndex(v) {
this.getRefuteMessage()
},
},
created() { created() {
this.selectedIndex = sessionStorage.getItem("selectedIndex") || "" this.selectedIndex = sessionStorage.getItem("selectedIndex") || ""
this.curSelectedIndex = String(this.selectedIndex) ? this.selectedIndex : "" this.curSelectedIndex = String(this.selectedIndex) ? this.selectedIndex : ""
if (this.curSelectedIndex) {
this.getRefuteMessage() this.getRefuteMessage()
}
}, },
mounted() { mounted() {
if (!this.selectedIndex) { if (!this.selectedIndex) {
...@@ -337,7 +344,9 @@ export default { ...@@ -337,7 +344,9 @@ export default {
: "" : ""
} }
// console.log(this.curSelectedIndex) // console.log(this.curSelectedIndex)
if (this.curSelectedIndex) {
this.getRefuteMessage() this.getRefuteMessage()
}
this.$nextTick(() => { this.$nextTick(() => {
window.addEventListener( window.addEventListener(
"storage", "storage",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment