From 9268d572c7028b54a84831adf168cb6af57c8f4c Mon Sep 17 00:00:00 2001 From: jingna <1264204245@qq.com> Date: Thu, 11 Jun 2026 10:23:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/lineSetting/index.vue | 66 +++++++++++++++++------- 1 file changed, 47 insertions(+), 19 deletions(-) diff --git a/frontend/src/views/lineSetting/index.vue b/frontend/src/views/lineSetting/index.vue index b5a1395..2d8b0ba 100644 --- a/frontend/src/views/lineSetting/index.vue +++ b/frontend/src/views/lineSetting/index.vue @@ -38,6 +38,11 @@ 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 }, + ] + }) const options = ref([ { @@ -102,6 +107,12 @@ const cleardata = () => { item.output_node = '' item.limit = 0 }) + infoList.value.mutual_limit_alarm.forEach(item => { + item.delay = 0 + item.enabled = false + item.output_node = '' + item.limit = 0 + }) } const currentLine = ref(1) const handleTabClick = (tab: string) => { @@ -138,11 +149,22 @@ 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 + // } + // }) + // }) }) } const isswitch = ref(false) const dialogVisible = ref(false) const handleSave = () => { + console.log(infoList.value) ElMessageBox.prompt('请输入密码', '保存', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -185,8 +207,9 @@ const handleSave = () => {