Browse Source

fix role roleDeptid rules

smallwei 6 years ago
parent
commit
1191c3422f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/const/crud/role.js

+ 6 - 1
src/const/crud/role.js

@@ -70,6 +70,11 @@ export const tableOption = {
         formsolt: true,
         solt: true,
         span: 24,
+        rules: [{
+            required: true,
+            message: '所属部门不能为空',
+            trigger: 'blur'
+        }]
     }, {
         width: 180,
         label: '角色描述',
@@ -90,4 +95,4 @@ export const tableOption = {
         addVisdiplay: false,
         span: 24,
     }]
-}
+}