From 0cf1b2319156b96e65e56e50345716adb99f26bf Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 13 八月 2024 17:40:35 +0800
Subject: [PATCH] 通信初始化提交
---
static/js/worker.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/static/js/worker.js b/static/js/worker.js
index aec7253..b5ffbfa 100644
--- a/static/js/worker.js
+++ b/static/js/worker.js
@@ -298,7 +298,7 @@
// console.log(5555,tableList)
}
// console.log('1234567789', tableList,getParam())
- console.log('1234567789', item)
+ // console.log('1234567789', item)
let getDataType0 = false
if(item.i==getDataTypeId){
getDataType0 = true
@@ -325,7 +325,7 @@
isPoint = PROJECT=='瑁呭鐢电紗'&&tell&&tell.length>0&&typeof tell[0] =='string'&&tell[0].includes('/') // 鍒ゆ柇瑕佹眰鍊兼槸鍚︿负鍒嗘暟
comResult = compute(item.v.f.replace(/=/g, ' '),comValue, isPoint)
let list3 = list2.map(item=>item+'')
- isToExponential = list3.some(val => val.includes('e+'))
+ isToExponential = list3.some(val => val.includes('e+')||val.includes('e-'))
// 瑁呭椤圭洰妫�楠屽�艰浆鍖�
if (PROJECT === '瑁呭鐢电紗' && isToExponential) {
let num2 = new Big(comResult)
@@ -368,6 +368,8 @@
let str = a[b].v.ct.fa.split('.')[1]
num = str.length
a[b].v.v = comResult?Number(comResult).toFixed(num):comResult
+ }else if(typeof comResult == 'string' && (comResult.includes('e+')|| comResult.includes('e-'))){
+ a[b].v.v = comResult
}else{
let val = parseFloat(Number(comResult).toFixed(3))
a[b].v.v = isNaN(val) ? comResult : val
--
Gitblit v1.9.3