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"); }, /** 搜索按钮操作 */