...
|
...
|
@@ -257,14 +257,14 @@ const faultEvent = () => { |
|
|
emit('openDialog', 'alarm', getParams(params));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 展示资源列表弹框
|
|
|
* @param emit
|
|
|
* @param params
|
|
|
*/
|
|
|
const sendEventResListDialog = (emit, params) => {
|
|
|
emit('openDialog', 'resList', getParams(params));
|
|
|
}
|
|
|
// /**
|
|
|
// * 展示资源列表弹框
|
|
|
// * @param emit
|
|
|
// * @param params
|
|
|
// */
|
|
|
// const sendEventResListDialog = (emit, params) => {
|
|
|
// emit('openDialog', 'resList', getParams(params));
|
|
|
// }
|
|
|
|
|
|
/**
|
|
|
* 展示性能曲线图
|
...
|
...
|
@@ -334,24 +334,24 @@ const faultEvent = () => { |
|
|
* @param targetType 诊断类型
|
|
|
* @param columns 数组,表格列对象
|
|
|
*/
|
|
|
const sendEventDiagnoseBusinessScenarios = (emit, faultNo, targetType, columns,resClass) => {
|
|
|
const sendEventDiagnoseBusinessScenarios = (emit, faultNo, targetType, columns, resClass) => {
|
|
|
|
|
|
var obj = {
|
|
|
columns: columns,
|
|
|
data: []
|
|
|
}
|
|
|
var param = {
|
|
|
faultNo:faultNo,
|
|
|
targetType:targetType
|
|
|
faultNo: faultNo,
|
|
|
targetType: targetType
|
|
|
}
|
|
|
if (resClass&&resClass!=''){
|
|
|
param.resClass=resClass;
|
|
|
if (resClass && resClass != '') {
|
|
|
param.resClass = resClass;
|
|
|
}
|
|
|
|
|
|
store.dispatch('getFaultBusinessList', param).then((res) => {
|
|
|
if (res && res.success) {
|
|
|
obj.data = res.data;
|
|
|
emit('openDialog', 'more', {},obj);
|
|
|
emit('openDialog', 'more', {}, obj);
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -370,13 +370,13 @@ const faultEvent = () => { |
|
|
columns: [{
|
|
|
prop: 'kpiId',
|
|
|
label: "指标ID",
|
|
|
},{
|
|
|
}, {
|
|
|
prop: 'kpiName',
|
|
|
label: "指标名称",
|
|
|
},{
|
|
|
}, {
|
|
|
prop: 'kpiIdent',
|
|
|
label: "指标分类",
|
|
|
render:function (row) {
|
|
|
render: function (row) {
|
|
|
if (row.kpiIdent == 3) {
|
|
|
return '告警指标';
|
|
|
} else if (row.kpiIdent == 2) {
|
...
|
...
|
@@ -394,7 +394,7 @@ const faultEvent = () => { |
|
|
store.dispatch('getFaultKpiList', {faultNo: faultNo, targetType: targetType}).then((res) => {
|
|
|
if (res && res.success) {
|
|
|
obj.data = res.data;
|
|
|
emit('openDialog', 'more',{}, obj);
|
|
|
emit('openDialog', 'more', {}, obj);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -402,7 +402,7 @@ const faultEvent = () => { |
|
|
|
|
|
return {
|
|
|
sendEventAlarmDialog,
|
|
|
sendEventResListDialog,
|
|
|
/*sendEventResListDialog,*/
|
|
|
sendEventLineDialog,
|
|
|
sendEventMoreDialog,
|
|
|
sendEventDiagnoseBusinessScenarios,
|
...
|
...
|
|