Skip to content

Commit dc2fbbd

Browse files
committed
feat: system identity roles permission
1 parent 6368902 commit dc2fbbd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/src/views/system/identity/roles/components/RolePermissionConfiguration.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { computed, ref, watch } from 'vue'
33
import RoleApi from '@/api/admin/system/role'
44
import type { RoleItem, RolePermission, RolePermissionModule, RolePermissionModuleGroup } from '@/api/types'
55
import { MsgSuccess } from '@/utils/message'
6+
import perm from '@/permission';
67
78
interface PermissionTableRow {
89
id: string
@@ -185,7 +186,7 @@ watch(() => props.currentRole.id, loadPermissions, { immediate: true })
185186
</MkTable>
186187

187188
<footer v-if="!disabled" class="sticky -mb-6 -ml-6 -mr-6 bottom-0 z-10 mt-auto flex shrink-0 justify-end border-t bg-white px-6 py-4">
188-
<el-button type="primary" :loading="loading" @click="handleSave">保存</el-button>
189+
<el-button v-if="perm.system.role.edit()" type="primary" :loading="loading" @click="handleSave">保存</el-button>
189190
</footer>
190191
</div>
191192
</template>

0 commit comments

Comments
 (0)