jiangping
2024-02-18 05cf6324ea8322164d99a3d3d4161fe374534b3b
platform/src/components/system/role/PermissionConfigWindow.vue
@@ -26,7 +26,7 @@
<script>
import GlobalWindow from '@/components/common/GlobalWindow'
import { createRolePermission } from '@/api/system/role'
import { fetchAll, fetchAllCom } from '@/api/system/permission'
import { fetchAll } from '@/api/system/permission'
export default {
  name: 'PermissionConfigWindow',
  components: { GlobalWindow },
@@ -46,14 +46,12 @@
    /**
     * @role 角色对象
     */
    open (role, type=0) {
      debugger
    open (role) {
      if (this.$refs.permissionTransfer) {
        this.$refs.permissionTransfer.clearQuery('left')
        this.$refs.permissionTransfer.clearQuery('right')
      }
      let action = type==0 ? fetchAll : fetchAllCom
      action()
      fetchAll()
        .then(records => {
          this.role = role
          this.permissions = records