123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <template>
- <div class="big-screen-home-wrap">
- <header class="big-screen-home-wrap-top">
- <div class="logo-title">
- <img
- class="logo"
- :src="logo"
- >
- <span>{{ title || 'GCPAAS大屏设计器' }}</span>
- </div>
- <div class="big-screen-nav-container">
- <Nav
- :navs="tabList"
- @change="changeTab"
- />
- </div>
- </header>
- <div class="big-screen-router-view-wrap">
- <keep-alive>
- <router-view />
- </keep-alive>
- </div>
- </div>
- </template>
- <script>
- import Nav from './NavTop.vue'
- // import Nav from './Nav.vue'
- export default {
- name: 'BigScreenHome',
- components: {
- Nav
- },
- props: [],
- data () {
- return {
- // 和此处路由保持一致,将会激活tab,请按需更改
- }
- },
- computed: {
- title () {
- return window?.BS_CONFIG?.starter?.title
- },
- logo () {
- return window?.BS_CONFIG?.starter?.logo || require('./images/logo.png')
- },
- tabList () {
- return [
- {
- id: 0,
- name: '大屏管理',
- path: window?.BS_CONFIG?.routers?.pageListUrl || '/big-screen-list',
- icon: 'icon-icon-shujudaping'
- },
- // {
- // id: 1,
- // name: '模版管理',
- // path: window?.BS_CONFIG?.routers?.templateListUrl || '/big-screen-template',
- // icon: 'icon-xiangmuwenjianmobanku_mobanku'
- // },
- {
- id: 1,
- name: '资源库',
- path: window?.BS_CONFIG?.routers?.sourceUrl || '/big-screen-source',
- icon: 'icon-tupian'
- },
- {
- id: 2,
- name: '组件库',
- path: window?.BS_CONFIG?.routers?.componentUrl || '/big-screen-components',
- icon: 'icon-zujian1'
- },
- {
- id: 3,
- name: '数据源管理',
- path:
- window?.BS_CONFIG?.routers?.dataSourceUrl ||
- '/big-screen-dataSource',
- icon: 'icon-datafull'
- },
- {
- id: 4,
- name: '数据集管理',
- path: window?.BS_CONFIG?.routers?.dataSetUrl || '/big-screen-dataSet',
- icon: 'icon-data'
- }
- ]
- }
- },
- created () {},
- methods: {
- changeTab (tab) {
- this.$router.push({
- path: tab.path
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .big-screen-home-wrap > * {
- box-sizing: border-box;
- }
- .big-screen-home-wrap {
- position: relative;
- overflow: hidden;
- height: 100vh;
- .big-screen-home-wrap-top {
- position: absolute;
- top: 0;
- width: 100%;
- height: 150px;
- background-image: url('./images/nav_img.png');
- background-size: 100% 150px;
- background-color: #0D0F12;
- background-position: center right;
- .logo-title {
- font-size: 30px;
- position: absolute;
- z-index: 23;
- top: 40px;
- left: 40px;
- display: flex;
- align-items: center;
- color: var(--bs-el-color-primary);
- .logo {
- height: 30px;
- }
- span {
- font-family: Source Han Sans CN;
- font-size: 30px;
- font-weight: 700;
- padding-left: 8px;
- -webkit-background-clip: text;
- background-size: 400% 400%;
- }
- }
- }
- .big-screen-router-view-wrap {
- position: absolute;
- top: 150px;
- overflow: hidden;
- // padding-top: 16px;
- width: 100%;
- height: calc(100vh - 150px);
- background-color: var(--bs-background-1);
- box-sizing: border-box;
- }
- }
- @keyframes text-animate {
- 0% {
- background-position: 0 0;
- -webkit-background-clip: text;
- }
- 50% {
- background-position: 0 0;
- -webkit-background-clip: text;
- }
- 100% {
- background-position: 0 0;
- -webkit-background-clip: text;
- }
- }
- </style>
|