Merge branch 'master-v32-xwx' into 'master'
故障诊断诊断项弹框 See merge request !798
Showing
11 changed files
with
55 additions
and
31 deletions
1 | <div v-model="dialTest"> | 1 | <div v-model="dialTest"> |
2 | <div class="d-flex"> | 2 | <div class="d-flex"> |
3 | - <img src="../src/style/img/fault/apm.gif"> | 3 | + <img src="../src/style/img/fault/apm.gif" style="object-fit: contain"> |
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% - 200px);line-height: 54px;font-size: 14px" class="align-right"> | 5 | <div style="width: calc(100% - 200px);line-height: 54px;font-size: 14px" class="align-right"> |
6 | <a class="m-r-20" v-if="card && card.length > 0" @click="openMoreDialog">更多</a> | 6 | <a class="m-r-20" v-if="card && card.length > 0" @click="openMoreDialog">更多</a> |
@@ -27,20 +27,20 @@ | @@ -27,20 +27,20 @@ | ||
27 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> | 27 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> |
28 | <img src="../src/style/img/fault/disItem.png"> | 28 | <img src="../src/style/img/fault/disItem.png"> |
29 | <span style="margin: 0px 6px 0px 6px;width: 105px"> 诊断项</span> | 29 | <span style="margin: 0px 6px 0px 6px;width: 105px"> 诊断项</span> |
30 | - <h class="text-link">{{getFaultItemValue(dialTest,'diagnosticItem')}}</h> | 30 | + <h class="text-link" @click="openDiagnosticItem('normal')">{{getFaultItemValue(dialTest,'diagnosticItem')}}</h> |
31 | </div> | 31 | </div> |
32 | </div> | 32 | </div> |
33 | <div style="text-align: left;display: flex;margin-top: 10px;"> | 33 | <div style="text-align: left;display: flex;margin-top: 10px;"> |
34 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> | 34 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> |
35 | <img src="../src/style/img/fault/success.png" style="width: 22px;height: 22px;"> | 35 | <img src="../src/style/img/fault/success.png" style="width: 22px;height: 22px;"> |
36 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> | 36 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> |
37 | - <h class="text-link" style="font-size: 24px">{{getFaultItemValue(dialTest,'normal')}}</h> | 37 | + <h class="text-link" style="font-size: 24px" @click="openDiagnosticItem('normal')">{{getFaultItemValue(dialTest,'normal')}}</h> |
38 | </div> | 38 | </div> |
39 | | | 39 | | |
40 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> | 40 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> |
41 | <img src="../src/style/img/fault/error.png" style="width: 22px;height: 22px;"> | 41 | <img src="../src/style/img/fault/error.png" style="width: 22px;height: 22px;"> |
42 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px"> 异常</span> | 42 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px"> 异常</span> |
43 | - <h class="text-link" style="font-size: 24px">{{getFaultItemValue(dialTest,'abnormal')}}</h> | 43 | + <h class="text-link" style="font-size: 24px" @click="openDiagnosticItem('abnormal')">{{getFaultItemValue(dialTest,'abnormal')}}</h> |
44 | </div> | 44 | </div> |
45 | </div> | 45 | </div> |
46 | </div> | 46 | </div> |
@@ -115,6 +115,10 @@ export default { | @@ -115,6 +115,10 @@ export default { | ||
115 | const openKpiList = () => { | 115 | const openKpiList = () => { |
116 | service.sendEventDiagnoseKpiList(emit, props.faultNo,props.targetType.toLocaleLowerCase()); | 116 | service.sendEventDiagnoseKpiList(emit, props.faultNo,props.targetType.toLocaleLowerCase()); |
117 | } | 117 | } |
118 | + //诊断项(正常、异常) | ||
119 | + const openDiagnosticItem = (type) => { | ||
120 | + service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type); | ||
121 | + } | ||
118 | // 挂载完 | 122 | // 挂载完 |
119 | Vue.onMounted(() => { | 123 | Vue.onMounted(() => { |
120 | getNpmList(); | 124 | getNpmList(); |
@@ -134,7 +138,8 @@ export default { | @@ -134,7 +138,8 @@ export default { | ||
134 | openAlarm, | 138 | openAlarm, |
135 | getFaultItemValue: service.getFaultItemValue, | 139 | getFaultItemValue: service.getFaultItemValue, |
136 | openBusScenarios, | 140 | openBusScenarios, |
137 | - openKpiList | 141 | + openKpiList, |
142 | + openDiagnosticItem | ||
138 | } | 143 | } |
139 | } | 144 | } |
140 | } | 145 | } |
1 | <div v-model="dialTest"> | 1 | <div v-model="dialTest"> |
2 | <div class="d-flex"> | 2 | <div class="d-flex"> |
3 | - <img src="../src/style/img/fault/dialtest.gif"> | 3 | + <img src="../src/style/img/fault/dialtest.gif" style="object-fit: contain"> |
4 | <h3 style="margin-left: 10px;color: #666666;font-size: 18px">业务拨测</h3> | 4 | <h3 style="margin-left: 10px;color: #666666;font-size: 18px">业务拨测</h3> |
5 | <div style="line-height: 60px;" class="m-l-6"> | 5 | <div style="line-height: 60px;" class="m-l-6"> |
6 | <el-tooltip | 6 | <el-tooltip |
@@ -38,14 +38,14 @@ | @@ -38,14 +38,14 @@ | ||
38 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> | 38 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> |
39 | <img src="../src/style/img/fault/disItem.png"> | 39 | <img src="../src/style/img/fault/disItem.png"> |
40 | <span style="margin: 0px 6px 0px 6px;width: 105px"> 诊断项</span> | 40 | <span style="margin: 0px 6px 0px 6px;width: 105px"> 诊断项</span> |
41 | - <h class="text-link">{{ getFaultItemValue(dialTest,'diagnosticItem') }}</h> | 41 | + <h class="text-link" @click="openDiagnosticItem('')">{{ getFaultItemValue(dialTest,'diagnosticItem') }}</h> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | <div style="text-align: left;display: flex;margin-top: 10px;"> | 44 | <div style="text-align: left;display: flex;margin-top: 10px;"> |
45 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> | 45 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> |
46 | <img src="../src/style/img/fault/success.png" style="width: 22px;height: 22px;"> | 46 | <img src="../src/style/img/fault/success.png" style="width: 22px;height: 22px;"> |
47 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> | 47 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> |
48 | - <h class="text-link" style="font-size: 24px"@click="openDiagnosticItem('normal')" >{{ getFaultItemValue(dialTest,'normal')}}</h> | 48 | + <h class="text-link" style="font-size: 24px" @click="openDiagnosticItem('normal')">{{ getFaultItemValue(dialTest,'normal')}}</h> |
49 | </div> | 49 | </div> |
50 | | | 50 | | |
51 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> | 51 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> |
@@ -102,6 +102,7 @@ export default { | @@ -102,6 +102,7 @@ export default { | ||
102 | const openMoreDialog = () => { | 102 | const openMoreDialog = () => { |
103 | service.sendEventMoreDialog(emit, proxy.$global, card.value); | 103 | service.sendEventMoreDialog(emit, proxy.$global, card.value); |
104 | } | 104 | } |
105 | + //诊断项(正常、异常) | ||
105 | const openDiagnosticItem = (type) => { | 106 | const openDiagnosticItem = (type) => { |
106 | service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type); | 107 | service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type); |
107 | } | 108 | } |
1 | <div> | 1 | <div> |
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" style="object-fit: contain"> |
4 | <h3 style="margin-left: 10px;color: #666666;font-size: 18px">基础资源</h3> | 4 | <h3 style="margin-left: 10px;color: #666666;font-size: 18px">基础资源</h3> |
5 | <div style="line-height: 60px;" class="m-l-6"> | 5 | <div style="line-height: 60px;" class="m-l-6"> |
6 | <el-tooltip | 6 | <el-tooltip |
@@ -37,20 +37,20 @@ | @@ -37,20 +37,20 @@ | ||
37 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> | 37 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> |
38 | <img src="../src/style/img/fault/disItem.png"> | 38 | <img src="../src/style/img/fault/disItem.png"> |
39 | <span style="margin: 0px 6px 0px 6px;width: 105px">诊断项</span> | 39 | <span style="margin: 0px 6px 0px 6px;width: 105px">诊断项</span> |
40 | - <h class="text-link">{{getFaultItemValue(dialTest,'diagnosticItem')}}</h> | 40 | + <h class="text-link" @click="openDiagnosticItem('')">{{getFaultItemValue(dialTest,'diagnosticItem')}}</h> |
41 | </div> | 41 | </div> |
42 | </div> | 42 | </div> |
43 | <div style="text-align: left;display: flex;margin-top: 10px;"> | 43 | <div style="text-align: left;display: flex;margin-top: 10px;"> |
44 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> | 44 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> |
45 | <img src="../src/style/img/fault/success.png" style="width: 22px;height: 22px"> | 45 | <img src="../src/style/img/fault/success.png" style="width: 22px;height: 22px"> |
46 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> | 46 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> |
47 | - <h style="font-size: 24px" class="text-link">{{getFaultItemValue(dialTest,'normal')}}</h> | 47 | + <h style="font-size: 24px" class="text-link" @click="openDiagnosticItem('normal')">{{getFaultItemValue(dialTest,'normal')}}</h> |
48 | </div> | 48 | </div> |
49 | | | 49 | | |
50 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> | 50 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> |
51 | <img src="../src/style/img/fault/error.png"style="width: 22px;height: 22px"> | 51 | <img src="../src/style/img/fault/error.png"style="width: 22px;height: 22px"> |
52 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px"> 异常</span> | 52 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px"> 异常</span> |
53 | - <h style="font-size: 24px" class="text-link">{{getFaultItemValue(dialTest,'abnormal')}}</h> | 53 | + <h style="font-size: 24px" class="text-link" @click="openDiagnosticItem('abnormal')">{{getFaultItemValue(dialTest,'abnormal')}}</h> |
54 | </div> | 54 | </div> |
55 | </div> | 55 | </div> |
56 | </div> | 56 | </div> |
@@ -90,6 +90,12 @@ export default { | @@ -90,6 +90,12 @@ export default { | ||
90 | const openKpiList = () => { | 90 | const openKpiList = () => { |
91 | service.sendEventDiagnoseKpiList(emit, props.faultNo, props.targetType.toLocaleLowerCase()); | 91 | service.sendEventDiagnoseKpiList(emit, props.faultNo, props.targetType.toLocaleLowerCase()); |
92 | } | 92 | } |
93 | + | ||
94 | + //诊断项(正常、异常) | ||
95 | + const openDiagnosticItem = (type) => { | ||
96 | + service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type); | ||
97 | + } | ||
98 | + | ||
93 | // 挂载完 | 99 | // 挂载完 |
94 | Vue.onMounted(() => { | 100 | Vue.onMounted(() => { |
95 | getDialtestList(); | 101 | getDialtestList(); |
@@ -107,7 +113,8 @@ export default { | @@ -107,7 +113,8 @@ export default { | ||
107 | openKpiList, | 113 | openKpiList, |
108 | faultNo, | 114 | faultNo, |
109 | targetType, | 115 | targetType, |
110 | - parentEmit: emit | 116 | + parentEmit: emit, |
117 | + openDiagnosticItem | ||
111 | } | 118 | } |
112 | } | 119 | } |
113 | } | 120 | } |
@@ -22,20 +22,20 @@ | @@ -22,20 +22,20 @@ | ||
22 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> | 22 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> |
23 | <img src="../src/style/img/fault/disItem.png"> | 23 | <img src="../src/style/img/fault/disItem.png"> |
24 | <span style="margin: 0px 6px 0px 6px;width: 105px">诊断项</span> | 24 | <span style="margin: 0px 6px 0px 6px;width: 105px">诊断项</span> |
25 | - <h class="text-link">{{getFaultItemValue(cardList,'diagnosticItem')}}</h> | 25 | + <h class="text-link" @click="openDiagnosticItem('')">{{getFaultItemValue(cardList,'diagnosticItem')}}</h> |
26 | </div> | 26 | </div> |
27 | </div> | 27 | </div> |
28 | <div style="text-align: left;display: flex;margin-top: 10px;"> | 28 | <div style="text-align: left;display: flex;margin-top: 10px;"> |
29 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> | 29 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> |
30 | <img src="../src/style/img/fault/success.png" style="width:22px;height: 22px;"> | 30 | <img src="../src/style/img/fault/success.png" style="width:22px;height: 22px;"> |
31 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px;">正常</span> | 31 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px;">正常</span> |
32 | - <h style="font-size: 20px" class="text-link">{{getFaultItemValue(cardList,'normal')}}</h> | 32 | + <h style="font-size: 20px" class="text-link" @click="openDiagnosticItem('normal')">{{getFaultItemValue(cardList,'normal')}}</h> |
33 | </div> | 33 | </div> |
34 | | | 34 | | |
35 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> | 35 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> |
36 | <img src="../src/style/img/fault/error.png" style="width:22px;height: 22px;"> | 36 | <img src="../src/style/img/fault/error.png" style="width:22px;height: 22px;"> |
37 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px;"> 异常</span> | 37 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px;"> 异常</span> |
38 | - <h style="font-size: 24px" class="text-link">{{getFaultItemValue(cardList,'abnormal')}}</h> | 38 | + <h style="font-size: 24px" class="text-link" @click="openDiagnosticItem('abnormal')">{{getFaultItemValue(cardList,'abnormal')}}</h> |
39 | </div> | 39 | </div> |
40 | | | 40 | | |
41 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: red"> | 41 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: red"> |
@@ -46,7 +46,7 @@ | @@ -46,7 +46,7 @@ | ||
46 | </div> | 46 | </div> |
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" v-if="cardList.faultFixInfoList && cardList.faultFixInfoList.length > 0" @click="openOrCloseNpm()">更多</a> | 49 | + <a class="m-r-20" v-if="cardList.faultFixInfoList && cardList.faultFixInfoList.length > 0" @click="openMoreDialog()">更多</a> |
50 | <a v-model="cardName" v-if="cardList.faultFixInfoList && cardList.faultFixInfoList.length > 0" @click="openOrCloseCard()">{{cardName}}</a> | 50 | <a v-model="cardName" v-if="cardList.faultFixInfoList && cardList.faultFixInfoList.length > 0" @click="openOrCloseCard()">{{cardName}}</a> |
51 | </div> | 51 | </div> |
52 | </div> | 52 | </div> |
@@ -102,7 +102,7 @@ export default { | @@ -102,7 +102,7 @@ export default { | ||
102 | }); | 102 | }); |
103 | } | 103 | } |
104 | const openMoreDialog = () => { | 104 | const openMoreDialog = () => { |
105 | - service.sendEventMoreDialog(emit, proxy.$global, cardList.faultFixInfoList); | 105 | + service.sendEventMoreDialog(props.parentEmit, proxy.$global, props.cardList.faultFixInfoList); |
106 | } | 106 | } |
107 | 107 | ||
108 | //诊断资源 | 108 | //诊断资源 |
@@ -130,6 +130,11 @@ export default { | @@ -130,6 +130,11 @@ export default { | ||
130 | service.sendEventDiagnoseKpiList(props.parentEmit, faultNo,targetType); | 130 | service.sendEventDiagnoseKpiList(props.parentEmit, faultNo,targetType); |
131 | } | 131 | } |
132 | 132 | ||
133 | + //诊断项(正常、异常) | ||
134 | + const openDiagnosticItem = (type) => { | ||
135 | + service.sendEventNormalDialog(props.parentEmit, proxy.$global, faultNo, targetType, resClass,type); | ||
136 | + } | ||
137 | + | ||
133 | // 挂载完 | 138 | // 挂载完 |
134 | Vue.onMounted(() => { | 139 | Vue.onMounted(() => { |
135 | let cardList = props.cardList; | 140 | let cardList = props.cardList; |
@@ -150,7 +155,8 @@ export default { | @@ -150,7 +155,8 @@ export default { | ||
150 | targetType, | 155 | targetType, |
151 | openBusScenarios, | 156 | openBusScenarios, |
152 | openKpiList, | 157 | openKpiList, |
153 | - resClass | 158 | + resClass, |
159 | + openDiagnosticItem | ||
154 | } | 160 | } |
155 | } | 161 | } |
156 | } | 162 | } |
1 | <div v-model="dialTest"> | 1 | <div v-model="dialTest"> |
2 | <div class="d-flex"> | 2 | <div class="d-flex"> |
3 | - <img src="../src/style/img/fault/npm.gif"> | 3 | + <img src="../src/style/img/fault/npm.gif" style="object-fit: contain"> |
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="line-height: 60px;" class="m-l-6"> | 5 | <div style="line-height: 60px;" class="m-l-6"> |
6 | <el-tooltip | 6 | <el-tooltip |
@@ -38,20 +38,20 @@ | @@ -38,20 +38,20 @@ | ||
38 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> | 38 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #666666;font-size: 16px"> |
39 | <img src="../src/style/img/fault/disItem.png"> | 39 | <img src="../src/style/img/fault/disItem.png"> |
40 | <span style="margin: 0px 6px 0px 6px;width: 105px"> 诊断项</span> | 40 | <span style="margin: 0px 6px 0px 6px;width: 105px"> 诊断项</span> |
41 | - <h class="text-link">{{getFaultItemValue(dialTest,'diagnosticItem')}}</h> | 41 | + <h class="text-link" @click="openDiagnosticItem('')">{{getFaultItemValue(dialTest,'diagnosticItem')}}</h> |
42 | </div> | 42 | </div> |
43 | </div> | 43 | </div> |
44 | <div style="text-align: left;display: flex;margin-top: 10px;"> | 44 | <div style="text-align: left;display: flex;margin-top: 10px;"> |
45 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> | 45 | <div style="width: 230px;margin-left: 20px;display: flex;align-self: center;color: #75af49;"> |
46 | <img src="../src/style/img/fault/success.png" style="width: 20px;height: 20px"> | 46 | <img src="../src/style/img/fault/success.png" style="width: 20px;height: 20px"> |
47 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> | 47 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px">正常</span> |
48 | - <h style="font-size: 24px" class="text-link">{{getFaultItemValue(dialTest,'normal')}}</h> | 48 | + <h style="font-size: 24px" class="text-link" @click="openDiagnosticItem('normal')">{{getFaultItemValue(dialTest,'normal')}}</h> |
49 | </div> | 49 | </div> |
50 | | | 50 | | |
51 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> | 51 | <div style="width: 200px;margin-left: 20px;display: flex;align-self: center;color: #febb1a;"> |
52 | <img src="../src/style/img/fault/error.png" style="width: 20px;height: 20px"> | 52 | <img src="../src/style/img/fault/error.png" style="width: 20px;height: 20px"> |
53 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px"> 异常</span> | 53 | <span style="margin: 0px 6px 0px 6px;width: 105px;font-size: 16px"> 异常</span> |
54 | - <h style="font-size: 24px" class="text-link">{{getFaultItemValue(dialTest,'abnormal')}}</h> | 54 | + <h style="font-size: 24px" class="text-link" @click="openDiagnosticItem('abnormal')">{{getFaultItemValue(dialTest,'abnormal')}}</h> |
55 | </div> | 55 | </div> |
56 | </div> | 56 | </div> |
57 | </div> | 57 | </div> |
@@ -113,6 +113,10 @@ export default { | @@ -113,6 +113,10 @@ export default { | ||
113 | const openKpiList = () => { | 113 | const openKpiList = () => { |
114 | service.sendEventDiagnoseKpiList(emit, props.faultNo,props.targetType.toLocaleLowerCase()); | 114 | service.sendEventDiagnoseKpiList(emit, props.faultNo,props.targetType.toLocaleLowerCase()); |
115 | } | 115 | } |
116 | + //诊断项(正常、异常) | ||
117 | + const openDiagnosticItem = (type) => { | ||
118 | + service.sendEventNormalDialog(emit, proxy.$global, props.faultNo, props.targetType.toLocaleLowerCase(), '',type); | ||
119 | + } | ||
116 | 120 | ||
117 | // 挂载完 | 121 | // 挂载完 |
118 | Vue.onMounted(() => { | 122 | Vue.onMounted(() => { |
@@ -132,7 +136,8 @@ export default { | @@ -132,7 +136,8 @@ export default { | ||
132 | getFaultItemValue: service.getFaultItemValue, | 136 | getFaultItemValue: service.getFaultItemValue, |
133 | openBusScenarios, | 137 | openBusScenarios, |
134 | openKpiList, | 138 | openKpiList, |
135 | - openResPonse | 139 | + openResPonse, |
140 | + openDiagnosticItem | ||
136 | } | 141 | } |
137 | } | 142 | } |
138 | } | 143 | } |
@@ -346,16 +346,17 @@ const faultEvent = () => { | @@ -346,16 +346,17 @@ const faultEvent = () => { | ||
346 | // return; | 346 | // return; |
347 | // } | 347 | // } |
348 | 348 | ||
349 | - var title = type == 'normal' ? '诊断项(正常)' : '诊断项(异常)'; | ||
350 | - if (!title) { | ||
351 | - title = '更多'; | 349 | + var title =''; |
350 | + if (type=='') { | ||
351 | + title = '诊断项'; | ||
352 | + }else { | ||
353 | + title = type == 'normal' ? '诊断项(正常)' : '诊断项(异常)'; | ||
352 | } | 354 | } |
353 | 355 | ||
354 | var obj = { | 356 | var obj = { |
355 | title: title, | 357 | title: title, |
356 | columns: [{ | 358 | columns: [{ |
357 | - prop: 'taskName', | ||
358 | - width: 120, | 359 | + prop: 'name', |
359 | label: '名称', | 360 | label: '名称', |
360 | }, { | 361 | }, { |
361 | prop: 'kpiName', | 362 | prop: 'kpiName', |
@@ -388,7 +389,7 @@ const faultEvent = () => { | @@ -388,7 +389,7 @@ const faultEvent = () => { | ||
388 | // 正常 | 389 | // 正常 |
389 | if (type == 'normal') { | 390 | if (type == 'normal') { |
390 | isAbnormal = 0; | 391 | isAbnormal = 0; |
391 | - } else { | 392 | + } else if(type == 'abnormal'){ |
392 | isAbnormal = 1; | 393 | isAbnormal = 1; |
393 | } | 394 | } |
394 | 395 | ||
@@ -406,7 +407,6 @@ const faultEvent = () => { | @@ -406,7 +407,6 @@ const faultEvent = () => { | ||
406 | } | 407 | } |
407 | }); | 408 | }); |
408 | 409 | ||
409 | - emit('openDialog', 'more', {}, obj); | ||
410 | } | 410 | } |
411 | 411 | ||
412 | /** | 412 | /** |
-
Please register or login to post a comment