优化推荐模块
This commit is contained in:
parent
8f3a35e496
commit
24634fe5f3
@ -1,5 +1,5 @@
|
||||
import { h } from 'vue';
|
||||
import { ElTag } from 'element-plus';
|
||||
import { ElAvatar, ElTag } from 'element-plus';
|
||||
|
||||
export const columns = [
|
||||
{
|
||||
@ -10,13 +10,39 @@ export const columns = [
|
||||
prop: 'id',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
label: '位置编号',
|
||||
prop: 'location',
|
||||
},
|
||||
{
|
||||
label: '位置描述',
|
||||
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: '排序',
|
||||
|
Loading…
Reference in New Issue
Block a user