| | |
| | | @change="changePage" |
| | | @tabClick="tabCallBack" |
| | | @edit="editPage"> |
| | | <a-tab-pane :id="page.fullPath" :key="page.fullPath" v-for="page in pageList" :closable="!(page.meta.title=='首页')"> |
| | | <a-tab-pane :id="page.fullPath" :key="page.fullPath" v-for="page in pageList" :closable="!(page.meta.title=='设备监控')"> |
| | | <span slot="tab" :pagekey="page.fullPath">{{ page.meta.title }}</span> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | <div style="margin: 12px 12px 0;"> |
| | | <div :style="{margin:$route.meta.title!=='首页'? '12px 12px 0':0,flex:1,display: 'flex',flexDirection: 'column'}"> |
| | | <!-- update-begin-author:taoyan date:20201221 for:此处删掉transition标签 不知道为什么加上后 页面路由切换的时候即1及菜单切到2及菜单的时候 两个菜单页面会同时出现300-500秒左右 --> |
| | | <keep-alive v-if="multipage"> |
| | | <router-view v-if="reloadFlag"/> |
| | |
| | | import { CACHE_INCLUDED_ROUTES } from '@/store/mutation-types' |
| | | import registerApps from "@/qiankun"; |
| | | |
| | | const indexKey = '/dashboard/analysis' |
| | | const indexKey = '/mdc/base/DeviceBaseInfo' |
| | | |
| | | export default { |
| | | name: 'TabLayout', |
| | |
| | | // 将首页添加到第一位 |
| | | addIndexToFirst() { |
| | | this.pageList.splice(0, 0, { |
| | | name: 'dashboard-analysis', |
| | | name: 'mdc-base-DeviceBaseInfo', |
| | | path: indexKey, |
| | | fullPath: indexKey, |
| | | meta: { |
| | | icon: 'dashboard', |
| | | title: '首页' |
| | | icon: '', |
| | | title: '设备监控' |
| | | } |
| | | }) |
| | | this.linkList.splice(0, 0, indexKey) |
| | |
| | | * @param title 要修改的新标题 |
| | | */ |
| | | changeTitle(title) { |
| | | let projectTitle = "Jeecg-Boot 企业级低代码平台" |
| | | let projectTitle = "中国一拖管理系统" |
| | | // 首页特殊处理 |
| | | if (this.$route.path === indexKey) { |
| | | document.title = projectTitle |
| | |
| | | * You can easily play with the page transition by editing |
| | | * these styles. |
| | | */ |
| | | |
| | | .page-transition-enter { |
| | | opacity: 0; |
| | | } |