From f458c18dbddb6bbed0a41313f1a257a2bd72b779 Mon Sep 17 00:00:00 2001
From: lai <371757574@qq.com>
Date: Thu, 9 Nov 2023 16:17:02 +0800
Subject: [PATCH] =?UTF-8?q?--=E6=96=B0=E5=A2=9E=E5=8E=86=E5=8F=B2=E5=91=8A?=
=?UTF-8?q?=E8=AD=A6,=E6=95=85=E9=9A=9C=E9=80=9A=E7=94=A8=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E5=9B=BD=E9=99=85=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/i18n/locales/en-US.ts | 21 +++++++++++++++++++
src/i18n/locales/zh-CN.ts | 11 ++++++++++
src/views/faultManage/fault-setting/index.vue | 21 ++++++++-----------
src/views/faultManage/history-alarm/index.vue | 18 +++++++---------
4 files changed, 48 insertions(+), 23 deletions(-)
diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts
index f6d4fa27..6c0b234d 100644
--- a/src/i18n/locales/en-US.ts
+++ b/src/i18n/locales/en-US.ts
@@ -437,7 +437,28 @@ export default {
syncMyself:'Manual Synchronization',
realTitle:'Title',
objectNf:'Object NE',
+ helpFile:'帮助文档',
+ set:'Set',
+ cancelSure:'Confirm whether to cancel the acknowledgment alarm',
+ cancelSuss:'Alarm canceled successfully',
+ sysncSuss:'Manual synchronization successful',
+ delSuss:'Clear successfully',
+ delSure:'Whether to clear this alarm',
+ showSet:'Show filter settings',
+ exportSure:'Confirm whether to export all active alarm information',
+ viewIdInfo:'View {alarmId} record information',
},
+ historyAlarm:{
+ exportSure:'Confirm whether to export all historical alarm information',
+ },
+ faultSetting:{
+ interfaceType:'Alarm forwarding interface class',
+ email:'Email',
+ sms:'SMS',
+ save:'Save',
+ noChange:'There is no change in the alarm forwarding interface settings.',
+ forwardSet:'Alarm forwarding interface setting',
+ }
},
monitor: {
session: {
diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts
index 13cf5e68..98f78ca3 100644
--- a/src/i18n/locales/zh-CN.ts
+++ b/src/i18n/locales/zh-CN.ts
@@ -448,6 +448,17 @@ export default {
exportSure:'确认是否导出全部活动告警信息',
viewIdInfo:'查看{alarmId} 记录信息',
},
+ historyAlarm:{
+ exportSure:'确认是否导出全部历史告警信息?',
+ },
+ faultSetting:{
+ interfaceType:'告警前转接口类型',
+ email:'Email',
+ sms:'SMS',
+ save:'保存设置',
+ noChange:'告警前转接口设置无变更',
+ forwardSet:'告警前转接口设置',
+ }
},
monitor: {
session: {
diff --git a/src/views/faultManage/fault-setting/index.vue b/src/views/faultManage/fault-setting/index.vue
index 82521fdf..80144c16 100644
--- a/src/views/faultManage/fault-setting/index.vue
+++ b/src/views/faultManage/fault-setting/index.vue
@@ -94,7 +94,7 @@ function fnFormLogSetFinish() {
/**告警前转接口对象信息状态 */
let forwardState: ModalStateType = reactive({
- title: '告警前转接口设置',
+ title:t('views.faultManage.faultSetting.forwardSet'),
from: {
interface: 'email',
emailObj: [],
@@ -132,9 +132,9 @@ function fnFormForwardFinish() {
updateForwardSet(from)
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
- message.success(`告警前转接口设置保存成功`, 3);
+ message.success( t('common.msgSuccess', { msg: t('views.faultManage.faultSetting.save')}), 3);
} else {
- message.warning(`告警前转接口设置无变更`, 3);
+ message.warning(t('views.faultManage.faultSetting.noChange'), 3);
}
})
.finally(() => {
@@ -186,7 +186,7 @@ onMounted(() => {
@click.prevent="fnFormLogSetFinish"
>
- 保存设置
+ {{ t('views.faultManage.faultSetting.save') }}
@@ -269,7 +269,7 @@ onMounted(() => {
@click.prevent="fnFormForwardFinish"
>
- 保存设置
+ {{ t('views.faultManage.faultSetting.save') }}
@@ -277,13 +277,12 @@ onMounted(() => {
name="forwardState"
layout="horizontal"
autocomplete="off"
- :label-col="{ span: 8 }"
>
-
+
{
mode="tags"
style="width: 100%"
:token-separators="[',']"
- placeholder="请输入正确Email"
>
-
+
{
mode="tags"
style="width: 100%"
:token-separators="[',']"
- placeholder="请输入正确SMS"
>
diff --git a/src/views/faultManage/history-alarm/index.vue b/src/views/faultManage/history-alarm/index.vue
index ccb278af..e06e7ca2 100644
--- a/src/views/faultManage/history-alarm/index.vue
+++ b/src/views/faultManage/history-alarm/index.vue
@@ -395,7 +395,7 @@ let modalState: ModalStateType = reactive({
*/
function fnModalVisibleByVive(row: Record) {
modalState.from = Object.assign(modalState.from, row);
- modalState.title = `查看${row.alarmId} 记录信息`;
+ modalState.title = t('views.faultManage.activeAlarm.viewIdInfo',{alarmId:row.alarmId});
modalState.visibleByView = true;
}
@@ -464,14 +464,14 @@ const onSelectChange = (
function fnCancelConfirm() {
Modal.confirm({
title: 'Tip',
- content: `确认是否取消确认告警?`,
+ content: t('views.faultManage.activeAlarm.cancelSure'),
onOk() {
const hide = message.loading(t('common.loading'), 0);
cancelConfirm(state.selectedRowKeys).then(res => {
hide();
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
- content: `取消确认告警成功`,
+ content: t('views.faultManage.activeAlarm.cancelSuss'),
duration: 2,
});
fnGetList();
@@ -492,14 +492,14 @@ function fnCancelConfirm() {
function fnExportAll() {
Modal.confirm({
title: 'Tip',
- content: `确认是否导出全部历史告警信息?`,
+ content: t('views.faultManage.historyAlarm.exportSure'),
onOk() {
const key = 'exportAlarmHis';
message.loading({ content: t('common.loading'), key });
exportAll(queryParams).then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
message.success({
- content: `已完成导出`,
+ content: t('common.msgSuccess', { msg: t('common.export') }),
key,
duration: 3,
});
@@ -587,7 +587,6 @@ onMounted(() => {
@@ -599,7 +598,6 @@ onMounted(() => {
@@ -611,7 +609,6 @@ onMounted(() => {
@@ -640,7 +637,6 @@ onMounted(() => {
@@ -798,7 +794,7 @@ onMounted(() => {
- 查看详情
+ {{ t('common.viewText') }}
{
:title="modalState.title"
:confirm-loading="modalState.confirmLoading"
@ok="fnModalOk"
- ok-text="查阅"
+ :ok-text="t('views.faultManage.activeAlarm.confirm')"
@cancel="fnModalCancel"
>