diff --git a/src/config/cn.json b/src/config/cn.json index 712f07b..986582c 100644 --- a/src/config/cn.json +++ b/src/config/cn.json @@ -146,7 +146,10 @@ "notify_email": "email", "notify_items": "通知项目", "notify_list": "通知名单", - "choose": "选择" + "choose": "选择", + "day_time": "星期/时间", + "click_time_period": "请用滑鼠点击时间段", + "clear": "清空" }, "operation": { "title": "运维管理", diff --git a/src/config/tw.json b/src/config/tw.json index e0ba7e4..2190d37 100644 --- a/src/config/tw.json +++ b/src/config/tw.json @@ -146,7 +146,10 @@ "notify_email": "email", "notify_items": "通知項目", "notify_list": "通知名單", - "choose": "選擇" + "choose": "選擇", + "day_time":"星期/時間", + "click_time_period":"請用滑鼠點擊時間段", + "clear":"清空" }, "operation": { "title": "運維管理", diff --git a/src/config/us.json b/src/config/us.json index 6a9dfc7..12c2e9a 100644 --- a/src/config/us.json +++ b/src/config/us.json @@ -146,7 +146,10 @@ "notify_email": "Email", "notify_items": "Notification Items", "notify_list": "Notification List", - "choose": "Choose" + "choose": "Choose", + "day_time":"Week/Time", + "click_time_period":"Please click the time period with your mouse", + "clear":"Clear" }, "operation": { "title": "Operation And Maintenance Management", diff --git a/src/util/request.js b/src/util/request.js index d907b1c..5c8e314 100644 --- a/src/util/request.js +++ b/src/util/request.js @@ -38,7 +38,7 @@ instance.interceptors.response.use( function (error) { // Any status codes that falls outside the range of 2xx cause this function to trigger // Do something with response error - if (response && response.status === 401) { + if (error.response && error.response.status === 401) { window.location.href = "/logout"; } return Promise.reject(error); diff --git a/src/views/alert/components/AlertSetting/AlertOutliersTimeModal.vue b/src/views/alert/components/AlertSetting/AlertOutliersTimeModal.vue index 3aa3dfe..33f698f 100644 --- a/src/views/alert/components/AlertSetting/AlertOutliersTimeModal.vue +++ b/src/views/alert/components/AlertSetting/AlertOutliersTimeModal.vue @@ -1,34 +1,236 @@ - + diff --git a/src/views/alert/components/AlertSetting/AlertSubList.vue b/src/views/alert/components/AlertSetting/AlertSubList.vue index 6a44ff6..1b7674d 100644 --- a/src/views/alert/components/AlertSetting/AlertSubList.vue +++ b/src/views/alert/components/AlertSetting/AlertSubList.vue @@ -9,15 +9,18 @@ const { items, changeActiveBtn, setItems, selectedBtn } = useActiveBtn(); const getSubSystems = async () => { const res = await getAlertSubList(); - const subSystems = res.data.history_Main_Systems.flatMap((mainSystem) => { - return mainSystem.history_Sub_systems.map((subSystem, index) => ({ - title: subSystem.full_name, - key: subSystem.sub_system_tag, - active: searchParams.value?.subSys_id - ? searchParams.value.subSys_id === subSystem.sub_system_tag - : index == 0, - })); - }); + const history_Sub_systems = res.data.history_Main_Systems.flatMap( + (mainSystem) => { + return mainSystem.history_Sub_systems; + } + ); + const subSystems = history_Sub_systems.map((subSystem, index) => ({ + title: subSystem.full_name, + key: subSystem.sub_system_tag, + active: searchParams.value?.subSys_id + ? searchParams.value.subSys_id === subSystem.sub_system_tag + : index == 0, + })); setItems(subSystems); }; @@ -27,9 +30,9 @@ onMounted(() => { watch(selectedBtn, (newValue) => { - if (newValue) { - changeParams({ subSys_id: newValue.key }); - } + if (newValue) { + changeParams({ subSys_id: newValue.key }); + } } ); diff --git a/src/views/history/components/HistoryTable.vue b/src/views/history/components/HistoryTable.vue index 8408a33..97ab585 100644 --- a/src/views/history/components/HistoryTable.vue +++ b/src/views/history/components/HistoryTable.vue @@ -19,7 +19,7 @@ const columns = computed(() => [ }, { title: t("history.category"), - key: "points", + key: "item_name", }, { title: t("history.value"),