reactor:【system 系统管理】social 进一步统一代码风格

This commit is contained in:
YunaiV
2025-09-06 20:32:46 +08:00
parent 8d5a6d8aa0
commit 35bd5adf45
9 changed files with 168 additions and 142 deletions

View File

@@ -55,6 +55,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'type',
title: '社交平台',
minWidth: 100,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_SOCIAL_TYPE },
@@ -63,14 +64,17 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'openid',
title: '社交 openid',
minWidth: 180,
},
{
field: 'nickname',
title: '用户昵称',
minWidth: 120,
},
{
field: 'avatar',
title: '用户头像',
minWidth: 100,
cellRender: {
name: 'CellImage',
},
@@ -78,16 +82,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'createTime',
title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime',
},
{
field: 'updateTime',
title: '更新时间',
minWidth: 180,
formatter: 'formatDateTime',
},
{
title: '操作',
width: 80,
width: 120,
fixed: 'right',
slots: { default: 'actions' },
},

View File

@@ -3,10 +3,10 @@ import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { SystemSocialUserApi } from '#/api/system/social/user';
import { DocAlert, Page, useVbenModal } from '@vben/common-ui';
import { $t } from '@vben/locales';
import { ACTION_ICON, TableAction, useVbenVxeGrid } from '#/adapter/vxe-table';
import { getSocialUserPage } from '#/api/system/social/user';
import { $t } from '#/locales';
import { useGridColumns, useGridFormSchema } from './data';
import Detail from './modules/detail.vue';
@@ -42,6 +42,7 @@ const [Grid] = useVbenVxeGrid({
},
rowConfig: {
keyField: 'id',
isHover: true,
},
toolbarConfig: {
refresh: true,