提交 df52d7bf 编写于 作者: KK's avatar KK

图片地址

上级 113e49d7
......@@ -3,6 +3,7 @@
</#ibizinclude>
<#assign import_block>
import i18n from '@/locale';
import { Environment } from '@/environments/environment';
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node>
<#if node.getTreeNodeType() == 'DE' && node.getPSAppDataEntity()??>
......@@ -82,6 +83,16 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public TREENODE_SEPARATOR: string = ';';
/**
* 图片地址
*
* @public
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}Service
*/
public download = Environment.ExportFile;
<#if ctrl.getPSDETreeNodes()??>
<#list ctrl.getPSDETreeNodes() as node>
......@@ -490,6 +501,12 @@ import ${srfclassname('${node.getPSAppDataEntity().codeName}')}Service from '@/a
<#else>
let strIcon: string = 'default_text';
</#if>
if(strIcon){
let tempIcon = JSON.parse(strIcon);
if(tempIcon && tempIcon[0] && tempIcon[0].id){
strIcon = `${this.download}/${tempIcon[0] && tempIcon[0].id}`;
}
}
Object.assign(treeNode,{srfparentdename:'${node.getPSAppDataEntity().getCodeName()}',srfparentkey:<#if node.getIdPSDEField()??>entity.${node.getIdPSDEField().codeName?lower_case}<#else>entity.${node.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}</#if>});
let tempContext:any = JSON.parse(JSON.stringify(context));
Object.assign(tempContext,{srfparentdename:'${node.getPSAppDataEntity().getCodeName()}',srfparentkey:<#if node.getIdPSDEField()??>entity.${node.getIdPSDEField().codeName?lower_case}<#else>entity.${node.getPSAppDataEntity().getKeyPSAppDEField().codeName?lower_case}</#if>,${node.getPSAppDataEntity().getCodeName()?lower_case}:strId})
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册