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

调整执行后逻辑外部逻辑忽略异常支持

上级 ae3c875d
......@@ -545,15 +545,18 @@ import ${srfclassname('${singleLogic.getCodeName()}')}Logic from '@/service/${sr
let tempService:any = await this.getService("${afterlogic.getDstPSDE().getCodeName()?lower_case}");
let tempData:any = <#if afterlogic.isCloneParam()>Util.deepCopy(data)<#else>{}</#if>;
if(tempService['${afterlogic.getDstPSDEAction().getCodeName()}'] && tempService['${afterlogic.getDstPSDEAction().getCodeName()}'] instanceof Function){
tempService['${afterlogic.getDstPSDEAction().getCodeName()}'](context,tempData,isloading?true:false).then((response:any) =>{
<#if afterlogic.isIgnoreException()>try {</#if>
let response:any = await tempService['${afterlogic.getDstPSDEAction().getCodeName()}'](context,tempData,isloading?true:false);
if(response && response.status === 200){
res = response;
}else{
<#if !afterlogic.isIgnoreException()>res =response;</#if>
}
}).catch((error:any) =>{
<#if afterlogic.isIgnoreException()>
} catch (error) {
console.warn(error);
})
}
</#if>
}
<#-- 外部逻辑end -->
</#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册