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

@@ -104,6 +104,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入应用名',
allowClear: true,
},
},
{
@@ -132,6 +133,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入客户端编号',
allowClear: true,
},
},
{
@@ -150,17 +152,21 @@ export function useGridFormSchema(): VbenFormSchema[] {
/** 列表的字段 */
export function useGridColumns(): VxeTableGridOptions['columns'] {
return [
{ type: 'checkbox', width: 40 },
{
field: 'id',
title: '编号',
minWidth: 100,
},
{
field: 'name',
title: '应用名',
minWidth: 120,
},
{
field: 'socialType',
title: '社交平台',
minWidth: 100,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_SOCIAL_TYPE },
@@ -169,6 +175,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'userType',
title: '用户类型',
minWidth: 100,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.USER_TYPE },
@@ -177,10 +184,12 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'clientId',
title: '客户端编号',
minWidth: 180,
},
{
field: 'status',
title: '状态',
minWidth: 100,
cellRender: {
name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS },
@@ -189,11 +198,12 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'createTime',
title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime',
},
{
title: '操作',
width: 130,
width: 220,
fixed: 'right',
slots: { default: 'actions' },
},