优化资讯管理

This commit is contained in:
zjl 2024-12-12 15:59:54 +08:00
parent d682edc661
commit 7e7fbb5c4c
8 changed files with 54 additions and 12 deletions

View File

@ -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: '创建时间',

View File

@ -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: '创建时间',

View File

@ -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: '创建时间',

View File

@ -23,10 +23,10 @@
:height="fwbHeight"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
>
<el-table-column label="分类名称" prop="name" min-width="150" show-overflow-tooltip />
<el-table-column label="分类名称" prop="name" min-width="200" show-overflow-tooltip />
<el-table-column align="center" label="分类排序" prop="sort" min-width="100" />
<el-table-column align="center" label="分类备注" prop="note" min-width="100" />
<el-table-column align="center" label="创建人" prop="createUser" min-width="180" />
<el-table-column align="center" label="创建人" prop="createUser" min-width="100" />
<el-table-column align="center" label="创建时间" prop="createTime" min-width="180" />
<el-table-column align="center" label="操作" width="300" fixed="right">
<template #default="{ row }">

View File

@ -8,23 +8,28 @@ export const columns = [
{
label: 'ID',
prop: 'id',
width: 100,
fixed: 'left',
width: 50,
},
{
label: '位置描述',
prop: 'description',
width: 200,
},
{
label: '位置编号',
prop: 'location',
width: 100,
},
{
label: '排序',
prop: 'sort',
width: 100,
},
{
label: '创建人',
prop: 'createUser',
width: 100,
},
{
label: '创建时间',

View File

@ -8,7 +8,8 @@ export const columns = [
{
label: 'ID',
prop: 'id',
width: 100,
fixed: 'left',
width: 50,
},
{
label: '位置描述',
@ -21,10 +22,12 @@ export const columns = [
{
label: '推荐类型',
prop: 'typeText',
width: 100,
},
{
label: '推荐ID',
prop: 'typeId',
width: 100,
},
// {
// label: '推荐图片',
@ -47,10 +50,12 @@ export const columns = [
{
label: '排序',
prop: 'sort',
width: 100,
},
{
label: '创建人',
prop: 'createUser',
width: 100,
},
{
label: '创建时间',

View File

@ -8,15 +8,18 @@ export const columns = [
{
label: 'ID',
prop: 'id',
width: 100,
fixed: 'left',
width: 50,
},
{
label: '友链名称',
prop: 'name',
width: 150,
},
{
label: '友链类型',
prop: 'type',
width: 100,
render(record) {
return h('span', record.row.type === 1 ? '友情链接' : '合作伙伴');
},
@ -24,6 +27,7 @@ export const columns = [
{
label: '友链形式',
prop: 'form',
width: 100,
render(record) {
return h('span', record.row.form === 1 ? '文字链接' : '图片链接');
},
@ -53,6 +57,7 @@ export const columns = [
{
label: '状态',
prop: 'status',
width: 100,
render(record) {
return h(
ElTag,
@ -68,10 +73,12 @@ export const columns = [
{
label: '排序',
prop: 'sort',
width: 100,
},
{
label: '创建人',
prop: 'createUser',
width: 100,
},
{
label: '创建时间',

View File

@ -8,19 +8,23 @@ export const columns = [
{
label: 'ID',
prop: 'id',
width: 100,
fixed: 'left',
width: 50,
},
{
label: '标签名称',
prop: 'name',
width: 100,
},
{
label: '排序',
prop: 'sort',
width: 100,
},
{
label: '创建人',
prop: 'createUser',
width: 100,
},
{
label: '创建时间',