diff --git a/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue b/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue index aead0ad8..abe3e1f9 100644 --- a/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue +++ b/src/views/applyregistration/diagnosisTemplate/DiagnosisTemplateForm.vue @@ -231,6 +231,9 @@ const open = async (type: string, id?: number) => { dialogTitle.value = t('action.' + type) formType.value = type resetForm() + orgList.value = await DiagnosisTemplateApi.getOrgList() + doctorList.value = await DiagnosisTemplateApi.getDoctorList() + templateList.value = await DiagnosisTemplateApi.getAllList() if (id) { formLoading.value = true try { @@ -316,11 +319,7 @@ const submitForm = async () => { } /** 钩子方法 **/ -onMounted(async () => { - orgList.value = await DiagnosisTemplateApi.getOrgList() - doctorList.value = await DiagnosisTemplateApi.getDoctorList() - templateList.value = await DiagnosisTemplateApi.getAllList() -}) +onMounted(async () => {}) /** 防空作用域 **/ console.log(dateFormatter)