Commit 1117891096445f4e39ee8786f2c034392dfddec1

Authored by fengtao
1 parent e2687aa9

fix:修改账号管理CRUD权限标识

@@ -8,10 +8,10 @@ @@ -8,10 +8,10 @@
8 /> 8 />
9 <BasicTable :clickToRowSelect="false" @register="registerTable" class="w-3/4 xl:w-4/5"> 9 <BasicTable :clickToRowSelect="false" @register="registerTable" class="w-3/4 xl:w-4/5">
10 <template #toolbar> 10 <template #toolbar>
11 - <Authority value="api:yt:admin:addAccount"> 11 + <Authority value="api:yt:user:post">
12 <a-button type="primary" @click="handleCreate">新增账号</a-button> 12 <a-button type="primary" @click="handleCreate">新增账号</a-button>
13 </Authority> 13 </Authority>
14 - <Authority value="api:yt:admin:deleteAccount"> 14 + <Authority value="api:yt:user:delete">
15 <a-button 15 <a-button
16 color="error" 16 color="error"
17 @click="handleDeleteOrBatchDelete(null)" 17 @click="handleDeleteOrBatchDelete(null)"
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 :actions="[ 45 :actions="[
46 { 46 {
47 label: '用户详情', 47 label: '用户详情',
48 - auth: 'api:yt:admin:viewAccount', 48 + auth: 'api:yt:user:get',
49 icon: 'clarity:info-standard-line', 49 icon: 'clarity:info-standard-line',
50 tooltip: '用户详情', 50 tooltip: '用户详情',
51 onClick: handleView.bind(null, record), 51 onClick: handleView.bind(null, record),
@@ -53,7 +53,7 @@ @@ -53,7 +53,7 @@
53 }, 53 },
54 { 54 {
55 label: '编辑', 55 label: '编辑',
56 - auth: 'api:yt:admin:editAccount', 56 + auth: 'api:yt:user:update',
57 icon: 'clarity:note-edit-line', 57 icon: 'clarity:note-edit-line',
58 tooltip: '编辑', 58 tooltip: '编辑',
59 onClick: handleEdit.bind(null, record), 59 onClick: handleEdit.bind(null, record),
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 }, 61 },
62 { 62 {
63 label: '删除', 63 label: '删除',
64 - auth: 'api:yt:admin:deleteAccount', 64 + auth: 'api:yt:user:delete',
65 icon: 'ant-design:delete-outlined', 65 icon: 'ant-design:delete-outlined',
66 color: 'error', 66 color: 'error',
67 tooltip: '删除', 67 tooltip: '删除',