优化推荐模块

This commit is contained in:
zjl 2024-08-30 15:07:57 +08:00
parent 8f3a35e496
commit 24634fe5f3

View File

@ -1,5 +1,5 @@
import { h } from 'vue'; import { h } from 'vue';
import { ElTag } from 'element-plus'; import { ElAvatar, ElTag } from 'element-plus';
export const columns = [ export const columns = [
{ {
@ -10,13 +10,39 @@ export const columns = [
prop: 'id', prop: 'id',
width: 100, width: 100,
}, },
{
label: '位置编号',
prop: 'location',
},
{ {
label: '位置描述', label: '位置描述',
prop: 'description', prop: 'description',
width: 250,
render(record) {
return record.row.description + ">>" + record.row.location;
},
},
{
label: '推荐类型',
prop: 'typeText',
},
{
label: '推荐ID',
prop: 'typeId',
},
{
label: '推荐图片',
prop: 'image',
render(record) {
return h(ElAvatar, {
size: 48,
src: record.row.image,
shape: 'square',
fit: 'fill',
});
},
width: 120,
},
{
label: '推荐标题',
prop: 'typeTitle',
width: 200,
}, },
{ {
label: '排序', label: '排序',