From e6d8b3c6c8a46584f0ff393c92af9e12298fba5c Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Tue, 8 Feb 2022 09:09:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/sass/apps/AppCarousel/AppCarousel.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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 = {}