From 0e71a32c58e12194681605712aa3867ecd578f58 Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Thu, 8 Aug 2024 16:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=B7=BB=E5=8A=A0dicom?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/personnel-manage/components/dicomForm.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-panel/setting/personnel-manage/components/dicomForm.vue b/src/views/trials/trials-panel/setting/personnel-manage/components/dicomForm.vue index 0dcd4420..f4237c4e 100644 --- a/src/views/trials/trials-panel/setting/personnel-manage/components/dicomForm.vue +++ b/src/views/trials/trials-panel/setting/personnel-manage/components/dicomForm.vue @@ -161,7 +161,10 @@ export default { open(siteData, data = null, status = "add") { this.siteData = siteData; this.status = status; - if (data) { + Object.keys(this.form).forEach((key) => { + this.form[key] = null; + }); + if (data && status === "edit") { Object.keys(this.form).forEach((key) => { this.form[key] = data[key]; });