Commit 8cbb2c6e by 胡悦

提交

1 parent 378b9032
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{'width': 100 / list.length + '%'}"> <div class="statistics-item" v-for="(item, index) in list" :key="index" :style="{'width': 100 / list.length + '%'}">
<div class="statistics-top"> <div class="statistics-top">
<div class="statistics-name">{{item.name}}</div> <div class="statistics-name">{{item.name}}</div>
<div class="statistics-price"><span class="statistics-unit" v-if="item.unit == '¥'">¥</span><span class="statistics-price-number">{{numAddSymbol(item.value)}}</span><span v-if="item.unit == '%'">%</span></div> <div class="statistics-price"><span class="statistics-unit" v-if="item.unitType == 'left'">{{item.unit}}</span><span class="statistics-price-number">{{numAddSymbol(item.value)}}</span><span v-if="item.unitType == 'right'">{{item.unit}}</span></div>
<div v-if="item.rate" class="statistics-top-rate">占比<span>{{item.rate}}%</span></div> <div v-if="item.rate" class="statistics-top-rate">占比<span>{{item.rate}}%</span></div>
</div> </div>
<div class="statistics-bottom" v-if="item.bottomLabel || item.bottomType"> <div class="statistics-bottom" v-if="item.bottomLabel || item.bottomType">
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2023-07-04 13:55:35 * @Date: 2023-07-04 13:55:35
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2023-07-26 14:24:59 * @LastEditTime: 2023-07-26 17:25:03
--> -->
<template> <template>
<div class="left"> <div class="left">
...@@ -77,6 +77,7 @@ export default { ...@@ -77,6 +77,7 @@ export default {
valueName: 'outputvalue', valueName: 'outputvalue',
value: '1000000', value: '1000000',
unit: '¥', unit: '¥',
unitType: 'left',
bottomType: 'ratio', bottomType: 'ratio',
ratioLeftLabel: '月环比', ratioLeftLabel: '月环比',
ratioLeftValueName: 'outputvalueHB', ratioLeftValueName: 'outputvalueHB',
...@@ -90,6 +91,7 @@ export default { ...@@ -90,6 +91,7 @@ export default {
valueName: 'perCusTrans', valueName: 'perCusTrans',
value: '1003', value: '1003',
unit: '¥', unit: '¥',
unitType: 'left',
bottomType: 'ratio', bottomType: 'ratio',
ratioLeftLabel: '月环比', ratioLeftLabel: '月环比',
ratioLeftValueName: 'perCusTransHB', ratioLeftValueName: 'perCusTransHB',
...@@ -103,6 +105,7 @@ export default { ...@@ -103,6 +105,7 @@ export default {
valueName: 'conversionRate', valueName: 'conversionRate',
value: '58', value: '58',
unit: '%', unit: '%',
unitType: 'right',
bottomType: 'ratio', bottomType: 'ratio',
ratioLeftLabel: '月环比', ratioLeftLabel: '月环比',
ratioLeftValueName: 'conversionRateHB', ratioLeftValueName: 'conversionRateHB',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!