提交 629eb122 编写于 作者: tony001's avatar tony001

更新应用切换器和导入导出功能

上级 f44e5a56
......@@ -18,7 +18,7 @@
<#if view.hasPSControl('toolbar')>
<template slot="headerRight">
<div class="view-header-right">
<app-header-menus :toolbarModel="toolBarModels" @menu-click="toolbar_click($event)" mode="<#if isStyleName>view2<#else><#if header_menu_mode??>${header_menu_mode}<#else>view</#if></#if>" :openMode="openMode"<#if view.isEnableQuickSearch?? && view.isEnableQuickSearch()> :isEnableQuickSearch="true" searchPlaceholder="<@getQuickSearchPlaceholder view />" v-model="query" @search="onSearch($event)"</#if>/>
<app-header-menus :toolbarModel="toolBarModels" @menu-click="toolbar_click($event[0],$event[1])" mode="<#if isStyleName>view2<#else><#if header_menu_mode??>${header_menu_mode}<#else>view</#if></#if>" :openMode="openMode"<#if view.isEnableQuickSearch?? && view.isEnableQuickSearch()> :isEnableQuickSearch="true" searchPlaceholder="<@getQuickSearchPlaceholder view />" v-model="query" @search="onSearch($event)"</#if>/>
</div>
</template>
</#if>
......
......@@ -13,7 +13,10 @@
height: 100%;
display: flex;
align-items: center;
>.ibiz-menu-icon{
font-size: 30px;
padding: 0 10px;
}
>img {
margin: 0px 6px;
margin-top: 2px;
......
<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>
<img class="logo" src="./assets/img/logo.png" />
<div class="app-name">{this.$t(this.model.srfCaption)}</div>
</div>
......@@ -14,8 +15,9 @@
<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>
</div>
<div class="content" style="width: calc(100% - 240px)">
<div class="content" style="width: calc(100% - 240px)" on-click={() =>{this.contextMenuDragVisiable=false}}>
<router-view></router-view>
</div>
</div>
......
......@@ -11,7 +11,7 @@
*/
public ${item.getFullCodeName()}(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
const _this: any = this;
if (!xData || !(xData.importExcel instanceof Function) || !$event) {
if (!xData || !(xData.importExcel instanceof Function)) {
return ;
}
xData.importExcel(params);
......
......@@ -34,6 +34,14 @@ export default class ${srfclassname('${view.name}')}Base extends IndexViewBase {
dataInfo: ''
}
/**
* 抽屉状态
*
* @type {boolean}
* @memberof ${srfclassname('${view.name}')}Base
*/
public contextMenuDragVisiable: boolean = false;
/**
* 容器模型
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册