Merge branch 'master-v32-xwx' into 'master'
故障诊断调整 See merge request !785
Showing
11 changed files
with
274 additions
and
96 deletions
1 | +<div> | ||
2 | + <div class="d-flex"> | ||
3 | + <img src="../src/style/img/apm.gif"> | ||
4 | + <h3 style="margin-left: 10px">APM</h3> | ||
5 | + <div style="width: calc(100% - 170px);line-height: 54px" class="align-right"> | ||
6 | + <a class="m-r-20" @click="openApmCard()">更多</a> | ||
7 | + <a @click="closeApmCard()">收起</a> | ||
8 | + </div> | ||
9 | + </div> | ||
10 | + <el-divider/> | ||
11 | + <div class="d-flex" v-model="dialTest"> | ||
12 | + <div style="width: 300px;text-align: center;"><a>汇总信息</a></div> | ||
13 | + <div> | ||
14 | + <div class="d-flex align-left"> | ||
15 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
16 | + <img src="../src/style/img/npmLink.png"> | ||
17 | + <span style="margin: 0px 6px 0px 6px;width: 95px">诊断应用</span> | ||
18 | + <h>{{dialTest && dialTest.diagnosticResources ?dialTest.diagnosticResources:0}}</h> | ||
19 | + </div> | ||
20 | + | | ||
21 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
22 | + <img src="../src/style/img/disKpi.png"> | ||
23 | + <span style="margin: 0px 6px 0px 6px;width: 95px">诊断指标</span> | ||
24 | + <h>{{dialTest && dialTest.diagnosticIndicators ?dialTest.diagnosticIndicators:0}}</h> | ||
25 | + </div> | ||
26 | + | | ||
27 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
28 | + <img src="../src/style/img/disItem.png"> | ||
29 | + <span style="margin: 0px 6px 0px 6px;width: 95px"> 诊断项</span> | ||
30 | + <h>{{dialTest && dialTest.diagnosticItem ?dialTest.diagnosticItem:0}}</h> | ||
31 | + </div> | ||
32 | + </div> | ||
33 | + <div style="text-align: left;display: flex;margin-top: 10px;"> | ||
34 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: yellowgreen"> | ||
35 | + <img src="../src/style/img/success.png"> | ||
36 | + <span style="margin: 0px 6px 0px 6px;width: 95px;">正常</span> | ||
37 | + <h style="font-size: 20px">{{dialTest && dialTest.normal ?dialTest.normal:0}}</h> | ||
38 | + </div> | ||
39 | + | | ||
40 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #f8d305"> | ||
41 | + <img src="../src/style/img/error.png"> | ||
42 | + <span style="margin: 0px 6px 0px 6px;width: 95px;"> 异常</span> | ||
43 | + <h style="font-size: 20px">{{dialTest && dialTest.abnormal ?dialTest.abnormal:0}}</h> | ||
44 | + </div> | ||
45 | + </div> | ||
46 | + </div> | ||
47 | + <div class="d-flex" style="flex: 1"> | ||
48 | + <div>正常占比</div> | ||
49 | + <div class="progress-con"> | ||
50 | + <el-progress :text-inside="true" :stroke-width="26" | ||
51 | + :percentage="dialTest && dialTest.normalProportion ? dialTest.normalProportion*100 : 0" | ||
52 | + color="#64A64C"/> | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + </div> | ||
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;"> | ||
58 | + <div v-for="item in apmCard.item" style="width: 50%;overflow: hidden;"> | ||
59 | + <div style="width: 566px;min-height: 357px;background: url('../src/style/img/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.name}}</div> | ||
61 | + <img src="../src/style/img/apmAbout.png" style="padding-top: 30px;"> | ||
62 | + <div style="padding-top: 30px;font-size: 20px;">应用:<span>{{item.use}}</span></div> | ||
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;"> | ||
65 | + <div style="width: 200px;margin-left: 10px;display: flex;align-self: center;"> | ||
66 | + <span style="margin: 0px 6px;width: 95px">响应时间:</span> | ||
67 | + <span>{{item.time}}</span> | ||
68 | + </div> | ||
69 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
70 | + <span style="margin: 0px 6px 0px 6px;width: 95px">响应时间:</span> | ||
71 | + <span>{{item.Fullgc}}</span> | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + <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;"> | ||
76 | + <span style="margin: 0px 6px;width: 95px">线程总数:</span> | ||
77 | + <span>{{item.count}}</span> | ||
78 | + </div> | ||
79 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
80 | + <span style="margin: 0px 6px 0px 6px;width: 95px">错误率:</span> | ||
81 | + <span>{{item.error}}</span> | ||
82 | + </div> | ||
83 | + </div> | ||
84 | + | ||
85 | + </div> | ||
86 | + </div> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | +</div> |
1 | +import store from '/vue3/src/store/index.js'; | ||
2 | + | ||
3 | +export default { | ||
4 | + name: 'apm', | ||
5 | + template: '', | ||
6 | + components: {}, | ||
7 | + props: { | ||
8 | + faultNo: { | ||
9 | + type: String, | ||
10 | + default: '' | ||
11 | + } | ||
12 | + }, | ||
13 | + data() { | ||
14 | + return {} | ||
15 | + }, | ||
16 | + setup(props, {attrs, slots, emit}) { | ||
17 | + const {proxy} = Vue.getCurrentInstance(); | ||
18 | + | ||
19 | + | ||
20 | + let dialTest = Vue.ref(); | ||
21 | + let card = Vue.ref({}) | ||
22 | + let cardOpen = Vue.ref(false); | ||
23 | + let openApmCard = () => { | ||
24 | + cardOpen.value = true; | ||
25 | + } | ||
26 | + let apmCard = Vue.ref({ | ||
27 | + item:[{ | ||
28 | + name:'内网', | ||
29 | + use:'234', | ||
30 | + time:'235', | ||
31 | + Fullgc:'2', | ||
32 | + count:2, | ||
33 | + error:2, | ||
34 | + },{ | ||
35 | + name:'外网', | ||
36 | + use:'234', | ||
37 | + time:'235', | ||
38 | + Fullgc:'2', | ||
39 | + count:2, | ||
40 | + error:2, | ||
41 | + }] | ||
42 | + }) | ||
43 | + let closeApmCard = () => { | ||
44 | + cardOpen.value = false; | ||
45 | + } | ||
46 | + let getNpmList = () => { | ||
47 | + let params = { | ||
48 | + faultNo: "GZ202207220001", | ||
49 | + targetType: "apm" | ||
50 | + } | ||
51 | + | ||
52 | + store.dispatch('getFaultList', params).then((res) => { | ||
53 | + if (res.data && res.success) { | ||
54 | + dialTest.value = res.data[0]; | ||
55 | + card.value = dialTest.value.faultFixInfoList; | ||
56 | + } | ||
57 | + }).catch(e => { | ||
58 | + console.log(e); | ||
59 | + }) | ||
60 | + } | ||
61 | + | ||
62 | + // 挂载完 | ||
63 | + Vue.onMounted(() => { | ||
64 | + getNpmList(); | ||
65 | + }) | ||
66 | + | ||
67 | + | ||
68 | + return { | ||
69 | + card, | ||
70 | + openApmCard, | ||
71 | + closeApmCard, | ||
72 | + cardOpen, | ||
73 | + dialTest, | ||
74 | + apmCard | ||
75 | + } | ||
76 | + } | ||
77 | +} |
@@ -56,11 +56,11 @@ | @@ -56,11 +56,11 @@ | ||
56 | <div v-if="cardOpen" style="margin-top: 10px;background-color: whitesmoke;display: flex;justify-content: flex-start;flex-wrap: wrap;padding: 6px;"> | 56 | <div v-if="cardOpen" style="margin-top: 10px;background-color: whitesmoke;display: flex;justify-content: flex-start;flex-wrap: wrap;padding: 6px;"> |
57 | <div v-for="item in card" style="width: 190px"> | 57 | <div v-for="item in card" style="width: 190px"> |
58 | <div style="width: 190px;height: 190px;background: url(../src/style/img/disBiz.png) no-repeat;background-size: 100% 100%;padding-top: 10px;"> | 58 | <div style="width: 190px;height: 190px;background: url(../src/style/img/disBiz.png) no-repeat;background-size: 100% 100%;padding-top: 10px;"> |
59 | - <div :style="{backgroundColor: item.color}" | ||
60 | - style="background-color: orange;width: 100px;height: 100px;border-radius: 100px;margin: 0px auto 10px;margin-top: 10px;color: white;line-height: 100px;text-align: center;"> | ||
61 | - <span>{{item.shortName}}</span> | 59 | + <div :style="{backgroundColor: item[0].color}" |
60 | + style="width: 100px;height: 100px;border-radius: 100px;margin: 0px auto 10px;margin-top: 10px;color: white;line-height: 100px;text-align: center;"> | ||
61 | + <span>{{item[0].shortName}}</span> | ||
62 | </div> | 62 | </div> |
63 | - <p style="text-align: center;word-break: break-all;padding: 0px 25px;">{{item.taskName}}</p> | 63 | + <p style="text-align: center;word-break: break-all;padding: 0px 25px;">{{item[0].taskName}}</p> |
64 | </div> | 64 | </div> |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
@@ -34,7 +34,7 @@ export default { | @@ -34,7 +34,7 @@ export default { | ||
34 | store.dispatch('getFaultList', params).then((res) => { | 34 | store.dispatch('getFaultList', params).then((res) => { |
35 | if (res.data && res.success) { | 35 | if (res.data && res.success) { |
36 | dialTest.value = res.data[0]; | 36 | dialTest.value = res.data[0]; |
37 | - card.value = dialTest.value.faultFixInfoList[0]; | 37 | + card.value = dialTest.value.faultFixInfoList; |
38 | } | 38 | } |
39 | }).catch(e => { | 39 | }).catch(e => { |
40 | console.log(e); | 40 | console.log(e); |
@@ -2,10 +2,9 @@ | @@ -2,10 +2,9 @@ | ||
2 | <div class="d-flex"> | 2 | <div class="d-flex"> |
3 | <img src="../src/style/img/fault/base.gif"> | 3 | <img src="../src/style/img/fault/base.gif"> |
4 | <h3 style="margin-left: 10px">基础资源</h3> | 4 | <h3 style="margin-left: 10px">基础资源</h3> |
5 | - <!--<div style="width: calc(100% - 200px);line-height: 54px" class="align-right"> | ||
6 | - <a class="m-r-20" @click="allCard()">更多</a> | ||
7 | - <a @click="closeCard()">收起</a> | ||
8 | - </div>--> | 5 | + <div style="width: calc(100% - 200px);line-height: 54px" class="align-right"> |
6 | + <a class="m-r-20" @click="baseCard()">更多</a> | ||
7 | + </div> | ||
9 | </div> | 8 | </div> |
10 | <el-divider/> | 9 | <el-divider/> |
11 | <div class="d-flex" v-model="dialTest"> | 10 | <div class="d-flex" v-model="dialTest"> |
@@ -55,6 +54,6 @@ | @@ -55,6 +54,6 @@ | ||
55 | </div> | 54 | </div> |
56 | 55 | ||
57 | 56 | ||
58 | - <res-item /> | 57 | + <res-item v-if="cardOpen" /> |
59 | 58 | ||
60 | </div> | 59 | </div> |
@@ -23,7 +23,7 @@ export default { | @@ -23,7 +23,7 @@ export default { | ||
23 | let dialTest = Vue.ref(); | 23 | let dialTest = Vue.ref(); |
24 | let card = Vue.ref({}) | 24 | let card = Vue.ref({}) |
25 | let cardOpen = Vue.ref(false); | 25 | let cardOpen = Vue.ref(false); |
26 | - let allCard = () => { | 26 | + let baseCard = () => { |
27 | cardOpen.value = true; | 27 | cardOpen.value = true; |
28 | } | 28 | } |
29 | let closeCard = () => { | 29 | let closeCard = () => { |
@@ -32,11 +32,12 @@ export default { | @@ -32,11 +32,12 @@ export default { | ||
32 | let getDialtestList = () => { | 32 | let getDialtestList = () => { |
33 | let params = { | 33 | let params = { |
34 | faultNo: props.faultNo, | 34 | faultNo: props.faultNo, |
35 | - targetType: "dialtest" | 35 | + targetType: "base" |
36 | } | 36 | } |
37 | 37 | ||
38 | store.dispatch('getFaultList', params).then((res) => { | 38 | store.dispatch('getFaultList', params).then((res) => { |
39 | if (res.data && res.success) { | 39 | if (res.data && res.success) { |
40 | + debugger | ||
40 | dialTest.value = res.data[0]; | 41 | dialTest.value = res.data[0]; |
41 | card.value = dialTest.value.faultFixInfoList[0]; | 42 | card.value = dialTest.value.faultFixInfoList[0]; |
42 | } | 43 | } |
@@ -52,7 +53,7 @@ export default { | @@ -52,7 +53,7 @@ export default { | ||
52 | 53 | ||
53 | return { | 54 | return { |
54 | card, | 55 | card, |
55 | - allCard, | 56 | + baseCard, |
56 | closeCard, | 57 | closeCard, |
57 | cardOpen, | 58 | cardOpen, |
58 | dialTest | 59 | dialTest |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | </div> | 46 | </div> |
47 | </div> | 47 | </div> |
48 | </div> | 48 | </div> |
49 | - <div class="align-center" style="flex: 1"> | 49 | + <div class="align-center" style="flex: 1;text-align: right;margin-right: 80px;"> |
50 | <a class="m-r-20" @click="allCard()">更多</a> | 50 | <a class="m-r-20" @click="allCard()">更多</a> |
51 | <a @click="closeCard()">收起</a> | 51 | <a @click="closeCard()">收起</a> |
52 | </div> | 52 | </div> |
@@ -26,19 +26,19 @@ export default { | @@ -26,19 +26,19 @@ export default { | ||
26 | cardOpen.value = false; | 26 | cardOpen.value = false; |
27 | } | 27 | } |
28 | let getDialtestList = () => { | 28 | let getDialtestList = () => { |
29 | - let params = { | ||
30 | - faultNo: props.faultNo, | ||
31 | - targetType: "dialtest" | ||
32 | - } | ||
33 | - | ||
34 | - store.dispatch('getFaultList', params).then((res) => { | ||
35 | - if (res.data && res.success) { | ||
36 | - dialTest.value = res.data[0]; | ||
37 | - card.value = dialTest.value.faultFixInfoList[0]; | ||
38 | - } | ||
39 | - }).catch(e => { | ||
40 | - console.log(e); | ||
41 | - }) | 29 | + // let params = { |
30 | + // faultNo: props.faultNo, | ||
31 | + // targetType: "dialtest" | ||
32 | + // } | ||
33 | + // | ||
34 | + // store.dispatch('getFaultList', params).then((res) => { | ||
35 | + // if (res.data && res.success) { | ||
36 | + // dialTest.value = res.data[0]; | ||
37 | + // card.value = dialTest.value.faultFixInfoList[0]; | ||
38 | + // } | ||
39 | + // }).catch(e => { | ||
40 | + // console.log(e); | ||
41 | + // }) | ||
42 | } | 42 | } |
43 | 43 | ||
44 | // 挂载完 | 44 | // 挂载完 |
1 | -<div class="container" :style="{'height':height+'px','max-height':height+'px'}"> | ||
2 | - <div class="cm-card" style="margin: 10px"> | ||
3 | - <div class="heard" style="display:flex;padding: 26px 26px 0px 26px"> | ||
4 | - <div style="display:flex;"><img src="../src/style/img/npm.gif"> | ||
5 | - <h3 style="margin-left: 10px">NPM</h3></div> | ||
6 | - <div style="flex: 1;text-align: right;display: inline-block;margin-top: 33px;"> | ||
7 | - <a style="margin-right: 20px;color: #1E9FFF;cursor:pointer " @click="openNpmCard()">更多</a> | ||
8 | - <a style="color: #1E9FFF;cursor:pointer " @click="closeNpmCard()">收起</a> | ||
9 | - </div> | 1 | +<div> |
2 | + <div class="d-flex"> | ||
3 | + <img src="../src/style/img/npm.gif"> | ||
4 | + <h3 style="margin-left: 10px">NPM</h3> | ||
5 | + <div style="width: calc(100% - 170px);line-height: 54px" class="align-right"> | ||
6 | + <a class="m-r-20" @click="openNpmCard()">更多</a> | ||
7 | + <a @click="closeNpmCard()">收起</a> | ||
10 | </div> | 8 | </div> |
11 | - <el-divider/> | ||
12 | - <div class="content" v-model="dialTest" style="display:flex;padding: 26px 26px 26px 26px;"> | ||
13 | - <div style="height: 50px;text-align: left;margin-left: 4%;min-width: 20%;"><a>汇总信息</a></div> | ||
14 | - <div> | ||
15 | - <div style="text-align: left;display: flex;"> | ||
16 | - <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
17 | - <img src="../src/style/img/npmLink.png"> | ||
18 | - <span style="margin: 0px 6px 0px 6px;width: 95px">诊断链路场景</span> | ||
19 | - <h>{{dialTest && dialTest.diagnosticResources ?dialTest.diagnosticResources:0}}</h> | ||
20 | - </div> | ||
21 | - | | ||
22 | - <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
23 | - <img src="../src/style/img/disKpi.png"> | ||
24 | - <span style="margin: 0px 6px 0px 6px;width: 95px">诊断指标</span> | ||
25 | - <h>{{dialTest && dialTest.diagnosticIndicators ?dialTest.diagnosticIndicators:0}}</h> | ||
26 | - </div> | ||
27 | - | | ||
28 | - <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
29 | - <img src="../src/style/img/disItem.png"> | ||
30 | - <span style="margin: 0px 6px 0px 6px;width: 95px"> 诊断项</span> | ||
31 | - <h>{{dialTest && dialTest.diagnosticItem ?dialTest.diagnosticItem:0}}</h> | ||
32 | - </div> | 9 | + </div> |
10 | + <el-divider/> | ||
11 | + <div class="d-flex" v-model="dialTest"> | ||
12 | + <div style="width: 300px;text-align: center;"><a>汇总信息</a></div> | ||
13 | + <div> | ||
14 | + <div class="d-flex align-left"> | ||
15 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
16 | + <img src="../src/style/img/npmLink.png"> | ||
17 | + <span style="margin: 0px 6px 0px 6px;width: 95px">诊断链路场景</span> | ||
18 | + <h>{{dialTest && dialTest.diagnosticResources ?dialTest.diagnosticResources:0}}</h> | ||
33 | </div> | 19 | </div> |
34 | - <div style="text-align: left;display: flex;margin-top: 10px;"> | ||
35 | - <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: yellowgreen"> | ||
36 | - <img src="../src/style/img/success.png"> | ||
37 | - <span style="margin: 0px 6px 0px 6px;width: 95px;">正常</span> | ||
38 | - <h style="font-size: 20px">{{dialTest && dialTest.normal ?dialTest.normal:0}}</h> | ||
39 | - </div> | ||
40 | - | | ||
41 | - <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #f8d305"> | ||
42 | - <img src="../src/style/img/error.png"> | ||
43 | - <span style="margin: 0px 6px 0px 6px;width: 95px;"> 异常</span> | ||
44 | - <h style="font-size: 20px">{{dialTest && dialTest.abnormal ?dialTest.abnormal:0}}</h> | ||
45 | - </div> | 20 | + | |
21 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
22 | + <img src="../src/style/img/disKpi.png"> | ||
23 | + <span style="margin: 0px 6px 0px 6px;width: 95px">诊断指标</span> | ||
24 | + <h>{{dialTest && dialTest.diagnosticIndicators ?dialTest.diagnosticIndicators:0}}</h> | ||
25 | + </div> | ||
26 | + | | ||
27 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;"> | ||
28 | + <img src="../src/style/img/disItem.png"> | ||
29 | + <span style="margin: 0px 6px 0px 6px;width: 95px"> 诊断项</span> | ||
30 | + <h>{{dialTest && dialTest.diagnosticItem ?dialTest.diagnosticItem:0}}</h> | ||
46 | </div> | 31 | </div> |
47 | </div> | 32 | </div> |
48 | - <div style="display:flex;width: 35%"> | ||
49 | - <div>正常占比</div> | ||
50 | - <div class="progress-con"> | ||
51 | - <el-progress :text-inside="true" :stroke-width="26" | ||
52 | - :percentage="dialTest && dialTest.normalProportion ? dialTest.normalProportion*100 : 0" | ||
53 | - color="#64A64C"/> | 33 | + <div style="text-align: left;display: flex;margin-top: 10px;"> |
34 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: yellowgreen"> | ||
35 | + <img src="../src/style/img/success.png"> | ||
36 | + <span style="margin: 0px 6px 0px 6px;width: 95px;">正常</span> | ||
37 | + <h style="font-size: 20px">{{dialTest && dialTest.normal ?dialTest.normal:0}}</h> | ||
38 | + </div> | ||
39 | + | | ||
40 | + <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #f8d305"> | ||
41 | + <img src="../src/style/img/error.png"> | ||
42 | + <span style="margin: 0px 6px 0px 6px;width: 95px;"> 异常</span> | ||
43 | + <h style="font-size: 20px">{{dialTest && dialTest.abnormal ?dialTest.abnormal:0}}</h> | ||
54 | </div> | 44 | </div> |
55 | </div> | 45 | </div> |
56 | </div> | 46 | </div> |
57 | - <div v-if="cardOpen" | ||
58 | - style="margin-top:20px;background-color: whitesmoke;display: flex;justify-content: flex-start;flex-wrap: wrap;padding: 26px 26px 0px 26px;"> | ||
59 | - <div v-for="item in card" style="width: 25%;overflow: hidden;"> | ||
60 | - <div style="width: 100%;min-height: 184px;background: url('../src/style/img/npmCard.png') no-repeat;background-size: 100% 100%;padding-top: 20px;margin-bottom: 26px;box-sizing: border-box;"> | ||
61 | - <p style="width: 85%;margin-left: -40px">{{item[0].streamName}}</p> | ||
62 | - <div style="margin-top: 47px;"> | ||
63 | - <p style="width: 85%;text-align: left;padding-left: 50px;">{{item[1].kpiName}}<h | ||
64 | - style="margin-left: 6px;text-decoration: underline">{{item[1].diagnosisResult}}</h></p> | ||
65 | - </div> | ||
66 | - <div style="display: flex;text-align: left;margin-top: -17px;margin-left: 50px;"> | ||
67 | - <p style="width: 50%;">{{item[2].kpiName}}<h style="margin-left: 6px;text-decoration: underline" | ||
68 | - :style="{color: item[2].color}">{{item[2].diagnosisResult}}%</h> | ||
69 | - </p> | ||
70 | - <p style="width: 50%;">{{item[0].kpiName}}<h style="margin-left: 6px;text-decoration: underline" | ||
71 | - :style="{color: item[0].color}">{{item[0].diagnosisResult}}%</h> | ||
72 | - </p> | ||
73 | - </div> | 47 | + <div class="d-flex" style="flex: 1"> |
48 | + <div>正常占比</div> | ||
49 | + <div class="progress-con"> | ||
50 | + <el-progress :text-inside="true" :stroke-width="26" | ||
51 | + :percentage="dialTest && dialTest.normalProportion?dialTest.normalProportion*100:0" | ||
52 | + color="#64A64C"/> | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | + <div v-if="cardOpen" style="margin-top:10px;background-color: whitesmoke;display: flex;justify-content: flex-start;flex-wrap: wrap;padding: 6px;"> | ||
57 | + <div v-for="item in card" style="width: 340px;"> | ||
58 | + <div style="width: 340px;min-height: 184px;background: url('../src/style/img/npmCard.png') no-repeat;background-size: 100% 100%;padding-top: 20px;margin-bottom: 26px;box-sizing: border-box;"> | ||
59 | + <p style="width: 290px;margin-left: 40px;font-size: 16px">{{item[0].streamName}}</p> | ||
60 | + <div style="margin-top: 35px;"> | ||
61 | + <p style="width: 85%;text-align: left;padding-left: 50px;">{{item[0].kpiName}} | ||
62 | + <h style="margin-left: 6px;text-decoration: underline">{{item[0].diagnosisResult}}</h> | ||
63 | + </p> | ||
64 | + </div> | ||
65 | + <div style="display: flex;text-align: left;margin-top: -17px;margin-left: 50px;"> | ||
66 | + <p style="width: 50%;">{{item[1].kpiName}} | ||
67 | + <h style="margin-left: 6px;text-decoration: underline" | ||
68 | + :style="{color: item[2].color}">{{item[1].diagnosisResult}}% | ||
69 | + </h> | ||
70 | + </p> | ||
71 | + <p style="width: 50%;">{{item[2].kpiName}} | ||
72 | + <h style="margin-left: 6px;text-decoration: underline" | ||
73 | + :style="{color: item[2].color}">{{item[2].diagnosisResult}}% | ||
74 | + </h> | ||
75 | + </p> | ||
74 | </div> | 76 | </div> |
75 | </div> | 77 | </div> |
76 | </div> | 78 | </div> |
77 | </div> | 79 | </div> |
78 | </div> | 80 | </div> |
81 | + |
@@ -4,6 +4,12 @@ export default { | @@ -4,6 +4,12 @@ export default { | ||
4 | name: 'npm', | 4 | name: 'npm', |
5 | template: '', | 5 | template: '', |
6 | components: {}, | 6 | components: {}, |
7 | + props: { | ||
8 | + faultNo: { | ||
9 | + type: String, | ||
10 | + default: '' | ||
11 | + } | ||
12 | + }, | ||
7 | data() { | 13 | data() { |
8 | return {} | 14 | return {} |
9 | }, | 15 | }, |
@@ -22,7 +28,7 @@ export default { | @@ -22,7 +28,7 @@ export default { | ||
22 | } | 28 | } |
23 | let getNpmList = () => { | 29 | let getNpmList = () => { |
24 | let params = { | 30 | let params = { |
25 | - faultNo: "GZ202204080012", | 31 | + faultNo: props.faultNo, |
26 | targetType: "npm" | 32 | targetType: "npm" |
27 | } | 33 | } |
28 | 34 |
@@ -11,6 +11,9 @@ export default { | @@ -11,6 +11,9 @@ export default { | ||
11 | 'npm-item': Vue.defineAsyncComponent( | 11 | 'npm-item': Vue.defineAsyncComponent( |
12 | () => myImport('components/page/faultDiagnosis/result/npm/index') | 12 | () => myImport('components/page/faultDiagnosis/result/npm/index') |
13 | ), | 13 | ), |
14 | + 'apm-item': Vue.defineAsyncComponent( | ||
15 | + () => myImport('components/page/faultDiagnosis/result/apm/index') | ||
16 | + ), | ||
14 | 'netLinks': Vue.defineAsyncComponent( | 17 | 'netLinks': Vue.defineAsyncComponent( |
15 | () => myImport('components/page/faultDiagnosis/result/netLinks/index') | 18 | () => myImport('components/page/faultDiagnosis/result/netLinks/index') |
16 | ), | 19 | ), |
@@ -60,7 +63,7 @@ export default { | @@ -60,7 +63,7 @@ export default { | ||
60 | }, { | 63 | }, { |
61 | faultType: 'APM', | 64 | faultType: 'APM', |
62 | faultTypeName: 'APM', | 65 | faultTypeName: 'APM', |
63 | - components: 'result-item', | 66 | + components: 'apm-item', |
64 | color: '#F56C6C', | 67 | color: '#F56C6C', |
65 | itemName: '检测指标', | 68 | itemName: '检测指标', |
66 | detail: true, | 69 | detail: true, |
@@ -107,7 +110,7 @@ export default { | @@ -107,7 +110,7 @@ export default { | ||
107 | faultDetailDetailInfo.value.items[3].state= item.state | 110 | faultDetailDetailInfo.value.items[3].state= item.state |
108 | } | 111 | } |
109 | if(item.type.toUpperCase()=='APM'){ | 112 | if(item.type.toUpperCase()=='APM'){ |
110 | - faultDetailDetailInfo.value.items[4].state= item.states | 113 | + faultDetailDetailInfo.value.items[4].state= item.state |
111 | } | 114 | } |
112 | }) | 115 | }) |
113 | } | 116 | } |
-
Please register or login to post a comment