修改优惠券的宽度,浏览记录分页与评论超出问题

master
mahe 2022-11-28 09:51:47 +08:00
parent 4d347df505
commit 34ef7e555a
3 changed files with 17 additions and 12 deletions

View File

@ -36,7 +36,7 @@
<i-col span="4"> <i-col span="4">
<Tooltip transfer> <Tooltip transfer>
<div class="content">{{item.content}}</div> <div class="content">{{item.content}}</div>
<div style="white-space: normal;" slot="content"> <div style="white-space: normal;word-break:break-all" slot="content">
{{item.content}} {{item.content}}
</div> </div>
</Tooltip> </Tooltip>
@ -160,7 +160,11 @@ export default {
color: #999; color: #999;
max-height: 60px; max-height: 60px;
overflow: hidden; overflow: hidden;
word-wrap: break-word; // word-wrap: break-word;
display:-webkit-box;
-webkit-box-orient:vertical;/*设置方向*/
-webkit-line-clamp:3;/*设置超过为省略号的行数*/
word-break:break-all;
} }
.eval-detail { .eval-detail {

View File

@ -113,6 +113,7 @@ export default {
this.spinShow = false; this.spinShow = false;
if (res.success && res.result.records.length) { if (res.success && res.result.records.length) {
this.list = res.result.records; this.list = res.result.records;
this.total = res.result.total
} else { } else {
this.list = []; this.list = [];
} }

View File

@ -146,26 +146,26 @@ export default {
// //
{ {
type: "selection", type: "selection",
width: 60, width: 100,
align: "center", align: "center",
fixed: "left", fixed: "left",
}, },
{ {
title: "活动名称", title: "活动名称",
key: "promotionName", key: "promotionName",
width: 100, width: 180,
fixed: "left", fixed: "left",
}, },
{ {
title: "优惠券名称", title: "优惠券名称",
key: "couponName", key: "couponName",
width: 100, width: 180,
tooltip: true, tooltip: true,
}, },
{ {
title: "面额/折扣", title: "面额/折扣",
key: "price", key: "price",
width: 100, width: 150,
render: (h, params) => { render: (h, params) => {
if (params.row.price) { if (params.row.price) {
return h( return h(
@ -181,7 +181,7 @@ export default {
{ {
title: "已领取数量/总数量", title: "已领取数量/总数量",
key: "publishNum", key: "publishNum",
width: 150, width: 180,
render: (h, params) => { render: (h, params) => {
return h( return h(
"div", "div",
@ -195,7 +195,7 @@ export default {
{ {
title: "已被使用的数量/已领取数量", title: "已被使用的数量/已领取数量",
key: "publishNum", key: "publishNum",
width: 130, width: 200,
render: (h, params) => { render: (h, params) => {
return h("div", params.row.usedNum + "/" + params.row.receivedNum); return h("div", params.row.usedNum + "/" + params.row.receivedNum);
}, },
@ -203,7 +203,7 @@ export default {
{ {
title: "优惠券类型", title: "优惠券类型",
key: "couponType", key: "couponType",
width: 120, width: 150,
render: (h, params) => { render: (h, params) => {
let text = ""; let text = "";
if (params.row.couponType === "DISCOUNT") { if (params.row.couponType === "DISCOUNT") {
@ -225,7 +225,7 @@ export default {
}, },
{ {
title: "活动时间", title: "活动时间",
width: 150, width: 200,
render: (h, params) => { render: (h, params) => {
if ( if (
params?.row?.getType === "ACTIVITY" && params?.row?.getType === "ACTIVITY" &&
@ -246,18 +246,18 @@ export default {
title: "状态", title: "状态",
width: 100, width: 100,
key: "promotionStatus", key: "promotionStatus",
align: "center",
fixed: "right", fixed: "right",
render: (h, params) => { render: (h, params) => {
return promotionsStatusRender(h, params); return promotionsStatusRender(h, params);
}, },
minWidth: 70,
}, },
{ {
title: "操作", title: "操作",
slot: "action", slot: "action",
align: "center", align: "center",
fixed: "right", fixed: "right",
width: 130, width: 150,
}, },
], ],
data: [], // data: [], //