轮播图
This commit is contained in:
@@ -153,6 +153,7 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: 'type',
|
prop: 'type',
|
||||||
label: '链接类型',
|
label: '链接类型',
|
||||||
|
align: 'center',
|
||||||
render: (h, {row}) => {
|
render: (h, {row}) => {
|
||||||
return h('span', null, this.dict.getLabel('bannerType', row.type))
|
return h('span', null, this.dict.getLabel('bannerType', row.type))
|
||||||
},
|
},
|
||||||
@@ -160,12 +161,19 @@ export default {
|
|||||||
{
|
{
|
||||||
prop: 'status',
|
prop: 'status',
|
||||||
label: '发布状态',
|
label: '发布状态',
|
||||||
width: 400,
|
align: 'center',
|
||||||
|
render: (h, {row}) => {
|
||||||
|
return h('span', null, this.dict.getLabel('bannerSstatus', row.status))
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: 'position',
|
||||||
|
label: '位置',
|
||||||
|
align: 'center',
|
||||||
render: (h, {row}) => {
|
render: (h, {row}) => {
|
||||||
return h('span', null, this.dict.getLabel('bannerSstatus', row.status))
|
return h('span', null, this.dict.getLabel('bannerSstatus', row.status))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
{slot: 'option', label: '操作', width: 280},
|
{slot: 'option', label: '操作', width: 280},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
@@ -176,13 +184,10 @@ export default {
|
|||||||
},
|
},
|
||||||
// 监听
|
// 监听
|
||||||
watch: {},
|
watch: {},
|
||||||
// 实例创建后
|
|
||||||
created() {
|
created() {
|
||||||
this.dict.load('bannerType', 'bannerSstatus', 'bannerPosition').then(() => {
|
this.dict.load('bannerType', 'bannerSstatus', 'bannerPosition').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
// this.getList()
|
|
||||||
this.getShopList()
|
|
||||||
},
|
},
|
||||||
// 实例渲染后
|
// 实例渲染后
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -208,8 +213,7 @@ export default {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getShopList() {
|
|
||||||
},
|
|
||||||
add() {
|
add() {
|
||||||
this.dialog.title = '添加'
|
this.dialog.title = '添加'
|
||||||
this.dialogInfo = {}
|
this.dialogInfo = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user