参数组装

This commit is contained in:
BianLzhaoMin 2025-02-26 11:03:50 +08:00
parent ba2c5e327b
commit 9d5221fa0b
1 changed files with 4 additions and 2 deletions

View File

@ -225,6 +225,7 @@
text: '评价', text: '评价',
type: 'button' type: 'button'
}); });
let fileList = []
// 将自定义元素插入到最后一个单元格 // 将自定义元素插入到最后一个单元格
div.append(customElement); div.append(customElement);
@ -233,7 +234,7 @@
event.preventDefault() event.preventDefault()
let rowIndex = $(this).closest('tr').data('index') let rowIndex = $(this).closest('tr').data('index')
const tableList = JSON.parse(msg) const tableList = JSON.parse(msg)
let fileList = []
// 组装dom // 组装dom
let formHtml = `<div class="dialog-title">${tableList[rowIndex].proName}</div>` let formHtml = `<div class="dialog-title">${tableList[rowIndex].proName}</div>`
@ -334,13 +335,14 @@
}) })
const currentRows = tableList[rowIndex] const currentRows = tableList[rowIndex]
Object.assign(currentRows, formData) Object.assign(currentRows, formData)
currentRows.fileList = fileList
let dataForm = { let dataForm = {
templateId: getUrlParam('templateId'), templateId: getUrlParam('templateId'),
evaluateId: getUrlParam('id'), evaluateId: getUrlParam('id'),
id: getUrlParam('detailsId'), id: getUrlParam('detailsId'),
jsonData: JSON.stringify([currentRows]), jsonData: JSON.stringify([currentRows]),
titleFiled: fields.join(','), titleFiled: fields.join(','),
fileList
} }
console.log('提交时的formDat参数', dataForm) console.log('提交时的formDat参数', dataForm)