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

Revert "滑动行为调整"

This reverts commit fb658295.
上级 dc6fde3b
<#macro outPutActionGroup ctrl> <#macro outPutActionGroup ctrl>
<ion-item-options v-if="controlStyle != 'LISTVIEW3' && uiActions && uiActions.right " side="start"> <#if ctrl.getPSDEUIActionGroup()?? && 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> <#assign details = ctrl.getPSDEUIActionGroup().getPSUIActionGroupDetails()>
<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>
<ion-item-options v-if="controlStyle != 'LISTVIEW3' && uiActions && uiActions.left " side="end"> </#if>
<ion-item-option v-for="uiitem in uiActions.left" :key="uiitem.uiactionid" @click="mdctrl_click($event, uiitem.actionid, item)">{{uiitem.title}}</ion-item-option> <#if ctrl.getPSDEUIActionGroup2()?? && ctrl.getPSDEUIActionGroup2().getPSUIActionGroupDetails()??>
<#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,14 +45,6 @@ ...@@ -45,14 +45,6 @@
* @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
...@@ -851,14 +843,7 @@ ...@@ -851,14 +843,7 @@
*/ */
public getActionState(data:any){ public getActionState(data:any){
//let targetData:any = this.transformData(data); //let targetData:any = this.transformData(data);
let allUiAction = {}; let tempActionModel:any = JSON.parse(JSON.stringify(this.ActionModel));
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册