|
@@ -83,13 +83,14 @@ function getFaultInterfaceCount() {
|
|
// 接口占比
|
|
// 接口占比
|
|
function jkzb(data) {
|
|
function jkzb(data) {
|
|
let percent = new Array();
|
|
let percent = new Array();
|
|
- percent.push({'shareType': '市共享', 'count': 0, 'percent': 0});
|
|
|
|
- percent.push({'shareType': '市归集', 'count': 0, 'percent': 0});
|
|
|
|
- percent.push({'shareType': '省上报', 'count': 0, 'percent': 0});
|
|
|
|
- percent.push({'shareType': '省共享', 'count': 0, 'percent': 0});
|
|
|
|
|
|
+ percent.push({'shareTypeDict': 'share_type_1', 'shareType': '市直共享接口', 'count': 0, 'percent': 0});
|
|
|
|
+ percent.push({'shareTypeDict': 'share_type_2', 'shareType': '市直归集接口', 'count': 0, 'percent': 0});
|
|
|
|
+ percent.push({'shareTypeDict': 'share_type_3', 'shareType': '省上报接口', 'count': 0, 'percent': 0});
|
|
|
|
+ percent.push({'shareTypeDict': 'share_type_4', 'shareType': '省共享接口', 'count': 0, 'percent': 0});
|
|
for(let i = 0; i < percent.length; i++){
|
|
for(let i = 0; i < percent.length; i++){
|
|
for(let j = 0; j < data.length; j++){
|
|
for(let j = 0; j < data.length; j++){
|
|
- if(percent[i].shareType == data[j].shareType){
|
|
|
|
|
|
+ if(percent[i].shareTypeDict == data[j].shareTypeDict){
|
|
|
|
+ percent[i].shareType = data[j].shareType;
|
|
percent[i].count = parseInt(data[j].count);
|
|
percent[i].count = parseInt(data[j].count);
|
|
percent[i].percent = parseInt(data[j].percent);
|
|
percent[i].percent = parseInt(data[j].percent);
|
|
}
|
|
}
|