feat: 权限系统单体应用改造完成
Former-commit-id: 8d5eaa698b11d420faa46b2c2854da4ccb0b9a1d
This commit is contained in:
@@ -26,7 +26,7 @@ const handleDictTypeClick = (row: any) => {
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="8" :xs="24">
|
||||
<el-col :span="10" :xs="24">
|
||||
<el-card class="box-card">
|
||||
<template #header>
|
||||
<svg-icon icon-class="dict" />
|
||||
@@ -36,7 +36,7 @@ const handleDictTypeClick = (row: any) => {
|
||||
</el-card>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="16" :xs="24">
|
||||
<el-col :span="14" :xs="24">
|
||||
<el-card class="box-card">
|
||||
<template #header>
|
||||
<svg-icon icon-class="dict_item" />
|
||||
@@ -44,7 +44,7 @@ const handleDictTypeClick = (row: any) => {
|
||||
<el-tag type="success" v-if="typeCode" size="small">{{
|
||||
typeName
|
||||
}}</el-tag>
|
||||
<el-tag type="warning" v-else size="small">未选择字典</el-tag>
|
||||
<el-tag type="danger" v-else size="small">未选择字典类型</el-tag>
|
||||
</template>
|
||||
<!-- 字典项组件 -->
|
||||
<dict-item :typeName="typeName" :typeCode="typeCode" />
|
||||
|
||||
@@ -191,7 +191,7 @@ const handleResourceCheckChange = (
|
||||
};
|
||||
|
||||
/**
|
||||
* 分配资源(菜单+权限)弹窗
|
||||
* 资源分配
|
||||
*/
|
||||
function openRoleResourceDialog(row: RoleItem) {
|
||||
resourceDialogVisible.value = true;
|
||||
@@ -434,7 +434,7 @@ onMounted(() => {
|
||||
|
||||
<!--分配资源弹窗-->
|
||||
<el-dialog
|
||||
:title="'角色【' + checkedRole.name + '】资源分配'"
|
||||
:title="'【' + checkedRole.name + '】资源分配'"
|
||||
v-model="resourceDialogVisible"
|
||||
width="800px"
|
||||
>
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
// 导入API
|
||||
import {
|
||||
listUserPages,
|
||||
getUserDetail,
|
||||
getUserFormData,
|
||||
deleteUsers,
|
||||
addUser,
|
||||
updateUser,
|
||||
@@ -292,7 +292,7 @@ async function handleUpdate(row: { [key: string]: any }) {
|
||||
const userId = row.id || state.ids;
|
||||
await loadDeptOptions();
|
||||
await loadRoleOptions();
|
||||
getUserDetail(userId).then(({ data }) => {
|
||||
getUserFormData(userId).then(({ data }) => {
|
||||
formData.value = data;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user