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

上下文菜单 --fix3

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