Kaynağa Gözat

学校权限设置

xiatian 5 yıl önce
ebeveyn
işleme
1ab9d83133

+ 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;
         }