优化日志、角色、文件、消息、配置、布局、广告等

This commit is contained in:
zjl 2024-12-13 11:19:56 +08:00
parent 43848f0bcd
commit 97e0cd4488
15 changed files with 114 additions and 83 deletions

View File

@ -84,7 +84,7 @@ export const columns = [
{ {
title: '投放时间', title: '投放时间',
dataIndex: 'time', dataIndex: 'time',
width: 180, width: 300,
customRender({ record }) { customRender({ record }) {
return record.startTime + '-' + record.endTime; return record.startTime + '-' + record.endTime;
}, },

View File

@ -3,17 +3,17 @@ export const schemas2: FormSchema[] = [
{ {
name: 'title', name: 'title',
component: 'Input', component: 'Input',
label: '标题', label: '通知标题',
componentProps: { componentProps: {
placeholder: '请输入标题', placeholder: '请输入通知标题',
}, },
}, },
{ {
name: 'type', name: 'type',
component: 'Select', component: 'Select',
label: '类型', label: '通知类型',
componentProps: { componentProps: {
placeholder: '请选择类型', placeholder: '请选择通知类型',
clearable: true, clearable: true,
options: [ options: [
{ {
@ -30,9 +30,9 @@ export const schemas2: FormSchema[] = [
{ {
name: 'status', name: 'status',
component: 'Select', component: 'Select',
label: '状态', label: '通知状态',
componentProps: { componentProps: {
placeholder: '请选择状态', placeholder: '请选择通知状态',
clearable: true, clearable: true,
options: [ options: [
{ {

View File

@ -11,7 +11,7 @@ export const columns = [
{ {
title: '友链名称', title: '友链名称',
dataIndex: 'name', dataIndex: 'name',
width: 100, width: 150,
}, },
{ {
title: '友链类型', title: '友链类型',

View File

@ -12,7 +12,7 @@ export const columns = [
title: '城市拼音', title: '城市拼音',
dataIndex: 'pinyin', dataIndex: 'pinyin',
key: 'pinyin', key: 'pinyin',
width: 100, width: 150,
}, },
{ {
title: '城市级别', title: '城市级别',
@ -53,7 +53,7 @@ export const columns = [
title: '行政编码', title: '行政编码',
dataIndex: 'areaCode', dataIndex: 'areaCode',
key: 'areaCode', key: 'areaCode',
width: 100, width: 150,
}, },
{ {
title: '城市邮编', title: '城市邮编',

View File

@ -15,12 +15,12 @@ export const columns = [
{ {
title: '配置项编码', title: '配置项编码',
dataIndex: 'code', dataIndex: 'code',
width: 100, width: 150,
}, },
{ {
title: '配置项值', title: '配置项值',
dataIndex: 'value', dataIndex: 'value',
width: 100, width: 200,
}, },
{ {
title: '配置项类型', title: '配置项类型',

View File

@ -11,7 +11,7 @@ export const columns = [
{ {
title: '消息标题', title: '消息标题',
dataIndex: 'title', dataIndex: 'title',
width: 100, width: 250,
}, },
{ {
title: '消息类型', title: '消息类型',

View File

@ -6,7 +6,7 @@ export const columns = [
title: 'ID', title: 'ID',
dataIndex: 'id', dataIndex: 'id',
width: 50, width: 50,
fixed:'left' fixed: 'left',
}, },
{ {
title: '参数名称', title: '参数名称',
@ -63,7 +63,7 @@ export const columns = [
{ {
title: '备注', title: '备注',
dataIndex: 'note', dataIndex: 'note',
width: 150, width: 200,
}, },
{ {
title: '创建人', title: '创建人',

View File

@ -15,7 +15,7 @@ export const columns = [
{ {
title: '模板名称', title: '模板名称',
dataIndex: 'title', dataIndex: 'title',
width: 150, width: 200,
}, },
{ {
title: '模板编码', title: '模板编码',

View File

@ -11,7 +11,7 @@ export const columns = [
{ {
title: '日志标题', title: '日志标题',
dataIndex: 'title', dataIndex: 'title',
width: 100, width: 250,
}, },
{ {
title: '日志类型', title: '日志类型',
@ -44,12 +44,12 @@ export const columns = [
{ {
title: '模板编号', title: '模板编号',
dataIndex: 'code', dataIndex: 'code',
width: 100, width: 150,
}, },
{ {
title: '接收人邮箱', title: '接收人邮箱',
dataIndex: 'receiveEmail', dataIndex: 'receiveEmail',
width: 100, width: 150,
}, },
{ {
title: '接收人类型', title: '接收人类型',

View File

@ -11,7 +11,7 @@ export const columns = [
{ {
title: '文件名称', title: '文件名称',
dataIndex: 'originalName', dataIndex: 'originalName',
width: 100, width: 200,
customRender({ record }) { customRender({ record }) {
return h( return h(
'a', 'a',

View File

@ -26,7 +26,7 @@ export const columns = [
{ {
title: '接收人手机', title: '接收人手机',
dataIndex: 'receiveMobile', dataIndex: 'receiveMobile',
width: 100, width: 120,
}, },
{ {
title: '接收人类型', title: '接收人类型',

View File

@ -57,7 +57,7 @@ export const columns = [
title: '部门备注', title: '部门备注',
dataIndex: 'note', dataIndex: 'note',
key: 'note', key: 'note',
width: 100, width: 200,
}, },
{ {
title: '创建人', title: '创建人',

View File

@ -6,19 +6,28 @@ export const columns = [
title: 'ID', title: 'ID',
dataIndex: 'id', dataIndex: 'id',
fixed: 'left', fixed: 'left',
width: 100 width: 100,
}, },
{ {
title: '访客', title: '访客',
align:'left', align: 'left',
width: 200,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h('div',{ h(
style: {marginBottom:'5px'} 'div',
}, record.username), {
h('div',{ style: { marginBottom: '5px' },
style: { marginBottom:'5px'} },
}, record.ip), record.username,
),
h(
'div',
{
style: { marginBottom: '5px' },
},
record.ip,
),
h( h(
Tag, Tag,
{ {
@ -28,22 +37,25 @@ export const columns = [
default: () => record.location, default: () => record.location,
}, },
), ),
]) ]);
} },
}, },
{ {
title: '请求接口', title: '请求接口',
align:'left', align: 'left',
width: 200,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h(Tag, h(
Tag,
{ {
color: 'default', color: 'default',
style: {marginBottom:'5px'} style: { marginBottom: '5px' },
}, },
{ {
default: () => (record.requestMethod), default: () => record.requestMethod,
}), },
),
h( h(
'div', 'div',
{ {
@ -52,24 +64,26 @@ export const columns = [
'接口:' + record.url, '接口:' + record.url,
), ),
h('div', '名称:' + record.title), h('div', '名称:' + record.title),
]);
]) },
}
}, },
{ {
title: '接口响应', title: '接口响应',
align:'left', align: 'left',
width: 250,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h('span', '状态:'), h('span', '状态:'),
h(Tag, h(
Tag,
{ {
color: record.status == 0 ? 'success' : 'error', color: record.status == 0 ? 'success' : 'error',
style: {marginBottom:'5px'} style: { marginBottom: '5px' },
}, },
{ {
default: () => (record.status == 0 ? '正常' : '异常'), default: () => (record.status == 0 ? '正常' : '异常'),
}), },
),
h( h(
'div', 'div',
{ {
@ -78,19 +92,20 @@ export const columns = [
'请求耗时:' + record.consumeTime + 'ms', '请求耗时:' + record.consumeTime + 'ms',
), ),
h('div', '响应时间:' + record.updateTime), h('div', '响应时间:' + record.updateTime),
]) ]);
} },
}, },
{ {
title: '操作来源', title: '操作来源',
align:'left', align: 'left',
width: 200,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h('div', '系统:'+record.os), h('div', '系统:' + record.os),
h('div', '类型:'+record.typeText), h('div', '类型:' + record.typeText),
h('div', '来源:'+record.sourceText), h('div', '来源:' + record.sourceText),
]) ]);
} },
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@ -10,15 +10,24 @@ export const columns = [
}, },
{ {
title: '访客', title: '访客',
align:'left', align: 'left',
width: 200,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h('div',{ h(
style: {marginBottom:'5px'} 'div',
}, record.createUser), {
h('div',{ style: { marginBottom: '5px' },
style: { marginBottom:'5px'} },
}, record.ip), record.createUser,
),
h(
'div',
{
style: { marginBottom: '5px' },
},
record.ip,
),
h( h(
Tag, Tag,
{ {
@ -28,41 +37,47 @@ export const columns = [
default: () => record.location, default: () => record.location,
}, },
), ),
]) ]);
} },
}, },
{ {
title: '请求接口', title: '请求接口',
align:'left', align: 'left',
width: 300,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h(Tag, h(
Tag,
{ {
color: 'default', color: 'default',
style: {marginBottom:'5px'} style: { marginBottom: '5px' },
}, },
{ {
default: () => (record.requestMethod), default: () => record.requestMethod,
}), },
h('div', '接口:'+record.url), ),
h('div', '名称:'+record.title), h('div', '接口:' + record.url),
]) h('div', '名称:' + record.title),
} ]);
},
}, },
{ {
title: '接口响应', title: '接口响应',
align:'left', align: 'left',
width: 250,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h('span', '状态:'), h('span', '状态:'),
h(Tag, h(
Tag,
{ {
color: record.status == 0 ? 'success' : 'error', color: record.status == 0 ? 'success' : 'error',
style: {marginBottom:'5px'} style: { marginBottom: '5px' },
}, },
{ {
default: () => (record.status == 0 ? '正常' : '异常'), default: () => (record.status == 0 ? '正常' : '异常'),
}), },
),
h( h(
'div', 'div',
{ {
@ -71,19 +86,20 @@ export const columns = [
'请求耗时:' + record.consumeTime + 'ms', '请求耗时:' + record.consumeTime + 'ms',
), ),
h('div', '响应时间:' + record.updateTime), h('div', '响应时间:' + record.updateTime),
]) ]);
} },
}, },
{ {
title: '操作来源', title: '操作来源',
align:'left', align: 'left',
width: 200,
customRender({ record }) { customRender({ record }) {
return h('div', [ return h('div', [
h('div', '系统:'+record.os), h('div', '系统:' + record.os),
h('div', '类型:'+record.typeText), h('div', '类型:' + record.typeText),
h('div', '来源:'+record.sourceText), h('div', '来源:' + record.sourceText),
]) ]);
} },
}, },
{ {
title: '创建时间', title: '创建时间',

View File

@ -15,7 +15,7 @@ export const columns = [
{ {
title: '角色编码', title: '角色编码',
dataIndex: 'code', dataIndex: 'code',
width: 100, width: 250,
}, },
{ {
title: '排序', title: '排序',