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

滑动行为调整

上级 c6f99ee3
<#macro outPutActionGroup ctrl> <#macro outPutActionGroup ctrl>
<#if ctrl.getPSDEUIActionGroup()?? && ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()??> <ion-item-options v-if="controlStyle != 'LISTVIEW3' && uiActions && uiActions.right " side="start">
<#assign details = ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()> <ion-item-option v-for="uiitem in uiActions.right" :key="uiitem.uiactionid" @click="mdctrl_click($event, uiitem.actionid, item)">{{uiitem.title}}</ion-item-option>
<ion-item-options v-if="controlStyle != 'LISTVIEW3'" side="start">
<#list details as detail>
<#if detail.getPSUIAction()??>
<#assign uiaction = detail.getPSUIAction()>
<ion-item-option v-show="item.${uiaction.getCodeName()}.visabled" :disabled="item.${uiaction.getCodeName()}.disabled" color="<#if uiaction.getUIActionTag() == "Remove">danger<#else>primary</#if>" @click="mdctrl_click($event, '${detail.getName()}', item)">${uiaction.getCaption()}</ion-item-option>
</#if>
</#list>
</ion-item-options> </ion-item-options>
</#if> <ion-item-options v-if="controlStyle != 'LISTVIEW3' && uiActions && uiActions.left " side="end">
<#if ctrl.getPSDEUIActionGroup2()?? && ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()??> <ion-item-option v-for="uiitem in uiActions.left" :key="uiitem.uiactionid" @click="mdctrl_click($event, uiitem.actionid, item)">{{uiitem.title}}</ion-item-option>
<#assign details = ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()>
<ion-item-options v-if="controlStyle != 'LISTVIEW3'" side="end">
<#list details as detail>
<#if detail.getPSUIAction()??>
<#assign uiaction = detail.getPSUIAction()>
<ion-item-option v-show="item.${uiaction.getCodeName()}.visabled" :disabled="item.${uiaction.getCodeName()}.disabled" color="<#if uiaction.getUIActionTag() == "Remove">danger<#else>primary</#if>" @click="mdctrl_click($event, '${detail.getName()}', item)">${uiaction.getCaption()}</ion-item-option>
</#if>
</#list>
</ion-item-options> </ion-item-options>
</#if>
</#macro> </#macro>
\ No newline at end of file
...@@ -45,6 +45,14 @@ ...@@ -45,6 +45,14 @@
* @memberof ${srfclassname('${ctrl.codeName}')} * @memberof ${srfclassname('${ctrl.codeName}')}
*/ */
@Prop() protected removeAction!: string; @Prop() protected removeAction!: string;
/**
* 界面行为
*
* @type {string}
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
@Prop() protected uiActions?:any ;
/** /**
* 部件行为--load * 部件行为--load
...@@ -843,7 +851,14 @@ ...@@ -843,7 +851,14 @@
*/ */
public getActionState(data:any){ public getActionState(data:any){
//let targetData:any = this.transformData(data); //let targetData:any = this.transformData(data);
let tempActionModel:any = JSON.parse(JSON.stringify(this.ActionModel)); let allUiAction = {};
this.uiActions.right.forEach((item:any) => {
Object.assign(allUiAction,{[item.name]:item});
});
this.uiActions.left.forEach((item:any) => {
Object.assign(allUiAction,{[item.name]:item});
});
let tempActionModel:any = JSON.parse(JSON.stringify(allUiAction));
this.$viewTool.calcActionItemAuthState(data,tempActionModel,this.deUIService); this.$viewTool.calcActionItemAuthState(data,tempActionModel,this.deUIService);
return tempActionModel; return tempActionModel;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册