添加filesize

role1.0
fanluyan 1 year ago
parent 38b708b4a3
commit 5f69fddaa5

@ -1,7 +1,7 @@
<template>
<div class="thumb-example">
<div class="radioBox" v-if="roleUser == 1 || roleUser == 0">
{{ radioPx }}
{{ radioPx }} <span v-if="fileSize">({{ fileSize.toFixed(2) }}M)</span>
<!-- <span>({{ terminalPhoto.length }})</span> -->
</div>
<div class="topPic">
@ -186,6 +186,7 @@ export default {
currentPage: 0,
srcList: [],
radioPx: "",
fileSize: "",
roleUser: "",
localPoints: [], //线
flagLine: true, //线
@ -378,7 +379,13 @@ export default {
} else {
this.radioPx = "";
}
console.log(data.channelId);
if (data.fileSize != undefined) {
this.fileSize = data.fileSize / (1024 * 1024);
} else {
this.fileSize = "";
}
// console.log(data.channelId);
if (data.channelId) {
this.getPointList(data);
}

Loading…
Cancel
Save