| | |
| | | cropData: {}, |
| | | isShowCrop: false, |
| | | uploading: false, |
| | | fileList: this.getUploadList(this.value), |
| | | uploadList: this.getUploadList(this.value), |
| | | fileList: this.getUploadList(this.value) || [], |
| | | uploadList: this.getUploadList(this.value) || [], |
| | | progressFlag: false |
| | | } |
| | | }, |
| | |
| | | <template> |
| | | <div> |
| | | <div class="config-uploader" v-if="oss"> |
| | | <div class="config-uploader1" v-if="oss"> |
| | | <div v-for="group in (oss.groups || [])" :key="group.busiFieldGroup"> |
| | | <zt-form-item v-for="field in group.fields" :prop="field.busiField" |
| | | :key="field.busiField" :rules="field.isRequired ? 'required':''" style="width: 100%;margin-bottom: 0"> |
| | |
| | | console.log(this.oss,"this.oss") |
| | | // this.dataForm.files = this.oss |
| | | this.$set(this.dataForm, 'files', this.oss) |
| | | |
| | | // 分解到每个字段给dataForm赋值 |
| | | this.fields.forEach(field => { |
| | | // this.dataForm[field.busiField] = field.files |
| | | this.$set(this.dataForm, field.busiField, field.files) |
| | | }) |
| | | console.log(this.dataForm,'this.dataForm') |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | </script> |
| | | <style> |
| | | .config-uploader label { |
| | | width: 260px !important; |
| | | .config-uploader1 label { |
| | | width: 30px !important; |
| | | } |
| | | .config-uploader1 a{ |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | width: 180px; |
| | | } |
| | | .config-uploader1 .zt-upload { |
| | | line-height: 0; |
| | | } |
| | | .zt .el-upload-list__item .el-progress{ |
| | | top:15px !important; |
| | |
| | | <template> |
| | | <zt-dialog ref="dialog" column="2" @confirm="formSubmit"> |
| | | <zt-dialog ref="dialog" column="3" @confirm="formSubmit"> |
| | | <el-form :model="dataForm" :inline="true" ref="dataForm" style="padding-top: 0" :disabled="dataForm.disabled" label-width="120px" class="circulationFormAuto"> |
| | | <div class=""> |
| | | <el-form-item label-width="60px" label="编号:" style="width:100%;margin-bottom: -5px"> |
| | |
| | | <el-input v-model="row.remark" placeholder="备注"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="80" align="center"> |
| | | <el-table-column fixed="right" prop="files" label="上传附件" width="300" align="center"> |
| | | <template v-slot="{ row }"> |
| | | <!-- <zt-table-button @click="files(row.id)">上传附件</zt-table-button>--> |
| | | <table-uploader busi-type="circulat_order" model-name="row" :dataForm="row" |
| | |
| | | }) |
| | | }, |
| | | getImageUrl(url){ |
| | | this.image.url = url |
| | | console.log(this.image.url,' this.image.url') |
| | | this.dataForm.url = url |
| | | console.log(this.dataForm.url,' this.dataForm.url') |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit() { |