|
@ -317,7 +317,13 @@ const buttonTableClick = async (val, row) => { |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
if(tableObject.tableList.length>0){ |
|
|
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) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|