From 6eac588d18ef1e98dd0c6979aec9741a91044d80 Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期五, 12 七月 2024 09:42:36 +0800 Subject: [PATCH] 修改代码 --- static/js/worker.js | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/static/js/worker.js b/static/js/worker.js index c522b04..fb6a209 100644 --- a/static/js/worker.js +++ b/static/js/worker.js @@ -110,8 +110,6 @@ return eval(res) == eval(str) } } else if (m.includes('鈮�')) { - console.log('eval(res)---', eval(res)) - console.log('eval(str)---', eval(str)) if(typeof res =='string'&&res.includes('/')){ return handleMoreParam(res,m.split('鈮�')[1],'鈮�') }else{ @@ -224,9 +222,7 @@ if(getInspectionValueType(item.i)==1){ let tell = currentSample.insProduct.find(m => m.id == item.i).tell?currentSample.insProduct.find(m => m.id == item.i).tell.split('&'):null; isPoint = tell[0].includes('/') // 鍒ゆ柇瑕佹眰鍊兼槸鍚︿负鍒嗘暟 - console.log('comValue---', comValue) comResult = compute(item.v.f.replace(/=/g, ' '),comValue, isPoint) - console.log('comResult---', comResult) let list3 = list2.map(item=>item+'') isToExponential = list3.some(val => val.includes('e+')) // 瑁呭椤圭洰妫�楠屽�艰浆鍖� @@ -263,6 +259,7 @@ 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 -- Gitblit v1.9.3