--新增历史告警,故障通用设置国际化
This commit is contained in:
@@ -437,7 +437,28 @@ export default {
|
|||||||
syncMyself:'Manual Synchronization',
|
syncMyself:'Manual Synchronization',
|
||||||
realTitle:'Title',
|
realTitle:'Title',
|
||||||
objectNf:'Object NE',
|
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: {
|
monitor: {
|
||||||
session: {
|
session: {
|
||||||
|
|||||||
@@ -448,6 +448,17 @@ export default {
|
|||||||
exportSure:'确认是否导出全部活动告警信息',
|
exportSure:'确认是否导出全部活动告警信息',
|
||||||
viewIdInfo:'查看{alarmId} 记录信息',
|
viewIdInfo:'查看{alarmId} 记录信息',
|
||||||
},
|
},
|
||||||
|
historyAlarm:{
|
||||||
|
exportSure:'确认是否导出全部历史告警信息?',
|
||||||
|
},
|
||||||
|
faultSetting:{
|
||||||
|
interfaceType:'告警前转接口类型',
|
||||||
|
email:'Email',
|
||||||
|
sms:'SMS',
|
||||||
|
save:'保存设置',
|
||||||
|
noChange:'告警前转接口设置无变更',
|
||||||
|
forwardSet:'告警前转接口设置',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
monitor: {
|
monitor: {
|
||||||
session: {
|
session: {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ function fnFormLogSetFinish() {
|
|||||||
|
|
||||||
/**告警前转接口对象信息状态 */
|
/**告警前转接口对象信息状态 */
|
||||||
let forwardState: ModalStateType = reactive({
|
let forwardState: ModalStateType = reactive({
|
||||||
title: '告警前转接口设置',
|
title:t('views.faultManage.faultSetting.forwardSet'),
|
||||||
from: {
|
from: {
|
||||||
interface: 'email',
|
interface: 'email',
|
||||||
emailObj: [],
|
emailObj: [],
|
||||||
@@ -132,9 +132,9 @@ function fnFormForwardFinish() {
|
|||||||
updateForwardSet(from)
|
updateForwardSet(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success(`告警前转接口设置保存成功`, 3);
|
message.success( t('common.msgSuccess', { msg: t('views.faultManage.faultSetting.save')}), 3);
|
||||||
} else {
|
} else {
|
||||||
message.warning(`告警前转接口设置无变更`, 3);
|
message.warning(t('views.faultManage.faultSetting.noChange'), 3);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
@@ -186,7 +186,7 @@ onMounted(() => {
|
|||||||
@click.prevent="fnFormLogSetFinish"
|
@click.prevent="fnFormLogSetFinish"
|
||||||
>
|
>
|
||||||
<template #icon><SaveOutlined /></template>
|
<template #icon><SaveOutlined /></template>
|
||||||
保存设置
|
{{ t('views.faultManage.faultSetting.save') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -269,7 +269,7 @@ onMounted(() => {
|
|||||||
@click.prevent="fnFormForwardFinish"
|
@click.prevent="fnFormForwardFinish"
|
||||||
>
|
>
|
||||||
<template #icon><SaveOutlined /></template>
|
<template #icon><SaveOutlined /></template>
|
||||||
保存设置
|
{{ t('views.faultManage.faultSetting.save') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -277,13 +277,12 @@ onMounted(() => {
|
|||||||
name="forwardState"
|
name="forwardState"
|
||||||
layout="horizontal"
|
layout="horizontal"
|
||||||
autocomplete="off"
|
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-input value="Email" allow-clear disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
label="告警前转Email"
|
:label="t('views.faultManage.faultSetting.email')"
|
||||||
name="emailObj"
|
name="emailObj"
|
||||||
>
|
>
|
||||||
<a-select
|
<a-select
|
||||||
@@ -291,14 +290,13 @@ onMounted(() => {
|
|||||||
mode="tags"
|
mode="tags"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:token-separators="[',']"
|
:token-separators="[',']"
|
||||||
placeholder="请输入正确Email"
|
|
||||||
></a-select>
|
></a-select>
|
||||||
</a-form-item>
|
</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-input value="SMS" allow-clear disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
label="告警前转SMS"
|
:label="t('views.faultManage.faultSetting.sms')"
|
||||||
name="smsObj"
|
name="smsObj"
|
||||||
>
|
>
|
||||||
<a-select
|
<a-select
|
||||||
@@ -306,7 +304,6 @@ onMounted(() => {
|
|||||||
mode="tags"
|
mode="tags"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
:token-separators="[',']"
|
:token-separators="[',']"
|
||||||
placeholder="请输入正确SMS"
|
|
||||||
></a-select>
|
></a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
*/
|
*/
|
||||||
function fnModalVisibleByVive(row: Record<string, any>) {
|
function fnModalVisibleByVive(row: Record<string, any>) {
|
||||||
modalState.from = Object.assign(modalState.from, row);
|
modalState.from = Object.assign(modalState.from, row);
|
||||||
modalState.title = `查看${row.alarmId} 记录信息`;
|
modalState.title = t('views.faultManage.activeAlarm.viewIdInfo',{alarmId:row.alarmId});
|
||||||
modalState.visibleByView = true;
|
modalState.visibleByView = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -464,14 +464,14 @@ const onSelectChange = (
|
|||||||
function fnCancelConfirm() {
|
function fnCancelConfirm() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: 'Tip',
|
title: 'Tip',
|
||||||
content: `确认是否取消确认告警?`,
|
content: t('views.faultManage.activeAlarm.cancelSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
cancelConfirm(state.selectedRowKeys).then(res => {
|
cancelConfirm(state.selectedRowKeys).then(res => {
|
||||||
hide();
|
hide();
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `取消确认告警成功`,
|
content: t('views.faultManage.activeAlarm.cancelSuss'),
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
fnGetList();
|
fnGetList();
|
||||||
@@ -492,14 +492,14 @@ function fnCancelConfirm() {
|
|||||||
function fnExportAll() {
|
function fnExportAll() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: 'Tip',
|
title: 'Tip',
|
||||||
content: `确认是否导出全部历史告警信息?`,
|
content: t('views.faultManage.historyAlarm.exportSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'exportAlarmHis';
|
const key = 'exportAlarmHis';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
exportAll(queryParams).then(res => {
|
exportAll(queryParams).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `已完成导出`,
|
content: t('common.msgSuccess', { msg: t('common.export') }),
|
||||||
key,
|
key,
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
@@ -587,7 +587,6 @@ onMounted(() => {
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.ne_type"
|
v-model:value="queryParams.ne_type"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="查询告警设备类型"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -599,7 +598,6 @@ onMounted(() => {
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.ne_name"
|
v-model:value="queryParams.ne_name"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="查询告警网元名称"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -611,7 +609,6 @@ onMounted(() => {
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.ne_id"
|
v-model:value="queryParams.ne_id"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="查询告警网元标识"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -640,7 +637,6 @@ onMounted(() => {
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.alarm_code"
|
v-model:value="queryParams.alarm_code"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="查询告警编号"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -798,7 +794,7 @@ onMounted(() => {
|
|||||||
<template v-if="column.key === 'alarm_id'">
|
<template v-if="column.key === 'alarm_id'">
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>查看详情</template>
|
<template #title>{{ t('common.viewText') }}</template>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnModalVisibleByVive(record)"
|
@click.prevent="fnModalVisibleByVive(record)"
|
||||||
@@ -822,7 +818,7 @@ onMounted(() => {
|
|||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
:confirm-loading="modalState.confirmLoading"
|
:confirm-loading="modalState.confirmLoading"
|
||||||
@ok="fnModalOk"
|
@ok="fnModalOk"
|
||||||
ok-text="查阅"
|
:ok-text="t('views.faultManage.activeAlarm.confirm')"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
>
|
>
|
||||||
<a-form name="modalStateFrom" layout="horizontal">
|
<a-form name="modalStateFrom" layout="horizontal">
|
||||||
|
|||||||
Reference in New Issue
Block a user