|
@@ -55,7 +55,7 @@ export const formulaExec = (runType: string, $CURRENT_TEMPLATE: IRptTpl, $CURREN
|
|
|
// console.log(expression);
|
|
// console.log(expression);
|
|
|
//临时处理
|
|
//临时处理
|
|
|
if (expression.indexOf(`new Date(`)) {
|
|
if (expression.indexOf(`new Date(`)) {
|
|
|
- newExpression= expression.replaceAll(`new Date(`, `new ReportDate(`)
|
|
|
|
|
|
|
+ newExpression= replaceAll(`new Date(`, `new ReportDate(`,expression)
|
|
|
}
|
|
}
|
|
|
eval(newExpression);
|
|
eval(newExpression);
|
|
|
} catch (ex) {
|
|
} catch (ex) {
|