|
|
@@ -160,7 +160,7 @@
|
|
|
<img v-if="form1.qrcode" :src="form1.qrcode" class="avatar">
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
- <span class="del" style="position:absolute;top:-8px;left:150px;" @click="delImg">删除</span>
|
|
|
+ <p v-if="form1.qrcode" class="del" @click="delImg">删除</p>
|
|
|
<!-- <span style="font-size: 12px; color: #999999"
|
|
|
>建议图片尺寸为:210*160</span
|
|
|
> -->
|
|
|
@@ -229,13 +229,14 @@ export default {
|
|
|
if (res.data.code == 0) {
|
|
|
this.$message({
|
|
|
type: "success",
|
|
|
- message: "保存成功!",
|
|
|
+ message: "上传成功!",
|
|
|
});
|
|
|
+ this.dialogVisible = false;
|
|
|
this.getData();
|
|
|
} else {
|
|
|
- // this.$message.error("保存失败!");
|
|
|
+ this.$message.error("上传失败!");
|
|
|
}
|
|
|
- this.dialogVisible = false;
|
|
|
+
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
@@ -270,8 +271,8 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
showQrcode(row){
|
|
|
- this.form1.journal_id = row.id;
|
|
|
- // this.form1.id = row.id;
|
|
|
+ // this.form1.journal_id = row.id;
|
|
|
+ this.form1.id = row.id;
|
|
|
this.form1.qrcode = row.qrcode;
|
|
|
this.dialogVisible = true;
|
|
|
},
|