|
@@ -679,8 +679,11 @@ const copyTableFormClick = () => {
|
|
|
const formLog = formLogDataList.value
|
|
|
const logIndex = formLogIndex.value
|
|
|
const defaultData = setFormDefaultData(formLog[logIndex])
|
|
|
+ console.log(tableFormData.value, '复制表格内容')
|
|
|
formLogDataList.value.push({
|
|
|
+
|
|
|
...defaultData,
|
|
|
+ ...tableFormData.value,
|
|
|
id: '',
|
|
|
})
|
|
|
const index = formLogDataList.value.length - 1
|
|
@@ -939,7 +942,10 @@ const uploadFileClick = () => {
|
|
|
success: async (file, res) => {
|
|
|
if (getObjVal(res.data)) {
|
|
|
tableFormData.value = res.data
|
|
|
+ const formIndex = formLogIndex.value
|
|
|
+ formLogDataList.value[formIndex] = tableFormData.value
|
|
|
} else {
|
|
|
+ formLogDataList.value[ formLogIndex.value] = {}
|
|
|
tableFormData.value = {}
|
|
|
}
|
|
|
window.$message.success('文件上传成功')
|