Merge branch 'master-v32-lushangqing' into 'master'
本月申报率95以上显示 See merge request !133
Showing
1 changed file
with
15 additions
and
3 deletions
@@ -11,6 +11,7 @@ export default { | @@ -11,6 +11,7 @@ export default { | ||
11 | allData:{}, | 11 | allData:{}, |
12 | titleFontSize: 30, | 12 | titleFontSize: 30, |
13 | declareRate: '0%', | 13 | declareRate: '0%', |
14 | + gaugeDataDeclareRate:'', | ||
14 | declareRateLeft: 0, | 15 | declareRateLeft: 0, |
15 | declareRateRight: '%', | 16 | declareRateRight: '%', |
16 | declareNumer: 0, | 17 | declareNumer: 0, |
@@ -70,19 +71,29 @@ export default { | @@ -70,19 +71,29 @@ export default { | ||
70 | declareRateNum = declareRate.split('%')[0] | 71 | declareRateNum = declareRate.split('%')[0] |
71 | } | 72 | } |
72 | that.declareRate=declareRateNum; | 73 | that.declareRate=declareRateNum; |
74 | + if(declareRateNum>95&&declareRateNum<100){ | ||
75 | + that.gaugeDataDeclareRate=95; | ||
76 | + }else{ | ||
77 | + that.gaugeDataDeclareRate=that.declareRate | ||
78 | + } | ||
73 | that.declareNumer = that.allData.polyline.declareNumer | 79 | that.declareNumer = that.allData.polyline.declareNumer |
74 | that.optionInit(); | 80 | that.optionInit(); |
75 | 81 | ||
76 | - | ||
77 | } | 82 | } |
78 | }); | 83 | }); |
79 | 84 | ||
80 | }, | 85 | }, |
81 | optionInit(){ | 86 | optionInit(){ |
87 | + | ||
82 | const gaugeData = [ | 88 | const gaugeData = [ |
83 | { | 89 | { |
84 | - value: this.declareRate, | 90 | + value: this.gaugeDataDeclareRate, |
91 | + name:this.declareRate+'%', | ||
92 | + title: { | ||
93 | + offsetCenter: ['0%', '0%'], | ||
94 | + }, | ||
85 | detail: { | 95 | detail: { |
96 | + show:false, | ||
86 | valueAnimation: true, | 97 | valueAnimation: true, |
87 | offsetCenter: ['0%', '0%'] | 98 | offsetCenter: ['0%', '0%'] |
88 | } | 99 | } |
@@ -133,7 +144,8 @@ export default { | @@ -133,7 +144,8 @@ export default { | ||
133 | }, | 144 | }, |
134 | data: gaugeData, | 145 | data: gaugeData, |
135 | title: { | 146 | title: { |
136 | - fontSize: 14 | 147 | + fontSize: 14, |
148 | + color:'#23fffc' | ||
137 | }, | 149 | }, |
138 | detail: { | 150 | detail: { |
139 | width: 50, | 151 | width: 50, |
-
Please register or login to post a comment