Commit ff8b5fa5 by 姜雷

修改数值显示方式

parent 67bbb13f
...@@ -6,6 +6,7 @@ VUE_APP_SYSTEM_MENU_CODE=0003 ...@@ -6,6 +6,7 @@ VUE_APP_SYSTEM_MENU_CODE=0003
VUE_APP_STATISTICS_MENU_CODE=0044 VUE_APP_STATISTICS_MENU_CODE=0044
VUE_APP_DEVICE_MENU_CODE=0048 VUE_APP_DEVICE_MENU_CODE=0048
VUE_APP_DASHBOARD_CODE=0079 VUE_APP_DASHBOARD_CODE=0079
VUE_APP_CUSTOMER_OPERATE_CODE=0077
VUE_APP_WHITE_LIST=/login,/404,/401 VUE_APP_WHITE_LIST=/login,/404,/401
VUE_APP_LIB_MANAGER=http://ex-dev-dcxy-static.168cad.top VUE_APP_LIB_MANAGER=http://ex-dev-dcxy-static.168cad.top
VUE_APP_SYSTEM_SERVER_URL=http://ex-dev-dcxy-system-manage.168cad.top VUE_APP_SYSTEM_SERVER_URL=http://ex-dev-dcxy-system-manage.168cad.top
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
style="display:inline-block;margin-right:10px;background-color:${color};" style="display:inline-block;margin-right:10px;background-color:${color};"
></i> ></i>
<span class="g2-legend-text" title="${value}">${value}: </span> <span class="g2-legend-text" title="${value}">${value}: </span>
<span class="g2-legend-price">${obj.count.toFixed(2)}</span> <span class="g2-legend-price">${price}</span>
</li> </li>
`; `;
}, },
......
...@@ -48,15 +48,6 @@ export default { ...@@ -48,15 +48,6 @@ export default {
offset: 10, offset: 10,
}); });
let money =
this.consumeCount && this.consumeCount.payableMoney
? this.consumeCount.payableMoney
: '0.00';
let menCount =
this.consumeCount && this.consumeCount.payMen
? this.consumeCount.payMen
: '0';
this.chart.render(); this.chart.render();
this.chart.guide().text({ this.chart.guide().text({
top: true, top: true,
......
...@@ -55,6 +55,7 @@ export default { ...@@ -55,6 +55,7 @@ export default {
itemTpl: (value, color, checked, index) => { itemTpl: (value, color, checked, index) => {
const obj = this.data[index]; const obj = this.data[index];
checked = checked ? 'checked' : 'unChecked'; checked = checked ? 'checked' : 'unChecked';
let price = this.$formatPrice(obj.count);
return ` return `
<li <li
class="g2-legend-list-item item-${index} ${checked}" class="g2-legend-list-item item-${index} ${checked}"
...@@ -67,7 +68,7 @@ export default { ...@@ -67,7 +68,7 @@ export default {
style="display:inline-block;margin-right:10px;background-color:${color};" style="display:inline-block;margin-right:10px;background-color:${color};"
></i> ></i>
<span class="g2-legend-text">${value}: </span> <span class="g2-legend-text">${value}: </span>
<span class="g2-legend-price">${obj.count.toFixed(2)}</span> <span class="g2-legend-price">${price}</span>
</li> </li>
`; `;
}, },
......
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