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

zk——首页视图支持配置应用选择模式

上级 efc7b673
<app-layout viewName="${view.getCodeName()?lower_case}" viewTitle="${view.getTitle()}" className={{ index_view: true }}>
<template slot="headerLeft">
<div class="app-header-left">
<span class="ibiz-menu-icon" onClick={()=>{this.contextMenuDragVisiable=!this.contextMenuDragVisiable}}><i class="ivu-icon ivu-icon-md-menu"></i></span>
{this.isEnableAppSwitch?<span class="ibiz-menu-icon" onClick={()=>{this.contextMenuDragVisiable=!this.contextMenuDragVisiable}}><i class="ivu-icon ivu-icon-md-menu"></i></span>:<span></span>}
<img class="logo" src="./assets/img/logo.png" />
<div class="app-name">{this.$t(this.model.srfCaption)}</div>
</div>
......@@ -15,7 +15,7 @@
<div class="crm-app-content">
<div class="inedx-app-menus">
${P.getCtrlCode('appmenu', 'CONTROL.html').code}
<context-menu-drag contextMenuDragVisiable={this.contextMenuDragVisiable}></context-menu-drag>
{this.isEnableAppSwitch?<context-menu-drag contextMenuDragVisiable={this.contextMenuDragVisiable}></context-menu-drag>:<div></div>}
</div>
<div class="content" style="width: calc(100% - 240px)" on-click={() =>{this.contextMenuDragVisiable=false}}>
<router-view></router-view>
......
......@@ -42,6 +42,14 @@ export default class ${srfclassname('${view.name}')}Base extends IndexViewBase {
*/
public contextMenuDragVisiable: boolean = false;
/**
* 是否支持应用切换
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base
*/
public isEnableAppSwitch: boolean = <#if view.isEnableAppSwitch()??>${view.isEnableAppSwitch()?c}<#else>false</#if>;
/**
* 容器模型
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册