Skip to content

Commit

Permalink
表格超出内容显示优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhh committed Nov 5, 2018
1 parent 21664cd commit c66fe33
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/views/oms/order/orderDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,16 @@
<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.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>
</div>
<div style="margin-top: 20px">
Expand Down Expand Up @@ -387,6 +396,15 @@
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) {
if (value === 1) {
return '支付宝';
Expand Down

0 comments on commit c66fe33

Please sign in to comment.