提交 44980683 编写于 作者: Mosher's avatar Mosher

update:更新

上级 34c655a4
......@@ -6,6 +6,8 @@ TARGET=PSAPPDEUILOGIC
</#ibizinclude>
import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type";
import { UILogicParamType } from "@/logic/const/ui-logic-param-type";
import { Util } from "@/utils";
/**
* ${item.name}
*
......
......@@ -123,7 +123,7 @@
</#if>
</#list>
} catch (error: any) {
throw new Error(`逻辑节点 ${logicNode.name} <#noparse>${error ## error.message ? error.message : '发生未知错误!'}`</#noparse>);
throw new Error(`逻辑节点 ${logicNode.name} <#noparse>${error && error.message ? error.message : '发生未知错误!'}`</#noparse>);
}
</#if>
</#macro>
......@@ -152,7 +152,7 @@
srcParam.copyTo(dstParam);
actionContext.bindLastReturnParam(null);
} catch (error: any) {
throw new Error(`逻辑参数 ${logicNode.getDstPSDEUILogicParam().name} <#noparse>${error ## error.message ? error.message : '发生未知错误!'}`</#noparse>);
throw new Error(`逻辑参数 ${logicNode.getDstPSDEUILogicParam().name} <#noparse>${error && error.message ? error.message : '发生未知错误!'}`</#noparse>);
}
<#else>
throw new Error('操作参数或者源参数缺失!');
......@@ -215,7 +215,7 @@
<#if logicNode.getDstPSAppDataEntity?? && logicNode.getDstPSAppDataEntity()?? && logicNode.getDstPSAppDEAction?? && logicNode.getDstPSAppDEAction()??>
if (dstParam) {
try {
const service: ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service = = new ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service;
const service: any = new ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service();
const getTempContext = (data: any) => {
const tempContext = Util.deepCopy(actionContext.context);
if (data) {
......@@ -287,7 +287,7 @@
const retParam = actionContext.getParam('<#if logicNode.getDstPSDEUILogicParam?? && logicNode.getDstPSDEUILogicParam()??>${logicNode.getDstPSDEUILogicParam().codeName}</#if>');
if (dstParam) {
try {
const service: ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service = = new ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service;
const service: any = new ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service();
const result = await service['executeAppDELogic']('${logicNode.getDstPSAppDELogic().codeName}', actionContext.context, dstParam.getReal() ? dstParam.getReal() : {});
if (result) {
if(retParam){
......@@ -318,7 +318,7 @@
throw new Error(`传入参数 <#if logicNode.getDstPSDEUILogicParam?? && logicNode.getDstPSDEUILogicParam()??>${logicNode.getDstPSDEUILogicParam().codeName}</#if> 类型不正确,必须为过滤器对象`);
}
try {
const service: ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service = = new ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service;
const service: any = new ${srfclassname('${logicNode.getDstPSAppDataEntity().getCodeName()}')}Service();
const res = await service['${logicNode.getDstPSAppDEDataSet().codeName}'](actionContext.context, dstParam.getReal() ? dstParam.getReal() : {});
if (res && res.ok && res.data) {
// 返回值绑定逻辑参数对象
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册