From f8360da07eb92e9a6bb12bf0a3bb78d58814cca8 Mon Sep 17 00:00:00 2001 From: liuchuang <123456> Date: Fri, 25 Dec 2020 10:35:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=BC=E5=9B=A2=E8=B4=AD=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/custom/groupbuy-detail.vue | 6 +++--- src/views/modules/custom/groupbuyinfo.vue | 21 ++++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/views/modules/custom/groupbuy-detail.vue b/src/views/modules/custom/groupbuy-detail.vue index 25ca9a9..6e1cc37 100644 --- a/src/views/modules/custom/groupbuy-detail.vue +++ b/src/views/modules/custom/groupbuy-detail.vue @@ -35,15 +35,15 @@ 查看 - 团购中 - 已结束 + 团购中 + 已结束 已取消 {{ dataForm.cancelReason }} - 已置顶 + 已置顶 {{ dataForm.topTime }} diff --git a/src/views/modules/custom/groupbuyinfo.vue b/src/views/modules/custom/groupbuyinfo.vue index 522f60a..09c719a 100644 --- a/src/views/modules/custom/groupbuyinfo.vue +++ b/src/views/modules/custom/groupbuyinfo.vue @@ -42,13 +42,13 @@ {{ $t('query') }} - + - + + - 查看 @@ -168,14 +168,6 @@ export default { this.$refs.groupbuyDetail.init() }) }, - topFlagFormat: function (row, column) { - let topFlag = row.topFlag - if (topFlag === 0) { - return '未置顶' - } else if (topFlag === 1) { - return '已置顶' - } - }, statusFormat: function (row, column) { let groupBuyStatus = row.groupBuyStatus if (groupBuyStatus === 0) { @@ -210,6 +202,13 @@ export default { this.getDataList() }).catch(() => {}) }).catch(() => {}) + }, + cellStyle (row, column, rowIndex, columnIndex) { + if (row.column.label === '状态' && row.row.groupBuyStatus === 0) { + return 'color:#00A066' + } else if (row.column.label === '状态' && row.row.groupBuyStatus === 5) { + return 'color:#E30000' + } } } }