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.

135 lines
3.3 KiB

2 years ago
<template>
<div class="page">
<div class="container" ref="appRef">
<dv-loading v-if="loading">Loading...</dv-loading>
2 years ago
<div v-else style="height: 100%;" class="d-flex flex-column">
2 years ago
<dv-decoration-3 style="width:250px;height:30px;position: absolute;bottom: 10px;right: 30px;" />
2 years ago
2 years ago
<HeaderComponent></HeaderComponent>
2 years ago
<div class="body d-flex flex-1">
2 years ago
<!-- <btns></btns>-->
2 years ago
<div class="left d-flex flex-column">
2 years ago
<dv-border-box-12 style="padding: 14px;" class="flex-1">
2 years ago
<MapComponent v-show="$store.state.bigdata.type === 1"></MapComponent>
2 years ago
<Map1Component v-show="$store.state.bigdata.type === 2"></Map1Component>
<Map2Component v-show="$store.state.bigdata.type === 3"></Map2Component>
2 years ago
</dv-border-box-12>
<leftBottom class="mt-2"></leftBottom>
2 years ago
</div>
2 years ago
<div class="right d-flex flex-column ml-2">
2 years ago
<dv-border-box-12><right1></right1></dv-border-box-12>
<dv-border-box-12><right2></right2></dv-border-box-12>
2 years ago
<dv-border-box-12><right3></right3></dv-border-box-12>
2 years ago
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import drawMixin from "@/mixin/drawMixin";
import MapComponent from "./map.vue";
2 years ago
import Map1Component from "./map1.vue";
2 years ago
import Map2Component from "./map2.vue";
2 years ago
import HeaderComponent from "./header.vue";
import right1 from "./right1.vue";
import right2 from "./right2.vue";
2 years ago
import right3 from "./right3.vue";
2 years ago
import btns from "./btns.vue";
2 years ago
import leftBottom from "./leftBottom.vue"
2 years ago
import { index } from '@/api/system/baseForm';
2 years ago
import { mapActions } from "vuex"
2 years ago
export default {
components: {
MapComponent,
2 years ago
Map1Component,
2 years ago
Map2Component,
2 years ago
HeaderComponent,
right1,
right2,
2 years ago
right3,
2 years ago
btns,
leftBottom
2 years ago
},
mixins: [drawMixin],
data() {
return {
loading: true,
2 years ago
assetsData: [[],[]],
2 years ago
leases: []
2 years ago
}
},
methods: {
2 years ago
...mapActions("bigdata",{
getLeases: "getLeases",
getAssets: "getAssets",
getAdventLeases: "getAdventLeases",
getSafety: "getSafety",
2 years ago
getSafetyPlan: "getSafetyPlan",
1 year ago
getAdventSafetyPlan: "getAdventSafetyPlan",
getDepartmentStatics: "getDepartmentStatics"
2 years ago
})
},
computed: {
2 years ago
type () {
return this.$store.state.bigdata.type;
}
2 years ago
},
mounted() {
setTimeout(() => {
this.loading = false;
2 years ago
},1000)
2 years ago
},
created() {
2 years ago
this.getAssets()
2 years ago
this.getLeases()
2 years ago
this.getAdventLeases()
this.getSafety()
2 years ago
this.getSafetyPlan()
this.getAdventSafetyPlan()
1 year ago
this.getDepartmentStatics()
2 years ago
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/scss/style.scss";
.page {
2 years ago
background: url("~@/assets/pageBg.png") no-repeat;
background-size: cover;
2 years ago
width: 100vw;
height: 100vh;
overflow: hidden;
position: relative;
}
.container {
width: 1920px;
height: 1080px;
transform-origin: 0 0;
position: relative;
top: 50%;
left: 50%;
.body {
2 years ago
padding-top: 20px;
2 years ago
//padding-left: 13%;
2 years ago
.left {
2 years ago
flex-basis: 74%;
2 years ago
2 years ago
}
.right {
flex: 1;
2 years ago
padding-right: 20px;
2 years ago
div + div {
2 years ago
margin-top: .5rem;
2 years ago
}
}
}
}
</style>