refactor(shopAdmin): 重构管理员页面
- 新增 SuperAdmin 和 Admin 组件 - 优化管理员列表展示逻辑 - 添加超级管理员单独展示区域 -调整新建按钮文字为"添加" - 移除不必要的注释代码
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
<template>
|
||||
<a-page-header :title="getPageTitle()" @back="() => $router.go(-1)">
|
||||
<!-- <a-card title="超级管理员" style="margin-bottom: 20px">-->
|
||||
<!-- <Admin />-->
|
||||
<!-- </a-card>-->
|
||||
<!-- <a-card title="项目成员" style="margin-bottom: 20px">-->
|
||||
<!-- <template #extra>-->
|
||||
<!-- <a-button class="ele-btn-icon" @click="openEdit()">-->
|
||||
<!-- <span>添加</span>-->
|
||||
<!-- </a-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- <Admin />-->
|
||||
<!-- </a-card>-->
|
||||
<SuperAdmin/>
|
||||
<a-card :bordered="false">
|
||||
<!-- 表格 -->
|
||||
<ele-pro-table
|
||||
@@ -30,7 +20,7 @@
|
||||
<template #icon>
|
||||
<plus-outlined/>
|
||||
</template>
|
||||
<span>新建</span>
|
||||
<span>添加</span>
|
||||
</a-button>
|
||||
<a-input-search
|
||||
allow-clear
|
||||
@@ -154,6 +144,8 @@ import {Organization} from '@/api/system/organization/model';
|
||||
import {hasRole} from '@/utils/permission';
|
||||
import {getPageTitle, push} from "@/utils/common";
|
||||
import router from "@/router";
|
||||
import SuperAdmin from './components/super-admin.vue';
|
||||
import Admin from './components/admin.vue';
|
||||
|
||||
// 加载状态
|
||||
const loading = ref(true);
|
||||
@@ -413,7 +405,7 @@ const customRow = (record: User) => {
|
||||
|
||||
const query = async () => {
|
||||
const info = await listRoles({})
|
||||
if(info){
|
||||
if (info) {
|
||||
roles.value = info
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user