| | |
| | | <zt-uploader v-model="dataForm[scope.row.busiField]" :dataForm="dataForm" multiple |
| | | :limit="scope.row.fileLimit" :file-type="scope.row.fileTypeArr" |
| | | :showFileList2="false" :accept="scope.row.accept" :file-size="scope.row.fileSize" |
| | | @input="change(scope.row.busiField)"/> |
| | | @input="change(scope.row.busiField)" @getUploaderImg="getUploaderImg"/> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | } |
| | | return null |
| | | }, |
| | | getUploaderImg(list) { |
| | | // this.imageList = list |
| | | if (list[0].url) { |
| | | this.$emit('getImageUrl', list[0].url) |
| | | } |
| | | }, |
| | | change(busiField) { |
| | | console.log(busiField, 'config_uploader change(busiField) busiField') |
| | | this.fields.forEach(field => { |
| | | if (field.busiField === busiField) { |
| | | field.files.length = 0 |
| | | this.dataForm[busiField].forEach(file => field.files.push(file)) |
| | | this.dataForm[busiField].forEach(file => { |
| | | field.files.push(file) |
| | | } |
| | | ) |
| | | if (this.dataForm) { |
| | | this.dataForm.hasUploadFinsh = 100 |
| | | } |
| | | } |
| | | }) |
| | | console.log(this.dataForm, 'config_uploader change(busiField)') |
| | | this.$emit('getImageUrl') |
| | | } |
| | | } |
| | | } |
| | |
| | | .config-uploader label { |
| | | width: 260px !important; |
| | | } |
| | | |
| | | .zt .el-upload-list__item .el-progress{ |
| | | top:15px !important; |
| | | } |