Commit 45bb256e authored by liang's avatar liang

随访查询显示bug修复

parent 671977cd
...@@ -53,6 +53,7 @@ ...@@ -53,6 +53,7 @@
<MyCustomForm <MyCustomForm
v-show="activeTab === '0'" v-show="activeTab === '0'"
v-for="form in formTabs" v-for="form in formTabs"
formType="1"
:key="form.id" :key="form.id"
:form="form" :form="form"
:patientId="currentRow.patientId" :patientId="currentRow.patientId"
...@@ -60,6 +61,7 @@ ...@@ -60,6 +61,7 @@
<MyCustomForm <MyCustomForm
v-show="activeTab !== '0'" v-show="activeTab !== '0'"
v-for="form in followForms" v-for="form in followForms"
formType="2"
:key="form.id" :key="form.id"
:form="form" :form="form"
ref="myForm" ref="myForm"
......
...@@ -20,9 +20,11 @@ export default { ...@@ -20,9 +20,11 @@ export default {
name: "MyCustomForm", name: "MyCustomForm",
components: { CustomForm }, components: { CustomForm },
props: { props: {
formType: String,
form: {}, form: {},
patientId: {}, patientId: {},
followId: {}, followId: {},
followId: {},
}, },
data() { data() {
return { return {
...@@ -103,7 +105,7 @@ export default { ...@@ -103,7 +105,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.form && this.$refs.form.resetForm() this.$refs.form && this.$refs.form.resetForm()
}) })
if (!this.patientId || this.followId) return if (!this.patientId || this.formType === "2") return
this.loading = true this.loading = true
getPatientDetail({ getPatientDetail({
patientId: this.patientId, patientId: this.patientId,
......
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