修改bug

This commit is contained in:
gongjiale 2022-12-01 11:21:02 +08:00
parent 0993ece389
commit ae9fe6c8c2
1 changed files with 5 additions and 4 deletions

View File

@ -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) {