From 0c9e3458bf2e0eef1882039df5abab0612e36a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Wed, 19 Mar 2025 17:27:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E5=8D=B3=E5=A4=96=E5=91=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/manage/patientInfoImport/index.vue | 24 +++++++++----------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/views/manage/patientInfoImport/index.vue b/src/views/manage/patientInfoImport/index.vue index ab2bafb..07d6767 100644 --- a/src/views/manage/patientInfoImport/index.vue +++ b/src/views/manage/patientInfoImport/index.vue @@ -201,8 +201,8 @@ export default { optionslisttime: [], // 表单校验 rules: { - patientName: [ - { required: true, message: '请输入患者姓名', trigger: 'change' } + routeName: [ + { required: true, message: '请输入任务名称', trigger: 'change' } ], } }; @@ -262,10 +262,14 @@ export default { }); }, Calloutimmediately() { - directOutbound(this.form).then(res => { - this.$modal.msgSuccess("操作成功"); - this.open = false; - this.getList(); + this.$refs["form"].validate(valid => { + if (valid) { + directOutbound(this.form).then(res => { + this.$modal.msgSuccess("操作成功"); + this.open = false; + this.getList(); + }) + } }) }, /** 删除按钮操作 */ @@ -299,13 +303,7 @@ export default { }, // 表单重置 reset() { - this.form = { - campusAgencyId: null, - createBy: null, - createTime: null, - updateBy: null, - updateTime: null - }; + this.form = {}; this.resetForm("form"); }, /** 搜索按钮操作 */