提交 b1010df9 编写于 作者: WodahsOrez's avatar WodahsOrez

lxm--导航分页栏

上级 f2e97158
......@@ -74,6 +74,34 @@
return null;
}
/**
* 从父传入的当前分页面板panel值
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
@Prop() public tabValue?: string;
/**
* 获取当前分页面板panel值
*
* @returns {*}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
get localTabValue(){
return this.tabValue;
}
/**
* 设置当前分页面板panel值
*
* @params {*} value
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
set localTabValue(value:any){
this.$emit('tabValueChange',value);
}
/**
* 行为参数
*
......
<#assign content>
<#if view.getViewType() == 'DETABSEARCHVIEW' || view.getViewType() == 'DETABSEARCHVIEW9'>
:isIconMode="true"
:tabValue="tabValue"
@tabValueChange="($event) => {tabValue = $event;}"
</#if>
</#assign>
<#ibizinclude>
../@MACRO/HTML/DEFAULT.html.ftl
</#ibizinclude>
\ No newline at end of file
<#ibizinclude>
../@MACRO/DEFAULT.less.ftl
</#ibizinclude>
\ No newline at end of file
</#ibizinclude>
.detabsearchview{
.toolbars-container{
margin-bottom: 6px;
overflow:hidden
}
}
\ No newline at end of file
<#ibizinclude>
../../@MACRO/LANG_FUN.ftl
</#ibizinclude>
<div class='view-container ${view.getViewType()?lower_case} ${srffilepath2(view.getCodeName())}<#if view.getPSSysCss?? && view.getPSSysCss()??> ${view.getPSSysCss().getCssName()}</#if>'>
<app-studioaction :viewTitle="$t(model.srfTitle)" viewName="${view.getCodeName()?lower_case}"></app-studioaction>
<card class='view-card<#if !view.isShowCaptionBar()> view-no-caption</#if> <#if !view.hasPSControl('toolbar')> view-no-toolbar</#if>' :dis-hover="true" :bordered="false">
......@@ -5,22 +8,40 @@
../@MACRO/VIEW_CAPTION_DATAINFO.vue.ftl
</#ibizinclude>
<#if view.hasPSControl('toolbar')>
<@ibizindent blank=8>
<p slot="extra">
${P.getCtrlCode('toolbar', 'CONTROL.html').code}
</p>
</@ibizindent>
<@ibizindent blank=8>
<p slot="extra">
${P.getCtrlCode('toolbar', 'CONTROL.html').code}
</p>
</@ibizindent>
</#if>
<div class="toolbars-container" style=''>
<#if view.hasPSControl('tabexppanel')>
<#assign tabexppanel = view.getPSControl('tabexppanel') />
<el-radio-group v-model="tabValue" class="tab-panel-group">
<#if tabexppanel.getPSControls?? && tabexppanel.getPSControls()??>
<#list tabexppanel.getPSControls() as tabviewpanel>
<el-radio-button label="${tabviewpanel.name}">
<tooltip :transfer="true" :max-width="600">
<#if tabviewpanel.getPSSysImage()??>
<#assign sysimage = tabviewpanel.getPSSysImage()/>
<#if sysimage.getImagePath() == "">
<i class='${sysimage.getCssClass()}'></i>
<#else>
<img src='${sysimage.getImagePath()}'>
</#if>
</#if>
<div slot='content'>${tabviewpanel.getCaption()}</div>
</tooltip>
</el-radio-button>
</#list>
</#if>
</el-radio-group>
</#if>
</div>
<div class='content-container'>
<#ibizinclude>
../@MACRO/View_Pos_Top_Msgs.vue.ftl
</#ibizinclude>
<#if view.hasPSControl('tabexppanel')>
${P.getCtrlCode('tabexppanel', 'CONTROL.html').code}
</#if>
<#ibizinclude>
../@MACRO/View_Pos_Bottom_Msgs.vue.ftl
</#ibizinclude>
</div>
</card>
</div>
\ No newline at end of file
......@@ -11,6 +11,25 @@
../@MACRO/VIEW_CONTENT-BASE.vue.ftl
</#ibizinclude>
<#assign tabexppanel = view.getPSControl('tabexppanel') />
<#if tabexppanel?? && tabexppanel.getPSControls?? && tabexppanel.getPSControls()??>
<#list tabexppanel.getPSControls() as tabviewpanel>
<#if tabviewpanel.name??>
<#assign tabValue = tabviewpanel.name />
<#break>
</#if>
</#list>
</#if>
/**
* 当前分页panel值
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}
*/
public tabValue: string = <#if tabValue??>${tabValue}<#else>''</#if>;
<#ibizinclude>
../@MACRO/VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册