feat: 权限系统单体应用改造完成

Former-commit-id: 8d5eaa698b11d420faa46b2c2854da4ccb0b9a1d
This commit is contained in:
horizons
2022-10-23 23:35:43 +08:00
parent cf24d080e5
commit 8746cd3b36
12 changed files with 90 additions and 90 deletions

View File

@@ -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" />

View File

@@ -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"
>

View File

@@ -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;
});
}