优化日志模块

This commit is contained in:
zjl 2024-12-12 15:47:38 +08:00
parent dd224de407
commit 66643f8038
3 changed files with 29 additions and 0 deletions

View File

@ -8,14 +8,18 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
fixed: 'left',
width: 50,
}, },
{ {
label: '日志标题', label: '日志标题',
prop: 'title', prop: 'title',
width: 250,
}, },
{ {
label: '日志类型', label: '日志类型',
prop: 'type', prop: 'type',
width: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -43,14 +47,17 @@ export const columns = [
{ {
label: '模板编号', label: '模板编号',
prop: 'code', prop: 'code',
width: 150,
}, },
{ {
label: '接收人邮箱', label: '接收人邮箱',
prop: 'receiveEmail', prop: 'receiveEmail',
width: 150,
}, },
{ {
label: '接收人类型', label: '接收人类型',
prop: 'receiveType', prop: 'receiveType',
width: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.receiveType) { switch (record.row.receiveType) {
@ -72,10 +79,12 @@ export const columns = [
{ {
label: '请求耗时', label: '请求耗时',
prop: 'consumeTime', prop: 'consumeTime',
width: 100,
}, },
{ {
label: '日志状态', label: '日志状态',
prop: 'status', prop: 'status',
width: 100,
render(record) { render(record) {
return h('span', record.row.status === 1 ? '已读' : '未读'); return h('span', record.row.status === 1 ? '已读' : '未读');
}, },
@ -83,9 +92,11 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
width: 180,
}, },
]; ];

View File

@ -8,10 +8,13 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
fixed: 'left',
width: 50,
}, },
{ {
label: '文件名称', label: '文件名称',
prop: 'originalName', prop: 'originalName',
width: 200,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -26,6 +29,7 @@ export const columns = [
{ {
label: '日志类型', label: '日志类型',
prop: 'type', prop: 'type',
width: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -47,10 +51,12 @@ export const columns = [
{ {
label: '文件类型', label: '文件类型',
prop: 'fileType', prop: 'fileType',
width: 100,
}, },
{ {
label: '文件大小', label: '文件大小',
prop: 'fileSize', prop: 'fileSize',
width: 100,
render(record) { render(record) {
return h('span', record.row.fileSize + 'B'); return h('span', record.row.fileSize + 'B');
}, },
@ -58,10 +64,12 @@ export const columns = [
{ {
label: '文件后缀', label: '文件后缀',
prop: 'fileExtension', prop: 'fileExtension',
width: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -8,14 +8,18 @@ export const columns = [
{ {
label: 'ID', label: 'ID',
prop: 'id', prop: 'id',
fixed: 'left',
width: 50,
}, },
{ {
label: '日志标题', label: '日志标题',
prop: 'title', prop: 'title',
width: 100,
}, },
{ {
label: '日志类型', label: '日志类型',
prop: 'typeText', prop: 'typeText',
width: 100,
// // 此处作为案例,禁止删除 // // 此处作为案例,禁止删除
// render(record) { // render(record) {
// let typeText = '' // let typeText = ''
@ -44,14 +48,17 @@ export const columns = [
{ {
label: '模板编号', label: '模板编号',
prop: 'number', prop: 'number',
width: 100,
}, },
{ {
label: '接收人手机', label: '接收人手机',
prop: 'receiveMobile', prop: 'receiveMobile',
width: 120,
}, },
{ {
label: '接收人类型', label: '接收人类型',
prop: 'receiveType', prop: 'receiveType',
width: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.receiveType) { switch (record.row.receiveType) {
@ -73,10 +80,12 @@ export const columns = [
{ {
label: '请求耗时', label: '请求耗时',
prop: 'consumeTime', prop: 'consumeTime',
width: 100,
}, },
{ {
label: '日志状态', label: '日志状态',
prop: 'status', prop: 'status',
width: 100,
render(record) { render(record) {
return h('span', record.row.status === 1 ? '已读' : '未读'); return h('span', record.row.status === 1 ? '已读' : '未读');
}, },
@ -84,6 +93,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100,
}, },
{ {
label: '创建时间', label: '创建时间',