fix: console.error
This commit is contained in:
@@ -233,6 +233,7 @@ const { mutate: getStaionAlarmList, isPending: isTableLoading } = useMutation({
|
||||
tableData.value = records;
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
@@ -265,6 +266,7 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
|
||||
downloadByData(data, `${station.value?.name}-设备告警记录-${fmt}.xlsx`);
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -173,6 +173,7 @@ const { mutate: getDeviceParams } = useMutation({
|
||||
});
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
@@ -199,6 +200,7 @@ const { mutate: saveDeviceParams } = useMutation({
|
||||
}
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -167,6 +167,10 @@ const { mutate: getRecordCheckByParentId, isPending: loading } = useMutation({
|
||||
onSuccess: (checkList) => {
|
||||
recordCheckList.value = checkList;
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
const { mutate: reloadAllRecordCheck, isPending: reloading } = useMutation({
|
||||
@@ -176,6 +180,10 @@ const { mutate: reloadAllRecordCheck, isPending: reloading } = useMutation({
|
||||
onSuccess: () => {
|
||||
window.$message.success('正在逐步刷新中,请稍后点击刷新按钮查看');
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
@@ -88,7 +88,7 @@ const { mutate: getDeviceAlarmLogList, isPending } = useMutation({
|
||||
tableData.value = records;
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(`查询${ndmDevice.value.name}告警数据失败:`, error);
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -101,7 +101,7 @@ const { mutate: getDeviceIcmpLogList, isPending } = useMutation({
|
||||
predecessorItem.value = previousPageRes?.records.at(-1);
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(`查询${ndmDevice.value.name}诊断数据失败:`, error);
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ const { mutate: getDeviceSnmpLogList, isPending } = useMutation({
|
||||
});
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(`查询${ndmDevice.value.name}告警数据失败:`, error);
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ const { mutate: getDeviceSnmpLogList, isPending } = useMutation({
|
||||
});
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(`查询${ndmNvr.value.name}告警数据失败:`, error);
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -190,6 +190,7 @@ const { mutate: getAlarmList, isPending: isTableLoading } = useMutation({
|
||||
tableData.value = records;
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
@@ -225,6 +226,7 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
|
||||
downloadByData(data, `设备告警记录.xlsx`);
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
@@ -30,6 +30,10 @@ const { mutate: login, isPending: loading } = useMutation({
|
||||
window.$message.success('登录成功');
|
||||
router.push('/');
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -130,6 +130,7 @@ const { mutate: getVimpLogList, isPending: isTableLoading } = useMutation({
|
||||
tableData.value = records;
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
@@ -164,6 +165,7 @@ const { mutate: downloadTableData, isPending: isDownloading } = useMutation({
|
||||
downloadByData(data, `设备告警记录.xlsx`);
|
||||
},
|
||||
onError: (error) => {
|
||||
console.error(error);
|
||||
window.$message.error(error.message);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user