提交 4e25737c 编写于 作者: Mosher's avatar Mosher

修改视图消息组发布逻辑

上级 bc16e6bd
<div class='view-bottom-messages'>
<#if view.getPSViewMsgGroup()??>
<#assign viewMsgGroup = view.getPSViewMsgGroup()/>
<#list viewMsgGroup.getPSViewMsgGroupDetails() as detail>
<#assign msg = detail.getPSViewMsg()>
<#-- BEGIN:暂时支持静态 -->
<#if msg.getCodeName() != '' && msg.getPosition() == 'BOTTOM' && msg.getDynamicMode() == 0>
<#assign type = msg.getMessageType() />
<alert type='<#if type == 'INFO'>info<#elseif type == 'WARN'>warning<#elseif type == 'ERROR'>error<#else>info</#if>' closable={${msg.isEnableRemove()?c}}>
${msg.getTitle()}
<span slot='desc'>${msg.getMessage()}</span>
</alert>
<#if viewMsgGroup.getCodeName()??>
<app-alert-group position='BOTTOM' infoGroup='${viewMsgGroup.getCodeName()}'></app-alert-group>
<#else>
<app-alert-group position='BOTTOM' infoGroup='${viewMsgGroup.getName()}'></app-alert-group>
</#if>
<#-- END:暂时支持静态 -->
</#list>
</#if>
</div>
\ No newline at end of file
<div class='view-top-messages'>
<#if view.getPSViewMsgGroup()??>
<#assign viewMsgGroup = view.getPSViewMsgGroup()/>
<#list viewMsgGroup.getPSViewMsgGroupDetails() as detail>
<#assign msg = detail.getPSViewMsg()>
<#-- BEGIN:暂时支持静态 -->
<#if msg.getCodeName() != '' && msg.getPosition() == 'TOP' && msg.getDynamicMode() == 0>
<#assign type = msg.getMessageType() />
<alert type='<#if type == 'INFO'>info<#elseif type == 'WARN'>warning<#elseif type == 'ERROR'>error<#else>info</#if>' closable={${msg.isEnableRemove()?c}}>
${msg.getTitle()}
<span slot='desc'>${msg.getMessage()}</span>
</alert>
<#if viewMsgGroup.getCodeName()??>
<app-alert-group position='TOP' infoGroup='${viewMsgGroup.getCodeName()}'></app-alert-group>
<#else>
<app-alert-group position='TOP' infoGroup='${viewMsgGroup.getName()}'></app-alert-group>
</#if>
<#-- END:暂时支持静态 -->
</#list>
</#if>
</div>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册