You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<template>
|
|
|
|
<div class="box" :style="full?'height:calc(100vh - 60px);':'height: 80vh;'">
|
|
|
|
<div class="nav">
|
|
|
|
<div class="top" :style="full?'border-radius:0':'border-top-left-radius: 20px;'">
|
|
|
|
<p style="margin:auto">商业银行系统</p>
|
|
|
|
</div>
|
|
|
|
<navbar class="body"></navbar>
|
|
|
|
</div>
|
|
|
|
<div class="manage-layout">
|
|
|
|
<div class="top" :style="full?'border-radius:0':'border-top-right-radius: 20px;'">
|
|
|
|
<img v-show="!full" src="../../../assets/svg/fullscreen.svg" alt="" @click="handleFullscreen">
|
|
|
|
<img v-show="full" src="../../../assets/svg/shrink.svg" alt="" @click="shrink">
|
|
|
|
<i @click="close" class="el-icon-close"></i>
|
|
|
|
</div>
|
|
|
|
<div class="manage-content">
|
|
|
|
<router-view class="manage-view"></router-view>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import navbar from '../navbar'
|
|
|
|
import { mapState } from 'vuex'
|
|
|
|
export default {
|
|
|
|
name: 'index',
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
fullscreen:this.$store.state.system.fullScreen,// 是否全屏--store读取
|
|
|
|
}
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
navbar,
|
|
|
|
},
|
|
|
|
computed:{
|
|
|
|
full:function(){
|
|
|
|
return this.$store.state.system.fullScreen
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
close(){
|
|
|
|
this.$router.push('/counter/list/')
|
|
|
|
},
|
|
|
|
handleFullscreen(){
|
|
|
|
this.fullscreen = true
|
|
|
|
this.$store.commit('system/changeFullscreen',true)
|
|
|
|
},
|
|
|
|
shrink(){
|
|
|
|
this.fullscreen = false
|
|
|
|
this.$store.commit('system/changeFullscreen',false)
|
|
|
|
},
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.box{
|
|
|
|
display: flex;
|
|
|
|
min-width: 1300px;
|
|
|
|
|
|
|
|
overflow: auto;
|
|
|
|
.nav{
|
|
|
|
width: 270px;
|
|
|
|
border-top-left-radius: 20px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
.top{
|
|
|
|
height: 50px;
|
|
|
|
font-size: 20px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
border-top-left-radius: 15px;
|
|
|
|
color: #B3B3B3;
|
|
|
|
background: #222428;
|
|
|
|
}
|
|
|
|
.body{
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.manage-layout{
|
|
|
|
width: calc(100% - 270px);
|
|
|
|
// background: #fff;
|
|
|
|
background:transparent;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
.top{
|
|
|
|
height: 50px;
|
|
|
|
font-size: 30px;
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
|
|
|
align-items: center;
|
|
|
|
text-align: center;
|
|
|
|
color: #000;
|
|
|
|
background: #e6e6e6;
|
|
|
|
border-top-right-radius: 20px;
|
|
|
|
i{
|
|
|
|
margin-right: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.manage-content{
|
|
|
|
flex: 1;
|
|
|
|
position: relative;
|
|
|
|
.manage-view{
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|