增加活动告警国际化
This commit is contained in:
@@ -437,6 +437,16 @@ export default {
|
|||||||
syncMyself:'手工同步',
|
syncMyself:'手工同步',
|
||||||
realTitle:'告警标题',
|
realTitle:'告警标题',
|
||||||
objectNf:'适用网元',
|
objectNf:'适用网元',
|
||||||
|
helpFile:'帮助文档',
|
||||||
|
set:'设置',
|
||||||
|
cancelSure:'确认是否取消确认告警',
|
||||||
|
cancelSuss:'取消告警成功',
|
||||||
|
sysncSuss:'手工同步成功',
|
||||||
|
delSuss:'清除成功',
|
||||||
|
delSure:'是否清除该告警',
|
||||||
|
showSet:'显示过滤设置',
|
||||||
|
exportSure:'确认是否导出全部活动告警信息',
|
||||||
|
viewIdInfo:'查看{alarmId} 记录信息',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
monitor: {
|
monitor: {
|
||||||
|
|||||||
@@ -466,7 +466,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -585,14 +585,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();
|
||||||
@@ -616,7 +616,7 @@ function fnSync() {
|
|||||||
hide();
|
hide();
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `手工同步成功`,
|
content: t('views.faultManage.activeAlarm.sysncSuss'),
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
fnGetList();
|
fnGetList();
|
||||||
@@ -635,14 +635,14 @@ function fnSync() {
|
|||||||
function fnClear() {
|
function fnClear() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: 'Tip',
|
title: 'Tip',
|
||||||
content: `是否清除该告警?`,
|
content: t('views.faultManage.activeAlarm.delSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
clearAlarm(state.selectedRowKeys).then(res => {
|
clearAlarm(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.delSuss'),
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
fnGetList();
|
fnGetList();
|
||||||
@@ -672,10 +672,10 @@ function fnShowSet() {
|
|||||||
? JSON.parse(res.data.data[0]['config'][0].value_json)
|
? JSON.parse(res.data.data[0]['config'][0].value_json)
|
||||||
: {};
|
: {};
|
||||||
modalState.showSetFrom = Object.assign(modalState.showSetFrom, realJson);
|
modalState.showSetFrom = Object.assign(modalState.showSetFrom, realJson);
|
||||||
modalState.title = '显示过滤设置';
|
modalState.title = t('views.faultManage.activeAlarm.showSet');
|
||||||
modalState.visibleByShowSet = true;
|
modalState.visibleByShowSet = true;
|
||||||
} else {
|
} else {
|
||||||
message.error(`获取显示过滤设置失败`, 2);
|
message.error(t('common.getInfoFail'), 2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -686,14 +686,14 @@ function fnShowSet() {
|
|||||||
function fnExportAll() {
|
function fnExportAll() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: 'Tip',
|
title: 'Tip',
|
||||||
content: `确认是否导出全部活动告警信息?`,
|
content: t('views.faultManage.activeAlarm.exportSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'exportAlarm';
|
const key = 'exportAlarm';
|
||||||
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,
|
||||||
});
|
});
|
||||||
@@ -1050,7 +1050,7 @@ onMounted(() => {
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>帮助文档</template>
|
<template #title>{{ t('views.faultManage.activeAlarm.helpFile') }}</template>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnModalVisibleBy(record.alarmCode)"
|
@click.prevent="fnModalVisibleBy(record.alarmCode)"
|
||||||
@@ -1076,7 +1076,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">
|
||||||
@@ -1414,7 +1414,7 @@ onMounted(() => {
|
|||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
:confirm-loading="modalState.confirmLoading"
|
:confirm-loading="modalState.confirmLoading"
|
||||||
@ok="fnShowModalOk"
|
@ok="fnShowModalOk"
|
||||||
ok-text="设置"
|
:ok-text="t('views.faultManage.activeAlarm.set')"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
>
|
>
|
||||||
<a-form name="modalStateShowFrom" layout="horizontal">
|
<a-form name="modalStateShowFrom" layout="horizontal">
|
||||||
@@ -1509,7 +1509,7 @@ onMounted(() => {
|
|||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
:confirm-loading="modalState.confirmLoading"
|
:confirm-loading="modalState.confirmLoading"
|
||||||
@ok="fnShowModalOk"
|
@ok="fnShowModalOk"
|
||||||
ok-text="设置"
|
:ok-text="t('views.faultManage.activeAlarm.set')"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
>
|
>
|
||||||
<a-form name="modalStateShowFrom" layout="horizontal">
|
<a-form name="modalStateShowFrom" layout="horizontal">
|
||||||
|
|||||||
@@ -1064,6 +1064,24 @@ onMounted(() => {
|
|||||||
@cancel="fnBatchModalCancel"
|
@cancel="fnBatchModalCancel"
|
||||||
>
|
>
|
||||||
<a-form name="modalStateBatchFrom" layout="horizontal">
|
<a-form name="modalStateBatchFrom" layout="horizontal">
|
||||||
|
|
||||||
|
<a-row :gutter="16">
|
||||||
|
|
||||||
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
|
<a-form-item
|
||||||
|
:label="t('views.neUser.auth.num')"
|
||||||
|
name="num"
|
||||||
|
v-bind="modalStateBatchFrom.validateInfos.num"
|
||||||
|
>
|
||||||
|
<a-input-number
|
||||||
|
v-model:value="modalState.BatchForm.num"
|
||||||
|
style="width: 100%"
|
||||||
|
></a-input-number>
|
||||||
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
|
||||||
|
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
@@ -1126,19 +1144,6 @@ onMounted(() => {
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.neUser.auth.num')"
|
|
||||||
name="num"
|
|
||||||
v-bind="modalStateBatchFrom.validateInfos.num"
|
|
||||||
>
|
|
||||||
<a-input-number
|
|
||||||
v-model:value="modalState.BatchForm.num"
|
|
||||||
style="width: 100%"
|
|
||||||
></a-input-number>
|
|
||||||
</a-form-item>
|
|
||||||
</a-col>
|
|
||||||
</a-row>
|
|
||||||
|
|
||||||
<a-form-item
|
|
||||||
label="OPC"
|
label="OPC"
|
||||||
name="opc"
|
name="opc"
|
||||||
v-bind="modalStateBatchFrom.validateInfos.opc"
|
v-bind="modalStateBatchFrom.validateInfos.opc"
|
||||||
@@ -1148,6 +1153,10 @@ onMounted(() => {
|
|||||||
allow-clear
|
allow-clear
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
|
||||||
|
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user