|
|
@ -187,12 +187,12 @@
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="660px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="660px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px" >
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="130px" >
|
|
|
|
<el-form-item label="规则名称" prop="alarmRuleName">
|
|
|
|
<el-form-item label="规则名称" prop="alarmRuleName">
|
|
|
|
<el-input v-model="form.alarmRuleName" placeholder="请输入规则名称"/>
|
|
|
|
<el-input v-model="form.alarmRuleName" placeholder="请输入规则名称" style="width: 240px"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="所属场景" prop="sceneId">
|
|
|
|
<el-form-item label="所属场景" prop="sceneId">
|
|
|
|
<el-select v-model="form.sceneId" placeholder="请选择所属场景" @input="editedSceneChange"
|
|
|
|
<el-select v-model="form.sceneId" placeholder="请选择所属场景" @input="editedSceneChange"
|
|
|
|
:disabled="sceneDisabled">
|
|
|
|
:disabled="sceneDisabled" style="width: 240px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(scene, index) in editedScenes"
|
|
|
|
v-for="(scene, index) in editedScenes"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
@ -206,7 +206,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="报警级别" prop="alarmLevelId">
|
|
|
|
<el-form-item label="报警级别" prop="alarmLevelId">
|
|
|
|
<el-select v-model="form.alarmLevelId" placeholder="请选择报警级别">
|
|
|
|
<el-select v-model="form.alarmLevelId" placeholder="请选择报警级别" style="width: 240px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(alarmLevel, index) in editedAlarmLevels"
|
|
|
|
v-for="(alarmLevel, index) in editedAlarmLevels"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
@ -217,7 +217,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="报警类型" prop="alarmTypeId">
|
|
|
|
<el-form-item label="报警类型" prop="alarmTypeId">
|
|
|
|
<el-select v-model="form.alarmTypeId" placeholder="请选择报警类型">
|
|
|
|
<el-select v-model="form.alarmTypeId" placeholder="请选择报警类型" style="width: 240px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(alarmType, index) in editedAlarmTypes"
|
|
|
|
v-for="(alarmType, index) in editedAlarmTypes"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
@ -228,11 +228,11 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="触发时间间隔" prop="triggerTimeFrame">
|
|
|
|
<el-form-item label="触发时间间隔" prop="triggerTimeFrame">
|
|
|
|
<el-input v-model="form.triggerTimeFrame" placeholder="请输入时间(分)"/>
|
|
|
|
<el-input v-model="form.triggerTimeFrame" placeholder="请输入时间(分)" style="width: 240px"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="告警联系人" prop="phoneNumbers">
|
|
|
|
<el-form-item label="告警联系人" prop="phoneNumbers">
|
|
|
|
<el-select v-model="form.phoneNumbers" placeholder="请选择告警联系人">
|
|
|
|
<el-select v-model="form.phoneNumbers" placeholder="请选择告警联系人" style="width: 240px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(i, index) in phoneList"
|
|
|
|
v-for="(i, index) in phoneList"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
@ -246,7 +246,7 @@
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="设备" prop="ruleDeviceId">
|
|
|
|
<el-form-item label="设备" prop="ruleDeviceId">
|
|
|
|
<el-select v-model="form.ruleDeviceId" placeholder="请选择设备" :disabled="editedDisabled"
|
|
|
|
<el-select v-model="form.ruleDeviceId" placeholder="请选择设备" :disabled="editedDisabled"
|
|
|
|
@input="editedDeviceChange">
|
|
|
|
@input="editedDeviceChange" style="width: 180px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(device, index) in editedDevices"
|
|
|
|
v-for="(device, index) in editedDevices"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
@ -260,7 +260,7 @@
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="设备属性" prop="ruleModeFunctionIdentifier">
|
|
|
|
<el-form-item label="设备属性" prop="ruleModeFunctionIdentifier">
|
|
|
|
<el-select v-model="form.ruleModeFunctionIdentifier" placeholder="请选择设备属性"
|
|
|
|
<el-select v-model="form.ruleModeFunctionIdentifier" placeholder="请选择设备属性"
|
|
|
|
:disabled="editedDisabled">
|
|
|
|
:disabled="editedDisabled" style="width: 180px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="(deviceModeFunction, index) in editedDeviceModeAttributes"
|
|
|
|
v-for="(deviceModeFunction, index) in editedDeviceModeAttributes"
|
|
|
|
:key="index"
|
|
|
|
:key="index"
|
|
|
@ -276,7 +276,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="触发条件" prop="triggerCondition">
|
|
|
|
<el-form-item label="触发条件" prop="triggerCondition">
|
|
|
|
<el-select v-model="form.triggerCondition" placeholder="请选择触发条件" @input="triggerConditionChange"
|
|
|
|
<el-select v-model="form.triggerCondition" placeholder="请选择触发条件" @input="triggerConditionChange"
|
|
|
|
:disabled="editedDisabled">
|
|
|
|
:disabled="editedDisabled" style="width: 240px">
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in dict.type.hw_alarm_rule_trigger_condition"
|
|
|
|
v-for="dict in dict.type.hw_alarm_rule_trigger_condition"
|
|
|
|
:key="dict.value"
|
|
|
|
:key="dict.value"
|
|
|
@ -289,12 +289,12 @@
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="A值" prop="triggerDataA">
|
|
|
|
<el-form-item label="A值" prop="triggerDataA">
|
|
|
|
<el-input v-model="form.triggerDataA" placeholder="请输入A值" :disabled="editedDisabled"/>
|
|
|
|
<el-input v-model="form.triggerDataA" placeholder="请输入A值" :disabled="editedDisabled" style="width: 240px"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-col :span="12">
|
|
|
|
<el-form-item label="B值" prop="triggerDataB" v-if="triggerDataBVisible">
|
|
|
|
<el-form-item label="B值" prop="triggerDataB" v-if="triggerDataBVisible">
|
|
|
|
<el-input v-model="form.triggerDataB" placeholder="请输入B值" :disabled="editedDisabled"/>
|
|
|
|
<el-input v-model="form.triggerDataB" placeholder="请输入B值" :disabled="editedDisabled" style="width: 240px"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|