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

update:更新

上级 a56172c7
...@@ -262,7 +262,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code} ...@@ -262,7 +262,7 @@ ${P.getLogicCode(uiAction, "LOGIC.vue").code}
} }
} }
<#ibizinclude> <#ibizinclude>
./@MACRO/control-logic.ftl ./@MACRO/CONTROL-LOGIC.ftl
</#ibizinclude> </#ibizinclude>
<#-- START: 部件事件 --> <#-- START: 部件事件 -->
<@initControlEvents ctrl view/> <@initControlEvents ctrl view/>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
TARGET=PSAPPDEUILOGIC TARGET=PSAPPDEUILOGIC
</#ibiztemplate> </#ibiztemplate>
<#ibizinclude> <#ibizinclude>
../@MACRO/ui-logic-node.txt ../@MACRO/UI-LOGIC-NODE.ftl
</#ibizinclude> </#ibizinclude>
import { UIActionContext } from "@/logic/ui-logic"; import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type"; import { LogicReturnType } from "@/logic/const/logic-return-type";
......
...@@ -2,14 +2,22 @@ ...@@ -2,14 +2,22 @@
<#macro getCond item><#if item.getLogicType() == 'GROUP'><#if item.isNotMode()>!(</#if><#if item.getPSDEUILogicLinkConds()??><#list item.getPSDEUILogicLinkConds() as subLogic><#if subLogic_index gt 0><#if item.getGroupOP() == 'AND'> && </#if><#if item.getGroupOP() == 'OR'> || </#if></#if><@getCond subLogic /></#list></#if><#if item.isNotMode()>)</#if><#elseif item.getLogicType() == 'SINGLE'>Verify.testCond(this.getCondParam(actionContext, '<#if item.getDstLogicParam?? && item.getDstLogicParam()??>${item.getDstLogicParam().codeName}</#if>', '${item.getDstFieldName()?lower_case}'), '${item.getCondOP()}', '${item.getValue()}')</#if></#macro> <#macro getCond item><#if item.getLogicType() == 'GROUP'><#if item.isNotMode()>!(</#if><#if item.getPSDEUILogicLinkConds()??><#list item.getPSDEUILogicLinkConds() as subLogic><#if subLogic_index gt 0><#if item.getGroupOP() == 'AND'> && </#if><#if item.getGroupOP() == 'OR'> || </#if></#if><@getCond subLogic /></#list></#if><#if item.isNotMode()>)</#if><#elseif item.getLogicType() == 'SINGLE'>Verify.testCond(this.getCondParam(actionContext, '<#if item.getDstLogicParam?? && item.getDstLogicParam()??>${item.getDstLogicParam().codeName}</#if>', '${item.getDstFieldName()?lower_case}'), '${item.getCondOP()}', '${item.getValue()}')</#if></#macro>
<#-- START: 计算下一节点 --> <#-- START: 计算下一节点 -->
<#macro computeNextNode logicNode> <#macro computeNextNode logicNode>
console.log(`已完成执行${logicNode.name}节点,操作参数数据如下:`);
if (actionContext.paramsMap && (actionContext.paramsMap.size > 0)) {
for (let [key, value] of actionContext.paramsMap) {
console.log(`${key}:`, Util.deepCopy(value.getReal()));
}
}
<#if logicNode.getPSDEUILogicLinks?? && logicNode.getPSDEUILogicLinks()??> <#if logicNode.getPSDEUILogicLinks?? && logicNode.getPSDEUILogicLinks()??>
<#list logicNode.getPSDEUILogicLinks() as link> <#list logicNode.getPSDEUILogicLinks() as link>
<#if link.getDstPSDEUILogicNode?? && link.getDstPSDEUILogicNode()??> <#if link.getDstPSDEUILogicNode?? && link.getDstPSDEUILogicNode()??>
<#if link.getPSDEUILogicLinkGroupCond?? && link.getPSDEUILogicLinkGroupCond()??> <#if link.getPSDEUILogicLinkGroupCond?? && link.getPSDEUILogicLinkGroupCond()??>
if (<@getCond link.getPSDEUILogicLinkGroupCond() />) { if (<@getCond link.getPSDEUILogicLinkGroupCond() />) {
console.log(`即将执行${link.getDstPSDEUILogicNode().name}节点`);
await this.execute_${link.getDstPSDEUILogicNode().codeName?lower_case}_node(actionContext); await this.execute_${link.getDstPSDEUILogicNode().codeName?lower_case}_node(actionContext);
} }
<#else> <#else>
console.log(`即将执行${link.getDstPSDEUILogicNode().name}节点`);
await this.execute_${link.getDstPSDEUILogicNode().codeName?lower_case}_node(actionContext); await this.execute_${link.getDstPSDEUILogicNode().codeName?lower_case}_node(actionContext);
</#if> </#if>
</#if> </#if>
...@@ -457,8 +465,7 @@ ...@@ -457,8 +465,7 @@
<#macro debugParamNode logicNode> <#macro debugParamNode logicNode>
<#if logicNode.getDstPSDEUILogicParam?? && logicNode.getDstPSDEUILogicParam()??> <#if logicNode.getDstPSDEUILogicParam?? && logicNode.getDstPSDEUILogicParam()??>
const dstParamValue = actionContext.getParam('${logicNode.getDstPSDEUILogicParam().codeName}').getReal(); const dstParamValue = actionContext.getParam('${logicNode.getDstPSDEUILogicParam().codeName}').getReal();
actionContext.bindLastReturnParam(null); console.log(`逻辑节点${logicNode.name}操作参数值:`, Util.deepCopy(dstParamValue));
console.log('逻辑节点 ${logicNode.name} 操作参数值: ', dstParamValue);
</#if> </#if>
</#macro> </#macro>
<#-- END: 调试逻辑参数节点 --> <#-- END: 调试逻辑参数节点 -->
...@@ -499,7 +506,6 @@ ...@@ -499,7 +506,6 @@
</#if> </#if>
</#list> </#list>
</#if> </#if>
console.log('已完成执行 ${logicNode.name} 节点');
<#else> <#else>
throw new Error('${logicNode.getButtonsType()}未实现'); throw new Error('${logicNode.getButtonsType()}未实现');
</#if> </#if>
...@@ -511,7 +517,6 @@ ...@@ -511,7 +517,6 @@
}); });
} else { } else {
resolve(true); resolve(true);
console.log('已完成执行 ${logicNode.name} 节点');
} }
}); });
</#macro> </#macro>
...@@ -629,10 +634,8 @@ ...@@ -629,10 +634,8 @@
<#-- 结束节点 --> <#-- 结束节点 -->
<@endNode logicNode/> <@endNode logicNode/>
<#else> <#else>
console.log('${logicNode.getLogicNodeType()}暂未支持');
</#if> </#if>
<#if needNextNode> <#if needNextNode>
console.log('已完成执行 ${logicNode.name} 节点');
<@computeNextNode logicNode/> <@computeNextNode logicNode/>
</#if> </#if>
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册