|
@@ -141,19 +141,19 @@ const historyColumns = [
|
|
|
width: 40,
|
|
|
},
|
|
|
{
|
|
|
- title: t('algorithmManage.faultInformAtion'),
|
|
|
+ title: t('alarmManage.faultInformAtion'),
|
|
|
dataIndex: 'errorMsg',
|
|
|
key: 'errorMsg',
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
- title: t('algorithmManage.type'),
|
|
|
+ title: t('alarmManage.type'),
|
|
|
dataIndex: 'type',
|
|
|
key: 'type',
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
- title: t('algorithmManage.dateOccurrence'),
|
|
|
+ title: t('alarmManage.dateOccurrence'),
|
|
|
dataIndex: 'createTime',
|
|
|
key: 'createTime',
|
|
|
ellipsis: true,
|
|
@@ -164,7 +164,7 @@ const historyColumns = [
|
|
|
},
|
|
|
},
|
|
|
// {
|
|
|
- // title: t('algorithmManage.settlementDate'),
|
|
|
+ // title: t('alarmManage.settlementDate'),
|
|
|
// dataIndex: 'recoveryTime',
|
|
|
// key: 'recoveryTime',
|
|
|
// ellipsis: true,
|
|
@@ -172,7 +172,7 @@ const historyColumns = [
|
|
|
];
|
|
|
const alarmColumns = [
|
|
|
{
|
|
|
- title: t('algorithmManage.eventName'),
|
|
|
+ title: t('alarmManage.eventName'),
|
|
|
dataIndex: 'eventName',
|
|
|
key: 'eventName',
|
|
|
ellipsis: true,
|
|
@@ -184,14 +184,14 @@ const alarmColumns = [
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
{
|
|
|
- title: t('algorithmManage.triggerCount'),
|
|
|
+ title: t('alarmManage.triggerCount'),
|
|
|
dataIndex: 'triggerTimes',
|
|
|
key: 'triggerTimes',
|
|
|
ellipsis: true,
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: t('algorithmManage.recentlyTriggered'),
|
|
|
+ title: t('alarmManage.recentlyTriggered'),
|
|
|
dataIndex: 'lastTriggerTime',
|
|
|
key: 'lastTriggerTime',
|
|
|
ellipsis: true,
|
|
@@ -210,7 +210,7 @@ const alarmColumns = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- title: t('algorithmManage.enable'),
|
|
|
+ title: t('alarmManage.enable'),
|
|
|
dataIndex: 'enabled',
|
|
|
key: 'enabled',
|
|
|
ellipsis: true,
|
|
@@ -484,7 +484,7 @@ const formatDate = (date: Dayjs) => date.format('HH:mm');
|
|
|
|
|
|
const deleteTriggerClick = (index: number) => {
|
|
|
if (triggerConditionList.value.length === 1) {
|
|
|
- return message.warning(t('algorithmManage.triggerConditionEmpty'));
|
|
|
+ return message.warning(t('alarmManage.triggerConditionEmpty'));
|
|
|
}
|
|
|
triggerConditionList.value.splice(index, 1);
|
|
|
};
|
|
@@ -495,7 +495,7 @@ const deleteJudgmentClick = (index: number) => {
|
|
|
|
|
|
const deleteExecutionClick = (index: number) => {
|
|
|
if (executionActionList.value.length === 1) {
|
|
|
- return message.warning(t('algorithmManage.performActionEmpty'));
|
|
|
+ return message.warning(t('alarmManage.performActionEmpty'));
|
|
|
}
|
|
|
executionActionList.value.splice(index, 1);
|
|
|
};
|
|
@@ -626,7 +626,7 @@ onMounted(() => {
|
|
|
<span class="query-text">{{ $t('common.search') }}</span>
|
|
|
<AInput
|
|
|
v-model:value="alarmPageParams.searchContent"
|
|
|
- :placeholder="t('algorithmManage.pleaseEnterAlarm')"
|
|
|
+ :placeholder="t('alarmManage.pleaseEnterAlarm')"
|
|
|
class="query-input button-margin"
|
|
|
/>
|
|
|
</div>
|
|
@@ -664,21 +664,21 @@ onMounted(() => {
|
|
|
</div>
|
|
|
<AModal
|
|
|
v-model:open="alarmOpen"
|
|
|
- :title="titleShow ? t('algorithmManage.addWarningConditions') : t('algorithmManage.editWarningConditions')"
|
|
|
+ :title="titleShow ? t('alarmManage.addWarningConditions') : t('alarmManage.editWarningConditions')"
|
|
|
width="920px"
|
|
|
:mask-closable="false"
|
|
|
@ok="okConfirm"
|
|
|
:after-close="closeModal"
|
|
|
>
|
|
|
<AForm ref="formRef" class="alarm-modal" :model="alarmForm" label-align="left" layout="vertical" :rules="rules">
|
|
|
- <AFormItem :label="t('algorithmManage.eventName')" name="eventName">
|
|
|
+ <AFormItem :label="t('alarmManage.eventName')" name="eventName">
|
|
|
<AInput
|
|
|
v-model:value="alarmForm.eventName"
|
|
|
:placeholder="t('common.pleaseEnter')"
|
|
|
class="query-input query-bottom"
|
|
|
/>
|
|
|
</AFormItem>
|
|
|
- <AFormItem :label="t('algorithmManage.effectiveTime')" name="time">
|
|
|
+ <AFormItem :label="t('alarmManage.effectiveTime')" name="time">
|
|
|
<ATimeRangePicker
|
|
|
:format="dateFormat"
|
|
|
v-model:value="alarmForm.time"
|
|
@@ -686,7 +686,7 @@ onMounted(() => {
|
|
|
show-time
|
|
|
/>
|
|
|
</AFormItem>
|
|
|
- <div class="alarm-text">{{ $t('algorithmManage.inAnySituations') }}</div>
|
|
|
+ <div class="alarm-text">{{ $t('alarmManage.inAnySituations') }}</div>
|
|
|
|
|
|
<div v-for="(item, index) in triggerConditionList" :key="index">
|
|
|
<AlarmConditions
|
|
@@ -704,14 +704,14 @@ onMounted(() => {
|
|
|
<AButton type="primary" ghost class="icon-button button-top" @click="addTriggerConditions">
|
|
|
<AFlex align="center">
|
|
|
<SvgIcon name="plus" />
|
|
|
- <span> {{ $t('algorithmManage.addTriggerConditions') }} </span>
|
|
|
+ <span> {{ $t('alarmManage.addTriggerConditions') }} </span>
|
|
|
</AFlex></AButton
|
|
|
>
|
|
|
<br />
|
|
|
|
|
|
<ASelect class="status-style" v-model:value="alarmForm.conditionLogic">
|
|
|
- <ASelectOption :value="0">{{ $t('algorithmManage.satisfyAnyState') }}</ASelectOption>
|
|
|
- <ASelectOption :value="1">{{ $t('algorithmManage.satisfyAllStates') }}</ASelectOption>
|
|
|
+ <ASelectOption :value="0">{{ $t('alarmManage.satisfyAnyState') }}</ASelectOption>
|
|
|
+ <ASelectOption :value="1">{{ $t('alarmManage.satisfyAllStates') }}</ASelectOption>
|
|
|
</ASelect>
|
|
|
<br />
|
|
|
<div v-for="(item, index) in judgmentConditionList" :key="index">
|
|
@@ -730,12 +730,12 @@ onMounted(() => {
|
|
|
<AButton type="primary" ghost class="icon-button button-top" @click="addJudgmentConditions">
|
|
|
<AFlex align="center">
|
|
|
<SvgIcon name="plus" />
|
|
|
- <span> {{ $t('algorithmManage.addJudgmentConditions') }} </span>
|
|
|
+ <span> {{ $t('alarmManage.addJudgmentConditions') }} </span>
|
|
|
</AFlex></AButton
|
|
|
>
|
|
|
<br />
|
|
|
|
|
|
- <div class="execute-text">{{ $t('algorithmManage.just') }}</div>
|
|
|
+ <div class="execute-text">{{ $t('alarmManage.just') }}</div>
|
|
|
<div v-for="(item, index) in executionActionList" :key="index">
|
|
|
<AlarmExecution
|
|
|
ref="executionActionRefs"
|
|
@@ -750,16 +750,16 @@ onMounted(() => {
|
|
|
<AButton type="primary" ghost class="icon-button button-top" @click="addExecutionConditions">
|
|
|
<AFlex align="center">
|
|
|
<SvgIcon name="plus" />
|
|
|
- <span> {{ $t('algorithmManage.addExecutionAction') }} </span>
|
|
|
+ <span> {{ $t('alarmManage.addExecutionAction') }} </span>
|
|
|
</AFlex></AButton
|
|
|
>
|
|
|
</AForm>
|
|
|
<AFlex align="center" class="enable-style">
|
|
|
- <div class="enable-text">{{ $t('algorithmManage.enable') }}</div>
|
|
|
+ <div class="enable-text">{{ $t('alarmManage.enable') }}</div>
|
|
|
<ASwitch v-model:checked="alarmForm.enabled" />
|
|
|
</AFlex>
|
|
|
</AModal>
|
|
|
- <AModal v-model:open="historyOpen" :title="t('algorithmManage.historicalAlarm')" width="920px" :footer="null">
|
|
|
+ <AModal v-model:open="historyOpen" :title="t('alarmManage.historicalAlarm')" width="920px" :footer="null">
|
|
|
<ATable :columns="historyColumns" :data-source="historyData" :pagination="false">
|
|
|
<template #bodyCell="{ column, index, record }">
|
|
|
<template v-if="column.key === 'index'">
|
|
@@ -768,8 +768,8 @@ onMounted(() => {
|
|
|
<template v-if="column.key === 'type'">
|
|
|
{{
|
|
|
record.type === 0
|
|
|
- ? $t('algorithmManage.equipmentFailureAlert')
|
|
|
- : $t('algorithmManage.intelligentControlformAtion')
|
|
|
+ ? $t('alarmManage.equipmentFailureAlert')
|
|
|
+ : $t('alarmManage.intelligentControlformAtion')
|
|
|
}}
|
|
|
</template>
|
|
|
</template>
|