diff --git a/project/sass/apps/AppCarousel/AppCarousel.vue b/project/sass/apps/AppCarousel/AppCarousel.vue index 89c1f398..ba3205f6 100644 --- a/project/sass/apps/AppCarousel/AppCarousel.vue +++ b/project/sass/apps/AppCarousel/AppCarousel.vue @@ -153,6 +153,7 @@ export default { { prop: 'type', label: '链接类型', + align: 'center', render: (h, {row}) => { return h('span', null, this.dict.getLabel('bannerType', row.type)) }, @@ -160,12 +161,19 @@ export default { { prop: 'status', 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}) => { return h('span', null, this.dict.getLabel('bannerSstatus', row.status)) }, }, - {slot: 'option', label: '操作', width: 280}, ], } @@ -176,13 +184,10 @@ export default { }, // 监听 watch: {}, - // 实例创建后 created() { this.dict.load('bannerType', 'bannerSstatus', 'bannerPosition').then(() => { this.getList() }) - // this.getList() - this.getShopList() }, // 实例渲染后 mounted() { @@ -208,8 +213,7 @@ export default { .catch(() => { }) }, - getShopList() { - }, + add() { this.dialog.title = '添加' this.dialogInfo = {}