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.

126 lines
2.6 KiB

2 years ago
<template>
<div class="page">
<div class="container" ref="appRef">
<dv-loading v-if="loading">Loading...</dv-loading>
<div v-else>
2 years ago
<dv-decoration-3 style="width:250px;height:30px;position: absolute;bottom: -10px;right: 60px;" />
2 years ago
<HeaderComponent></HeaderComponent>
<div class="body d-flex">
<btns></btns>
2 years ago
<div class="left d-flex flex-column">
<dv-border-box-12>
<MapComponent></MapComponent>
</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>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import drawMixin from "@/mixin/drawMixin";
import MapComponent from "./map.vue";
import HeaderComponent from "./header.vue";
import right1 from "./right1.vue";
import right2 from "./right2.vue";
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
export default {
components: {
MapComponent,
HeaderComponent,
right1,
right2,
2 years ago
btns,
leftBottom
2 years ago
},
mixins: [drawMixin],
2 years ago
provide() {
return {
assets: () => this.assetsData
}
},
2 years ago
data() {
return {
loading: true,
2 years ago
assetsData: [[],[]],
2 years ago
}
},
methods: {
2 years ago
async getData () {
await Promise.all([
index({
table_name: "houses",
page: 1,
page_size: 999
},false),
index({
table_name: "lands",
page: 1,
page_size: 999
})
]).then(res => {
const [houses,lands] = res;
this.assetsData = [houses.data,lands.data];
})
},
2 years ago
},
computed: {},
mounted() {
setTimeout(() => {
this.loading = false;
},500)
2 years ago
},
created() {
this.getData();
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 {
padding-top: 60px;
2 years ago
padding-left: 14%;
2 years ago
.left {
flex-basis: 60%;
}
.right {
flex: 1;
padding-right: 60px;
div + div {
2 years ago
margin-top: .5rem;
2 years ago
}
}
}
}
</style>