From 957811a6973da7fdad834dd7d8dbfbb9f11c95f9 Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期三, 17 七月 2024 09:38:10 +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