修复概率计算问题

This commit is contained in:
liaozetao
2023-10-16 10:06:06 +08:00
parent f6a1277806
commit a25de8a414

View File

@@ -166,8 +166,8 @@ export default {
created() {
this.$nextTick(function () {
this.initTable();
this.showPoolItemCount();
});
this.showPoolItemCount();
},
mounted() {
this.optEdit();
@@ -249,7 +249,7 @@ export default {
formatter: function (val, row, index) {
let value = 0;
if (val) {
value = (val / 1000 * 100).toFixed(6);
value = (val / 1000000 * 100).toFixed(4);
}
return value + '%';
}
@@ -262,7 +262,7 @@ export default {
formatter: function (val, row, index) {
let value = 0;
if (val) {
value = (val / 1000 * 100).toFixed(6);
value = (val / 1000 * 100).toFixed(4);
}
return value + '%';
}