plantScreen/src/view/home.vue

240 lines
6.2 KiB
Vue
Raw Normal View History

2023-12-14 20:08:53 +08:00
<template>
<div class="box">
<div class="l">
<div class="top">
<leftTop></leftTop>
</div>
<div class="center top">
2023-12-15 18:20:02 +08:00
<leftCenter></leftCenter>
2023-12-14 20:08:53 +08:00
</div>
<div class="bottom top">
2023-12-15 18:20:02 +08:00
<leftBottom></leftBottom>
2023-12-14 20:08:53 +08:00
</div>
</div>
<div class="c">
<div class="top">
<div class="c-top-tit">
<div class="c-top-li">种植面积 <span class="color-font"
style="font-size: 18px;margin-left: 1vw; ">45454</span> m</div>
<div class="c-top-li">种植种类 <span class="color-font"
style="font-size: 18px;margin-left: 1vw; ">45454</span> </div>
<div class="c-top-li">地块数量 <span class="color-font"
style="font-size: 18px;margin-left: 1vw; ">45454</span> </div>
</div>
<div class="map">
<areaMap></areaMap>
</div>
</div>
<div class="bottom">
2023-12-15 18:20:02 +08:00
<centerBottom></centerBottom>
2023-12-14 20:08:53 +08:00
</div>
</div>
<div class="r">
<div class="top">
2023-12-15 18:20:02 +08:00
<rightTop></rightTop>
2023-12-14 20:08:53 +08:00
</div>
2023-12-15 18:20:02 +08:00
<div class="bottoms">
2023-12-14 20:08:53 +08:00
<div style="height: 35%;">
2023-12-15 18:20:02 +08:00
<div class="landa">
<div class="land-li" v-for="(item, index) in landlist" :key="index">{{ item.title }}</div>
2023-12-14 20:08:53 +08:00
</div>
</div>
<div class="video" style="height: 65%;">
<div class="video-tit"> 实时监测影像 </div>
2023-12-15 18:20:02 +08:00
2023-12-14 20:08:53 +08:00
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref, reactive, onMounted } from "vue"
import leftTop from "@/components/index/leftTop.vue"
2023-12-15 18:20:02 +08:00
import leftCenter from "../components/index/leftCenter.vue"
import leftBottom from "../components/index/leftBottom.vue"
import centerBottom from "../components/index/centerBottom.vue"
2023-12-14 20:08:53 +08:00
import JessibucaDemo from "@/components/videoFlv.vue"
import { useRouter } from "vue-router";
import areaMap from "@/components/areaMap.vue"
2023-12-15 18:20:02 +08:00
import {landListApi} from "@/api.js"
import rightTop from "../components/index/rightTop.vue"
2023-12-14 20:08:53 +08:00
2023-12-15 18:20:02 +08:00
// 地块
const landlist=reactive([])
landListApi( {
areaCode:510521,
streetCode:510521100
}).then(res=>{
res.data.list.forEach( item=>{ landlist.push(item) })
2023-12-14 20:08:53 +08:00
})
</script>
<style lang="scss">
.box {
width: 100vw;
height: 93vh;
margin-top: 1vh;
display: flex;
justify-content: space-between;
.l {
width: 25vw;
height: 93vh;
.top {
width: 25vw;
height: 30vh;
background-size: 100% 100%;
// background-color: pink;
background-image: url('/static/index/SBGJTJ.png');
margin-top: 1vh;
box-sizing: border-box;
padding: 6vh 2vh 1vh 2vh;
color: white;
font-size: 14px;
position: relative;
}
.center {
background-image: url('/static/index/JCSBSLTJ.png');
2023-12-15 18:20:02 +08:00
2023-12-14 20:08:53 +08:00
}
.bottom {
background-image: url('/static/index/SYCPTJ.png');
}
}
.c {
width: 49vw;
height: 93vh;
.top {
margin-top: 1vh;
width: 49vw;
height: 61vh;
// background-color: RED;
background-image: url('/static/index/ZBK.png');
background-size: 100% 100%;
box-sizing: border-box;
padding: 2vh 2vw;
.c-top-tit {
display: flex;
color: white;
justify-content: space-between;
font-size: 12px;
line-height: 2vh;
.c-top-li {
padding: 2vh 3vw;
// background-color: #fff;
background-image: url('/static/index/DBTC.png');
background-size: 100% 100%;
}
}
.map {
width: 100%;
height: 50vh;
// background-color: #fff;
// border: 1px solid red;
}
}
.bottom {
width: 49vw;
height: 30vh;
margin-top: 1vh;
background-image: url('/static/index/ZNYJ.png');
background-size: 100% 100%;
box-sizing: border-box;
padding: 6vh 1vh 1vh 2vh;
position: relative;
}
}
.r {
width: 25vw;
height: 93vh;
2023-12-15 18:20:02 +08:00
.bottoms {
2023-12-14 20:08:53 +08:00
width: 25vw;
box-sizing: border-box;
padding-top: 6vh;
padding: 6vh 1vh 0;
height: 61vh;
background-size: 100% 100%;
background-image: url('/static/index/MQ.png');
margin-top: 1vh;
2023-12-15 18:20:02 +08:00
.landa {
2023-12-14 20:08:53 +08:00
display: flex;
flex-wrap: wrap;
font-size: 14px;
2023-12-15 18:20:02 +08:00
flex-wrap: wrap;
.land-li {
padding: 2px 20px;
margin-right: 10px;
2023-12-14 20:08:53 +08:00
background-image: url('/static/index/DK.png');
background-size: 100% 100%;
color: white;
text-align: center;
line-height: 3vh;
}
}
.video {
.video-tit {
color: white;
width: 110px;
text-align: center;
line-height: 30px;
height: 30px;
background-image: url('/static/index/JKBT.png');
background-size: cover;
font-size: 15px;
margin-bottom: 3vh;
}
}
}
.top {
width: 25vw;
height: 30vh;
padding: 2vh;
box-sizing: border-box;
background-size: 100% 100%;
background-image: url('/static/index/YJCP.png');
margin-top: 1vh;
padding-top: 6vh;
}
}
}
</style>