|
|
|
@ -66,7 +66,7 @@ import Sortable from "sortablejs"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
props:["isCheckPicture","optGrant","addSummary","btnMakeDiagnosis","save","audit","unAudit","btnLineUp"], |
|
|
|
props:["registerCheckId","isCheckPicture","optGrant","addSummary","btnMakeDiagnosis","save","audit","unAudit","btnLineUp"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
|
|
|
|
@ -82,7 +82,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
...mapState(['window','dict', 'doctorCheck']), |
|
|
|
...mapState(['window','dataTransOpts','dict', 'doctorCheck']), |
|
|
|
|
|
|
|
//小结宽度 |
|
|
|
sumWidth(){ |
|
|
|
@ -215,11 +215,21 @@ export default { |
|
|
|
//监听事件 |
|
|
|
watch: { |
|
|
|
//检查项目切换 |
|
|
|
"doctorCheck.RegisterCheckId"(newVal, oldVal) { |
|
|
|
console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); |
|
|
|
this.checkSummaryList(newVal) |
|
|
|
this.checkSuggestionList(newVal) |
|
|
|
// "doctorCheck.RegisterCheckId"(newVal, oldVal) { |
|
|
|
// console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); |
|
|
|
// this.checkSummaryList(newVal) |
|
|
|
// this.checkSuggestionList(newVal) |
|
|
|
// }, |
|
|
|
//检查项目未切换换时 也可以强制刷新数据 |
|
|
|
"dataTransOpts.refresh.register_check_item":{ |
|
|
|
immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 小结 newVal:${newVal} oldVal:${oldVal} registerCheckId: ${this.registerCheckId}`); |
|
|
|
this.checkSummaryList(this.registerCheckId) |
|
|
|
this.checkSuggestionList(this.registerCheckId) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|