Explorar el Código

添加用户时候必须选择部门

linweizeng hace 2 años
padre
commit
57e2098468
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/views/platform/org/employee/edit/index.vue

+ 4 - 0
src/views/platform/org/employee/edit/index.vue

@@ -261,6 +261,10 @@ export default {
             if (!this.$utils.isEmpty(this.formId) && !this.ceroParams) {
             if (!this.$utils.isEmpty(this.formId) && !this.ceroParams) {
                 delete vo.partyEmployeePo.password
                 delete vo.partyEmployeePo.password
             }
             }
+            if (vo.positionVoList.length === 0) {
+                ActionUtils.warning('请选择部门')
+                return
+            }
             this.dialogLoading = true
             this.dialogLoading = true
             if (!attrValidator) {
             if (!attrValidator) {
                 ActionUtils.warning('请检查扩展属性是否填写正确')
                 ActionUtils.warning('请检查扩展属性是否填写正确')