设置列最小宽度

This commit is contained in:
zjl 2024-12-16 10:47:04 +08:00
parent a657c26329
commit 77e3ec78df
33 changed files with 208 additions and 198 deletions

View File

@ -13,7 +13,7 @@ export const columns = [
{ {
label: '广告标题', label: '广告标题',
prop: 'title', prop: 'title',
width: 250, minWidth: 250,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -28,7 +28,7 @@ export const columns = [
{ {
label: '广告封面', label: '广告封面',
prop: 'cover', prop: 'cover',
width: 100, minWidth: 100,
render(record) { render(record) {
return h(ElAvatar, { return h(ElAvatar, {
size: 35, size: 35,
@ -41,7 +41,7 @@ export const columns = [
{ {
label: '广告类型', label: '广告类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -63,7 +63,7 @@ export const columns = [
{ {
label: '广告状态', label: '广告状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -79,7 +79,7 @@ export const columns = [
{ {
label: '广告尺寸', label: '广告尺寸',
prop: 'size', prop: 'size',
width: 100, minWidth: 100,
render(record) { render(record) {
return record.row.width + 'x' + record.row.height; return record.row.width + 'x' + record.row.height;
}, },
@ -87,7 +87,7 @@ export const columns = [
{ {
label: '投放时间', label: '投放时间',
prop: 'time', prop: 'time',
width: 300, minWidth: 300,
render(record) { render(record) {
return record.row.startTime + '-' + record.row.endTime; return record.row.startTime + '-' + record.row.endTime;
}, },
@ -95,17 +95,17 @@ export const columns = [
{ {
label: '点击量', label: '点击量',
prop: 'click', prop: 'click',
width: 100, minWidth: 100,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,17 +14,17 @@ export const columns = [
{ {
label: '广告位名称', label: '广告位名称',
prop: 'name', prop: 'name',
width: 200, minWidth: 200,
}, },
{ {
label: '广告位编号', label: '广告位编号',
prop: 'location', prop: 'location',
width: 100, minWidth: 100,
}, },
{ {
label: '广告位类型', label: '广告位类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -46,12 +46,12 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,7 +14,7 @@ export const columns = [
{ {
label: '文章标题', label: '文章标题',
prop: 'title', prop: 'title',
width: 250, minWidth: 250,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -29,7 +29,7 @@ export const columns = [
{ {
label: '文章封面', label: '文章封面',
prop: 'cover', prop: 'cover',
width: 100, minWidth: 100,
render(record) { render(record) {
return h(ElAvatar, { return h(ElAvatar, {
size: 48, size: 48,
@ -42,12 +42,12 @@ export const columns = [
{ {
label: '文章分类', label: '文章分类',
prop: 'categoryName', prop: 'categoryName',
width: 100, minWidth: 100,
}, },
{ {
label: '文章作者', label: '文章作者',
prop: 'author', prop: 'author',
width: 100, minWidth: 100,
}, },
// { // {
// label: '文章链接', // label: '文章链接',
@ -57,7 +57,7 @@ export const columns = [
{ {
label: '文章状态', label: '文章状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -73,17 +73,17 @@ export const columns = [
{ {
label: '点击率', label: '点击率',
prop: 'click', prop: 'click',
width: 100, minWidth: 100,
}, },
{ {
label: '文章排序', label: '文章排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,22 +14,22 @@ export const columns = [
{ {
label: '位置描述', label: '位置描述',
prop: 'description', prop: 'description',
width: 200, minWidth: 200,
}, },
{ {
label: '位置编号', label: '位置编号',
prop: 'location', prop: 'location',
width: 100, minWidth: 100,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,7 +14,7 @@ export const columns = [
{ {
label: '位置描述', label: '位置描述',
prop: 'description', prop: 'description',
width: 250, minWidth: 250,
render(record) { render(record) {
return record.row.layoutDescription + '>>' + record.row.layoutLocation; return record.row.layoutDescription + '>>' + record.row.layoutLocation;
}, },
@ -22,12 +22,12 @@ export const columns = [
{ {
label: '推荐类型', label: '推荐类型',
prop: 'typeText', prop: 'typeText',
width: 100, minWidth: 100,
}, },
{ {
label: '推荐ID', label: '推荐ID',
prop: 'typeId', prop: 'typeId',
width: 100, minWidth: 100,
}, },
// { // {
// label: '推荐图片', // label: '推荐图片',
@ -45,17 +45,17 @@ export const columns = [
{ {
label: '推荐标题', label: '推荐标题',
prop: 'typeTitle', prop: 'typeTitle',
width: 200, minWidth: 200,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -11,14 +11,17 @@ export const columns = [
{ {
label: '文章标题', label: '文章标题',
prop: 'title', prop: 'title',
minWidth: 250,
}, },
{ {
label: '文章分类', label: '文章分类',
prop: 'categoryName', prop: 'categoryName',
minWidth: 100,
}, },
{ {
label: '文章状态', label: '文章状态',
prop: 'status', prop: 'status',
minWidth: 100,
render(record) { render(record) {
return h('span', record.row.status === 1 ? '下架' : '正常'); return h('span', record.row.status === 1 ? '下架' : '正常');
}, },
@ -26,9 +29,11 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
minWidth: 180,
}, },
]; ];

View File

@ -11,7 +11,7 @@ export const columns2 = [
{ {
label: '通知标题', label: '通知标题',
prop: 'title', prop: 'title',
width: 300, minWidth: 250,
}, },
{ {
label: '通知类型', label: '通知类型',
@ -19,6 +19,7 @@ export const columns2 = [
// render(record) { // render(record) {
// return h('span', record.row.type === 1 ? '通知' : '公告'); // return h('span', record.row.type === 1 ? '通知' : '公告');
// }, // },
minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -34,6 +35,7 @@ export const columns2 = [
{ {
label: '通知状态', label: '通知状态',
prop: 'status', prop: 'status',
minWidth: 100,
// render(record) { // render(record) {
// return h('span', record.row.status === 1 ? '正常' : '关闭') // return h('span', record.row.status === 1 ? '正常' : '关闭')
// }, // },
@ -52,14 +54,16 @@ export const columns2 = [
{ {
label: '点击率', label: '点击率',
prop: 'clickNum', prop: 'clickNum',
minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
width: 180, minWidth: 180,
}, },
]; ];

View File

@ -14,12 +14,12 @@ export const columns = [
{ {
label: '友链名称', label: '友链名称',
prop: 'name', prop: 'name',
width: 150, minWidth: 150,
}, },
{ {
label: '友链类型', label: '友链类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
return h('span', record.row.type === 1 ? '友情链接' : '合作伙伴'); return h('span', record.row.type === 1 ? '友情链接' : '合作伙伴');
}, },
@ -27,7 +27,7 @@ export const columns = [
{ {
label: '友链形式', label: '友链形式',
prop: 'form', prop: 'form',
width: 100, minWidth: 100,
render(record) { render(record) {
return h('span', record.row.form === 1 ? '文字链接' : '图片链接'); return h('span', record.row.form === 1 ? '文字链接' : '图片链接');
}, },
@ -35,7 +35,7 @@ export const columns = [
{ {
label: '友链地址', label: '友链地址',
prop: 'url', prop: 'url',
width: 200, minWidth: 200,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -57,7 +57,7 @@ export const columns = [
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -73,12 +73,12 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,21 +14,21 @@ export const columns = [
{ {
label: '标签名称', label: '标签名称',
prop: 'name', prop: 'name',
width: 200, minWidth: 200,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',
prop: 'createTime', prop: 'createTime',
width: 180, minWidth: 180,
}, },
]; ];

View File

@ -14,16 +14,16 @@ export const columns = [
{ {
label: '配置名称', label: '配置名称',
prop: 'name', prop: 'name',
width: 100, minWidth: 100,
}, },
{ {
label: '配置编码', label: '配置编码',
prop: 'code', prop: 'code',
width: 100, minWidth: 100,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
]; ];

View File

@ -13,22 +13,22 @@ export const columns = [
{ {
label: '配置项名称', label: '配置项名称',
prop: 'name', prop: 'name',
width: 100, minWidth: 100,
}, },
{ {
label: '配置项编码', label: '配置项编码',
prop: 'code', prop: 'code',
width: 150, minWidth: 150,
}, },
{ {
label: '配置项值', label: '配置项值',
prop: 'value', prop: 'value',
width: 200, minWidth: 200,
}, },
{ {
label: '配置项类型', label: '配置项类型',
prop: 'type', prop: 'type',
width: 150, minWidth: 150,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -95,7 +95,7 @@ export const columns = [
{ {
label: '配置项状态', label: '配置项状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -111,6 +111,6 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
]; ];

View File

@ -11,11 +11,11 @@ export const columns = [
{ {
label: '字典名称', label: '字典名称',
prop: 'name', prop: 'name',
width: 100, minWidth: 100,
}, },
{ {
label: '字典编码', label: '字典编码',
prop: 'code', prop: 'code',
width: 100, minWidth: 100,
}, },
]; ];

View File

@ -11,32 +11,32 @@ export const columns = [
{ {
label: '字典名称', label: '字典名称',
prop: 'name', prop: 'name',
width: 150, minWidth: 150,
}, },
{ {
label: '字典项值', label: '字典项值',
prop: 'value', prop: 'value',
width: 150, minWidth: 150,
}, },
{ {
label: '字典编码', label: '字典编码',
prop: 'dictCode', prop: 'dictCode',
width: 150, minWidth: 150,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 200, minWidth: 200,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,12 +14,12 @@ export const columns = [
{ {
label: '消息标题', label: '消息标题',
prop: 'title', prop: 'title',
width: 250, minWidth: 250,
}, },
{ {
label: '消息类型', label: '消息类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -41,7 +41,7 @@ export const columns = [
{ {
label: '业务类型', label: '业务类型',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h('span', record.row.bizType === 1 ? '订单' : '其他'); return h('span', record.row.bizType === 1 ? '订单' : '其他');
}, },
@ -49,7 +49,7 @@ export const columns = [
{ {
label: '消息状态', label: '消息状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h('span', record.row.status === 1 ? '已读' : '未读'); return h('span', record.row.status === 1 ? '已读' : '未读');
}, },
@ -58,7 +58,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,12 +14,12 @@ export const columns = [
{ {
label: '通知标题', label: '通知标题',
prop: 'title', prop: 'title',
width: 250, minWidth: 250,
}, },
{ {
label: '通知封面', label: '通知封面',
prop: 'cover', prop: 'cover',
width: 100, minWidth: 100,
render(record) { render(record) {
return h(ElAvatar, { return h(ElAvatar, {
size: 48, size: 48,
@ -35,6 +35,7 @@ export const columns = [
// render(record) { // render(record) {
// return h('span', record.row.type === 1 ? '通知' : '公告'); // return h('span', record.row.type === 1 ? '通知' : '公告');
// }, // },
minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -50,7 +51,7 @@ export const columns = [
{ {
label: '通知状态', label: '通知状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
// render(record) { // render(record) {
// return h('span', record.row.status === 1 ? '正常' : '关闭') // return h('span', record.row.status === 1 ? '正常' : '关闭')
// }, // },
@ -69,12 +70,12 @@ export const columns = [
{ {
label: '点击率', label: '点击率',
prop: 'clickNum', prop: 'clickNum',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,22 +14,22 @@ export const columns = [
{ {
label: '参数名称', label: '参数名称',
prop: 'name', prop: 'name',
width: 200, minWidth: 200,
}, },
{ {
label: '参数编码', label: '参数编码',
prop: 'code', prop: 'code',
width: 250, minWidth: 250,
}, },
{ {
label: '参数值', label: '参数值',
prop: 'value', prop: 'value',
width: 200, minWidth: 200,
}, },
{ {
label: '参数类型', label: '参数类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -45,7 +45,7 @@ export const columns = [
{ {
label: '参数状态', label: '参数状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -61,17 +61,17 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 150, minWidth: 150,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,17 +14,17 @@ export const columns = [
{ {
label: '模板名称', label: '模板名称',
prop: 'title', prop: 'title',
width: 200, minWidth: 200,
}, },
{ {
label: '模板编码', label: '模板编码',
prop: 'code', prop: 'code',
width: 150, minWidth: 150,
}, },
{ {
label: '模板类型', label: '模板类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -46,12 +46,12 @@ export const columns = [
{ {
label: '文件名称', label: '文件名称',
prop: 'fileName', prop: 'fileName',
width: 100, minWidth: 100,
}, },
{ {
label: '文件路径', label: '文件路径',
prop: 'filePath', prop: 'filePath',
width: 150, minWidth: 150,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -66,7 +66,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,22 +14,22 @@ export const columns = [
{ {
label: '模板名称', label: '模板名称',
prop: 'name', prop: 'name',
width: 150, minWidth: 150,
}, },
{ {
label: '模板编码', label: '模板编码',
prop: 'code', prop: 'code',
width: 150, minWidth: 150,
}, },
{ {
label: '文件名称', label: '文件名称',
prop: 'fileName', prop: 'fileName',
width: 150, minWidth: 150,
}, },
{ {
label: '文件路径', label: '文件路径',
prop: 'filePath', prop: 'filePath',
width: 150, minWidth: 150,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -44,7 +44,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,22 +14,22 @@ export const columns = [
{ {
label: '模板编号', label: '模板编号',
prop: 'number', prop: 'number',
width: 100, minWidth: 100,
}, },
{ {
label: '模板名称', label: '模板名称',
prop: 'title', prop: 'title',
width: 200, minWidth: 200,
}, },
{ {
label: '模板编码', label: '模板编码',
prop: 'code', prop: 'code',
width: 150, minWidth: 150,
}, },
{ {
label: '消息类型', label: '消息类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -51,12 +51,12 @@ export const columns = [
{ {
label: '模板内容', label: '模板内容',
prop: 'content', prop: 'content',
width: 350, minWidth: 350,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,22 +14,22 @@ export const columns = [
{ {
label: '模板编号', label: '模板编号',
prop: 'number', prop: 'number',
width: 100, minWidth: 100,
}, },
{ {
label: '模板名称', label: '模板名称',
prop: 'title', prop: 'title',
width: 150, minWidth: 150,
}, },
{ {
label: '模板编码', label: '模板编码',
prop: 'code', prop: 'code',
width: 150, minWidth: 150,
}, },
{ {
label: '模板类型', label: '模板类型',
prop: 'type', prop: 'type',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.type) { switch (record.row.type) {
@ -51,12 +51,12 @@ export const columns = [
{ {
label: '模板内容', label: '模板内容',
prop: 'content', prop: 'content',
width: 350, minWidth: 350,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

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

View File

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

View File

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

View File

@ -14,12 +14,12 @@ export const columns = [
{ {
label: '数据源名称', label: '数据源名称',
prop: 'name', prop: 'name',
width: 150, minWidth: 150,
}, },
{ {
label: '数据库类型', label: '数据库类型',
prop: 'dbType', prop: 'dbType',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.dbType) { switch (record.row.dbType) {
@ -47,37 +47,37 @@ export const columns = [
{ {
label: '数据源编码', label: '数据源编码',
prop: 'code', prop: 'code',
width: 100, minWidth: 100,
}, },
{ {
label: '数据库驱动类', label: '数据库驱动类',
prop: 'dbDriver', prop: 'dbDriver',
width: 150, minWidth: 150,
}, },
{ {
label: '数据源地址', label: '数据源地址',
prop: 'dbUrl', prop: 'dbUrl',
width: 100, minWidth: 100,
}, },
{ {
label: '数据库名称', label: '数据库名称',
prop: 'dbName', prop: 'dbName',
width: 100, minWidth: 100,
}, },
{ {
label: '数据库用户名', label: '数据库用户名',
prop: 'dbUsername', prop: 'dbUsername',
width: 120, minWidth: 120,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 200, minWidth: 200,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,32 +14,32 @@ export const columns = [
{ {
label: '任务名称', label: '任务名称',
prop: 'jobName', prop: 'jobName',
width: 200, minWidth: 200,
}, },
{ {
label: '任务分组', label: '任务分组',
prop: 'jobGroup', prop: 'jobGroup',
width: 100, minWidth: 100,
}, },
{ {
label: '任务触发器', label: '任务触发器',
prop: 'jobTrigger', prop: 'jobTrigger',
width: 150, minWidth: 150,
}, },
{ {
label: '执行表达式', label: '执行表达式',
prop: 'cronExpression', prop: 'cronExpression',
width: 150, minWidth: 150,
}, },
{ {
label: '执行策略', label: '执行策略',
prop: 'executePolicyText', prop: 'executePolicyText',
width: 100, minWidth: 100,
}, },
{ {
label: '同步任务', label: '同步任务',
prop: 'isSync', prop: 'isSync',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -55,18 +55,18 @@ export const columns = [
{ {
label: 'URL', label: 'URL',
prop: 'url', prop: 'url',
width: 150, minWidth: 150,
}, },
{ {
label: '状态', label: '状态',
isSlot: true, isSlot: true,
value: 'status', value: 'status',
width: 100, minWidth: 100,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 200, minWidth: 200,
}, },
// { // {
// label: '状态', // label: '状态',

View File

@ -14,32 +14,32 @@ export const columns = [
{ {
label: '任务名称', label: '任务名称',
prop: 'jobName', prop: 'jobName',
width: 200, minWidth: 200,
}, },
{ {
label: '任务组名', label: '任务组名',
prop: 'jobGroup', prop: 'jobGroup',
width: 100, minWidth: 100,
}, },
{ {
label: '任务触发器', label: '任务触发器',
prop: 'jobTrigger', prop: 'jobTrigger',
width: 200, minWidth: 200,
}, },
{ {
label: '任务日志信息', label: '任务日志信息',
prop: 'jobMessage', prop: 'jobMessage',
width: 300, minWidth: 300,
}, },
{ {
label: '执行表达式', label: '执行表达式',
prop: 'cronExpression', prop: 'cronExpression',
width: 150, minWidth: 150,
}, },
{ {
label: '执行状态', label: '执行状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
switch (record.row.status) { switch (record.row.status) {
@ -64,21 +64,21 @@ export const columns = [
{ {
label: '任务开始时间', label: '任务开始时间',
prop: 'startTime', prop: 'startTime',
width: 180, minWidth: 180,
}, },
{ {
label: '任务结束时间', label: '任务结束时间',
prop: 'endTime', prop: 'endTime',
width: 180, minWidth: 180,
}, },
{ {
label: '任务执行时间', label: '任务执行时间',
prop: 'createTime', prop: 'createTime',
width: 180, minWidth: 180,
}, },
{ {
label: '任务执行耗时', label: '任务执行耗时',
prop: 'consumeTime', prop: 'consumeTime',
width: 120, minWidth: 120,
}, },
]; ];

View File

@ -14,12 +14,12 @@ export const columns = [
{ {
label: '职级名称', label: '职级名称',
prop: 'name', prop: 'name',
width: 100, minWidth: 200,
}, },
{ {
label: '职级状态', label: '职级状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -35,12 +35,12 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,7 +14,7 @@ export const columns = [
{ {
label: '访客', label: '访客',
align: 'left', align: 'left',
width: 200, minWidth: 200,
render(record) { render(record) {
return h('div', [ return h('div', [
h( h(
@ -46,7 +46,7 @@ export const columns = [
{ {
label: '请求接口', label: '请求接口',
align: 'left', align: 'left',
width: 200, minWidth: 200,
render(record) { render(record) {
return h('div', [ return h('div', [
h( h(
@ -67,7 +67,7 @@ export const columns = [
{ {
label: '接口响应', label: '接口响应',
align: 'left', align: 'left',
width: 250, minWidth: 250,
render(record) { render(record) {
return h('div', [ return h('div', [
h('span', '状态:'), h('span', '状态:'),
@ -95,7 +95,7 @@ export const columns = [
{ {
label: '操作来源', label: '操作来源',
align: 'left', align: 'left',
width: 200, minWidth: 200,
render(record) { render(record) {
return h('div', [ return h('div', [
h('div', '系统:' + record.row.os), h('div', '系统:' + record.row.os),

View File

@ -14,7 +14,7 @@ export const columns = [
{ {
label: '访客', label: '访客',
align: 'left', align: 'left',
width: 200, minWidth: 200,
render(record) { render(record) {
return h('div', [ return h('div', [
h( h(
@ -46,7 +46,7 @@ export const columns = [
{ {
label: '请求接口', label: '请求接口',
align: 'left', align: 'left',
width: 200, minWidth: 200,
render(record) { render(record) {
return h('div', [ return h('div', [
h( h(
@ -67,7 +67,7 @@ export const columns = [
{ {
label: '接口响应', label: '接口响应',
align: 'left', align: 'left',
width: 250, minWidth: 250,
render(record) { render(record) {
return h('div', [ return h('div', [
h('span', '状态:'), h('span', '状态:'),
@ -95,7 +95,7 @@ export const columns = [
{ {
label: '操作来源', label: '操作来源',
align: 'left', align: 'left',
width: 200, minWidth: 200,
render(record) { render(record) {
return h('div', [ return h('div', [
h('div', '系统:' + record.row.os), h('div', '系统:' + record.row.os),

View File

@ -14,12 +14,12 @@ export const columns = [
{ {
label: '岗位名称', label: '岗位名称',
prop: 'name', prop: 'name',
width: 100, minWidth: 100,
}, },
{ {
label: '岗位状态', label: '岗位状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -35,12 +35,12 @@ export const columns = [
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,27 +14,27 @@ export const columns = [
{ {
label: '角色名称', label: '角色名称',
prop: 'name', prop: 'name',
width: 150, minWidth: 150,
}, },
{ {
label: '角色编码', label: '角色编码',
prop: 'code', prop: 'code',
width: 250, minWidth: 250,
}, },
{ {
label: '排序', label: '排序',
prop: 'sort', prop: 'sort',
width: 100, minWidth: 100,
}, },
{ {
label: '备注', label: '备注',
prop: 'note', prop: 'note',
width: 200, minWidth: 200,
}, },
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,17 +14,17 @@ export const columns = [
{ {
label: '租户名称', label: '租户名称',
prop: 'name', prop: 'name',
width: 150, minWidth: 150,
}, },
{ {
label: '租户编码', label: '租户编码',
prop: 'code', prop: 'code',
width: 100, minWidth: 100,
}, },
{ {
label: '租户图片', label: '租户图片',
prop: 'image', prop: 'image',
width: 100, minWidth: 100,
render(record) { render(record) {
return h(ElAvatar, { return h(ElAvatar, {
size: 48, size: 48,
@ -37,32 +37,32 @@ export const columns = [
{ {
label: '统一社会信用代码', label: '统一社会信用代码',
prop: 'license', prop: 'license',
width: 160, minWidth: 160,
}, },
{ {
label: '租户限额', label: '租户限额',
prop: 'number', prop: 'number',
width: 100, minWidth: 100,
}, },
{ {
label: '租户人数', label: '租户人数',
prop: 'userNum', prop: 'userNum',
width: 100, minWidth: 100,
}, },
{ {
label: '到期时间', label: '到期时间',
prop: 'expireTime', prop: 'expireTime',
width: 180, minWidth: 180,
}, },
{ {
label: '联系人姓名', label: '联系人姓名',
prop: 'contactUser', prop: 'contactUser',
width: 140, minWidth: 140,
}, },
{ {
label: '联系人电话', label: '联系人电话',
prop: 'contactMobile', prop: 'contactMobile',
width: 140, minWidth: 140,
}, },
{ {
label: '联系人姓名', label: '联系人姓名',
@ -72,12 +72,12 @@ export const columns = [
{ {
label: '联系人邮箱', label: '联系人邮箱',
prop: 'contactEmail', prop: 'contactEmail',
width: 200, minWidth: 200,
}, },
{ {
label: '租户网址', label: '租户网址',
prop: 'contactSite', prop: 'contactSite',
width: 140, minWidth: 140,
render(record) { render(record) {
return h( return h(
'a', 'a',
@ -92,7 +92,7 @@ export const columns = [
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -108,7 +108,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',

View File

@ -14,17 +14,17 @@ export const columns = [
{ {
label: '登录账号', label: '登录账号',
prop: 'username', prop: 'username',
width: 100, minWidth: 100,
}, },
{ {
label: '用户姓名', label: '用户姓名',
prop: 'realname', prop: 'realname',
width: 100, minWidth: 100,
}, },
{ {
label: '头像', label: '头像',
prop: 'avatar', prop: 'avatar',
width: 100, minWidth: 100,
render(record) { render(record) {
return h(ElAvatar, { return h(ElAvatar, {
size: 48, size: 48,
@ -37,7 +37,7 @@ export const columns = [
{ {
label: '性别', label: '性别',
prop: 'gender', prop: 'gender',
width: 100, minWidth: 100,
render(record) { render(record) {
let typeText = ''; let typeText = '';
let color = ''; let color = '';
@ -71,12 +71,12 @@ export const columns = [
{ {
label: '手机号', label: '手机号',
prop: 'mobile', prop: 'mobile',
width: 160, minWidth: 160,
}, },
{ {
label: '用户角色', label: '用户角色',
prop: 'role', prop: 'role',
width: 100, minWidth: 100,
render(record) { render(record) {
let roleNames = ''; let roleNames = '';
if (record.row.roles.length > 0) { if (record.row.roles.length > 0) {
@ -88,22 +88,22 @@ export const columns = [
{ {
label: '职级', label: '职级',
prop: 'levelName', prop: 'levelName',
width: 100, minWidth: 100,
}, },
{ {
label: '岗位', label: '岗位',
prop: 'positionName', prop: 'positionName',
width: 100, minWidth: 100,
}, },
{ {
label: '部门', label: '部门',
prop: 'deptName', prop: 'deptName',
width: 160, minWidth: 160,
}, },
{ {
label: '状态', label: '状态',
prop: 'status', prop: 'status',
width: 100, minWidth: 100,
render(record) { render(record) {
return h( return h(
ElTag, ElTag,
@ -119,7 +119,7 @@ export const columns = [
{ {
label: '创建人', label: '创建人',
prop: 'createUser', prop: 'createUser',
width: 100, minWidth: 100,
}, },
{ {
label: '创建时间', label: '创建时间',