Explorar o código

角色权限回退

gangyj %!s(int64=2) %!d(string=hai) anos
pai
achega
f72b1ef44a
Modificáronse 1 ficheiros con 2 adicións e 8 borrados
  1. 2 8
      src/views/authority/role.vue

+ 2 - 8
src/views/authority/role.vue

@@ -291,18 +291,12 @@
       },
 
       submit() {
-        let menuList = this.$refs.treeMenu.getCheckedKeys();
-        let menuClientList = this.$refs.treeClientMenu.getCheckedKeys();
-        const menuListHanlf = this.$refs.treeMenu.getHalfCheckedKeys();
-        const menuClientListHanlf = this.$refs.treeMenu.getHalfCheckedKeys();
+        const menuList = this.$refs.treeMenu.getCheckedKeys();
+        const menuClientList = this.$refs.treeClientMenu.getCheckedKeys();
         const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
         const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
         const tableOwnersList = this.$refs.tableOwners.getCheckedKeys();
 
-        //合并半选
-        menuList = menuList.concat(menuListHanlf)
-        menuClientList = menuClientList.concat(menuClientListHanlf)
-
         grant(this.idsArray, menuList, menuClientList, dataScopeList, apiScopeList, tableOwnersList).then(() => {
           this.box = false;
           this.$message({