优化收据 图片显示bug

This commit is contained in:
wuxw 2022-10-27 14:02:47 +08:00
parent 56c824cf9d
commit acee9f52f4
6 changed files with 10 additions and 8 deletions

Binary file not shown.

View File

@ -1,4 +1,4 @@
<div id="addFeePrintSpecModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
<div id="addFeePrintSpecModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">

View File

@ -17,10 +17,12 @@
_initEvent: function () {
vc.on('addFeePrintSpec', 'openAddFeePrintSpecModal', function () {
$('#addFeePrintSpecModel').modal('show');
let photos = [];
vc.emit('addFeePrintSpec', 'uploadImageUrl', 'notifyPhotos', photos);
});
vc.on('addFeePrintSpec', 'notifyUploadImage', function (_img) {
if (!vc.isEmpty(_img) && _img.length > 0) {
$that.addFeePrintSpecInfo.qrImg = _img[0].fileId;
$that.addFeePrintSpecInfo.qrImg = _img[0].url;
} else {
$that.addFeePrintSpecInfo.qrImg = '';
}

View File

@ -26,7 +26,7 @@
vc.on("editFeePrintSpec", "notifyUploadImage", function (_param) {
console.log(_param);
if (!vc.isEmpty(_param) && _param.length > 0) {
vc.component.editFeePrintSpecInfo.qrImg = _param[0].fileId;
vc.component.editFeePrintSpecInfo.qrImg = _param[0].url;
} else {
vc.component.editFeePrintSpecInfo.qrImg = '';
}

Binary file not shown.

View File

@ -45,11 +45,11 @@
vc.component.feePrintSpecManageInfo.total = _feePrintSpecManageInfo.total;
vc.component.feePrintSpecManageInfo.records = _feePrintSpecManageInfo.records;
vc.component.feePrintSpecManageInfo.feePrintSpecs = _feePrintSpecManageInfo.data;
vc.component.feePrintSpecManageInfo.feePrintSpecs.forEach((item) => {
if(item.qrImg){
item.qrImg = photoUrl + "?fileId=" + item.qrImg + "&communityId=-1&time=" + new Date()
}
})
// vc.component.feePrintSpecManageInfo.feePrintSpecs.forEach((item) => {
// if(item.qrImg){
// item.qrImg = photoUrl + "?fileId=" + item.qrImg + "&communityId=-1&time=" + new Date()
// }
// })
vc.emit('pagination', 'init', {
total: vc.component.feePrintSpecManageInfo.records,
dataCount: vc.component.feePrintSpecManageInfo.total,