Explorar el Código

个人信息修改页面取消主部门必填校验

luoaoxuan hace 1 año
padre
commit
c6db85235d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/platform/org/employee/edit/index.vue

+ 2 - 1
src/views/platform/org/employee/edit/index.vue

@@ -336,7 +336,8 @@ export default {
                 ActionUtils.warning('请选择部门')
                 return
             }
-            if (vo.positionVoList.filter(i => i.isMainPost === true).length === 0) {
+            // 个人信息修改页面取消主部门必填校验
+            if (this.formType !== 'part' && vo.positionVoList.filter(i => i.isMainPost === true).length === 0) {
                 ActionUtils.warning('请设置主部门')
                 return
             }