2022-09-01 17:58:40 +08:00

173 lines
4.2 KiB
Vue

<template>
<div class="zjsj-large-screen">
<div class="header">
<div class="info">
<div class="between">
<div class="project">中建科创大厦项目</div>
<div class="time-week">
<div class="time">15:32:39</div>
<div class="week">星期二</div>
</div>
<div class="weather-date">
<div class="weather">多云 32</div>
<div class="date">2022-09-09</div>
</div>
</div>
<div class="title">中建四局数字建造管控平台</div>
<div class="between">
<div class="company"></div>
<div class="exit" @click="$router.push('/projectIndex')"></div>
</div>
</div>
<div class="tabs">
<div
class="tab"
:class="{ checked: $route.path === menu.modulePath }"
v-for="(menu, index) in menus"
:key="index"
@click="handleMenu(menu.modulePath)"
>
{{ menu.moduleName }}
</div>
</div>
</div>
<div class="content">
<router-view></router-view>
</div>
</div>
</template>
<script>
export default {
methods: {
handleMenu(path) {
this.$router.push(path)
}
},
computed: {
menus() {
const moduleList = this.$store.state.userInfo.menuAuthority.moduleList
return moduleList.filter(menu => menu.moduleType === 4)
}
}
}
</script>
<style lang="less" scoped>
@import url("./style.less");
.zjsj-large-screen {
width: 100%;
height: 100%;
color: #fff;
background-color: #182337;
.header {
width: 100%;
height: 110px;
.info {
height: calc(100% - 32px);
color: #fff;
display: flex;
background: url(./assets/images/header/bg-title.png) no-repeat;
background-size: contain;
background-position-y: 16px;
.between {
box-sizing: border-box;
padding: 16px 30px 0;
width: 450px;
height: 100%;
text-align: center;
display: flex;
align-items: center;
.project {
font-size: 16px;
color: #66d4d9;
}
.time-week {
margin: 0 45px;
font-size: 12px;
.time {
margin-bottom: 2px;
}
}
.weather-date {
font-size: 12px;
.weather {
display: flex;
align-items: center;
&::before {
content: '';
margin-right: 10px;
width: 20px;
height: 20px;
background-color: skyblue;
background: url(./assets/images/header/i-cloudy.png) no-repeat;
background-size: contain;
}
}
}
.company {
margin-left: 50px;
margin-right: auto;
width: 246px;
height: 28px;
background: url(./assets/images/header/bg-company.png) no-repeat;
background-size: contain;
}
.exit {
width: 24px;
height: 26px;
background: url(./assets/images/header/i-exit.png) no-repeat;
background-size: contain;
cursor: pointer;
}
}
.title {
box-sizing: border-box;
padding-top: 16px;
flex: 1;
height: 100%;
font-size: 32px;
font-weight: bold;
text-align: center;
}
}
.tabs {
display: flex;
justify-content: space-around;
.tab {
width: 170px;
height: 32px;
line-height: 32px;
text-align: center;
font-size: 18px;
color: #fff;
background: url(./assets/images/header/bg-tab.png) no-repeat;
background-size: 100% 100%;
cursor: pointer;
&.checked {
color: #fec303;
}
&:hover {
color: #fec303;
}
}
}
}
.content {
box-sizing: border-box;
padding: 12px 20px;
width: 100%;
height: calc(100% - 110px);
}
}
/* 全局滚动条样式 */
::v-deep ::-webkit-scrollbar {
/*滚动条整体样式*/
width: 0 !important;
/*高宽分别对应横竖滚动条的尺寸*/
height: 8 !important;
cursor: pointer !important;
}
</style>