diff --git a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue index ed74799..cb72769 100644 --- a/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_information/emergency_management_agency/emergency_personnel/components/list.vue @@ -51,7 +51,10 @@ - + + + + @@ -105,7 +108,7 @@ - + @@ -199,6 +202,7 @@ export default { limit: 10 }, rules: { + ORG_ID: [{ required: true, message: '请选择机构', trigger: 'blur' }], USER_NAME: [{ required: true, message: '请输入姓名', trigger: 'blur' }], GENDER: [{ required: true, message: '请输入性别', trigger: 'blur' }], ADMINISTRATIVE_POSITION: [{ required: true, message: '请输入行政职务', trigger: 'blur' }], @@ -321,7 +325,14 @@ export default { this.dialogType = 'saveUser' }, confirm() { - this.dataSave() + this.$refs.form.validate((valid) => { + if (valid) { + this.dataSave() + } else { + console.log('error submit!!') + return false + } + }) }, dataSave() { this.listLoading = true diff --git a/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue b/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue index a17c4a3..d4aa3be 100644 --- a/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_information/security_agency/assurance_management/components/list.vue @@ -5,9 +5,6 @@ - - - 搜索 重置 diff --git a/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue b/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue index 72ff5a7..fcf4119 100644 --- a/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue +++ b/src/views/emergen_cyrescue/emergency_information/security_agency/institutional_management/components/list.vue @@ -1,10 +1,16 @@