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

测试行为执行之后逻辑

上级 61ab3bfe
......@@ -77,7 +77,7 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
<#-- 获取测试行为的修饰符和名称 end -->
<#-- 定义service_block start -->
<#macro service_block item singleAppMethod>
<#macro service_block item singleAppMethod afterActionStr>
<#if item.getPSAppDERSPathCount() gt 0 && singleServiceApi??>
<#list 1..item.getPSAppDERSPathCount() as count>
<#assign path = ''/>
......@@ -89,6 +89,9 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
<#assign path>${path}${srfpluralize(_dataEntity.codeName)?lower_case}/<#noparse>$</#noparse>{context.${_dataEntity.getCodeName()?lower_case}}/</#assign>
</#if>
</#list>
<#if afterActionStr??>
${afterActionStr}
</#if>
<#-- 方法类型为SELECT -->
<#if singleAppMethod.getMethodType() == "SELECT">
if(${condition}context.${item.getCodeName()?lower_case}){
......@@ -559,7 +562,11 @@ export default class ${srfclassname('${item.getCodeName()}')}ServiceBase extends
const result = await appLogic.onExecute(context,data,isloading?true:false);
return {status:200,data:result};
<#else>
<@service_block item=item singleAppMethod=singleAppMethod/>
<#assign aaaa>
// aaaaa
// bbbbb
</#assign>
<@service_block item=item singleAppMethod=singleAppMethod afterActionStr = aaaa/>
</#if>
<#--是否存在前端处理逻辑end -->
<#else>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册