diff --git a/src/views/logger/emailLog/columns.ts b/src/views/logger/emailLog/columns.ts index d2477e1..3046891 100644 --- a/src/views/logger/emailLog/columns.ts +++ b/src/views/logger/emailLog/columns.ts @@ -8,14 +8,18 @@ export const columns = [ { label: 'ID', prop: 'id', + fixed: 'left', + width: 50, }, { label: '日志标题', prop: 'title', + width: 250, }, { label: '日志类型', prop: 'type', + width: 100, render(record) { let typeText = ''; switch (record.row.type) { @@ -43,14 +47,17 @@ export const columns = [ { label: '模板编号', prop: 'code', + width: 150, }, { label: '接收人邮箱', prop: 'receiveEmail', + width: 150, }, { label: '接收人类型', prop: 'receiveType', + width: 100, render(record) { let typeText = ''; switch (record.row.receiveType) { @@ -72,10 +79,12 @@ export const columns = [ { label: '请求耗时', prop: 'consumeTime', + width: 100, }, { label: '日志状态', prop: 'status', + width: 100, render(record) { return h('span', record.row.status === 1 ? '已读' : '未读'); }, @@ -83,9 +92,11 @@ export const columns = [ { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', prop: 'createTime', + width: 180, }, ]; diff --git a/src/views/logger/fileLog/columns.ts b/src/views/logger/fileLog/columns.ts index b9ad6fa..7f1a81e 100644 --- a/src/views/logger/fileLog/columns.ts +++ b/src/views/logger/fileLog/columns.ts @@ -8,10 +8,13 @@ export const columns = [ { label: 'ID', prop: 'id', + fixed: 'left', + width: 50, }, { label: '文件名称', prop: 'originalName', + width: 200, render(record) { return h( 'a', @@ -26,6 +29,7 @@ export const columns = [ { label: '日志类型', prop: 'type', + width: 100, render(record) { let typeText = ''; switch (record.row.type) { @@ -47,10 +51,12 @@ export const columns = [ { label: '文件类型', prop: 'fileType', + width: 100, }, { label: '文件大小', prop: 'fileSize', + width: 100, render(record) { return h('span', record.row.fileSize + 'B'); }, @@ -58,10 +64,12 @@ export const columns = [ { label: '文件后缀', prop: 'fileExtension', + width: 100, }, { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/logger/smsLog/columns.ts b/src/views/logger/smsLog/columns.ts index 61f56aa..fdea25e 100644 --- a/src/views/logger/smsLog/columns.ts +++ b/src/views/logger/smsLog/columns.ts @@ -8,14 +8,18 @@ export const columns = [ { label: 'ID', prop: 'id', + fixed: 'left', + width: 50, }, { label: '日志标题', prop: 'title', + width: 100, }, { label: '日志类型', prop: 'typeText', + width: 100, // // 此处作为案例,禁止删除 // render(record) { // let typeText = '' @@ -44,14 +48,17 @@ export const columns = [ { label: '模板编号', prop: 'number', + width: 100, }, { label: '接收人手机', prop: 'receiveMobile', + width: 120, }, { label: '接收人类型', prop: 'receiveType', + width: 100, render(record) { let typeText = ''; switch (record.row.receiveType) { @@ -73,10 +80,12 @@ export const columns = [ { label: '请求耗时', prop: 'consumeTime', + width: 100, }, { label: '日志状态', prop: 'status', + width: 100, render(record) { return h('span', record.row.status === 1 ? '已读' : '未读'); }, @@ -84,6 +93,7 @@ export const columns = [ { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间',