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

上下文菜单 --fix3

上级 3db8603c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl ../../@NAVPARAMS/FUNC/PUBLIC.vue.ftl
</#ibizinclude> </#ibizinclude>
<div class="context-menu-item" name='${item.name}' v-show="this.copyActionModel['${item.name}'].visabled" disabled="this.copyActionModel['${item.name}'].disabled"> <div class="context-menu-item" name='${item.name}' >
<#if item.isShowIcon() && item.getPSSysImage()??> <#if item.isShowIcon() && item.getPSSysImage()??>
<ion-icon name="<@setIcon item />"></ion-icon> <ion-icon name="<@setIcon item />"></ion-icon>
</#if> </#if>
......
<template slot ="content"> <#if ctrl.getPSDEToolbarItems()??>
<#if ctrl.getPSDEToolbarItems()??> <#list ctrl.getPSDEToolbarItems() as item>
<#list ctrl.getPSDEToolbarItems() as item> <@ibizindent blank=8>
<@ibizindent blank=8> ${P.getPartCode(item).code}
${P.getPartCode(item).code} </@ibizindent>
</@ibizindent> </#list>
</#list> </#if>
</#if> \ No newline at end of file
</template>
\ No newline at end of file
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
</ion-radio-group> </ion-radio-group>
</#if> </#if>
<app-mob-context-menu :value="contextMenuShowStatus" @change="(val)=>{this.contextMenuShowStatus=val}"> <app-mob-context-menu :value="contextMenuShowStatus" @change="(val)=>{this.contextMenuShowStatus=val}">
<template slot ="content" v-html="renderContextMenuDoc()"></template>
</app-mob-context-menu> </app-mob-context-menu>
</div> </div>
</template> </template>
\ No newline at end of file
...@@ -797,10 +797,8 @@ import { Util } from '@ibiz-core/utils' ...@@ -797,10 +797,8 @@ import { Util } from '@ibiz-core/utils'
*/ */
public renderContextMenu(node: any) { public renderContextMenu(node: any) {
let content; let content;
if (node && node.data) { if (node) {
const data: any = JSON.parse(JSON.stringify(node.data)); const tags: string[] = node.id.split(';');
this.currentselectedNode = { ...data };
const tags: string[] = data.id.split(';');
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#list ctrl.getPSControls() as childCtrl> <#list ctrl.getPSControls() as childCtrl>
<#if childCtrl.getControlType() == "CONTEXTMENU"> <#if childCtrl.getControlType() == "CONTEXTMENU">
...@@ -813,6 +811,16 @@ import { Util } from '@ibiz-core/utils' ...@@ -813,6 +811,16 @@ import { Util } from '@ibiz-core/utils'
} }
return content; return content;
} }
/**
* 菜单显示状态
*
* @param {*} node
* @returns
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public contextMenuShowStatus = false;
<#if ctrl.getPSControls()??> <#if ctrl.getPSControls()??>
<#list ctrl.getPSControls() as childCtrl> <#list ctrl.getPSControls() as childCtrl>
<#if childCtrl.getControlType() == "CONTEXTMENU"> <#if childCtrl.getControlType() == "CONTEXTMENU">
...@@ -824,11 +832,11 @@ import { Util } from '@ibiz-core/utils' ...@@ -824,11 +832,11 @@ import { Util } from '@ibiz-core/utils'
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() { public renderContextMenu${srfclassname(childCtrl.getOwner().getNodeType()?lower_case)}() {
return ( return (`
<@ibizindent blank=12> <@ibizindent blank=12>
${P.getCtrlCode(childCtrl, 'CONTROL.html').code} ${P.getCtrlCode(childCtrl, 'CONTROL.html').code}
</@ibizindent> </@ibizindent>
); `);
} }
</#if> </#if>
</#list> </#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册