修改
This commit is contained in:
parent
9268d572c7
commit
988a3181a1
@ -125,7 +125,8 @@ export interface AlarmRule {
|
||||
export interface LineAlarmSettingPayload {
|
||||
line_no: number
|
||||
over_limit_alarm: AlarmRule[]
|
||||
fault_alarm: AlarmRule[]
|
||||
fault_alarm: AlarmRule[],
|
||||
transformer_change: AlarmRule[]
|
||||
}
|
||||
|
||||
export interface AiAlarmSettingItem {
|
||||
|
||||
@ -38,9 +38,9 @@ const infoList = ref({
|
||||
{ category: '功率', delay: 0, enabled: false, output_node: '', limit: 0 },
|
||||
{ category: '频率', delay: 0, enabled: false, output_node: '', limit: 0 },
|
||||
],
|
||||
mutual_limit_alarm: [
|
||||
{ category: 'PT变化', delay: 0, enabled: false, output_node: '', limit: 0 },
|
||||
{ category: 'CT变化', delay: 0, enabled: false, output_node: '', limit: 0 },
|
||||
transformer_change: [
|
||||
{ category: 'PT变比', delay: 0, enabled: false, output_node: '', limit: 0 },
|
||||
{ category: 'CT变比', delay: 0, enabled: false, output_node: '', limit: 0 },
|
||||
]
|
||||
|
||||
})
|
||||
@ -107,7 +107,7 @@ const cleardata = () => {
|
||||
item.output_node = ''
|
||||
item.limit = 0
|
||||
})
|
||||
infoList.value.mutual_limit_alarm.forEach(item => {
|
||||
infoList.value.transformer_change.forEach(item => {
|
||||
item.delay = 0
|
||||
item.enabled = false
|
||||
item.output_node = ''
|
||||
@ -149,16 +149,16 @@ const init = () => {
|
||||
}
|
||||
})
|
||||
})
|
||||
// res.mutual_limit_alarm.forEach(item => {
|
||||
// infoList.value.mutual_limit_alarm.forEach((mutualLimitItem, idx) => {
|
||||
// if (mutualLimitItem.category === item.category) {
|
||||
// mutualLimitItem.delay = item.delay
|
||||
// mutualLimitItem.enabled = item.enabled
|
||||
// mutualLimitItem.output_node = item.output_node
|
||||
// mutualLimitItem.limit = item.limit || 0
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
res.transformer_change.forEach(item => {
|
||||
infoList.value.transformer_change.forEach((transformerChangeItem, idx) => {
|
||||
if (transformerChangeItem.category === item.category) {
|
||||
transformerChangeItem.delay = item.delay
|
||||
transformerChangeItem.enabled = item.enabled
|
||||
transformerChangeItem.output_node = item.output_node
|
||||
transformerChangeItem.limit = item.limit || 0
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
}
|
||||
const isswitch = ref(false)
|
||||
@ -220,7 +220,7 @@ const handleSave = () => {
|
||||
<div class="tab-content-item-box box-color box-height">频率</div>
|
||||
<div class="tab-content-item-box box-color box-height">PT断线</div>
|
||||
<div class="tab-content-item-box box-color box-height">CT断线</div>
|
||||
<div class="tab-content-item-box box-color box-height">PT变化</div>
|
||||
<div class="tab-content-item-box box-color box-height">PT变比</div>
|
||||
</div>
|
||||
<div class="tab-content-item">
|
||||
<div class="tab-content-item-box box-height">限值</div>
|
||||
@ -251,7 +251,7 @@ const handleSave = () => {
|
||||
<img src="@/assets/images/menuicon/noitem.png" style="width: 100%; height: 100%;" alt="">
|
||||
</div>
|
||||
<div class="tab-content-item-box box-color box-height">
|
||||
<el-input-number v-model="infoList.mutual_limit_alarm[0].limit" style="width: 100%;"
|
||||
<el-input-number v-model="infoList.transformer_change[0].limit" style="width: 100%;"
|
||||
:controls="false" />
|
||||
</div>
|
||||
</div>
|
||||
@ -286,7 +286,7 @@ const handleSave = () => {
|
||||
:controls="false" />
|
||||
</div>
|
||||
<div class="tab-content-item-box box-color box-height">
|
||||
CT变化
|
||||
CT变比
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-content-item">
|
||||
@ -334,7 +334,7 @@ const handleSave = () => {
|
||||
</el-select>
|
||||
</div>
|
||||
<div class="tab-content-item-box box-color box-height">
|
||||
<el-input-number v-model="infoList.mutual_limit_alarm[0].output_node" style="width: 100%;"
|
||||
<el-input-number v-model="infoList.transformer_change[0].output_node" style="width: 100%;"
|
||||
:controls="false" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user