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

绑定事件

上级 3e8f063a
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<ion-list class='app-mob-portlet <#if appde??>${appde.getCodeName()?lower_case}-${ctrl.name}</#if> <#if ctrl.getPSSysCss()??><#assign singleCss = ctrl.getPSSysCss()> ${singleCss.getCssName()}</#if>'> <ion-list class='app-mob-portlet <#if appde??>${appde.getCodeName()?lower_case}-${ctrl.name}</#if> <#if ctrl.getPSSysCss()??><#assign singleCss = ctrl.getPSSysCss()> ${singleCss.getCssName()}</#if>'>
<#if ctrl.isShowTitleBar()> <#if ctrl.isShowTitleBar()>
<ion-list-header class='app-mob-portlet__header'> <ion-list-header class='app-mob-portlet__header'>
<ion-input v-if="isEditTitle" value="${ctrl.getTitle()}"></ion-input> <ion-input v-if="isEditTitle" :value="editTitle" @ionChange="titleChange"></ion-input>
<span v-if="!isEditTitle"><span v-if="customizeTitle">{{customizeTitle}}</span><span v-else>${ctrl.getTitle()}</span></span> <span v-if="!isEditTitle"><span v-if="customizeTitle">{{customizeTitle}}</span><span v-else>${ctrl.getTitle()}</span></span>
<div class="portlet__header_right"> <div class="portlet__header_right">
<ion-icon v-if="!isEditTitle" name="ellipsis-horizontal-outline" @click="open"></ion-icon> <ion-icon v-if="!isEditTitle" name="ellipsis-horizontal-outline" @click="open"></ion-icon>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<#if ctrl.getPortletType() == 'VIEW' && ctrl.getPortletPSAppView?? && ctrl.getPortletPSAppView()??><#t> <#if ctrl.getPortletType() == 'VIEW' && ctrl.getPortletPSAppView?? && ctrl.getPortletPSAppView()??><#t>
<#-- 视图 --> <#-- 视图 -->
<#assign refview = ctrl.getPortletPSAppView()><#t> <#assign refview = ctrl.getPortletPSAppView()><#t>
<${srffilepath2(refview.getCodeName())} :_context="JSON.stringify(context)" :isChildView="true" :_viewparams="JSON.stringify(viewparams)" viewDefaultUsage="includedView" ></${srffilepath2(refview.getCodeName())}> <${srffilepath2(refview.getCodeName())} :_context="JSON.stringify(context)" :isChildView="true" :_viewparams="JSON.stringify(viewparams)" viewDefaultUsage="includedView" ></${srffilepath2(refview.getCodeName())}>
<#elseif ctrl.getPortletType() == 'ACTIONBAR'> <#elseif ctrl.getPortletType() == 'ACTIONBAR'>
<#-- 操作栏 --> <#-- 操作栏 -->
<app-actionbar :items="actionBarModelData" @itemClick="handleItemClick"></app-actionbar> <app-actionbar :items="actionBarModelData" @itemClick="handleItemClick"></app-actionbar>
......
...@@ -214,9 +214,8 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -214,9 +214,8 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
public change(value:any) { public change(value:any) {
if(value.detail.value){ if(value.detail.value){
if(value.detail.value == 'rename' ){ if(value.detail.value == 'rename' ){
this.$notice.warning("暂不支持"); this.isEditTitle = true;
}else if(value.detail.value == 'delete' ){ }else if(value.detail.value == 'delete' ){
this.$notice.warning("暂不支持");
} }
else{ else{
this.handleItemClick(value.detail.value); this.handleItemClick(value.detail.value);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册