From 9e70204584a5c675a4d0e37fff9020d242df9bdb Mon Sep 17 00:00:00 2001
From: mayf <m13160102112@163.com>
Date: 星期五, 06 九月 2024 16:21:50 +0800
Subject: [PATCH] readonly form减少表单项间距 统一详情样式
---
pages/marketing/coupon/user/index.vue | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/pages/marketing/coupon/user/index.vue b/pages/marketing/coupon/user/index.vue
index ce68f1e..8c983d2 100644
--- a/pages/marketing/coupon/user/index.vue
+++ b/pages/marketing/coupon/user/index.vue
@@ -33,13 +33,13 @@
},
columns: [
...couponColumn(),
- { label: '发放时间', prop: 'usageStartDate', minWidth: 180 },
+ { label: '发放时间', prop: 'createTime', minWidth: 180 },
{
label: '有效期',
formatter: (row) =>
row.usageStartDate
? `${row.usageStartDate} ~ ${row.usageEndDate || ''}`
- : '',
+ : `发放后${row.usageTimeNum}${row.usageTimeTypeName || ''}`,
minWidth: 400,
},
{ label: '状态', prop: 'statusName', minWidth: 120 },
@@ -78,7 +78,7 @@
rules: { required: true, message: '请选择领取用户' },
inputFormat: (row) => {
if ('customerList' in row) {
- return row.customerList
+ return row.customerList.filter((i) => i)
}
},
outputFormat: (val) => {
@@ -90,8 +90,7 @@
extraButtons: [
{
text: '发布',
- show: (row) =>
- row.status === 'inactive' || row.status === 'expired',
+ show: (row) => row.status === 'inactive',
atClick: async (row) => {
try {
await this.$elBusUtil.confirm('确定要发布吗?')
--
Gitblit v1.9.3