xiongzhu 4 năm trước cách đây
mục cha
commit
3326e347c3
3 tập tin đã thay đổi với 24 bổ sung4 xóa
  1. 4 4
      config/person.json
  2. 12 0
      config/portal.json
  3. 8 0
      o2web/source/x_component_Org/UnitExplorer.js

+ 4 - 4
config/person.json

@@ -12,13 +12,13 @@
     "superPermission": true,
     "mobileRegex": "(^(\\+)?0{0,2}852\\d{8}$)|(^(\\+)?0{0,2}853\\d{8}$)|(^(\\+)?0{0,2}886\\d{9}$)|(^1(3|4|5|6|7|8|9)\\d{9}$)",
     "loginPage": {
-        "enable": true,
-        "portal": "f4fbfb29-98ae-45c5-a9ac-a4d141049d78",
-        "page": ""
+      "enable": true,
+      "portal": "b82d7669-85d6-4c10-8151-c4d1f18ba6ef",
+      "page": ""
     },
     "failureInterval": 10,
     "failureCount": 5,
     "tokenExpiredMinutes": 21600,
     "tokenCookieHttpOnly": false,
     "personUnitOrderByAsc": true
-}
+  }

+ 12 - 0
config/portal.json

@@ -0,0 +1,12 @@
+{
+    "indexPage": {
+        "enable": false,
+        "portal": "",
+        "page": ""
+    },
+    "loginPage": {
+        "enable": false,
+        "portal": "",
+        "page": ""
+    }
+}

+ 8 - 0
o2web/source/x_component_Org/UnitExplorer.js

@@ -1279,6 +1279,14 @@ MWF.xApplication.Org.UnitExplorer.UnitContent.BaseInfor = new Class({
             this.explorer.app.notice(this.explorer.app.lp.inputUnitInfor, "error", this.explorer.propertyContentNode);
             return false;
         }
+        if(!this.descriptionInputNode.get("value")){
+            this.explorer.app.notice('请输入组织描述', "error", this.explorer.propertyContentNode);
+            return false;
+        }
+        if(((this.typeListInputNode.get("value")) ? this.typeListInputNode.get("value").split(/,\s*/g) : []).length===0){
+            this.explorer.app.notice('请输入组织类别', "error", this.explorer.propertyContentNode);
+            return false;
+        }
         //this.data.genderType = gender;
         //if (!this.uniqueInputNode.get("value")) this.data.unique = this.employeeInputNode.get("value");
         this.content.propertyContentScrollNode.mask({