From b543ff827881e47565545f3bfa51a4aa8ac0acfe Mon Sep 17 00:00:00 2001 From: Chopper Date: Tue, 8 Jun 2021 11:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/promotion/coupon/coupon.vue | 11 +++++++---- seller/src/views/promotion/coupon/coupon.vue | 18 +++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/manager/src/views/promotion/coupon/coupon.vue b/manager/src/views/promotion/coupon/coupon.vue index 5ea885b3..5efe3010 100644 --- a/manager/src/views/promotion/coupon/coupon.vue +++ b/manager/src/views/promotion/coupon/coupon.vue @@ -138,13 +138,13 @@ export default { { title: "活动名称", key: "promotionName", - minWidth: 120, + width: 120, fixed: "left", }, { title: "优惠券名称", key: "couponName", - minWidth: 120, + width: 120, tooltip: true }, { title: "面额/折扣", @@ -168,7 +168,8 @@ export default { render: (h, params) => { return h( "div", params.row.receivedNum + "/" + params.row.publishNum) - } + }, + minWidth:130, }, { title: "优惠券类型", @@ -210,6 +211,7 @@ export default { {innerHTML: params.row.startTime + "
" + params.row.endTime} }); }, + minWidth:150, }, { title: "状态", @@ -243,13 +245,14 @@ export default { ), ]); }, + minWidth:70, }, { title: "操作", slot: "action", align: "center", fixed: "right", - width: 80 + minWidth: 140 }, ], data: [], // 表单数据 diff --git a/seller/src/views/promotion/coupon/coupon.vue b/seller/src/views/promotion/coupon/coupon.vue index 5bdde01e..9cd259de 100644 --- a/seller/src/views/promotion/coupon/coupon.vue +++ b/seller/src/views/promotion/coupon/coupon.vue @@ -143,13 +143,13 @@ export default { { title: "活动名称", key: "promotionName", - minWidth: 120, + width: 120, fixed: "left", }, { title: "优惠券名称", key: "couponName", - minWidth: 120, + width: 120, tooltip: true }, { title: "面额/折扣", @@ -170,11 +170,11 @@ export default { { title: "领取数量/总数量", key: "publishNum", - width: 100, render: (h, params) => { return h( "div", params.row.receivedNum + "/" + params.row.publishNum) - } + }, + minWidth:130, }, { title: "优惠券类型", @@ -210,18 +210,17 @@ export default { }, { title: "活动时间", - minWidth: 120, render: (h, params) => { return h("div", { domProps: {innerHTML: params.row.startTime + "
" + params.row.endTime} }); }, + minWidth:150, }, { title: "状态", key: "promotionStatus", - width: 100, fixed: "right", render: (h, params) => { let text = "未知", @@ -248,16 +247,17 @@ export default { }, }, text - ) + ), ]); - } + }, + minWidth:70, }, { title: "操作", slot: "action", align: "center", fixed: "right", - minWidth: 80, + minWidth: 140 }, ], data: [], // 表单数据