| | |
| | | |
| | | let code = '' |
| | | let tableList = [] |
| | | let tableList = null |
| | | let excelMethodList = [] |
| | | let comparisonList = [] |
| | | let currentSample = {} |
| | |
| | | self.onmessage = function(event) { |
| | | const data = JSON.parse(event.data); |
| | | code = data.code; |
| | | tableList = JSON.parse(JSON.stringify(data.tableList)); |
| | | if(tableList){ |
| | | let str = code.split('-') |
| | | let r = str[1] |
| | | let c = str[2] |
| | | tableList[0].arr.forEach((item,index)=>{ |
| | | item.forEach((m,i)=>{ |
| | | if(m.c==c&&m.r==r){ |
| | | tableList[0].arr[index] = data.tableList[0].arr[index] |
| | | } |
| | | }) |
| | | }) |
| | | }else{ |
| | | tableList = data.tableList; |
| | | } |
| | | if(param){ |
| | | let str = code.split('-') |
| | | let pId = str[3] |
| | | param[pId] = data.param[pId] |
| | | }else{ |
| | | param = data.param; |
| | | } |
| | | // tableList = data.tableList; |
| | | // param = data.param; |
| | | excelMethodList = JSON.parse(JSON.stringify(data.excelMethodList)); |
| | | comparisonList = JSON.parse(JSON.stringify(data.comparisonList)); |
| | | currentSample = JSON.parse(JSON.stringify(data.currentSample)); |
| | | param = data.param; |
| | | PROJECT = data.PROJECT |
| | | changeInput('', code); |
| | | }; |
| | |
| | | str = str.replace(new RegExp(a, 'g'),arr[a]) |
| | | } |
| | | if(str.includes(',,')){ |
| | | str = str.replace(new RegExp(',,', 'g'),'') |
| | | str = str.replace(new RegExp(',,', 'g'),',') |
| | | } |
| | | if(str.includes(',,')){ |
| | | str = str.replace(new RegExp(',,', 'g'),',') |
| | | } |
| | | if(str.includes(',,')){ |
| | | str = str.replace(new RegExp(',,', 'g'),',') |
| | | } |
| | | // console.log('str', str) |
| | | if(str.includes('&"/"&')){ |