| | |
| | | <div> |
| | | <!-- 上传图片组件(多图) --> |
| | | <el-upload |
| | | id="UploadMultipleImg" |
| | | ref="refUploadImg" |
| | | :accept="accept" |
| | | :auto-upload="false" |
| | |
| | | :class="{disabled:uploadDisabled}" |
| | | action="#" |
| | | :limit="limit" |
| | | drag |
| | | :file-list="uploadImgs" |
| | | :on-change="addUploadImg" |
| | | :on-remove="delUploadImg" |
| | |
| | | .el-upload-list--picture-card .el-upload-list__item{ |
| | | margin-bottom: 0 |
| | | } |
| | | #UploadMultipleImg .el-upload-dragger{ |
| | | width: auto; |
| | | height: auto; |
| | | } |
| | | </style> |
| | |
| | | <div> |
| | | <!-- 上传图片组件(单图) --> |
| | | <el-upload |
| | | id="UploadSingleImg" |
| | | ref="refUploadImg" |
| | | :accept="accept" |
| | | :auto-upload="false" |
| | |
| | | :class="{disabled:uploadDisabled}" |
| | | action="#" |
| | | :limit="1" |
| | | drag |
| | | :file-list="uploadImgs" |
| | | :on-change="addUploadImg" |
| | | :on-remove="delUploadImg" |
| | |
| | | .el-upload-list--picture-card .el-upload-list__item{ |
| | | margin-bottom: 0 |
| | | } |
| | | #UploadSingleImg .el-upload-dragger{ |
| | | width: auto; |
| | | height: auto; |
| | | } |
| | | </style> |
| | |
| | | pageSize: 20, |
| | | // 分页 ↑↑↑↑↑↑↑↑↑↑ |
| | | |
| | | jumpTypeOpt: [ |
| | | { label: '不跳转', value: 0 }, |
| | | { label: '小程序页面', value: 1 }, |
| | | { label: 'H5页面', value: 2 }, |
| | | { label: '其它小程序', value: 3 } |
| | | ], |
| | | |
| | | envVersionOpt: [ |
| | | { label: '开发版', value: 'develop' }, |
| | | { label: '体验版', value: 'trial' }, |
| | | { label: '正式版', value: 'release' } |
| | | ], |
| | | |
| | | // 显示弹窗 |
| | | isShowDialog: false, |
| | | |
| | |
| | | uploadImgs: [] |
| | | } |
| | | |
| | | } |
| | | }, |
| | | computed: { |
| | | // 上传禁用 |
| | | uploadDisabled() { |
| | | return this.dialogData.uploadImgs.length > 0 |
| | | } |
| | | }, |
| | | mounted() { |