From 7e7fbb5c4c077e315576d6db603b08dd2afae8ff Mon Sep 17 00:00:00 2001 From: zjl Date: Thu, 12 Dec 2024 15:59:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B5=84=E8=AE=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/content/ad/columns.ts | 12 ++++++++++-- src/views/content/adSort/columns.ts | 8 +++++++- src/views/content/article/columns.ts | 13 ++++++++++--- src/views/content/category/index.vue | 4 ++-- src/views/content/layout/columns.ts | 7 ++++++- src/views/content/layoutItem/columns.ts | 7 ++++++- src/views/content/link/columns.ts | 9 ++++++++- src/views/content/tag/columns.ts | 6 +++++- 8 files changed, 54 insertions(+), 12 deletions(-) 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' }" > - + - +