From 37c52d267a99ebde15f29938fef9f8b5429704f5 Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期四, 18 七月 2024 17:21:38 +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