优化资讯管理
This commit is contained in:
parent
d682edc661
commit
7e7fbb5c4c
@ -7,7 +7,8 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '广告标题',
|
label: '广告标题',
|
||||||
@ -27,6 +28,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '广告封面',
|
label: '广告封面',
|
||||||
prop: 'cover',
|
prop: 'cover',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h(ElAvatar, {
|
return h(ElAvatar, {
|
||||||
size: 35,
|
size: 35,
|
||||||
@ -35,11 +37,11 @@ export const columns = [
|
|||||||
fit: 'fill',
|
fit: 'fill',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
width: 100,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '广告类型',
|
label: '广告类型',
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
let typeText = '';
|
let typeText = '';
|
||||||
switch (record.row.type) {
|
switch (record.row.type) {
|
||||||
@ -61,6 +63,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '广告状态',
|
label: '广告状态',
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h(
|
return h(
|
||||||
ElTag,
|
ElTag,
|
||||||
@ -76,6 +79,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '广告尺寸',
|
label: '广告尺寸',
|
||||||
prop: 'size',
|
prop: 'size',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return record.row.width + 'x' + record.row.height;
|
return record.row.width + 'x' + record.row.height;
|
||||||
},
|
},
|
||||||
@ -83,6 +87,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '投放时间',
|
label: '投放时间',
|
||||||
prop: 'time',
|
prop: 'time',
|
||||||
|
width: 300,
|
||||||
render(record) {
|
render(record) {
|
||||||
return record.row.startTime + '-' + record.row.endTime;
|
return record.row.startTime + '-' + record.row.endTime;
|
||||||
},
|
},
|
||||||
@ -90,14 +95,17 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '点击量',
|
label: '点击量',
|
||||||
prop: 'click',
|
prop: 'click',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
@ -8,19 +8,23 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '广告位名称',
|
label: '广告位名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '广告位编号',
|
label: '广告位编号',
|
||||||
prop: 'location',
|
prop: 'location',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '广告位类型',
|
label: '广告位类型',
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
let typeText = '';
|
let typeText = '';
|
||||||
switch (record.row.type) {
|
switch (record.row.type) {
|
||||||
@ -42,10 +46,12 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
@ -8,12 +8,13 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '文章标题',
|
label: '文章标题',
|
||||||
prop: 'title',
|
prop: 'title',
|
||||||
width: 300,
|
width: 250,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h(
|
return h(
|
||||||
'a',
|
'a',
|
||||||
@ -28,6 +29,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '文章封面',
|
label: '文章封面',
|
||||||
prop: 'cover',
|
prop: 'cover',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h(ElAvatar, {
|
return h(ElAvatar, {
|
||||||
size: 48,
|
size: 48,
|
||||||
@ -36,15 +38,16 @@ export const columns = [
|
|||||||
fit: 'fill',
|
fit: 'fill',
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
width: 100,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '文章分类',
|
label: '文章分类',
|
||||||
prop: 'categoryName',
|
prop: 'categoryName',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '文章作者',
|
label: '文章作者',
|
||||||
prop: 'author',
|
prop: 'author',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// label: '文章链接',
|
// label: '文章链接',
|
||||||
@ -54,6 +57,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '文章状态',
|
label: '文章状态',
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h(
|
return h(
|
||||||
ElTag,
|
ElTag,
|
||||||
@ -69,14 +73,17 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '点击率',
|
label: '点击率',
|
||||||
prop: 'click',
|
prop: 'click',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '文章排序',
|
label: '文章排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
@ -23,10 +23,10 @@
|
|||||||
:height="fwbHeight"
|
:height="fwbHeight"
|
||||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
: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="sort" min-width="100" />
|
||||||
<el-table-column align="center" label="分类备注" prop="note" 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="创建时间" prop="createTime" min-width="180" />
|
||||||
<el-table-column align="center" label="操作" width="300" fixed="right">
|
<el-table-column align="center" label="操作" width="300" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
@ -8,23 +8,28 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '位置描述',
|
label: '位置描述',
|
||||||
prop: 'description',
|
prop: 'description',
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '位置编号',
|
label: '位置编号',
|
||||||
prop: 'location',
|
prop: 'location',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
@ -8,7 +8,8 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '位置描述',
|
label: '位置描述',
|
||||||
@ -21,10 +22,12 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '推荐类型',
|
label: '推荐类型',
|
||||||
prop: 'typeText',
|
prop: 'typeText',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '推荐ID',
|
label: '推荐ID',
|
||||||
prop: 'typeId',
|
prop: 'typeId',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// label: '推荐图片',
|
// label: '推荐图片',
|
||||||
@ -47,10 +50,12 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
@ -8,15 +8,18 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '友链名称',
|
label: '友链名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '友链类型',
|
label: '友链类型',
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h('span', record.row.type === 1 ? '友情链接' : '合作伙伴');
|
return h('span', record.row.type === 1 ? '友情链接' : '合作伙伴');
|
||||||
},
|
},
|
||||||
@ -24,6 +27,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '友链形式',
|
label: '友链形式',
|
||||||
prop: 'form',
|
prop: 'form',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h('span', record.row.form === 1 ? '文字链接' : '图片链接');
|
return h('span', record.row.form === 1 ? '文字链接' : '图片链接');
|
||||||
},
|
},
|
||||||
@ -53,6 +57,7 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '状态',
|
label: '状态',
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
|
width: 100,
|
||||||
render(record) {
|
render(record) {
|
||||||
return h(
|
return h(
|
||||||
ElTag,
|
ElTag,
|
||||||
@ -68,10 +73,12 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
@ -8,19 +8,23 @@ export const columns = [
|
|||||||
{
|
{
|
||||||
label: 'ID',
|
label: 'ID',
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
width: 100,
|
fixed: 'left',
|
||||||
|
width: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '标签名称',
|
label: '标签名称',
|
||||||
prop: 'name',
|
prop: 'name',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '排序',
|
label: '排序',
|
||||||
prop: 'sort',
|
prop: 'sort',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建人',
|
label: '创建人',
|
||||||
prop: 'createUser',
|
prop: 'createUser',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '创建时间',
|
label: '创建时间',
|
||||||
|
Loading…
Reference in New Issue
Block a user