提交 fb9ba0e7 编写于 作者: tony001's avatar tony001

测试行为执行之后逻辑 --- fix3

上级 ca297360
......@@ -482,6 +482,22 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
</#macro>
<#-- 行为执行之前 end -->
<#-- 行为执行之后 start -->
<#-- @author zpc -->
<#-- @update 2020.7.14 14:00 -->
<#macro excuteAfterAction appdeAction>
<#if appdeAction.getAfterPSDEActionLogics?? && appdeAction.getAfterPSDEActionLogics()??>
<#list appdeAction.getAfterPSDEActionLogics() as afterlogic>
<#if afterlogic.getPSDELogic()??>
<#assign singleLogic = afterlogic.getPSDELogic() />
let ${singleLogic.getCodeName()?lower_case}:${srfclassname('${singleLogic.getCodeName()}')}Logic = new ${srfclassname('${singleLogic.getCodeName()}')}Logic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(res))});
res = await ${singleLogic.getCodeName()?lower_case}.onExecute(context,res,isloading?true:false);
</#if>
</#list>
</#if>
</#macro>
<#-- 行为执行之后 end -->
/**
* ${de.getLogicName()}服务对象基类
......@@ -559,19 +575,29 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
<#if appdeAction.getPSDELogic?? && appdeAction.getPSDELogic()?? && (appdeAction.getActionHolder() == 2 || appdeAction.getActionHolder() == 3) >
<#assign appdelogic = appdeAction.getPSDELogic() />
let appLogic:${srfclassname('${appdelogic.getCodeName()}')}Logic = new ${srfclassname('${appdelogic.getCodeName()}')}Logic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(data))});
const result = await appLogic.onExecute(context,data,isloading?true:false);
return {status:200,data:result};
const res = await appLogic.onExecute(context,data,isloading?true:false);
<@excuteAfterAction appdeAction = appdeAction />
return {status:200,data:res};
<#else>
<#assign aaaa>
// aaaaa
// bbbbb
<#-- 行为执行之后 start -->
<#-- @author zpc -->
<#-- @update 2020.7.14 14:00 -->
<#assign afterActionStr>
<@excuteAfterAction appdeAction = appdeAction />
</#assign>
<@service_block item=item singleAppMethod=singleAppMethod afterActionStr = aaaa/>
<@service_block item=item singleAppMethod=singleAppMethod afterActionStr = afterActionStr/>
<#-- 行为执行之后 end -->
</#if>
<#--是否存在前端处理逻辑end -->
<#else>
<#assign aaaa></#assign>
<@service_block item=item singleAppMethod=singleAppMethod afterActionStr = aaaa />
<#-- 行为执行之后 start -->
<#-- @author zpc -->
<#-- @update 2020.7.14 14:00 -->
<#assign afterActionStr>
<@excuteAfterAction appdeAction = appdeAction />
</#assign>
<@service_block item=item singleAppMethod=singleAppMethod afterActionStr = afterActionStr />
<#-- 行为执行之后 end -->
</#if>
}
<#-- 查询数据集(post方式)start -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册