Showing
5 changed files
with
38 additions
and
8 deletions
@@ -95,7 +95,7 @@ export default { | @@ -95,7 +95,7 @@ export default { | ||
95 | }); | 95 | }); |
96 | } | 96 | } |
97 | const openMoreDialog = () => { | 97 | const openMoreDialog = () => { |
98 | - service.sendEventMoreDialog(emit, proxy.$global, card.value); | 98 | + service.sendEventMoreDialog(emit, proxy.$global, card.value,undefined,props.faultNo, props.targetType.toLocaleLowerCase()); |
99 | } | 99 | } |
100 | //诊断应用 | 100 | //诊断应用 |
101 | const openBusScenarios = (resClass,title) => { | 101 | const openBusScenarios = (resClass,title) => { |
@@ -99,7 +99,7 @@ export default { | @@ -99,7 +99,7 @@ export default { | ||
99 | } | 99 | } |
100 | 100 | ||
101 | const openMoreDialog = () => { | 101 | const openMoreDialog = () => { |
102 | - service.sendEventMoreDialog(emit, proxy.$global, card.value); | 102 | + service.sendEventMoreDialog(emit, proxy.$global, card.value,undefined, props.faultNo, props.targetType.toLocaleLowerCase()); |
103 | } | 103 | } |
104 | //诊断项(正常、异常) | 104 | //诊断项(正常、异常) |
105 | const openDiagnosticItem = (type) => { | 105 | const openDiagnosticItem = (type) => { |
@@ -104,7 +104,7 @@ export default { | @@ -104,7 +104,7 @@ export default { | ||
104 | }); | 104 | }); |
105 | } | 105 | } |
106 | const openMoreDialog = () => { | 106 | const openMoreDialog = () => { |
107 | - service.sendEventMoreDialog(props.parentEmit, proxy.$global, props.cardList.faultFixInfoList); | 107 | + service.sendEventMoreDialog(props.parentEmit, proxy.$global, props.cardList.faultFixInfoList,undefined,faultNo, targetType); |
108 | } | 108 | } |
109 | 109 | ||
110 | //诊断资源 | 110 | //诊断资源 |
@@ -85,7 +85,7 @@ export default { | @@ -85,7 +85,7 @@ export default { | ||
85 | }) | 85 | }) |
86 | } | 86 | } |
87 | const openMoreDialog = () => { | 87 | const openMoreDialog = () => { |
88 | - service.sendEventMoreDialog(emit, proxy.$global, card.value); | 88 | + service.sendEventMoreDialog(emit, proxy.$global, card.value,undefined, props.faultNo, props.targetType.toLocaleLowerCase()); |
89 | } | 89 | } |
90 | //诊断链路场景 | 90 | //诊断链路场景 |
91 | const openBusScenarios = () => { | 91 | const openBusScenarios = () => { |
@@ -287,7 +287,7 @@ const faultEvent = () => { | @@ -287,7 +287,7 @@ const faultEvent = () => { | ||
287 | * @param global | 287 | * @param global |
288 | * @param arr [[{指标对象},{指标对象},....].[{指标对象},{指标对象},....]] | 288 | * @param arr [[{指标对象},{指标对象},....].[{指标对象},{指标对象},....]] |
289 | */ | 289 | */ |
290 | - const sendEventMoreDialog = (emit, global, arr, title) => { | 290 | + const sendEventMoreDialog = (emit, global, arr, title, faultNo, targetType) => { |
291 | if (!arr || arr.length == 0) { | 291 | if (!arr || arr.length == 0) { |
292 | global.showMsg("暂无数据!", "warning"); | 292 | global.showMsg("暂无数据!", "warning"); |
293 | return; | 293 | return; |
@@ -327,12 +327,42 @@ const faultEvent = () => { | @@ -327,12 +327,42 @@ const faultEvent = () => { | ||
327 | } | 327 | } |
328 | }) | 328 | }) |
329 | if (colArr.length == 0) { | 329 | if (colArr.length == 0) { |
330 | - obj.columns.push({ | 330 | + var colObj = { |
331 | prop: kpiId, | 331 | prop: kpiId, |
332 | - label: kpiName + units, | ||
333 | - }); | 332 | + label: kpiName + units |
333 | + } | ||
334 | + | ||
335 | + debugger | ||
336 | + if(listItem.kpiIdent == 1){ | ||
337 | + colObj['click'] = (row) => { | ||
338 | + if (row) { | ||
339 | + sendEventLineDialog(emit, { | ||
340 | + faultNo: faultNo, | ||
341 | + targetType: targetType, | ||
342 | + resId: row.resId, | ||
343 | + kpiId: row.kpiId, | ||
344 | + flag: row.flag, | ||
345 | + resClass: '', | ||
346 | + title: kpiName + '性能曲线' | ||
347 | + }) | ||
348 | + } | ||
349 | + }; | ||
350 | + | ||
351 | + colObj['render'] = (row) => { | ||
352 | + if (row) { | ||
353 | + return `<span style="text-decoration: underline;color:#1e9fff;">${row[kpiId]}</span>` | ||
354 | + } | ||
355 | + return ''; | ||
356 | + } | ||
357 | + } | ||
358 | + | ||
359 | + obj.columns.push(colObj); | ||
334 | } | 360 | } |
335 | 361 | ||
362 | + dataItem['resId'] = listItem.resId; | ||
363 | + dataItem['kpiId'] = kpiId; | ||
364 | + dataItem['flag'] = listItem.flag; | ||
365 | + | ||
336 | dataItem[kpiId] = val; | 366 | dataItem[kpiId] = val; |
337 | dataItem['taskName'] = listItem.name; | 367 | dataItem['taskName'] = listItem.name; |
338 | 368 |
-
Please register or login to post a comment