表格超出内容显示优化
This commit is contained in:
parent
21664cdec3
commit
c66fe33df9
@ -72,7 +72,16 @@
|
|||||||
<el-col :span="4" class="table-cell">{{order.autoConfirmDay}}天</el-col>
|
<el-col :span="4" class="table-cell">{{order.autoConfirmDay}}天</el-col>
|
||||||
<el-col :span="4" class="table-cell">{{order.integration}}</el-col>
|
<el-col :span="4" class="table-cell">{{order.integration}}</el-col>
|
||||||
<el-col :span="4" class="table-cell">{{order.growth}}</el-col>
|
<el-col :span="4" class="table-cell">{{order.growth}}</el-col>
|
||||||
<el-col :span="4" class="table-cell">{{order.promotionInfo}}</el-col>
|
<el-col :span="4" class="table-cell">
|
||||||
|
<el-popover
|
||||||
|
placement="top-start"
|
||||||
|
title="活动信息"
|
||||||
|
width="200"
|
||||||
|
trigger="hover"
|
||||||
|
:content="order.promotionInfo">
|
||||||
|
<span slot="reference">{{order.promotionInfo | formatLongText}}</span>
|
||||||
|
</el-popover>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 20px">
|
<div style="margin-top: 20px">
|
||||||
@ -387,6 +396,15 @@
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
formatLongText(value) {
|
||||||
|
if(value===undefined||value===null||value===''){
|
||||||
|
return '暂无';
|
||||||
|
}else if(value.length>8){
|
||||||
|
return value.substr(0, 8) + '...';
|
||||||
|
}else{
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
formatPayType(value) {
|
formatPayType(value) {
|
||||||
if (value === 1) {
|
if (value === 1) {
|
||||||
return '支付宝';
|
return '支付宝';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user