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

update:更新

上级 058d06c3
...@@ -219,7 +219,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -219,7 +219,7 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
context = this.handleResNavContext(context,filter,rsNavContext); context = this.handleResNavContext(context,filter,rsNavContext);
filter = this.handleResNavParams(context,filter,rsNavParams,rsParams); filter = this.handleResNavParams(context,filter,rsNavParams,rsParams);
return new Promise((resolve:any,reject:any) =>{ return new Promise((resolve:any,reject:any) =>{
<#if node.getTreeNodeType() == 'STATIC'> <#if node.getTreeNodeType() == 'STATIC'>
let treeNode: any = {}; let treeNode: any = {};
Object.assign(treeNode, { text: i18n.t('entities.${appde.getCodeName()?lower_case}.${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}.nodes.${node.getNodeType()?lower_case}') }); Object.assign(treeNode, { text: i18n.t('entities.${appde.getCodeName()?lower_case}.${ctrl.getCodeName()?lower_case}_${ctrl.getControlType()?lower_case}.nodes.${node.getNodeType()?lower_case}') });
Object.assign(treeNode, { isUseLangRes: true }); Object.assign(treeNode, { isUseLangRes: true });
...@@ -255,19 +255,15 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -255,19 +255,15 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
<#if node.getPSSysImage()??> <#if node.getPSSysImage()??>
<#if node.getPSSysImage().getCssClass()?? && node.getPSSysImage().getCssClass()?length gt 0> <#if node.getPSSysImage().getCssClass()?? && node.getPSSysImage().getCssClass()?length gt 0>
Object.assign(treeNode, { iconcls: '${node.getPSSysImage().getCssClass()}' }); Object.assign(treeNode, { iconcls: '${node.getPSSysImage().getCssClass()}' });
<#else> <#else>
Object.assign(treeNode, { icon: '${node.getPSSysImage().getImagePath()}' }); Object.assign(treeNode, { icon: '${node.getPSSysImage().getImagePath()}' });
</#if> </#if>
</#if> </#if>
<#if node.isEnableCheck()> <#if node.isEnableCheck()>
Object.assign(treeNode, { enablecheck: true }); Object.assign(treeNode, { enablecheck: true });
</#if> </#if>
<#if node.isDisableSelect()> <#if node.isDisableSelect()>
Object.assign(treeNode, { disabled: true }); Object.assign(treeNode, { disabled: true });
</#if> </#if>
<#if node.isExpanded()> <#if node.isExpanded()>
Object.assign(treeNode, { expanded: true }); Object.assign(treeNode, { expanded: true });
...@@ -298,8 +294,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -298,8 +294,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
Object.assign(treeNode, { nodeType: "${node.getTreeNodeType()}" }); Object.assign(treeNode, { nodeType: "${node.getTreeNodeType()}" });
list.push(treeNode); list.push(treeNode);
resolve(list); resolve(list);
}); </#if>
<#elseif node.getTreeNodeType() == 'CODELIST' && node.getPSCodeList()??> <#if node.getTreeNodeType() == 'CODELIST' && node.getPSCodeList()??>
<#if node.getPSCodeList().getCodeListType()?? && node.getPSCodeList().getCodeListType() == 'STATIC'> <#if node.getPSCodeList().getCodeListType()?? && node.getPSCodeList().getCodeListType() == 'STATIC'>
let codeListIems:Array<any> = []; let codeListIems:Array<any> = [];
if (this.getStore()) { if (this.getStore()) {
...@@ -457,8 +453,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -457,8 +453,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
<#if node.getPSCodeList().getCodeListType()?? && node.getPSCodeList().getCodeListType() == 'DYNAMIC'> <#if node.getPSCodeList().getCodeListType()?? && node.getPSCodeList().getCodeListType() == 'DYNAMIC'>
}); });
</#if> </#if>
}); </#if>
<#elseif node.getTreeNodeType() == 'DE' && node.getPSAppDataEntity()??> <#if node.getTreeNodeType() == 'DE' && node.getPSAppDataEntity()??>
<#assign filtername>${node.getPSAppDataEntity().codeName}SearchFilter</#assign> <#assign filtername>${node.getPSAppDataEntity().codeName}SearchFilter</#assign>
<#assign entityname>${node.getPSAppDataEntity().codeName}</#assign> <#assign entityname>${node.getPSAppDataEntity().codeName}</#assign>
let searchFilter: any = {}; let searchFilter: any = {};
...@@ -589,10 +585,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se ...@@ -589,10 +585,8 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@se
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }
});
<#else>
});
</#if> </#if>
});
} }
<#if (filtername?length gt 0) && (entityname?length gt 0)> <#if (filtername?length gt 0) && (entityname?length gt 0)>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册