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

界面行为 主状态

上级 5273efaa
......@@ -5,7 +5,7 @@
<#list details as detail>
<#if detail.getPSUIAction()??>
<#assign uiaction = detail.getPSUIAction()>
<ion-item-option color="<#if uiaction.getUIActionTag() == "Remove">danger<#else>primary</#if>" @click="mdctrl_click($event, '${detail.getName()}', item)">${uiaction.getCaption()}</ion-item-option>
<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>
......@@ -16,7 +16,7 @@
<#list details as detail>
<#if detail.getPSUIAction()??>
<#assign uiaction = detail.getPSUIAction()>
<ion-item-option color="<#if uiaction.getUIActionTag() == "Remove">danger<#else>primary</#if>" @click="mdctrl_click($event, '${detail.getName()}', item)">${uiaction.getCaption()}</ion-item-option>
<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>
......
......@@ -514,6 +514,9 @@
this.items = [];
this.items = response.data.records;
}
this.items.forEach((item:any)=>{
Object.assign(item,this.getActionState(item));
});
return response;
}
......@@ -818,7 +821,7 @@
});
}
}
/**
* 界面行为模型
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册