This commit is contained in:
BianLzhaoMin 2025-02-27 09:35:50 +08:00
parent 47a08bbf6b
commit 9ebc094769
1 changed files with 3 additions and 3 deletions

View File

@ -237,7 +237,7 @@
text: '评价', text: '评价',
type: 'button' type: 'button'
}); });
// let fileList = [] let fileList = []
let uploadDom = {} let uploadDom = {}
// 将自定义元素插入到最后一个单元格 // 将自定义元素插入到最后一个单元格
@ -248,7 +248,7 @@
event.preventDefault() event.preventDefault()
// 组装dom // 组装dom
let formHtml = `<div class="dialog-title">${tableList[rowIndex].proName}</div>` let formHtml = `<div class="dialog-title">${tableRowList[rowIndex].proName}</div>`
let innerHtml = '' let innerHtml = ''
let rowIndex = $(this).closest('tr').data('index') let rowIndex = $(this).closest('tr').data('index')
const curRows = tableRowList[rowIndex] const curRows = tableRowList[rowIndex]
@ -340,7 +340,7 @@
formData[dataId] = inputValue * 1 // 将 data-id 作为键,输入框的值作为值 formData[dataId] = inputValue * 1 // 将 data-id 作为键,输入框的值作为值
} }
}) })
const currentRows = tableList[rowIndex] const currentRows = tableRowList[rowIndex]
Object.assign(currentRows, formData) Object.assign(currentRows, formData)
currentRows.fileList = fileList currentRows.fileList = fileList