Selaa lähdekoodia

学校权限设置

xiatian 5 vuotta sitten
vanhempi
commit
1ab9d83133
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      src/modules/basic/view/school_privilege_settings.vue

+ 5 - 1
src/modules/basic/view/school_privilege_settings.vue

@@ -117,7 +117,11 @@ export default {
         if (0 < this.roleList.length) {
           this.form.roleId = this.roleList[0].roleId;
         }
-        this.privilegeGroupList = resp3.data;
+        this.privilegeGroupList = resp3.data.filter(function(item) {
+          if (item.ext1 == "function") {
+            return item;
+          }
+        });
         if (0 < this.privilegeGroupList.length) {
           this.form.privilegeGroupId = this.privilegeGroupList[0].id;
         }