Merge branch 'master-500-dev-lushangqing' into 'master-500-dev'
汇总信息数据调用 See merge request !53
Showing
6 changed files
with
10 additions
and
9 deletions
@@ -222,11 +222,11 @@ export const monitorSystemInformation = { | @@ -222,11 +222,11 @@ export const monitorSystemInformation = { | ||
222 | relactiveDom: 'dataType', | 222 | relactiveDom: 'dataType', |
223 | relactiveDomValue: 'staticData', | 223 | relactiveDomValue: 'staticData', |
224 | value: [ | 224 | value: [ |
225 | - {"num":4,'name':'资源总量','code':'resources-total'}, | ||
226 | - {"num":6,'name':'小型机分区','code':'mini-partition'}, | ||
227 | - {"num":9,'name':'PC服务器','code':'PC-server'}, | ||
228 | - {"num":10,'name':'虚拟机','code':'virtual-machine'}, | ||
229 | - {"num":11,'name':'Oracle','code':'oracle'}, | 225 | + {"total":4,'resTypeName':'资源总量','resType':'resources-total'}, |
226 | + {"total":6,'naresTypeNameme':'小型机分区','resType':'mini-partition'}, | ||
227 | + {"total":9,'resTypeName':'PC服务器','resType':'PC-server'}, | ||
228 | + {"total":10,'resTypeName':'虚拟机','resType':'virtual-machine'}, | ||
229 | + {"total":11,'resTypeName':'Oracle','resType':'oracle'}, | ||
230 | ], | 230 | ], |
231 | }, | 231 | }, |
232 | { | 232 | { |
@@ -236,7 +236,7 @@ export const monitorSystemInformation = { | @@ -236,7 +236,7 @@ export const monitorSystemInformation = { | ||
236 | required: false, | 236 | required: false, |
237 | placeholder: '', | 237 | placeholder: '', |
238 | relactiveDom: 'dataType', | 238 | relactiveDom: 'dataType', |
239 | - chartType: 'widget-piechart', | 239 | + chartType: 'widget-table', |
240 | dictKey: 'TEXT_PROPERTIES', | 240 | dictKey: 'TEXT_PROPERTIES', |
241 | relactiveDomValue: 'dynamicData', | 241 | relactiveDomValue: 'dynamicData', |
242 | value: '', | 242 | value: '', |
@@ -9,10 +9,10 @@ | @@ -9,10 +9,10 @@ | ||
9 | <img :src="imgStyle.infoImageAdress" alt=""> | 9 | <img :src="imgStyle.infoImageAdress" alt=""> |
10 | </div> | 10 | </div> |
11 | <div class="system-item" :style="itemStyle" v-for="(item,index) in systemData" :key="index"> | 11 | <div class="system-item" :style="itemStyle" v-for="(item,index) in systemData" :key="index"> |
12 | - <div class="system-img"><img :src="'/src/assets/images/monitor/capacityAnalysis/'+item.code+'.png'" alt=""></div> | 12 | + <div class="system-img"><img :src="'/src/assets/images/monitor/capacityAnalysis/'+item.resType+'.png'" alt=""></div> |
13 | <div class="system-info" :style="titleProposalStyle"> | 13 | <div class="system-info" :style="titleProposalStyle"> |
14 | - <span>{{item.name}}:</span> | ||
15 | - <span>{{item.num}}</span> | 14 | + <span>{{item.resTypeName}}:</span> |
15 | + <span>{{item.total}}</span> | ||
16 | </div> | 16 | </div> |
17 | </div> | 17 | </div> |
18 | </div> | 18 | </div> |
@@ -185,6 +185,7 @@ export default { | @@ -185,6 +185,7 @@ export default { | ||
185 | getEchartData(val) { | 185 | getEchartData(val) { |
186 | const data = this.queryEchartsData(val); | 186 | const data = this.queryEchartsData(val); |
187 | data.then(res => { | 187 | data.then(res => { |
188 | + console.log("res",res) | ||
188 | if(res && res.length>0){ | 189 | if(res && res.length>0){ |
189 | this.systemData=res; | 190 | this.systemData=res; |
190 | } | 191 | } |
-
Please register or login to post a comment