Fei_Xian_Lin_Ye_Fang_Huo/src/views/gridman/index.vue

71 lines
1.4 KiB
Vue
Raw Normal View History

2023-08-23 18:01:30 +08:00
<template>
<div class="gridman-container">
2023-08-24 09:02:41 +08:00
<div class="gridman-header">
2023-08-24 13:42:08 +08:00
<div class="back-button" @click="backPath"></div>
2023-08-24 09:02:41 +08:00
网格化管理
</div>
2023-08-24 09:17:26 +08:00
<div class="gridman-body">
<router-view></router-view>
</div>
2023-08-23 18:01:30 +08:00
</div>
</template>
<script>
export default {
name: 'index',
created(){
2023-08-24 09:02:41 +08:00
},
data(){
return {
2023-08-25 15:39:27 +08:00
2023-08-24 09:02:41 +08:00
}
2023-08-24 13:42:08 +08:00
},
methods:{
backPath(){
console.log(this.$route);
if(this.$route.path != '/gridman_navigation'){
this.$router.push({'path':'/gridman'})
}else{
this.$router.push({'path':'/index'})
}
}
2023-08-23 18:01:30 +08:00
}
}
</script>
<style scoped>
.gridman-container{
width:100%;
height: 100%;
2023-08-24 09:02:41 +08:00
background-image:url(/img/gridman/bg.png);
2023-08-23 18:01:30 +08:00
background-size:100% 100%;
}
2023-08-24 09:02:41 +08:00
.gridman-header{
width:100%;
height:99px;
background-image:url(/img/gridman/header.png);
background-size:100% 100%;
text-align: center;
color:#fff;
line-height:90px;
font-size:36px;
letter-spacing: 5px;
}
2023-08-24 13:42:08 +08:00
.back-button{
width:140px;
height:40px;
position:absolute;
top:60px;
left:40px;
cursor:pointer;
}
2023-08-24 09:55:16 +08:00
.gridman-body{
width:100%;
height: calc( 100% - 100px);
2023-08-24 13:42:08 +08:00
2023-08-24 09:02:41 +08:00
}
2023-08-23 18:01:30 +08:00
</style>