新增黄金指标,性能任务管理,修正历史活动告警
This commit is contained in:
@@ -386,6 +386,7 @@ function fnModalOk() {
|
||||
content: t('views.faultManage.activeAlarm.ackError'),
|
||||
duration: 3,
|
||||
});
|
||||
modalState.confirmLoading = false;
|
||||
modalState.visibleByView = false;
|
||||
return false;
|
||||
}
|
||||
@@ -465,25 +466,31 @@ function fnCancelConfirm() {
|
||||
* 导出全部
|
||||
*/
|
||||
function fnExportAll() {
|
||||
const key = 'exportAlarmHis';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
exportAll(queryParams).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
content: `已完成导出`,
|
||||
key,
|
||||
duration: 3,
|
||||
Modal.confirm({
|
||||
title: 'Tip',
|
||||
content: `确认是否导出全部历史告警信息?`,
|
||||
onOk() {
|
||||
const key = 'exportAlarmHis';
|
||||
message.loading({ content: '请稍等...', key });
|
||||
exportAll(queryParams).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
message.success({
|
||||
content: `已完成导出`,
|
||||
key,
|
||||
duration: 3,
|
||||
});
|
||||
writeSheet(res.data, 'alarm').then(fileBlob =>
|
||||
saveAs(fileBlob, `history-alarm_${Date.now()}.xlsx`)
|
||||
);
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
key,
|
||||
duration: 3,
|
||||
});
|
||||
}
|
||||
});
|
||||
writeSheet(res.data, 'alarm').then(fileBlob =>
|
||||
saveAs(fileBlob, `history-alarm_${Date.now()}.xlsx`)
|
||||
);
|
||||
} else {
|
||||
message.error({
|
||||
content: `${res.msg}`,
|
||||
key,
|
||||
duration: 3,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user