From 55363f488c35aaf3a9bfd6ca0584eeb0fd8e0c95 Mon Sep 17 00:00:00 2001
From: gaoluyang <gaoluyang@rengu.cc>
Date: 星期五, 19 七月 2024 09:44:55 +0800
Subject: [PATCH] 场所或设施,能力范围表格操作后刷新当前页数不变
---
static/js/worker.js | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/static/js/worker.js b/static/js/worker.js
index 8bcac61..a8717a2 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -310,10 +310,13 @@
if (a[0].r == item.r && comResult !== '') {
for (var b in a) {
if (a[b].c == item.c) {
- // console.log('comResult---', comResult)
try{
- let val = parseFloat(comResult.toFixed(3))
- a[b].v.v = isNaN(val) ? '' : val
+ if(comResult==0){
+ a[b].v.v = 0
+ }else{
+ let val = parseFloat(comResult.toFixed(3))
+ a[b].v.v = isNaN(val) ? '' : val
+ }
}catch(error){
a[b].v.v = comResult
console.log('error---', error)
--
Gitblit v1.9.3