宽度调整

master
Chopper 2021-06-08 11:33:06 +08:00
parent e32e2a92cd
commit b543ff8278
2 changed files with 16 additions and 13 deletions

View File

@ -138,13 +138,13 @@ export default {
{ {
title: "活动名称", title: "活动名称",
key: "promotionName", key: "promotionName",
minWidth: 120, width: 120,
fixed: "left", fixed: "left",
}, },
{ {
title: "优惠券名称", title: "优惠券名称",
key: "couponName", key: "couponName",
minWidth: 120, width: 120,
tooltip: true tooltip: true
}, { }, {
title: "面额/折扣", title: "面额/折扣",
@ -168,7 +168,8 @@ export default {
render: (h, params) => { render: (h, params) => {
return h( return h(
"div", params.row.receivedNum + "/" + params.row.publishNum) "div", params.row.receivedNum + "/" + params.row.publishNum)
} },
minWidth:130,
}, },
{ {
title: "优惠券类型", title: "优惠券类型",
@ -210,6 +211,7 @@ export default {
{innerHTML: params.row.startTime + "<br/>" + params.row.endTime} {innerHTML: params.row.startTime + "<br/>" + params.row.endTime}
}); });
}, },
minWidth:150,
}, },
{ {
title: "状态", title: "状态",
@ -243,13 +245,14 @@ export default {
), ),
]); ]);
}, },
minWidth:70,
}, },
{ {
title: "操作", title: "操作",
slot: "action", slot: "action",
align: "center", align: "center",
fixed: "right", fixed: "right",
width: 80 minWidth: 140
}, },
], ],
data: [], // data: [], //

View File

@ -143,13 +143,13 @@ export default {
{ {
title: "活动名称", title: "活动名称",
key: "promotionName", key: "promotionName",
minWidth: 120, width: 120,
fixed: "left", fixed: "left",
}, },
{ {
title: "优惠券名称", title: "优惠券名称",
key: "couponName", key: "couponName",
minWidth: 120, width: 120,
tooltip: true tooltip: true
}, { }, {
title: "面额/折扣", title: "面额/折扣",
@ -170,11 +170,11 @@ export default {
{ {
title: "领取数量/总数量", title: "领取数量/总数量",
key: "publishNum", key: "publishNum",
width: 100,
render: (h, params) => { render: (h, params) => {
return h( return h(
"div", params.row.receivedNum + "/" + params.row.publishNum) "div", params.row.receivedNum + "/" + params.row.publishNum)
} },
minWidth:130,
}, },
{ {
title: "优惠券类型", title: "优惠券类型",
@ -210,18 +210,17 @@ export default {
}, },
{ {
title: "活动时间", title: "活动时间",
minWidth: 120,
render: (h, params) => { render: (h, params) => {
return h("div", { return h("div", {
domProps: domProps:
{innerHTML: params.row.startTime + "<br/>" + params.row.endTime} {innerHTML: params.row.startTime + "<br/>" + params.row.endTime}
}); });
}, },
minWidth:150,
}, },
{ {
title: "状态", title: "状态",
key: "promotionStatus", key: "promotionStatus",
width: 100,
fixed: "right", fixed: "right",
render: (h, params) => { render: (h, params) => {
let text = "未知", let text = "未知",
@ -248,16 +247,17 @@ export default {
}, },
}, },
text text
) ),
]); ]);
} },
minWidth:70,
}, },
{ {
title: "操作", title: "操作",
slot: "action", slot: "action",
align: "center", align: "center",
fixed: "right", fixed: "right",
minWidth: 80, minWidth: 140
}, },
], ],
data: [], // data: [], //