Commit f45962b2 authored by 王礼鸿 Baimax Wang's avatar 王礼鸿 Baimax Wang

订单量占比饼图和柱状图修改万元为万吨

parent 9eadb3a8
......@@ -40,7 +40,7 @@
<display-board class="trade_left" title="订单量占比" title_size="large">
<winners-list style="height: 96%;overflow: auto;" id="ar_company_list" :rows="currentDetailData" :show-icon="false" :columns-style="{'title':{'width':'50%'},'订单量(万吨)':{'width':'30%'}}" :col-formatter="{'1':(v)=>v+'%'}"/>
</display-board>
<line-bar-chart ref="chart" style="width: 75%;height: 100%;" :data="currentDetailData" x="company" y="value" :title="chartTitle" :formatter="formatter" :line-formatter="lineFormatter" bar-formatter="{@value}万"/>
<line-bar-chart ref="chart" style="width: 75%;height: 100%;" :data="currentDetailData" x="company" y="value" :title="chartTitle" :formatter="formatter" :line-formatter="lineFormatter" bar-formatter="{@value}万"/>
</div>
</div>
</template>
......@@ -122,7 +122,7 @@ export default {
this.getDetailData();
},
formatter(param){
return "订单量:<br>" + param[0].marker + param[0].name + ":\t" + param[0].data.value + "万<br> " + param[1].marker + "占比:" + param[1].data.proportion + "%";
return "订单量:<br>" + param[0].marker + param[0].name + ":\t" + param[0].data.value + "万<br> " + param[1].marker + "占比:" + param[1].data.proportion + "%";
},
lineFormatter(param){
return param.data.proportion + '%';
......
......@@ -581,7 +581,7 @@ export default {
this.getOrderBusinessCondition();
},
pieDataValueFormatter(param) {
return conver_amont(param) + "万";
return conver_amont(param) + "万";
},
pieDataFormatter(param) {
return param.name + '\r\n' + this.pieDataValueFormatter(param.value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment