修改bug
This commit is contained in:
parent
0993ece389
commit
ae9fe6c8c2
|
@ -168,7 +168,7 @@
|
|||
>
|
||||
<i class="el-icon-plus"></i>
|
||||
</el-upload>
|
||||
<el-dialog :visible.sync="dialogVisible">
|
||||
<el-dialog :visible.sync="dialogVisible" append-to-body>
|
||||
<img width="100%" :src="picImg" alt="" />
|
||||
</el-dialog>
|
||||
<div
|
||||
|
@ -224,7 +224,7 @@ export default {
|
|||
window.SITE_CONFIG.apiURL + '/upload?token=' + Cookies.get('ucsToken'),
|
||||
labelPosition: 'left',
|
||||
dialogFormVisible: false,
|
||||
// dialogImageUrl: '',
|
||||
// dialogImageUrl: '',
|
||||
ruleForm: {
|
||||
name: '',
|
||||
num: '',
|
||||
|
@ -294,12 +294,13 @@ export default {
|
|||
this.fileList = []
|
||||
},
|
||||
handlePictureCardPreview (file) {
|
||||
this.dialogImageUrl = file.url
|
||||
|
||||
this.picImg = file.url
|
||||
this.dialogVisible = true
|
||||
},
|
||||
// 上传个数限制
|
||||
beforeUpload (file, fileList) {
|
||||
this.$message.error('最多只能上传一张图片!')
|
||||
this.$message.error('最多只能上传一张图片!')
|
||||
},
|
||||
// 图片上传成功时钩子
|
||||
onSuccess (response, file, fileList) {
|
||||
|
|
Loading…
Reference in New Issue