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

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">
<Tooltip transfer>
<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}}
</div>
</Tooltip>
@ -160,7 +160,11 @@ export default {
color: #999;
max-height: 60px;
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 {

View File

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

View File

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