diff --git a/src/components/doctorCheck/ButtonList.vue b/src/components/doctorCheck/ButtonList.vue index f076b56..9ee0251 100644 --- a/src/components/doctorCheck/ButtonList.vue +++ b/src/components/doctorCheck/ButtonList.vue @@ -1,10 +1,10 @@ \ No newline at end of file diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue index b960f3c..78f237b 100644 --- a/src/components/doctorCheck/CheckItemList.vue +++ b/src/components/doctorCheck/CheckItemList.vue @@ -74,15 +74,15 @@ export default { checkItemList(RegisterCheckId) { console.log(`/api/app/registercheckitem/getlistinregistercheckid?RegisterCheckId=${RegisterCheckId}`) getapi(`/api/app/registercheckitem/getlistinregistercheckid?RegisterCheckId=${RegisterCheckId}`) - .then((res) => { - console.log("checkItemList", res.data); - if (res.code == 1) { - this.doctorCheck.checkItemList = res.data; - } - }) - .catch((err) => { - this.$message({ type: "error", message: `操作失败,原因:${err}` }); - }); + .then((res) => { + console.log("checkItemList", res.data); + if (res.code == 1) { + this.doctorCheck.checkItemList = res.data; + } + }) + .catch((err) => { + this.$message({ type: "error", message: `操作失败,原因:${err}` }); + }); }, diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue index 940a756..1acfe13 100644 --- a/src/components/doctorCheck/CheckSumSug.vue +++ b/src/components/doctorCheck/CheckSumSug.vue @@ -1,88 +1,108 @@ - - + //监听事件 + watch: { + //检查项目切换 + "doctorCheck.RegisterCheckId"(newVal, oldVal) { + console.log("watch doctorCheck.RegisterCheckId newVal:", newVal, " oldVal:", oldVal); + if (newVal != oldVal && newVal != '') { + this.checkSummaryList(newVal) + this.checkSuggestionList(newVal) + } + }, + }, +}; + + \ No newline at end of file diff --git a/src/components/doctorCheck/RegisterCheckList.vue b/src/components/doctorCheck/RegisterCheckList.vue index d73826d..e04f32d 100644 --- a/src/components/doctorCheck/RegisterCheckList.vue +++ b/src/components/doctorCheck/RegisterCheckList.vue @@ -1,6 +1,7 @@