新增黄金指标,性能任务管理,修正历史活动告警

This commit is contained in:
lai
2023-10-20 19:21:34 +08:00
parent b9d0bed03f
commit 9092d1d051
9 changed files with 725 additions and 590 deletions

View File

@@ -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,
});
}
},
});
}