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