|
@@ -77,6 +77,7 @@ export default {
|
|
const arr = [...this.tableData]
|
|
const arr = [...this.tableData]
|
|
arr.map(item => {
|
|
arr.map(item => {
|
|
item.pri_image = item.pri_image || defaultImg
|
|
item.pri_image = item.pri_image || defaultImg
|
|
|
|
+ item.linkStr = `${item.link.length}---${item.link.substring(item.link.length-16, item.link.length-1)}`
|
|
item.hideStatus = Number(item.hide_status)
|
|
item.hideStatus = Number(item.hide_status)
|
|
})
|
|
})
|
|
return arr
|
|
return arr
|
|
@@ -89,9 +90,10 @@ export default {
|
|
{ label: '标题', prop: 'title', fullShow: true, minWidth: 200 },
|
|
{ label: '标题', prop: 'title', fullShow: true, minWidth: 200 },
|
|
{ label: '分类', prop: 'information_category', type: 'flag', flags: arrToObj(this.$dictData.information_category) },
|
|
{ label: '分类', prop: 'information_category', type: 'flag', flags: arrToObj(this.$dictData.information_category) },
|
|
{ label: '主图', prop: 'pri_image', type: 'img' },
|
|
{ label: '主图', prop: 'pri_image', type: 'img' },
|
|
- // { label: '链接', prop: 'link' },
|
|
|
|
|
|
+ { label: '链接Str', prop: 'linkStr', fullShow: true },
|
|
{ label: '作者', prop: 'author' },
|
|
{ label: '作者', prop: 'author' },
|
|
{ label: '状态', prop: 'hideStatus', type: 'tag', tags: arrToObj(this.$dictData.hide_status) },
|
|
{ label: '状态', prop: 'hideStatus', type: 'tag', tags: arrToObj(this.$dictData.hide_status) },
|
|
|
|
+ { label: '创建时间', prop: 'create_at' },
|
|
{ label: '更新人', prop: 'update_by' },
|
|
{ label: '更新人', prop: 'update_by' },
|
|
{ label: '更新时间', prop: 'update_at' },
|
|
{ label: '更新时间', prop: 'update_at' },
|
|
{ label: '操作', width: 120, type: 'handle2', operations:
|
|
{ label: '操作', width: 120, type: 'handle2', operations:
|