refactor: 拆分公司/系统账户权限与模块,系统账户迁至 sys/account 并更新菜单

This commit is contained in:
2026-08-27 22:39:08 +08:00
parent 65c412d533
commit 5f184ef560
14 changed files with 273 additions and 251 deletions
@@ -57,9 +57,9 @@ const statusOptions = [
];
const accountActionCodes = [
'org:account:create',
'org:account:update',
'org:account:delete',
'org:company:account:create',
'org:company:account:update',
'org:company:account:delete',
];
const showActionColumn = useActionColumnVisible(accountActionCodes);
@@ -374,13 +374,13 @@ function handleModalSuccess() {
<!-- 工具栏工具 -->
<template #toolbar-tools>
<Space>
<PermissionGate code="org:account:create">
<PermissionGate code="org:company:account:create">
<Button type="primary" @click="handleAdd">
<PlusIcon />
添加账户
</Button>
</PermissionGate>
<PermissionGate code="org:account:delete">
<PermissionGate code="org:company:account:delete">
<Button v-if="hasSelected" danger @click="handleBatchDelete">
批量删除
</Button>
@@ -405,10 +405,10 @@ function handleModalSuccess() {
<!-- 操作列 -->
<template v-if="showActionColumn" #action="{ row }">
<Space>
<PermissionGate code="org:account:update">
<PermissionGate code="org:company:account:update">
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
</PermissionGate>
<PermissionGate code="org:account:delete">
<PermissionGate code="org:company:account:delete">
<Popconfirm
title="确定要删除这个账户吗?"
@confirm="handleDelete(row)"