diff --git a/apps/web-antd/src/views/system/role/data.tsx b/apps/web-antd/src/views/system/role/data.tsx
index a9d4181b..0b078530 100644
--- a/apps/web-antd/src/views/system/role/data.tsx
+++ b/apps/web-antd/src/views/system/role/data.tsx
@@ -1,8 +1,10 @@
-import type { FormSchemaGetter } from '#/adapter';
+import type { FormSchemaGetter, VxeGridProps } from '#/adapter';
import { DictEnum } from '@vben/constants';
import { getPopupContainer } from '@vben/utils';
+import { Tag } from 'ant-design-vue';
+
import { getDictOptions } from '#/utils/dict';
/**
@@ -42,6 +44,58 @@ export const querySchema: FormSchemaGetter = () => [
},
];
+export const columns: VxeGridProps['columns'] = [
+ { type: 'checkbox', width: 60 },
+ {
+ title: '角色名称',
+ field: 'roleName',
+ },
+ {
+ title: '权限字符',
+ field: 'roleKey',
+ slots: {
+ default: ({ row }) => {
+ return {row.roleKey};
+ },
+ },
+ },
+ {
+ title: '数据权限',
+ field: 'dataScope',
+ slots: {
+ default: ({ row }) => {
+ const found = authScopeOptions.find(
+ (item) => item.value === row.dataScope,
+ );
+ if (found) {
+ return {found.label};
+ }
+ return {row.dataScope};
+ },
+ },
+ },
+ {
+ title: '排序',
+ field: 'roleSort',
+ },
+ {
+ title: '状态',
+ field: 'status',
+ slots: { default: 'status' },
+ },
+ {
+ title: '创建时间',
+ field: 'createTime',
+ },
+ {
+ field: 'action',
+ fixed: 'right',
+ slots: { default: 'action' },
+ title: '操作',
+ width: 180,
+ },
+];
+
export const drawerSchema: FormSchemaGetter = () => [
{
component: 'Input',
diff --git a/apps/web-antd/src/views/system/role/index.vue b/apps/web-antd/src/views/system/role/index.vue
index 9a24c818..4ac1878f 100644
--- a/apps/web-antd/src/views/system/role/index.vue
+++ b/apps/web-antd/src/views/system/role/index.vue
@@ -1,41 +1,95 @@
-
-
-
-
- {{ $t('pages.common.add') }}
-
-
-
-
-
-
-
-
- 编辑
-
-
- 数据权限
-
-
- 分配角色
-
-
-
-
-
-
+
+
+
+ 参数列表
+
+
+
+
+ {{ $t('pages.common.export') }}
+
+
+ {{ $t('pages.common.delete') }}
+
+
+ {{ $t('pages.common.add') }}
+
+
+
+
+
+
+
+
+
+ {{ $t('pages.common.edit') }}
+
+
+
+ {{ $t('pages.common.delete') }}
+
+
+
+
+
+
+ 更多
+
+
+
+
+
+