--新增历史告警,故障通用设置国际化
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -448,6 +448,17 @@ export default {
|
||||
exportSure:'确认是否导出全部活动告警信息',
|
||||
viewIdInfo:'查看{alarmId} 记录信息',
|
||||
},
|
||||
historyAlarm:{
|
||||
exportSure:'确认是否导出全部历史告警信息?',
|
||||
},
|
||||
faultSetting:{
|
||||
interfaceType:'告警前转接口类型',
|
||||
email:'Email',
|
||||
sms:'SMS',
|
||||
save:'保存设置',
|
||||
noChange:'告警前转接口设置无变更',
|
||||
forwardSet:'告警前转接口设置',
|
||||
}
|
||||
},
|
||||
monitor: {
|
||||
session: {
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
<template #icon><SaveOutlined /></template>
|
||||
保存设置
|
||||
{{ t('views.faultManage.faultSetting.save') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@@ -269,7 +269,7 @@ onMounted(() => {
|
||||
@click.prevent="fnFormForwardFinish"
|
||||
>
|
||||
<template #icon><SaveOutlined /></template>
|
||||
保存设置
|
||||
{{ t('views.faultManage.faultSetting.save') }}
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@@ -277,13 +277,12 @@ onMounted(() => {
|
||||
name="forwardState"
|
||||
layout="horizontal"
|
||||
autocomplete="off"
|
||||
:label-col="{ span: 8 }"
|
||||
>
|
||||
<a-form-item label="告警前转接口类型" name="interface">
|
||||
<a-form-item :label="t('views.faultManage.faultSetting.interfaceType')" name="interface">
|
||||
<a-input value="Email" allow-clear disabled></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
label="告警前转Email"
|
||||
:label="t('views.faultManage.faultSetting.email')"
|
||||
name="emailObj"
|
||||
>
|
||||
<a-select
|
||||
@@ -291,14 +290,13 @@ onMounted(() => {
|
||||
mode="tags"
|
||||
style="width: 100%"
|
||||
:token-separators="[',']"
|
||||
placeholder="请输入正确Email"
|
||||
></a-select>
|
||||
</a-form-item>
|
||||
<a-form-item label="告警前转接口类型" name="interface">
|
||||
<a-form-item :label="t('views.faultManage.faultSetting.interfaceType')" name="interface">
|
||||
<a-input value="SMS" allow-clear disabled></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item
|
||||
label="告警前转SMS"
|
||||
:label="t('views.faultManage.faultSetting.sms')"
|
||||
name="smsObj"
|
||||
>
|
||||
<a-select
|
||||
@@ -306,7 +304,6 @@ onMounted(() => {
|
||||
mode="tags"
|
||||
style="width: 100%"
|
||||
:token-separators="[',']"
|
||||
placeholder="请输入正确SMS"
|
||||
></a-select>
|
||||
</a-form-item>
|
||||
</a-form>
|
||||
|
||||
@@ -395,7 +395,7 @@ let modalState: ModalStateType = reactive({
|
||||
*/
|
||||
function fnModalVisibleByVive(row: Record<string, any>) {
|
||||
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(() => {
|
||||
<a-input
|
||||
v-model:value="queryParams.ne_type"
|
||||
allow-clear
|
||||
placeholder="查询告警设备类型"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -599,7 +598,6 @@ onMounted(() => {
|
||||
<a-input
|
||||
v-model:value="queryParams.ne_name"
|
||||
allow-clear
|
||||
placeholder="查询告警网元名称"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -611,7 +609,6 @@ onMounted(() => {
|
||||
<a-input
|
||||
v-model:value="queryParams.ne_id"
|
||||
allow-clear
|
||||
placeholder="查询告警网元标识"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -640,7 +637,6 @@ onMounted(() => {
|
||||
<a-input
|
||||
v-model:value="queryParams.alarm_code"
|
||||
allow-clear
|
||||
placeholder="查询告警编号"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -798,7 +794,7 @@ onMounted(() => {
|
||||
<template v-if="column.key === 'alarm_id'">
|
||||
<a-space :size="8" align="center">
|
||||
<a-tooltip>
|
||||
<template #title>查看详情</template>
|
||||
<template #title>{{ t('common.viewText') }}</template>
|
||||
<a-button
|
||||
type="link"
|
||||
@click.prevent="fnModalVisibleByVive(record)"
|
||||
@@ -822,7 +818,7 @@ onMounted(() => {
|
||||
:title="modalState.title"
|
||||
:confirm-loading="modalState.confirmLoading"
|
||||
@ok="fnModalOk"
|
||||
ok-text="查阅"
|
||||
:ok-text="t('views.faultManage.activeAlarm.confirm')"
|
||||
@cancel="fnModalCancel"
|
||||
>
|
||||
<a-form name="modalStateFrom" layout="horizontal">
|
||||
|
||||
Reference in New Issue
Block a user