| | |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <el-form-item label="列表图/视频" prop="files" > |
| | | <upload width="100px" height="100px" :max-length="1" @dele="delFile" :list="form.fileList" accept=".png,.jpg,.jpeg,.mp4" folder="news" @loading="loading = true" @success="fileResult($event)" /> |
| | | <upload width="100px" height="100px" :max-length="1" @dele="delFile" :list="form.fileList" accept=".png,.jpg,.jpeg,.mp4" folder="spokesman" @loading="loading = true" @success="fileResult($event)" /> |
| | | </el-form-item> |
| | | <el-form-item label="跳转类型" prop="linkType" required> |
| | | <el-radio-group v-model="form.linkType" > |
| | |
| | | data () { |
| | | return { |
| | | // 表单数据 |
| | | loading:false, |
| | | form: { |
| | | id: null, |
| | | remark: '', |
| | |
| | | } |
| | | this.form.fileType = target.fileType || 0 |
| | | const files = target.fileList || [] |
| | | this.form.fileList = [] |
| | | console.log(files) |
| | | if (files.length > 0) { |
| | | this.form.fileList.push(files[0]) |
| | | }else{ |
| | | |
| | | } |
| | | console.log(this.form.fileList) |
| | | }) |
| | | }, |
| | | delFile (index) { |