From 6f77f6504a5fcce249004669c4743ac0845221f5 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 5 Feb 2024 17:54:56 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9bug80750?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/AddForm.vue | 6 ++++++ 1 file changed, 6 insertions(+) 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 } }, // 标准选择变化