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) }