Authored by wangtao

Merge branch 'master' of http://113.200.75.45:82/monitor_v3/hg-monitor-web

 Conflicts:
	hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/faultDiagnosis/result/dialtest/index.html
	hg-monitor-web-zj/src/main/resources/static/vue3/src/components/page/faultDiagnosis/result/dialtest/index.js
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <h3 style="margin-left: 10px;color: #666666;font-size: 18px">APM</h3> 4 <h3 style="margin-left: 10px;color: #666666;font-size: 18px">APM</h3>
5 <div style="width: calc(100% - 170px);line-height: 54px;font-size: 14px" class="align-right"> 5 <div style="width: calc(100% - 170px);line-height: 54px;font-size: 14px" class="align-right">
6 <a class="m-r-20" s @click="">更多</a> 6 <a class="m-r-20" s @click="">更多</a>
7 - <a v-model="cardName" @click="openOrCloseApm(dialTest.faultFixInfoList)">{{cardName}}</a> 7 + <a v-model="cardName" @click="openOrCloseApm()">{{cardName}}</a>
8 </div> 8 </div>
9 </div> 9 </div>
10 <el-divider/> 10 <el-divider/>
@@ -55,32 +55,37 @@ @@ -55,32 +55,37 @@
55 </div> 55 </div>
56 <div v-if="cardOpen" 56 <div v-if="cardOpen"
57 style="margin-top:20px;background-color: whitesmoke;display: flex;justify-content: flex-start;flex-wrap: wrap;padding: 26px 26px 0px 26px;"> 57 style="margin-top:20px;background-color: whitesmoke;display: flex;justify-content: flex-start;flex-wrap: wrap;padding: 26px 26px 0px 26px;">
58 - <div v-for="item in card" style="width: 50%;overflow: hidden;"> 58 + <div v-for="item in cardData" style="width: 50%;overflow: hidden;">
59 <div style="width: 566px;min-height: 357px;background: url('../src/style/img/fault/apm/apmCard.png') no-repeat;background-size: 100% 100%;margin: 0px 0px 26px 90px;box-sizing: border-box;text-align: center;margin: 0 auto;padding-top: 65px"> 59 <div style="width: 566px;min-height: 357px;background: url('../src/style/img/fault/apm/apmCard.png') no-repeat;background-size: 100% 100%;margin: 0px 0px 26px 90px;box-sizing: border-box;text-align: center;margin: 0 auto;padding-top: 65px">
60 - <div style="color: white;font-size: 25px;">{{item.resClassName}}</div> 60 + <div style="color: #ffffff;font-size: 24px;">{{item.resClassName}}</div>
61 <img src="../src/style/img/fault/apm/apmAbout.png" style="padding-top: 30px;"> 61 <img src="../src/style/img/fault/apm/apmAbout.png" style="padding-top: 30px;">
62 - <div style="padding-top: 30px;font-size: 20px;">应用:<span>{{item.use}}</span></div> 62 + <div style="padding-top: 30px;font-size: 18px;color: #333333">应用:<span class="text-link">{{item.applicationName}}</span></div>
63 <hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" width="80%" color=#aed6f4 size=1> 63 <hr style="FILTER: alpha(opacity=100,finishopacity=0,style=3)" width="80%" color=#aed6f4 size=1>
64 <div style="text-align: left;display: flex;margin-top: 10px;margin-left: 76px;font-size: 18px;"> 64 <div style="text-align: left;display: flex;margin-top: 10px;margin-left: 76px;font-size: 18px;">
65 <div style="width: 200px;margin-left: 10px;display: flex;align-self: center;"> 65 <div style="width: 200px;margin-left: 10px;display: flex;align-self: center;">
  66 + <img src="../src/style/img/fault/base/alarm.png" style="width:22px;height: 22px;">
66 <span style="margin: 0px 6px;width: 95px">响应时间:</span> 67 <span style="margin: 0px 6px;width: 95px">响应时间:</span>
67 - <span class="text-link">{{item.time ? item.time : 0}}</span> 68 + <span class="text-link">{{item.responseNum}}</span>
68 </div> 69 </div>
69 <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> 70 <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;">
  71 + <img src="../src/style/img/fault/base/alarm.png" style="width:22px;height: 22px;">
70 <span style="margin: 0px 6px 0px 6px;width: 95px">Fullgc:</span> 72 <span style="margin: 0px 6px 0px 6px;width: 95px">Fullgc:</span>
71 - <span class="text-link">{{item.count ? item.count : 0}}</span> 73 + <span class="text-link">{{item.FullGcNum}}</span>
72 </div> 74 </div>
73 </div> 75 </div>
74 <div style="text-align: left;display: flex;margin-top: 10px;margin-left: 76px;font-size: 18px;"> 76 <div style="text-align: left;display: flex;margin-top: 10px;margin-left: 76px;font-size: 18px;">
75 <div style="width: 200px;margin-left: 10px;display: flex;align-self: center;"> 77 <div style="width: 200px;margin-left: 10px;display: flex;align-self: center;">
  78 + <img src="../src/style/img/fault/base/alarm.png" style="width:22px;height: 22px;">
76 <span style="margin: 0px 6px;width: 95px">线程总数:</span> 79 <span style="margin: 0px 6px;width: 95px">线程总数:</span>
77 - <span class="text-link">{{item.count ? item.count : 0}}</span> 80 + <span class="text-link">{{item.threadNum}}</span>
78 </div> 81 </div>
79 <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> 82 <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;">
  83 + <img src="../src/style/img/fault/base/alarm.png" style="width:22px;height: 22px;">
80 <span style="margin: 0px 6px 0px 6px;width: 95px">错误率:</span> 84 <span style="margin: 0px 6px 0px 6px;width: 95px">错误率:</span>
81 - <span class="text-link">{{item.error ? item.count : 0}}</span> 85 + <span class="text-link">{{item.errorNum}}</span>
82 </div> 86 </div>
83 </div> 87 </div>
  88 +
84 </div> 89 </div>
85 </div> 90 </div>
86 </div> 91 </div>
@@ -22,13 +22,17 @@ export default { @@ -22,13 +22,17 @@ export default {
22 let card = Vue.ref({}); 22 let card = Vue.ref({});
23 let cardData = Vue.ref([]); 23 let cardData = Vue.ref([]);
24 let cardOpen = Vue.ref(false); 24 let cardOpen = Vue.ref(false);
25 - let openOrCloseApm = (data) => { 25 + let openOrCloseApm = () => {
26 cardOpen.value = !cardOpen.value; 26 cardOpen.value = !cardOpen.value;
27 - if (cardOpen.value){  
28 - cardName.value='收起';  
29 - getDialtestCard(data)  
30 - }else {  
31 - cardName.value='展开'; 27 + if (cardOpen.value) {
  28 + cardName.value = '收起';
  29 + debugger
  30 + if (dialTest.value != '' && dialTest.value != null) {
  31 + getDialtestCard(dialTest.value.faultFixInfoList);
  32 + }
  33 + } else {
  34 + cardName.value = '展开';
  35 + cardData = Vue.ref([]);
32 } 36 }
33 37
34 } 38 }
@@ -50,16 +54,25 @@ export default { @@ -50,16 +54,25 @@ export default {
50 } 54 }
51 let getDialtestCard = (data) => { 55 let getDialtestCard = (data) => {
52 for (let i = 0; i < data.length; i++) { 56 for (let i = 0; i < data.length; i++) {
53 - let resItem={  
54 - resClassName:'',  
55 - FullGcNume:'',  
56 - FullGcNum:'', 57 + let resItem = {
  58 + resClassName: 0,
  59 + FullGcNum: 0,
  60 + responseNum: 0,
  61 + errorNum: 0,
  62 + threadNum:0,
  63 + applicationName:0
57 } 64 }
58 for (let j = 0; j < data[i].length; j++) { 65 for (let j = 0; j < data[i].length; j++) {
59 - if (data[i][j].kpiId=='KPI3D67301E'){  
60 - resItem.FullGcNume=data[i][j].kpiName;  
61 - resItem.resClassName=data[i][j].resClassName;  
62 - resItem.FullGcNum=data[i][j].diagnosisResult; 66 + resItem.resClassName = data[i][j].resClassName;
  67 + resItem.applicationName = data[i][j].applicationName;
  68 + if (data[i][j].kpiId == 'KPI3D67301E') {
  69 + resItem.FullGcNum = data[i][j].diagnosisResult;
  70 + } else if (data[i][j].kpiId == 'KPI7C4BEB26') {
  71 + resItem.threadNum = data[i][j].diagnosisResult;
  72 + } else if (data[i][j].kpiId == 'KPI678F9FC3') {
  73 + resItem.responseNum = data[i][j].diagnosisResult;
  74 + } else if (data[i][j].kpiId == 'KPICC063E40') {
  75 + resItem.errorNum = data[i][j].diagnosisResult;
63 } 76 }
64 } 77 }
65 cardData.value.push(resItem); 78 cardData.value.push(resItem);
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 </div> 47 </div>
48 <div class="align-center" style="flex: 1;text-align: right;margin-right: 80px;"> 48 <div class="align-center" style="flex: 1;text-align: right;margin-right: 80px;">
49 <a class="m-r-20" @click="">更多</a> 49 <a class="m-r-20" @click="">更多</a>
50 - <a v-model="cardName" @click="openOrCloseCard(cardList.faultFixInfoList)">{{cardName}}</a> 50 + <a v-model="cardName" @click="openOrCloseCard()">{{cardName}}</a>
51 </div> 51 </div>
52 </div> 52 </div>
53 <div v-if="cardOpen" 53 <div v-if="cardOpen"
@@ -119,7 +119,7 @@ @@ -119,7 +119,7 @@
119 <el-col :span="9" style="line-height: 36px;color: gainsboro;"> 119 <el-col :span="9" style="line-height: 36px;color: gainsboro;">
120 </el-col> 120 </el-col>
121 <el-col :span="1" class="align-center"> 121 <el-col :span="1" class="align-center">
122 - <img src="../src/style/img/fault/base/时间-绿.png"> 122 + <img src="../src/style/img/fault/base/time-green.png">
123 </el-col> 123 </el-col>
124 <el-col :span="5" class="align-center"> 124 <el-col :span="5" class="align-center">
125 {{item.collTime}} 125 {{item.collTime}}
@@ -16,13 +16,16 @@ export default { @@ -16,13 +16,16 @@ export default {
16 let cardOpen = Vue.ref(false); 16 let cardOpen = Vue.ref(false);
17 let cardName = Vue.ref('展开'); 17 let cardName = Vue.ref('展开');
18 let alarmColor = Vue.ref(); 18 let alarmColor = Vue.ref();
19 - let openOrCloseCard = (data) => { 19 + let openOrCloseCard = () => {
20 cardOpen.value = !cardOpen.value; 20 cardOpen.value = !cardOpen.value;
21 if (cardOpen.value){ 21 if (cardOpen.value){
22 cardName.value='收起'; 22 cardName.value='收起';
23 - getDialtestList(data) 23 + if (props.cardList!=''&&props.cardList!=null){
  24 + getDialtestList(props.cardList.faultFixInfoList);
  25 + }
24 }else { 26 }else {
25 cardName.value='展开'; 27 cardName.value='展开';
  28 + dialTest = Vue.ref([]);
26 } 29 }
27 } 30 }
28 let getDialtestList = (data) => { 31 let getDialtestList = (data) => {
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <h3 style="margin-left: 10px;color: #666666;font-size: 18px">NPM</h3> 4 <h3 style="margin-left: 10px;color: #666666;font-size: 18px">NPM</h3>
5 <div style="width: calc(100% - 170px);line-height: 54px" class="align-right"> 5 <div style="width: calc(100% - 170px);line-height: 54px" class="align-right">
6 <a class="m-r-20" @click="">更多</a> 6 <a class="m-r-20" @click="">更多</a>
7 - <a v-model="cardName" @click="openOrCloseNpm(dialTest.faultFixInfoList)">{{cardName}}</a> 7 + <a v-model="cardName" @click="openOrCloseNpm()">{{cardName}}</a>
8 </div> 8 </div>
9 </div> 9 </div>
10 <el-divider/> 10 <el-divider/>
@@ -22,14 +22,16 @@ export default { @@ -22,14 +22,16 @@ export default {
22 let cardOpen = Vue.ref(false); 22 let cardOpen = Vue.ref(false);
23 let cardData = Vue.ref([]); 23 let cardData = Vue.ref([]);
24 let cardName = Vue.ref('展开'); 24 let cardName = Vue.ref('展开');
25 - let openOrCloseNpm = (data) => {  
26 - debugger 25 + let openOrCloseNpm = () => {
27 cardOpen.value = !cardOpen.value; 26 cardOpen.value = !cardOpen.value;
28 if (cardOpen.value){ 27 if (cardOpen.value){
29 cardName.value='收起'; 28 cardName.value='收起';
30 - getDialtestCard(data); 29 + if (dialTest.value!=''&&dialTest.value!=null){
  30 + getDialtestCard(dialTest.value.faultFixInfoList);
  31 + }
31 }else { 32 }else {
32 cardName.value='展开'; 33 cardName.value='展开';
  34 + cardData = Vue.ref([]);
33 } 35 }
34 } 36 }
35 let getDialtestCard = (data) => { 37 let getDialtestCard = (data) => {