From 14b15cb429be4c2cf9d7372afcd3bf1e6c53d6af Mon Sep 17 00:00:00 2001 From: lxp <1928192722@qq.com> Date: 星期一, 12 八月 2024 13:29:41 +0800 Subject: [PATCH] modified: src/components/do/b1-ins-order/fiberoptic-config.vue --- 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..580ae6e 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(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