diff --git a/src/components/customField/AddForm.vue b/src/components/customField/AddForm.vue index edf59619..8c83844d 100644 --- a/src/components/customField/AddForm.vue +++ b/src/components/customField/AddForm.vue @@ -649,13 +649,19 @@ export default { // 文件上传改变后的回调 uploadFileChange (data) { const attIdList = [] + const attNameList = [] if (data && data.length > 0) { data.map(item => { attIdList.push(item.id) }) + data.map(item => { + attNameList.push(item.fileName) + }) } + console.log(data) /** 赋值给当前对应的表单文件 */ this.formInline[this.uploadName] = attIdList.join(',') + this.formInline[this.uploadName + '_dictText'] = attNameList.join(',') this.formInline = { ...this.formInline } }, // 标准选择变化