From f6a12778067950cd66680880a97e66aeb8374aa5 Mon Sep 17 00:00:00 2001
From: liaozetao <1107136310@qq.com>
Date: Fri, 13 Oct 2023 19:53:47 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A5=96=E6=B1=A0=E7=BA=BF?=
=?UTF-8?q?=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/treasure/SeizeTreasurePoolItemView.vue | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/views/treasure/SeizeTreasurePoolItemView.vue b/src/views/treasure/SeizeTreasurePoolItemView.vue
index 4c306e6..b9a4011 100644
--- a/src/views/treasure/SeizeTreasurePoolItemView.vue
+++ b/src/views/treasure/SeizeTreasurePoolItemView.vue
@@ -21,16 +21,16 @@
-
@@ -249,7 +249,7 @@ export default {
formatter: function (val, row, index) {
let value = 0;
if (val) {
- value = (val / 1000 * 100).toFixed(4);
+ value = (val / 1000 * 100).toFixed(6);
}
return value + '%';
}
@@ -262,7 +262,7 @@ export default {
formatter: function (val, row, index) {
let value = 0;
if (val) {
- value = (val / 1000 * 100).toFixed(4);
+ value = (val / 1000 * 100).toFixed(6);
}
return value + '%';
}
@@ -408,7 +408,7 @@ export default {
$('#poolLevel').val(poolLevel);
$("#poolNum").val(poolNum);
$("#ratio").val(ratio);
- $("#showRatio").val(showRatio);
+ $("#showRatio").val(parseFloat(showRatio) / 1000);
$("#itemIndex").val(itemIndex);
$("#itemOrder").val(itemOrder);
$("#editModal").modal('show');
@@ -423,7 +423,7 @@ export default {
poolLevel: 1,
poolNum: $('#poolNum').val(),
ratio: $('#ratio').val(),
- showRatio: $('#showRatio').val(),
+ showRatio: parseFloat($('#showRatio').val()) * 1000,
itemIndex: $('#itemIndex').val(),
itemOrder: $('#itemOrder').val()
};