| | |
| | | <!-- 上传图片组件(单图) --> |
| | | <UploadSingleImg |
| | | ref="refUploadImg" |
| | | v-model="dialogData.uploadShareImgs" |
| | | v-model="basicData.uploadShareImgs" |
| | | @change.capture="$refs['basicForm'].clearValidate()" |
| | | /> |
| | | </el-form-item> |
| | |
| | | import mixin_upload from '@/mixins/upload.js' // 通用上传图片预览 |
| | | import UploadSingleImg from '@/components_simple/UploadSingleImg' |
| | | export default { |
| | | components: {}, |
| | | mixins: [mixin_upload, UploadSingleImg], |
| | | components: { UploadSingleImg }, |
| | | mixins: [mixin_upload], |
| | | data() { |
| | | return { |
| | | basicData: { |
| | |
| | | if (valid) { |
| | | // 上传图片 |
| | | this.$refs.refUploadImg.runUploadImg((imgUrl) => { |
| | | imgUrl && this.$set(this.dialogData, 'shareImg', imgUrl) |
| | | imgUrl && this.$set(this.basicData, 'shareImg', imgUrl) |
| | | this.submitReq() |
| | | }) |
| | | } |