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