Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
拓扑图标更改 See merge request !91
Showing
9 changed files
with
70 additions
and
4 deletions
@@ -184,6 +184,7 @@ export default { | @@ -184,6 +184,7 @@ export default { | ||
184 | let seriesCapacityData=[];//容量 | 184 | let seriesCapacityData=[];//容量 |
185 | let seriesUsageRateData=[];//使用率 | 185 | let seriesUsageRateData=[];//使用率 |
186 | let seriesUsageValueData=[];//使用量 | 186 | let seriesUsageValueData=[];//使用量 |
187 | + let seriesGrowthData=[];//增长量 | ||
187 | dataData.map(item=>{ | 188 | dataData.map(item=>{ |
188 | xAxisList.push(item.periodVal); | 189 | xAxisList.push(item.periodVal); |
189 | if(item.capacityValue || item.capacityValue==0){ | 190 | if(item.capacityValue || item.capacityValue==0){ |
@@ -195,6 +196,10 @@ export default { | @@ -195,6 +196,10 @@ export default { | ||
195 | if(item.usageValue || item.usageValue==0){ | 196 | if(item.usageValue || item.usageValue==0){ |
196 | seriesUsageValueData.push(item.usageValue) | 197 | seriesUsageValueData.push(item.usageValue) |
197 | } | 198 | } |
199 | + //增长量 | ||
200 | + if(item.growth || item.growth==0){ | ||
201 | + seriesGrowthData.push(item.growth); | ||
202 | + } | ||
198 | }) | 203 | }) |
199 | if(seriesUsageValueData.length>0){ | 204 | if(seriesUsageValueData.length>0){ |
200 | series.push({ | 205 | series.push({ |
@@ -209,7 +214,6 @@ export default { | @@ -209,7 +214,6 @@ export default { | ||
209 | data:seriesUsageValueData | 214 | data:seriesUsageValueData |
210 | }) | 215 | }) |
211 | } | 216 | } |
212 | - | ||
213 | if(seriesCapacityData.length>0){ | 217 | if(seriesCapacityData.length>0){ |
214 | series.push({ | 218 | series.push({ |
215 | type:'bar', | 219 | type:'bar', |
@@ -218,11 +222,24 @@ export default { | @@ -218,11 +222,24 @@ export default { | ||
218 | }) | 222 | }) |
219 | }else{ | 223 | }else{ |
220 | series.push({ | 224 | series.push({ |
221 | - type:'line', | 225 | + type:'bar', |
222 | name:'', | 226 | name:'', |
223 | data:seriesCapacityData | 227 | data:seriesCapacityData |
224 | }) | 228 | }) |
225 | } | 229 | } |
230 | + if(seriesGrowthData.length>0){ | ||
231 | + series.push({ | ||
232 | + type:'bar', | ||
233 | + name:'增长量', | ||
234 | + data:seriesGrowthData | ||
235 | + }) | ||
236 | + }else{ | ||
237 | + series.push({ | ||
238 | + type:'bar', | ||
239 | + name:'', | ||
240 | + data:seriesGrowthData | ||
241 | + }) | ||
242 | + } | ||
226 | if(seriesUsageRateData.length>0){ | 243 | if(seriesUsageRateData.length>0){ |
227 | series.push({ | 244 | series.push({ |
228 | type:'line', | 245 | type:'line', |
@@ -135,6 +135,19 @@ export const monitorCustomBarLineChart = { | @@ -135,6 +135,19 @@ export const monitorCustomBarLineChart = { | ||
135 | placeholder: '', | 135 | placeholder: '', |
136 | value: 0, | 136 | value: 0, |
137 | }, | 137 | }, |
138 | + { | ||
139 | + type: 'el-select', | ||
140 | + label: '叠加类型', | ||
141 | + name: 'stackStype', | ||
142 | + required: false, | ||
143 | + placeholder: '', | ||
144 | + selectOptions: [ | ||
145 | + {code: 'total', name: '堆叠'}, | ||
146 | + {code: 'barGap', name: '叠加'}, | ||
147 | + {code: 'noStack', name: '不堆叠'}, | ||
148 | + ], | ||
149 | + value: 'total' | ||
150 | + }, | ||
138 | ], | 151 | ], |
139 | }, | 152 | }, |
140 | { | 153 | { |
@@ -42,6 +42,14 @@ export const monitorCustomLiquidFillChart = { | @@ -42,6 +42,14 @@ export const monitorCustomLiquidFillChart = { | ||
42 | ], | 42 | ], |
43 | value: 'column' | 43 | value: 'column' |
44 | }, | 44 | }, |
45 | + { | ||
46 | + type: 'el-input-text', | ||
47 | + label: '提示信息', | ||
48 | + name: 'formula', | ||
49 | + required: false, | ||
50 | + placeholder: '', | ||
51 | + value: '增长率=(本次值-上次值)/上次值;平均增长率 = 总增长率/总增长次数', | ||
52 | + }, | ||
45 | [ | 53 | [ |
46 | { | 54 | { |
47 | name: '水球设置', | 55 | name: '水球设置', |
@@ -200,6 +200,7 @@ export default { | @@ -200,6 +200,7 @@ export default { | ||
200 | flag=val[1].join(","); | 200 | flag=val[1].join(","); |
201 | } | 201 | } |
202 | if(this.optionsSetup.vuexFlagKpiId==kpiId){ | 202 | if(this.optionsSetup.vuexFlagKpiId==kpiId){ |
203 | + this.hackReset=false; | ||
203 | this.optionsData.dynamicData.contextData.flag=flag; | 204 | this.optionsData.dynamicData.contextData.flag=flag; |
204 | } | 205 | } |
205 | } | 206 | } |
@@ -621,7 +622,16 @@ export default { | @@ -621,7 +622,16 @@ export default { | ||
621 | barBorderRadius: null | 622 | barBorderRadius: null |
622 | } | 623 | } |
623 | item.barMinHeight=2; | 624 | item.barMinHeight=2; |
624 | - item.stack='total'; | 625 | + if(this.optionsSetup.stackStype=='total'){ |
626 | + item.stack=this.optionsSetup.stackStype | ||
627 | + }else if(this.optionsSetup.stackStype=='barGap'){ | ||
628 | + item.stack=false; | ||
629 | + item.barGap='-100%'; | ||
630 | + }else if(this.optionsSetup.stackStype=='noStack'){ | ||
631 | + item.stack=false; | ||
632 | + }else{ | ||
633 | + item.stack='total'; | ||
634 | + } | ||
625 | //切换页面后bar的宽度改变 | 635 | //切换页面后bar的宽度改变 |
626 | item.barWidth = this.optionsSetup.maxWidth; | 636 | item.barWidth = this.optionsSetup.maxWidth; |
627 | }else if(item.type=='line'){ | 637 | }else if(item.type=='line'){ |
@@ -15,7 +15,15 @@ | @@ -15,7 +15,15 @@ | ||
15 | </div> | 15 | </div> |
16 | </div> | 16 | </div> |
17 | <div class="wave-title" :style="subTitleStyle" v-if="index==0">当前使用率</div> | 17 | <div class="wave-title" :style="subTitleStyle" v-if="index==0">当前使用率</div> |
18 | - <div class="wave-title" :style="subTitleStyle" v-if="index==1">{{getIndex2Name()}}</div> | 18 | + <div class="wave-title" :style="subTitleStyle" v-if="index==1"> |
19 | + <span>{{getIndex2Name()}}</span> | ||
20 | + <el-tooltip v-model="visible" placement="right-start"> | ||
21 | + <template #content> | ||
22 | + <div v-for="(item,index) in formula" :key="index" style="padding:5px;">{{item}}</div> | ||
23 | + </template> | ||
24 | + <i class="el-icon-info" v-if="optionsSetup.formula" style="color:rgb(13, 130, 233);" @mouseenter="optionsSetup.formula?visible = true:visible = false"/> | ||
25 | + </el-tooltip> | ||
26 | + </div> | ||
19 | </div> | 27 | </div> |
20 | </div> | 28 | </div> |
21 | 29 | ||
@@ -36,6 +44,7 @@ export default { | @@ -36,6 +44,7 @@ export default { | ||
36 | }, | 44 | }, |
37 | data() { | 45 | data() { |
38 | return { | 46 | return { |
47 | + visible:false, | ||
39 | // topStyle:'',//水波纹的大小 | 48 | // topStyle:'',//水波纹的大小 |
40 | fillData:[],//数据 | 49 | fillData:[],//数据 |
41 | // topNum:0,//水波纹的大小 | 50 | // topNum:0,//水波纹的大小 |
@@ -127,6 +136,14 @@ export default { | @@ -127,6 +136,14 @@ export default { | ||
127 | buttonVal(){ | 136 | buttonVal(){ |
128 | return this.buttonVals; | 137 | return this.buttonVals; |
129 | }, | 138 | }, |
139 | + //公式分行 | ||
140 | + formula(){ | ||
141 | + let arr=[]; | ||
142 | + if(this.optionsSetup.formula){ | ||
143 | + arr=this.optionsSetup.formula.split(";") | ||
144 | + } | ||
145 | + return arr; | ||
146 | + }, | ||
130 | styleObj() { | 147 | styleObj() { |
131 | return { | 148 | return { |
132 | position: this.ispreview ? "absolute" : "static", | 149 | position: this.ispreview ? "absolute" : "static", |
-
Please register or login to post a comment