style: 移除非error级别console

This commit is contained in:
TsMask
2023-10-11 17:31:38 +08:00
parent 9cf276a7f9
commit eaba814cd2
7 changed files with 22 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ import {
clearAlarm,
showPass,
getPass,
exportAll
exportAll,
} from '@/api/faultManage/actAlarm';
import useNeInfoStore from '@/store/modules/neinfo';
import useI18n from '@/hooks/useI18n';
@@ -474,9 +474,7 @@ const closeDrawer = () => {
/**抽屉 告警帮助文档详细信息 */
function fnModalVisibleBy(code: string) {
const result = readLoalXlsx(code);
result
readLoalXlsx(code)
.then(res => {
if (!res.length) {
visible.value = false;
@@ -486,7 +484,7 @@ function fnModalVisibleBy(code: string) {
tableState.loading = false;
})
.catch(error => console.log(error));
.catch(error => console.error(error));
}
/**
@@ -682,29 +680,27 @@ function fnShowSet() {
/**
* 导出全部
*/
function fnExportAll(){
function fnExportAll() {
const key = 'exportAlarm';
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, `alarm_${Date.now()}.xlsx`)
);
} else {
message.error({
content: `${res.msg}`,
key,
duration: 3,
});
}
})
exportAll(queryParams).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
content: `已完成导出`,
key,
duration: 3,
});
writeSheet(res.data, 'alarm').then(fileBlob =>
saveAs(fileBlob, `alarm_${Date.now()}.xlsx`)
);
} else {
message.error({
content: `${res.msg}`,
key,
duration: 3,
});
}
});
}
/**
* 对话框弹出关闭执行函数