提交 aa091410 编写于 作者: ibizdev's avatar ibizdev

chitanda 发布系统代码

上级 9ed6f29a
...@@ -250,13 +250,13 @@ export class CentralBase extends Vue { ...@@ -250,13 +250,13 @@ export class CentralBase extends Vue {
let leftContent: any; let leftContent: any;
switch (styleMode) { switch (styleMode) {
case 'DEFAULT': case 'DEFAULT':
leftContent = <app-content-left-exp menus={this.left_exp.items} />; leftContent = <app-content-left-exp ref="leftExp" menus={this.left_exp.items} />;
break; break;
case 'STYLE2': case 'STYLE2':
leftContent = <app-content-left-nav-menu menus={this.left_exp.items} on-menu-click={(item: any) => this.click(item)}/>; leftContent = <app-content-left-nav-menu ref="leftNavMenu" menus={this.left_exp.items} on-menu-click={(item: any) => this.click(item)}/>;
} }
return ( return (
<app-layout> <app-layout ref="appLayout">
<template slot="header"> <template slot="header">
<app-header> <app-header>
<template slot="header_left"> <template slot="header_left">
...@@ -265,8 +265,8 @@ export class CentralBase extends Vue { ...@@ -265,8 +265,8 @@ export class CentralBase extends Vue {
</div> </div>
</template> </template>
<template slot="header_right"> <template slot="header_right">
<app-header-menus menus={this.top_menus.items} on-menu-click={(item: any) => this.click(item)}/> <app-header-menus ref="headerMenus" menus={this.top_menus.items} on-menu-click={(item: any) => this.click(item)}/>
<user-info menus={this.user_menus.items} on-menu-click={(item: any) => this.click(item)}/> <user-info ref="userInfo" menus={this.user_menus.items} on-menu-click={(item: any) => this.click(item)}/>
</template> </template>
</app-header> </app-header>
<view_appmenu ref='appmenu'/> <view_appmenu ref='appmenu'/>
...@@ -275,18 +275,18 @@ export class CentralBase extends Vue { ...@@ -275,18 +275,18 @@ export class CentralBase extends Vue {
{this.left_exp.items ? <template slot="content_left"> {this.left_exp.items ? <template slot="content_left">
{leftContent} {leftContent}
</template> : null} </template> : null}
{styleMode === 'DEFAULT' ? <tab-page-exp></tab-page-exp> : null} {styleMode === 'DEFAULT' ? <tab-page-exp ref="tabExp"></tab-page-exp> : null}
<div class="view-warp"> <div class="view-warp">
<app-keep-alive routerList={this.appService.navHistory.historyList}> <app-keep-alive routerList={this.appService.navHistory.historyList}>
<router-view key={this.$route.fullPath}></router-view> <router-view key={this.$route.fullPath}></router-view>
</app-keep-alive> </app-keep-alive>
</div> </div>
{this.bottom_exp.items ? <template slot="content_bottom"> {this.bottom_exp.items ? <template slot="content_bottom">
<app-content-bottom-exp menus={this.bottom_exp.items} /> <app-content-bottom-exp ref="bootomExp" menus={this.bottom_exp.items} />
</template> : null} </template> : null}
</app-content> </app-content>
<template slot="footer"> <template slot="footer">
<app-footer/> <app-footer ref="footer"/>
</template> </template>
</app-layout> </app-layout>
); );
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册