diff --git a/src/views/content/ad/columns.ts b/src/views/content/ad/columns.ts index f198448..d967c81 100644 --- a/src/views/content/ad/columns.ts +++ b/src/views/content/ad/columns.ts @@ -7,7 +7,8 @@ export const columns = [ { label: 'ID', prop: 'id', - width: 100, + fixed: 'left', + width: 50, }, { label: '广告标题', @@ -27,6 +28,7 @@ export const columns = [ { label: '广告封面', prop: 'cover', + width: 100, render(record) { return h(ElAvatar, { size: 35, @@ -35,11 +37,11 @@ export const columns = [ fit: 'fill', }); }, - width: 100, }, { label: '广告类型', prop: 'type', + width: 100, render(record) { let typeText = ''; switch (record.row.type) { @@ -61,6 +63,7 @@ export const columns = [ { label: '广告状态', prop: 'status', + width: 100, render(record) { return h( ElTag, @@ -76,6 +79,7 @@ export const columns = [ { label: '广告尺寸', prop: 'size', + width: 100, render(record) { return record.row.width + 'x' + record.row.height; }, @@ -83,6 +87,7 @@ export const columns = [ { label: '投放时间', prop: 'time', + width: 300, render(record) { return record.row.startTime + '-' + record.row.endTime; }, @@ -90,14 +95,17 @@ export const columns = [ { label: '点击量', prop: 'click', + width: 100, }, { label: '排序', prop: 'sort', + width: 100, }, { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/content/adSort/columns.ts b/src/views/content/adSort/columns.ts index 4cb58fe..6ae7ff9 100644 --- a/src/views/content/adSort/columns.ts +++ b/src/views/content/adSort/columns.ts @@ -8,19 +8,23 @@ export const columns = [ { label: 'ID', prop: 'id', - width: 100, + fixed: 'left', + width: 50, }, { label: '广告位名称', prop: 'name', + width: 200, }, { label: '广告位编号', prop: 'location', + width: 100, }, { label: '广告位类型', prop: 'type', + width: 100, render(record) { let typeText = ''; switch (record.row.type) { @@ -42,10 +46,12 @@ export const columns = [ { label: '排序', prop: 'sort', + width: 100, }, { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/content/article/columns.ts b/src/views/content/article/columns.ts index 2576514..6c29b1b 100644 --- a/src/views/content/article/columns.ts +++ b/src/views/content/article/columns.ts @@ -8,12 +8,13 @@ export const columns = [ { label: 'ID', prop: 'id', - width: 100, + fixed: 'left', + width: 50, }, { label: '文章标题', prop: 'title', - width: 300, + width: 250, render(record) { return h( 'a', @@ -28,6 +29,7 @@ export const columns = [ { label: '文章封面', prop: 'cover', + width: 100, render(record) { return h(ElAvatar, { size: 48, @@ -36,15 +38,16 @@ export const columns = [ fit: 'fill', }); }, - width: 100, }, { label: '文章分类', prop: 'categoryName', + width: 100, }, { label: '文章作者', prop: 'author', + width: 100, }, // { // label: '文章链接', @@ -54,6 +57,7 @@ export const columns = [ { label: '文章状态', prop: 'status', + width: 100, render(record) { return h( ElTag, @@ -69,14 +73,17 @@ export const columns = [ { label: '点击率', prop: 'click', + width: 100, }, { label: '文章排序', prop: 'sort', + width: 100, }, { label: '创建人', prop: 'createUser', + width: 100, }, { label: '创建时间', diff --git a/src/views/content/category/index.vue b/src/views/content/category/index.vue index 571ccdd..61f8a55 100644 --- a/src/views/content/category/index.vue +++ b/src/views/content/category/index.vue @@ -23,10 +23,10 @@ :height="fwbHeight" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - + - +