perf: 优化显示效果 及 formatter row cellvalue的区分

pull/121/head^2
xingyu4j 2025-05-29 14:52:03 +08:00
parent 8be5c19154
commit b4a77266a1
40 changed files with 12 additions and 302 deletions

View File

@ -123,8 +123,8 @@ export function useGridColumns<T = BpmCategoryApi.CategoryVO>(
field: 'userIds', field: 'userIds',
title: '成员', title: '成员',
minWidth: 200, minWidth: 200,
formatter: (row) => { formatter: ({ cellValue }) => {
return getMemberNames(row.cellValue); return getMemberNames(cellValue);
}, },
}, },
{ {

View File

@ -133,8 +133,8 @@ export function useGridColumns<T = BpmTaskApi.TaskVO>(
field: 'durationInMillis', field: 'durationInMillis',
title: '耗时', title: '耗时',
minWidth: 180, minWidth: 180,
formatter: ({ row }) => { formatter: ({ cellValue }) => {
return `${formatPast2(row.durationInMillis)}`; return `${formatPast2(cellValue)}`;
}, },
}, },
{ {

View File

@ -89,8 +89,8 @@ export function useGridColumns<T = BpmTaskApi.TaskVO>(
field: 'durationInMillis', field: 'durationInMillis',
title: '耗时', title: '耗时',
minWidth: 180, minWidth: 180,
formatter: ({ row }) => { formatter: ({ cellValue }) => {
return `${formatPast2(row.durationInMillis)}`; return `${formatPast2(cellValue)}`;
}, },
}, },
{ {

View File

@ -70,17 +70,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '日志编号', title: '日志编号',
minWidth: 100,
}, },
{ {
field: 'userId', field: 'userId',
title: '用户编号', title: '用户编号',
minWidth: 100,
}, },
{ {
field: 'userType', field: 'userType',
title: '用户类型', title: '用户类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.USER_TYPE }, props: { type: DICT_TYPE.USER_TYPE },
@ -89,34 +86,28 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'applicationName', field: 'applicationName',
title: '应用名', title: '应用名',
minWidth: 150,
}, },
{ {
field: 'requestMethod', field: 'requestMethod',
title: '请求方法', title: '请求方法',
minWidth: 80,
}, },
{ {
field: 'requestUrl', field: 'requestUrl',
title: '请求地址', title: '请求地址',
minWidth: 300,
}, },
{ {
field: 'beginTime', field: 'beginTime',
title: '请求时间', title: '请求时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'duration', field: 'duration',
title: '执行时长', title: '执行时长',
minWidth: 120, formatter: ({ cellValue }) => `${cellValue} ms`,
formatter: ({ row }) => `${row.duration} ms`,
}, },
{ {
field: 'resultCode', field: 'resultCode',
title: '操作结果', title: '操作结果',
minWidth: 150,
formatter: ({ row }) => { formatter: ({ row }) => {
return row.resultCode === 0 ? '成功' : `失败(${row.resultMsg})`; return row.resultCode === 0 ? '成功' : `失败(${row.resultMsg})`;
}, },
@ -124,17 +115,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'operateModule', field: 'operateModule',
title: '操作模块', title: '操作模块',
minWidth: 150,
}, },
{ {
field: 'operateName', field: 'operateName',
title: '操作名', title: '操作名',
minWidth: 220,
}, },
{ {
field: 'operateType', field: 'operateType',
title: '操作类型', title: '操作类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_OPERATE_TYPE }, props: { type: DICT_TYPE.INFRA_OPERATE_TYPE },

View File

@ -71,17 +71,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '日志编号', title: '日志编号',
minWidth: 100,
}, },
{ {
field: 'userId', field: 'userId',
title: '用户编号', title: '用户编号',
minWidth: 100,
}, },
{ {
field: 'userType', field: 'userType',
title: '用户类型', title: '用户类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.USER_TYPE }, props: { type: DICT_TYPE.USER_TYPE },
@ -90,33 +87,27 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'applicationName', field: 'applicationName',
title: '应用名', title: '应用名',
minWidth: 150,
}, },
{ {
field: 'requestMethod', field: 'requestMethod',
title: '请求方法', title: '请求方法',
minWidth: 80,
}, },
{ {
field: 'requestUrl', field: 'requestUrl',
title: '请求地址', title: '请求地址',
minWidth: 200,
}, },
{ {
field: 'exceptionTime', field: 'exceptionTime',
title: '异常发生时间', title: '异常发生时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'exceptionName', field: 'exceptionName',
title: '异常名', title: '异常名',
minWidth: 180,
}, },
{ {
field: 'processStatus', field: 'processStatus',
title: '处理状态', title: '处理状态',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS }, props: { type: DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS },

View File

@ -397,34 +397,28 @@ export function useGridColumns(
{ {
field: 'dataSourceConfigId', field: 'dataSourceConfigId',
title: '数据源', title: '数据源',
minWidth: 120, formatter: ({ cellValue }) => getDataSourceConfigName?.(cellValue) || '-',
formatter: (row) => getDataSourceConfigName?.(row.cellValue) || '-',
}, },
{ {
field: 'tableName', field: 'tableName',
title: '表名称', title: '表名称',
minWidth: 200,
}, },
{ {
field: 'tableComment', field: 'tableComment',
title: '表描述', title: '表描述',
minWidth: 200,
}, },
{ {
field: 'className', field: 'className',
title: '实体', title: '实体',
minWidth: 200,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'updateTime', field: 'updateTime',
title: '更新时间', title: '更新时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -122,32 +122,26 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '参数主键', title: '参数主键',
minWidth: 100,
}, },
{ {
field: 'category', field: 'category',
title: '参数分类', title: '参数分类',
minWidth: 120,
}, },
{ {
field: 'name', field: 'name',
title: '参数名称', title: '参数名称',
minWidth: 200,
}, },
{ {
field: 'key', field: 'key',
title: '参数键名', title: '参数键名',
minWidth: 200,
}, },
{ {
field: 'value', field: 'value',
title: '参数键值', title: '参数键值',
minWidth: 150,
}, },
{ {
field: 'visible', field: 'visible',
title: '是否可见', title: '是否可见',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -156,7 +150,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'type', field: 'type',
title: '系统内置', title: '系统内置',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_CONFIG_TYPE }, props: { type: DICT_TYPE.INFRA_CONFIG_TYPE },
@ -165,12 +158,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 150,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -58,27 +58,22 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '主键编号', title: '主键编号',
minWidth: 100,
}, },
{ {
field: 'name', field: 'name',
title: '数据源名称', title: '数据源名称',
minWidth: 150,
}, },
{ {
field: 'url', field: 'url',
title: '数据源连接', title: '数据源连接',
minWidth: 300,
}, },
{ {
field: 'username', field: 'username',
title: '用户名', title: '用户名',
minWidth: 120,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -111,17 +111,14 @@ export function useGridColumns(
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 120,
}, },
{ {
field: 'name', field: 'name',
title: '名字', title: '名字',
minWidth: 120,
}, },
{ {
field: 'sex', field: 'sex',
title: '性别', title: '性别',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_USER_SEX }, props: { type: DICT_TYPE.SYSTEM_USER_SEX },
@ -130,18 +127,15 @@ export function useGridColumns(
{ {
field: 'birthday', field: 'birthday',
title: '出生日期', title: '出生日期',
minWidth: 120,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'description', field: 'description',
title: '简介', title: '简介',
minWidth: 120,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 120,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
@ -183,13 +177,11 @@ export function useDemo03CourseGridEditColumns(
{ {
field: 'name', field: 'name',
title: '名字', title: '名字',
minWidth: 120,
slots: { default: 'name' }, slots: { default: 'name' },
}, },
{ {
field: 'score', field: 'score',
title: '分数', title: '分数',
minWidth: 120,
slots: { default: 'score' }, slots: { default: 'score' },
}, },
{ {

View File

@ -57,24 +57,20 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'name', field: 'name',
title: '文件名', title: '文件名',
minWidth: 150,
}, },
{ {
field: 'path', field: 'path',
title: '文件路径', title: '文件路径',
minWidth: 200,
showOverflow: true, showOverflow: true,
}, },
{ {
field: 'url', field: 'url',
title: 'URL', title: 'URL',
minWidth: 200,
showOverflow: true, showOverflow: true,
}, },
{ {
field: 'size', field: 'size',
title: '文件大小', title: '文件大小',
minWidth: 80,
formatter: ({ cellValue }) => { formatter: ({ cellValue }) => {
// TODO @芋艿:后续优化下 // TODO @芋艿:后续优化下
if (!cellValue) return '0 B'; if (!cellValue) return '0 B';
@ -88,20 +84,15 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'type', field: 'type',
title: '文件类型', title: '文件类型',
minWidth: 120,
}, },
{ {
field: 'file-content', field: 'file-content',
title: '文件内容', title: '文件内容',
minWidth: 120, slots: { default: 'file-content' },
slots: {
default: 'file-content',
},
}, },
{ {
field: 'createTime', field: 'createTime',
title: '上传时间', title: '上传时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -265,17 +265,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
width: 100,
}, },
{ {
field: 'name', field: 'name',
title: '配置名', title: '配置名',
minWidth: 120,
}, },
{ {
field: 'storage', field: 'storage',
title: '存储器', title: '存储器',
width: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_FILE_STORAGE }, props: { type: DICT_TYPE.INFRA_FILE_STORAGE },
@ -284,12 +281,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 150,
}, },
{ {
field: 'master', field: 'master',
title: '主配置', title: '主配置',
width: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -298,7 +293,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
width: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -132,17 +132,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '任务编号', title: '任务编号',
minWidth: 80,
}, },
{ {
field: 'name', field: 'name',
title: '任务名称', title: '任务名称',
minWidth: 120,
}, },
{ {
field: 'status', field: 'status',
title: '任务状态', title: '任务状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_JOB_STATUS }, props: { type: DICT_TYPE.INFRA_JOB_STATUS },
@ -151,17 +148,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'handlerName', field: 'handlerName',
title: '处理器的名字', title: '处理器的名字',
minWidth: 180,
}, },
{ {
field: 'handlerParam', field: 'handlerParam',
title: '处理器的参数', title: '处理器的参数',
minWidth: 140,
}, },
{ {
field: 'cronExpression', field: 'cronExpression',
title: 'CRON 表达式', title: 'CRON 表达式',
minWidth: 120,
}, },
{ {
title: '操作', title: '操作',

View File

@ -70,32 +70,26 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '日志编号', title: '日志编号',
minWidth: 80,
}, },
{ {
field: 'jobId', field: 'jobId',
title: '任务编号', title: '任务编号',
minWidth: 80,
}, },
{ {
field: 'handlerName', field: 'handlerName',
title: '处理器的名字', title: '处理器的名字',
minWidth: 180,
}, },
{ {
field: 'handlerParam', field: 'handlerParam',
title: '处理器的参数', title: '处理器的参数',
minWidth: 140,
}, },
{ {
field: 'executeIndex', field: 'executeIndex',
title: '第几次执行', title: '第几次执行',
minWidth: 100,
}, },
{ {
field: 'beginTime', field: 'beginTime',
title: '执行时间', title: '执行时间',
minWidth: 280,
formatter: ({ row }) => { formatter: ({ row }) => {
return `${formatDateTime(row.beginTime)} ~ ${formatDateTime(row.endTime)}`; return `${formatDateTime(row.beginTime)} ~ ${formatDateTime(row.endTime)}`;
}, },
@ -103,15 +97,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'duration', field: 'duration',
title: '执行时长', title: '执行时长',
minWidth: 120, formatter: ({ cellValue }) => `${cellValue} 毫秒`,
formatter: ({ row }) => {
return `${row.duration} 毫秒`;
},
}, },
{ {
field: 'status', field: 'status',
title: '任务状态', title: '任务状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_JOB_LOG_STATUS }, props: { type: DICT_TYPE.INFRA_JOB_LOG_STATUS },

View File

@ -48,17 +48,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 200,
}, },
{ {
field: 'name', field: 'name',
title: '标签名称', title: '标签名称',
minWidth: 200,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -38,45 +38,37 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '订单编号', title: '订单编号',
minWidth: 200,
}, },
{ {
field: 'userId', field: 'userId',
title: '用户编号', title: '用户编号',
minWidth: 200,
}, },
{ {
field: 'spuName', field: 'spuName',
title: '商品名字', title: '商品名字',
minWidth: 200,
}, },
{ {
field: 'price', field: 'price',
title: '支付价格', title: '支付价格',
minWidth: 120,
formatter: 'formatNumber', formatter: 'formatNumber',
}, },
{ {
field: 'refundPrice', field: 'refundPrice',
title: '退款金额', title: '退款金额',
minWidth: 120,
formatter: 'formatNumber', formatter: 'formatNumber',
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'payOrderId', field: 'payOrderId',
title: '支付单号', title: '支付单号',
minWidth: 200,
}, },
{ {
field: 'payStatus', field: 'payStatus',
title: '是否支付', title: '是否支付',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -85,13 +77,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'payTime', field: 'payTime',
title: '支付时间', title: '支付时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'refundTime', field: 'refundTime',
title: '退款时间', title: '退款时间',
minWidth: 180,
slots: { default: 'refundTime' }, slots: { default: 'refundTime' },
}, },
{ {

View File

@ -65,50 +65,41 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '提现单编号', title: '提现单编号',
minWidth: 100,
}, },
{ {
field: 'subject', field: 'subject',
title: '提现标题', title: '提现标题',
minWidth: 120,
}, },
{ {
field: 'type', field: 'type',
title: '提现类型', title: '提现类型',
minWidth: 90,
slots: { default: 'type' }, slots: { default: 'type' },
}, },
{ {
field: 'price', field: 'price',
title: '提现金额', title: '提现金额',
minWidth: 120,
formatter: 'formatNumber', formatter: 'formatNumber',
}, },
{ {
field: 'userName', field: 'userName',
title: '收款人姓名', title: '收款人姓名',
minWidth: 150,
}, },
{ {
field: 'userAccount', field: 'userAccount',
title: '收款人账号', title: '收款人账号',
minWidth: 250,
}, },
{ {
field: 'status', field: 'status',
title: '提现状态', title: '提现状态',
minWidth: 100,
slots: { default: 'status' }, slots: { default: 'status' },
}, },
{ {
field: 'payTransferId', field: 'payTransferId',
title: '转账单号', title: '转账单号',
minWidth: 120,
}, },
{ {
field: 'transferChannelCode', field: 'transferChannelCode',
title: '转账渠道', title: '转账渠道',
minWidth: 180,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.PAY_CHANNEL_CODE }, props: { type: DICT_TYPE.PAY_CHANNEL_CODE },
@ -117,13 +108,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'transferTime', field: 'transferTime',
title: '转账时间', title: '转账时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'transferErrorMsg', field: 'transferErrorMsg',
title: '转账失败原因', title: '转账失败原因',
minWidth: 200,
}, },
{ {
title: '操作', title: '操作',

View File

@ -69,22 +69,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '任务编号', title: '任务编号',
minWidth: 100,
}, },
{ {
field: 'appName', field: 'appName',
title: '应用编号', title: '应用编号',
minWidth: 120,
}, },
{ {
field: 'merchantOrderId', field: 'merchantOrderId',
title: '商户订单编号', title: '商户订单编号',
minWidth: 180,
}, },
{ {
field: 'type', field: 'type',
title: '通知类型', title: '通知类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.PAY_NOTIFY_TYPE }, props: { type: DICT_TYPE.PAY_NOTIFY_TYPE },
@ -93,12 +89,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'dataId', field: 'dataId',
title: '关联编号', title: '关联编号',
minWidth: 120,
}, },
{ {
field: 'status', field: 'status',
title: '通知状态', title: '通知状态',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.PAY_NOTIFY_STATUS }, props: { type: DICT_TYPE.PAY_NOTIFY_STATUS },
@ -107,19 +101,16 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'lastExecuteTime', field: 'lastExecuteTime',
title: '最后通知时间', title: '最后通知时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'nextNotifyTime', field: 'nextNotifyTime',
title: '下次通知时间', title: '下次通知时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'notifyTimes', field: 'notifyTimes',
title: '通知次数', title: '通知次数',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellTag', name: 'CellTag',
props: { props: {

View File

@ -107,29 +107,24 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 100,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'appName', field: 'appName',
title: '支付应用', title: '支付应用',
minWidth: 100,
}, },
{ {
field: 'price', field: 'price',
title: '转账金额', title: '转账金额',
minWidth: 120,
formatter: ({ cellValue }) => `${(cellValue / 100).toFixed(2)}`, formatter: ({ cellValue }) => `${(cellValue / 100).toFixed(2)}`,
}, },
{ {
field: 'status', field: 'status',
title: '转账状态', title: '转账状态',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.PAY_TRANSFER_STATUS }, props: { type: DICT_TYPE.PAY_TRANSFER_STATUS },
@ -138,7 +133,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'type', field: 'type',
title: '类型', title: '类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.PAY_TRANSFER_TYPE }, props: { type: DICT_TYPE.PAY_TRANSFER_TYPE },
@ -147,7 +141,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'channelCode', field: 'channelCode',
title: '支付渠道', title: '支付渠道',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.PAY_CHANNEL_CODE }, props: { type: DICT_TYPE.PAY_CHANNEL_CODE },
@ -156,22 +149,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'merchantTransferId', field: 'merchantTransferId',
title: '商户单号', title: '商户单号',
minWidth: 180,
}, },
{ {
field: 'channelTransferNo', field: 'channelTransferNo',
title: '渠道单号', title: '渠道单号',
minWidth: 180,
}, },
{ {
field: 'userName', field: 'userName',
title: '收款人姓名', title: '收款人姓名',
minWidth: 120,
}, },
{ {
field: 'accountNo', field: 'accountNo',
title: '收款人账号', title: '收款人账号',
minWidth: 180,
}, },
{ {
title: '操作', title: '操作',

View File

@ -32,7 +32,6 @@ export function useGridColumns(): VxeTableGridOptions<SystemAreaApi.Area>['colum
{ {
field: 'id', field: 'id',
title: '地区编码', title: '地区编码',
minWidth: 120,
align: 'left', align: 'left',
fixed: 'left', fixed: 'left',
treeNode: true, treeNode: true,
@ -40,7 +39,6 @@ export function useGridColumns(): VxeTableGridOptions<SystemAreaApi.Area>['colum
{ {
field: 'name', field: 'name',
title: '地区名称', title: '地区名称',
minWidth: 200,
}, },
]; ];
} }

View File

@ -116,7 +116,6 @@ export function useGridColumns(
{ {
field: 'name', field: 'name',
title: '部门名称', title: '部门名称',
minWidth: 150,
align: 'left', align: 'left',
fixed: 'left', fixed: 'left',
treeNode: true, treeNode: true,
@ -124,20 +123,15 @@ export function useGridColumns(
{ {
field: 'leaderUserId', field: 'leaderUserId',
title: '负责人', title: '负责人',
minWidth: 150, formatter: ({ cellValue }) => getLeaderName?.(cellValue) || '-',
formatter: (row) => {
return getLeaderName?.(row.cellValue) || '-';
},
}, },
{ {
field: 'sort', field: 'sort',
title: '显示顺序', title: '显示顺序',
minWidth: 100,
}, },
{ {
field: 'status', field: 'status',
title: '部门状态', title: '部门状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -146,7 +140,6 @@ export function useGridColumns(
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -95,22 +95,18 @@ export function useTypeGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '字典编号', title: '字典编号',
minWidth: 100,
}, },
{ {
field: 'name', field: 'name',
title: '字典名称', title: '字典名称',
minWidth: 200,
}, },
{ {
field: 'type', field: 'type',
title: '字典类型', title: '字典类型',
minWidth: 220,
}, },
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -119,12 +115,10 @@ export function useTypeGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 180,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
@ -288,27 +282,22 @@ export function useDataGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '字典编码', title: '字典编码',
minWidth: 100,
}, },
{ {
field: 'label', field: 'label',
title: '字典标签', title: '字典标签',
minWidth: 180,
}, },
{ {
field: 'value', field: 'value',
title: '字典键值', title: '字典键值',
minWidth: 100,
}, },
{ {
field: 'sort', field: 'sort',
title: '字典排序', title: '字典排序',
minWidth: 100,
}, },
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -317,17 +306,14 @@ export function useDataGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'colorType', field: 'colorType',
title: '颜色类型', title: '颜色类型',
minWidth: 120,
}, },
{ {
field: 'cssClass', field: 'cssClass',
title: 'CSS Class', title: 'CSS Class',
minWidth: 120,
}, },
{ {
title: '创建时间', title: '创建时间',
field: 'createTime', field: 'createTime',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -42,12 +42,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '日志编号', title: '日志编号',
minWidth: 100,
}, },
{ {
field: 'logType', field: 'logType',
title: '操作类型', title: '操作类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_LOGIN_TYPE }, props: { type: DICT_TYPE.SYSTEM_LOGIN_TYPE },
@ -56,22 +54,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'username', field: 'username',
title: '用户名称', title: '用户名称',
minWidth: 180,
}, },
{ {
field: 'userIp', field: 'userIp',
title: '登录地址', title: '登录地址',
minWidth: 180,
}, },
{ {
field: 'userAgent', field: 'userAgent',
title: '浏览器', title: '浏览器',
minWidth: 200,
}, },
{ {
field: 'result', field: 'result',
title: '登录结果', title: '登录结果',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_LOGIN_RESULT }, props: { type: DICT_TYPE.SYSTEM_LOGIN_RESULT },
@ -80,7 +74,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '登录日期', title: '登录日期',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -125,32 +125,26 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 100,
}, },
{ {
field: 'mail', field: 'mail',
title: '邮箱', title: '邮箱',
minWidth: 160,
}, },
{ {
field: 'username', field: 'username',
title: '用户名', title: '用户名',
minWidth: 160,
}, },
{ {
field: 'host', field: 'host',
title: 'SMTP 服务器域名', title: 'SMTP 服务器域名',
minWidth: 150,
}, },
{ {
field: 'port', field: 'port',
title: 'SMTP 服务器端口', title: 'SMTP 服务器端口',
minWidth: 130,
}, },
{ {
field: 'sslEnable', field: 'sslEnable',
title: '是否开启 SSL', title: '是否开启 SSL',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -159,7 +153,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'starttlsEnable', field: 'starttlsEnable',
title: '是否开启 STARTTLS', title: '是否开启 STARTTLS',
minWidth: 145,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -168,7 +161,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -75,38 +75,31 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 100,
}, },
{ {
field: 'sendTime', field: 'sendTime',
title: '发送时间', title: '发送时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'toMail', field: 'toMail',
title: '收件邮箱', title: '收件邮箱',
minWidth: 160,
}, },
{ {
field: 'templateTitle', field: 'templateTitle',
title: '邮件标题', title: '邮件标题',
minWidth: 120,
}, },
{ {
field: 'templateContent', field: 'templateContent',
title: '邮件内容', title: '邮件内容',
minWidth: 300,
}, },
{ {
field: 'fromMail', field: 'fromMail',
title: '发送邮箱', title: '发送邮箱',
minWidth: 120,
}, },
{ {
field: 'sendStatus', field: 'sendStatus',
title: '发送状态', title: '发送状态',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS }, props: { type: DICT_TYPE.SYSTEM_MAIL_SEND_STATUS },
@ -115,7 +108,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'templateCode', field: 'templateCode',
title: '模板编码', title: '模板编码',
minWidth: 120,
}, },
{ {
title: '操作', title: '操作',

View File

@ -195,38 +195,31 @@ export function useGridColumns(
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 100,
}, },
{ {
field: 'code', field: 'code',
title: '模板编码', title: '模板编码',
minWidth: 120,
}, },
{ {
field: 'name', field: 'name',
title: '模板名称', title: '模板名称',
minWidth: 120,
}, },
{ {
field: 'title', field: 'title',
title: '模板标题', title: '模板标题',
minWidth: 120,
}, },
{ {
field: 'accountId', field: 'accountId',
title: '邮箱账号', title: '邮箱账号',
minWidth: 120, formatter: ({ cellValue }) => getAccountMail?.(cellValue) || '-',
formatter: (row) => getAccountMail?.(row.cellValue) || '-',
}, },
{ {
field: 'nickname', field: 'nickname',
title: '发送人名称', title: '发送人名称',
minWidth: 120,
}, },
{ {
field: 'status', field: 'status',
title: '开启状态', title: '开启状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -235,7 +228,6 @@ export function useGridColumns(
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -271,7 +271,6 @@ export function useGridColumns(): VxeTableGridOptions<SystemMenuApi.Menu>['colum
{ {
field: 'name', field: 'name',
title: '菜单名称', title: '菜单名称',
minWidth: 250,
align: 'left', align: 'left',
fixed: 'left', fixed: 'left',
slots: { default: 'name' }, slots: { default: 'name' },
@ -280,7 +279,6 @@ export function useGridColumns(): VxeTableGridOptions<SystemMenuApi.Menu>['colum
{ {
field: 'type', field: 'type',
title: '菜单类型', title: '菜单类型',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_MENU_TYPE }, props: { type: DICT_TYPE.SYSTEM_MENU_TYPE },
@ -289,27 +287,22 @@ export function useGridColumns(): VxeTableGridOptions<SystemMenuApi.Menu>['colum
{ {
field: 'sort', field: 'sort',
title: '显示排序', title: '显示排序',
minWidth: 100,
}, },
{ {
field: 'permission', field: 'permission',
title: '权限标识', title: '权限标识',
minWidth: 200,
}, },
{ {
field: 'path', field: 'path',
title: '组件路径', title: '组件路径',
minWidth: 200,
}, },
{ {
field: 'componentName', field: 'componentName',
minWidth: 200,
title: '组件名称', title: '组件名称',
}, },
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },

View File

@ -91,17 +91,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '公告编号', title: '公告编号',
minWidth: 100,
}, },
{ {
field: 'title', field: 'title',
title: '公告标题', title: '公告标题',
minWidth: 200,
}, },
{ {
field: 'type', field: 'type',
title: '公告类型', title: '公告类型',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_NOTICE_TYPE }, props: { type: DICT_TYPE.SYSTEM_NOTICE_TYPE },
@ -110,7 +107,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'status', field: 'status',
title: '公告状态', title: '公告状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -119,7 +115,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -65,12 +65,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 100,
}, },
{ {
field: 'userType', field: 'userType',
title: '用户类型', title: '用户类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.USER_TYPE }, props: { type: DICT_TYPE.USER_TYPE },
@ -79,27 +77,22 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'userId', field: 'userId',
title: '用户编号', title: '用户编号',
minWidth: 100,
}, },
{ {
field: 'templateCode', field: 'templateCode',
title: '模板编码', title: '模板编码',
minWidth: 120,
}, },
{ {
field: 'templateNickname', field: 'templateNickname',
title: '发送人名称', title: '发送人名称',
minWidth: 180,
}, },
{ {
field: 'templateContent', field: 'templateContent',
title: '模版内容', title: '模版内容',
minWidth: 200,
}, },
{ {
field: 'templateParams', field: 'templateParams',
title: '模版参数', title: '模版参数',
minWidth: 180,
formatter: ({ cellValue }) => { formatter: ({ cellValue }) => {
try { try {
return JSON.stringify(cellValue); return JSON.stringify(cellValue);
@ -111,7 +104,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'templateType', field: 'templateType',
title: '模版类型', title: '模版类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE }, props: { type: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE },
@ -120,7 +112,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'readStatus', field: 'readStatus',
title: '是否已读', title: '是否已读',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -129,13 +120,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'readTime', field: 'readTime',
title: '阅读时间', title: '阅读时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -45,18 +45,15 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'templateNickname', field: 'templateNickname',
title: '发送人', title: '发送人',
minWidth: 180,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '发送时间', title: '发送时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'templateType', field: 'templateType',
title: '类型', title: '类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE }, props: { type: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE },
@ -65,12 +62,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'templateContent', field: 'templateContent',
title: '消息内容', title: '消息内容',
minWidth: 300,
}, },
{ {
field: 'readStatus', field: 'readStatus',
title: '是否已读', title: '是否已读',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING }, props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
@ -79,7 +74,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'readTime', field: 'readTime',
title: '阅读时间', title: '阅读时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -229,32 +229,26 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 100,
}, },
{ {
field: 'name', field: 'name',
title: '模板名称', title: '模板名称',
minWidth: 120,
}, },
{ {
field: 'code', field: 'code',
title: '模板编码', title: '模板编码',
minWidth: 120,
}, },
{ {
field: 'nickname', field: 'nickname',
title: '发送人名称', title: '发送人名称',
minWidth: 120,
}, },
{ {
field: 'content', field: 'content',
title: '模板内容', title: '模板内容',
minWidth: 200,
}, },
{ {
field: 'type', field: 'type',
title: '模板类型', title: '模板类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE }, props: { type: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE },
@ -263,7 +257,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -272,12 +265,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 120,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -191,22 +191,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'clientId', field: 'clientId',
title: '客户端编号', title: '客户端编号',
minWidth: 200,
}, },
{ {
field: 'secret', field: 'secret',
title: '客户端密钥', title: '客户端密钥',
minWidth: 120,
}, },
{ {
field: 'name', field: 'name',
title: '应用名', title: '应用名',
minWidth: 300,
}, },
{ {
field: 'logo', field: 'logo',
title: '应用图标', title: '应用图标',
minWidth: 80,
cellRender: { cellRender: {
name: 'CellImage', name: 'CellImage',
}, },
@ -214,7 +210,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 80,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -223,24 +218,20 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'accessTokenValiditySeconds', field: 'accessTokenValiditySeconds',
title: '访问令牌的有效期', title: '访问令牌的有效期',
minWidth: 130,
formatter: ({ cellValue }) => `${cellValue}`, formatter: ({ cellValue }) => `${cellValue}`,
}, },
{ {
field: 'refreshTokenValiditySeconds', field: 'refreshTokenValiditySeconds',
title: '刷新令牌的有效期', title: '刷新令牌的有效期',
minWidth: 130,
formatter: ({ cellValue }) => `${cellValue}`, formatter: ({ cellValue }) => `${cellValue}`,
}, },
{ {
field: 'authorizedGrantTypes', field: 'authorizedGrantTypes',
title: '授权类型', title: '授权类型',
minWidth: 180,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -40,22 +40,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'accessToken', field: 'accessToken',
title: '访问令牌', title: '访问令牌',
minWidth: 300,
}, },
{ {
field: 'refreshToken', field: 'refreshToken',
title: '刷新令牌', title: '刷新令牌',
minWidth: 300,
}, },
{ {
field: 'userId', field: 'userId',
title: '用户编号', title: '用户编号',
minWidth: 100,
}, },
{ {
field: 'userType', field: 'userType',
title: '用户类型', title: '用户类型',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.USER_TYPE }, props: { type: DICT_TYPE.USER_TYPE },
@ -64,18 +60,15 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'clientId', field: 'clientId',
title: '客户端编号', title: '客户端编号',
minWidth: 120,
}, },
{ {
field: 'expiresTime', field: 'expiresTime',
title: '过期时间', title: '过期时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -75,43 +75,35 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '日志编号', title: '日志编号',
minWidth: 100,
}, },
{ {
field: 'userName', field: 'userName',
title: '操作人', title: '操作人',
minWidth: 120,
}, },
{ {
field: 'type', field: 'type',
title: '操作模块', title: '操作模块',
minWidth: 120,
}, },
{ {
field: 'subType', field: 'subType',
title: '操作名', title: '操作名',
minWidth: 160,
}, },
{ {
field: 'action', field: 'action',
title: '操作内容', title: '操作内容',
minWidth: 200,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '操作时间', title: '操作时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'bizId', field: 'bizId',
title: '业务编号', title: '业务编号',
minWidth: 120,
}, },
{ {
field: 'userIp', field: 'userIp',
title: '操作IP', title: '操作IP',
minWidth: 120,
}, },
{ {
title: '操作', title: '操作',

View File

@ -86,32 +86,26 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '岗位编号', title: '岗位编号',
minWidth: 200,
}, },
{ {
field: 'name', field: 'name',
title: '岗位名称', title: '岗位名称',
minWidth: 200,
}, },
{ {
field: 'code', field: 'code',
title: '岗位编码', title: '岗位编码',
minWidth: 200,
}, },
{ {
field: 'sort', field: 'sort',
title: '显示顺序', title: '显示顺序',
minWidth: 100,
}, },
{ {
field: 'remark', field: 'remark',
title: '岗位备注', title: '岗位备注',
minWidth: 200,
}, },
{ {
field: 'status', field: 'status',
title: '岗位状态', title: '岗位状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -120,7 +114,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -189,17 +189,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '角色编号', title: '角色编号',
minWidth: 200,
}, },
{ {
field: 'name', field: 'name',
title: '角色名称', title: '角色名称',
minWidth: 200,
}, },
{ {
field: 'type', field: 'type',
title: '角色类型', title: '角色类型',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_ROLE_TYPE }, props: { type: DICT_TYPE.SYSTEM_ROLE_TYPE },
@ -208,22 +205,18 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'code', field: 'code',
title: '角色标识', title: '角色标识',
minWidth: 200,
}, },
{ {
field: 'sort', field: 'sort',
title: '显示顺序', title: '显示顺序',
minWidth: 100,
}, },
{ {
field: 'remark', field: 'remark',
title: '角色备注', title: '角色备注',
minWidth: 100,
}, },
{ {
field: 'status', field: 'status',
title: '角色状态', title: '角色状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -232,7 +225,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -152,17 +152,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '编号', title: '编号',
minWidth: 80,
}, },
{ {
field: 'name', field: 'name',
title: '应用名', title: '应用名',
minWidth: 120,
}, },
{ {
field: 'socialType', field: 'socialType',
title: '社交平台', title: '社交平台',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_SOCIAL_TYPE }, props: { type: DICT_TYPE.SYSTEM_SOCIAL_TYPE },
@ -171,7 +168,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'userType', field: 'userType',
title: '用户类型', title: '用户类型',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.USER_TYPE }, props: { type: DICT_TYPE.USER_TYPE },
@ -180,12 +176,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'clientId', field: 'clientId',
title: '客户端编号', title: '客户端编号',
minWidth: 180,
}, },
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 80,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -194,7 +188,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -52,7 +52,6 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'type', field: 'type',
title: '社交平台', title: '社交平台',
minWidth: 120,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.SYSTEM_SOCIAL_TYPE }, props: { type: DICT_TYPE.SYSTEM_SOCIAL_TYPE },
@ -61,17 +60,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'openid', field: 'openid',
title: '社交 openid', title: '社交 openid',
minWidth: 180,
}, },
{ {
field: 'nickname', field: 'nickname',
title: '用户昵称', title: '用户昵称',
minWidth: 120,
}, },
{ {
field: 'avatar', field: 'avatar',
title: '用户头像', title: '用户头像',
minWidth: 80,
cellRender: { cellRender: {
name: 'CellImage', name: 'CellImage',
}, },
@ -79,13 +75,11 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'updateTime', field: 'updateTime',
title: '更新时间', title: '更新时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -164,17 +164,14 @@ export function useGridColumns(
{ {
field: 'id', field: 'id',
title: '租户编号', title: '租户编号',
minWidth: 100,
}, },
{ {
field: 'name', field: 'name',
title: '租户名', title: '租户名',
minWidth: 180,
}, },
{ {
field: 'packageId', field: 'packageId',
title: '租户套餐', title: '租户套餐',
minWidth: 180,
formatter: (row: { cellValue: number }) => { formatter: (row: { cellValue: number }) => {
return getPackageName?.(row.cellValue) || '-'; return getPackageName?.(row.cellValue) || '-';
}, },
@ -182,33 +179,27 @@ export function useGridColumns(
{ {
field: 'contactName', field: 'contactName',
title: '联系人', title: '联系人',
minWidth: 100,
}, },
{ {
field: 'contactMobile', field: 'contactMobile',
title: '联系手机', title: '联系手机',
minWidth: 180,
}, },
{ {
field: 'accountCount', field: 'accountCount',
title: '账号额度', title: '账号额度',
minWidth: 100,
}, },
{ {
field: 'expireTime', field: 'expireTime',
title: '过期时间', title: '过期时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {
field: 'website', field: 'website',
title: '绑定域名', title: '绑定域名',
minWidth: 180,
}, },
{ {
field: 'status', field: 'status',
title: '租户状态', title: '租户状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -217,7 +208,6 @@ export function useGridColumns(
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -91,17 +91,14 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'id', field: 'id',
title: '套餐编号', title: '套餐编号',
minWidth: 100,
}, },
{ {
field: 'name', field: 'name',
title: '套餐名称', title: '套餐名称',
minWidth: 180,
}, },
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 100,
cellRender: { cellRender: {
name: 'CellDict', name: 'CellDict',
props: { type: DICT_TYPE.COMMON_STATUS }, props: { type: DICT_TYPE.COMMON_STATUS },
@ -110,12 +107,10 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{ {
field: 'remark', field: 'remark',
title: '备注', title: '备注',
minWidth: 200,
}, },
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {

View File

@ -268,32 +268,26 @@ export function useGridColumns<T = SystemUserApi.User>(
{ {
field: 'id', field: 'id',
title: '用户编号', title: '用户编号',
minWidth: 100,
}, },
{ {
field: 'username', field: 'username',
title: '用户名称', title: '用户名称',
minWidth: 120,
}, },
{ {
field: 'nickname', field: 'nickname',
title: '用户昵称', title: '用户昵称',
minWidth: 120,
}, },
{ {
field: 'deptName', field: 'deptName',
title: '部门', title: '部门',
minWidth: 120,
}, },
{ {
field: 'mobile', field: 'mobile',
title: '手机号码', title: '手机号码',
minWidth: 120,
}, },
{ {
field: 'status', field: 'status',
title: '状态', title: '状态',
minWidth: 100,
align: 'center', align: 'center',
cellRender: { cellRender: {
attrs: { beforeChange: onStatusChange }, attrs: { beforeChange: onStatusChange },
@ -307,7 +301,6 @@ export function useGridColumns<T = SystemUserApi.User>(
{ {
field: 'createTime', field: 'createTime',
title: '创建时间', title: '创建时间',
minWidth: 180,
formatter: 'formatDateTime', formatter: 'formatDateTime',
}, },
{ {