From 5a9294da5e6805aed28e1530924baa8c9008d9ed Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 27 Dec 2024 16:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=BD=93=E5=87=BA=E5=8E=82=E6=A3=80?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/battery/monomer/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/battery/monomer/index.vue b/src/views/battery/monomer/index.vue index 14dc5f8..2757f8f 100644 --- a/src/views/battery/monomer/index.vue +++ b/src/views/battery/monomer/index.vue @@ -317,7 +317,13 @@ const buttonTableClick = async (val, row) => { const basicFormRef = ref() const openForm = (type: string, row?: any) => { if(tableObject.tableList.length>0){ - row = tableObject.tableList[0] + if(isStatic.value){ + // 静态 + row = tableObject.tableList.find(item=>item.type == 'static') + }else{ + // 动态 + row = tableObject.tableList.find(item=>item.type == 'moving') + } } basicFormRef.value.open(type, row) }