|
@@ -283,14 +283,12 @@ export const formulaArrayToString = (processFormula,resultFormula) => {
|
|
|
let resText = transformArguments(resultFormula[0].children,resultFormula[0],eleMap);
|
|
|
|
|
|
//等号左侧元素不需要,左侧的公式嵌套右侧所有结果
|
|
|
- // text = resText.replace(`E[${resultFormula[0].tableElementKey}]`,text);
|
|
|
-
|
|
|
- if(processFormula.length===0){
|
|
|
- text=resText
|
|
|
- }else{
|
|
|
+ if(text){
|
|
|
text = resText.replace(`E[${resultFormula[0].tableElementKey}]`,text);
|
|
|
+ }else{
|
|
|
+ text=resText
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
console.log(text);
|