From f73f5ef917c95ad8d550cf49f5cb2eeba4d63aa9 Mon Sep 17 00:00:00 2001 From: lichuanyang <1176537920@qq.com> Date: Sat, 31 Aug 2024 03:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=8A=E6=96=AD=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../diagnosisTemplate/DiagnosisTemplateForm.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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)