|
@@ -15,24 +15,28 @@ |
|
@@ -15,24 +15,28 @@ |
|
15
|
</template>
|
15
|
</template>
|
|
16
|
<template #action="{ record }">
|
16
|
<template #action="{ record }">
|
|
17
|
<TableAction
|
17
|
<TableAction
|
|
18
|
- :actions="[
|
18
|
+ :actions="
|
|
|
|
19
|
+[
|
|
19
|
{
|
20
|
{
|
|
20
|
label:'用户详情',
|
21
|
label:'用户详情',
|
|
21
|
icon: 'clarity:info-standard-line',
|
22
|
icon: 'clarity:info-standard-line',
|
|
22
|
tooltip: '用户详情',
|
23
|
tooltip: '用户详情',
|
|
23
|
onClick: handleView.bind(null, record),
|
24
|
onClick: handleView.bind(null, record),
|
|
|
|
25
|
+ ifShow: record.tenantCode != TenantCodeEnum.SYS_ADMIN_CODE,
|
|
24
|
},
|
26
|
},
|
|
25
|
{
|
27
|
{
|
|
26
|
label:'编辑',
|
28
|
label:'编辑',
|
|
27
|
icon: 'clarity:note-edit-line',
|
29
|
icon: 'clarity:note-edit-line',
|
|
28
|
tooltip: '编辑',
|
30
|
tooltip: '编辑',
|
|
29
|
onClick: handleEdit.bind(null, record),
|
31
|
onClick: handleEdit.bind(null, record),
|
|
|
|
32
|
+ ifShow: record.tenantCode != TenantCodeEnum.SYS_ADMIN_CODE,
|
|
30
|
},
|
33
|
},
|
|
31
|
{
|
34
|
{
|
|
32
|
label:'删除',
|
35
|
label:'删除',
|
|
33
|
icon: 'ant-design:delete-outlined',
|
36
|
icon: 'ant-design:delete-outlined',
|
|
34
|
color: 'error',
|
37
|
color: 'error',
|
|
35
|
tooltip: '删除',
|
38
|
tooltip: '删除',
|
|
|
|
39
|
+ ifShow: record.tenantCode != TenantCodeEnum.SYS_ADMIN_CODE,
|
|
36
|
popConfirm: {
|
40
|
popConfirm: {
|
|
37
|
title: '是否确认删除',
|
41
|
title: '是否确认删除',
|
|
38
|
confirm: handleDelete.bind(null, record),
|
42
|
confirm: handleDelete.bind(null, record),
|
|
@@ -48,6 +52,7 @@ |
|
@@ -48,6 +52,7 @@ |
|
48
|
<script lang="ts">
|
52
|
<script lang="ts">
|
|
49
|
import { defineComponent, reactive } from 'vue';
|
53
|
import { defineComponent, reactive } from 'vue';
|
|
50
|
|
54
|
|
|
|
|
55
|
+ import {TenantCodeEnum} from '/@/enums/codeEnum';
|
|
51
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
56
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
52
|
import {deleteUser, getAccountList} from '/@/api/system/system';
|
57
|
import {deleteUser, getAccountList} from '/@/api/system/system';
|
|
53
|
import { PageWrapper } from '/@/components/Page';
|
58
|
import { PageWrapper } from '/@/components/Page';
|
|
@@ -143,6 +148,7 @@ |
|
@@ -143,6 +148,7 @@ |
|
143
|
handleSelect,
|
148
|
handleSelect,
|
|
144
|
handleView,
|
149
|
handleView,
|
|
145
|
searchInfo,
|
150
|
searchInfo,
|
|
|
|
151
|
+ TenantCodeEnum
|
|
146
|
};
|
152
|
};
|
|
147
|
},
|
153
|
},
|
|
148
|
});
|
154
|
});
|