|
@@ -1,40 +1,58 @@
|
|
|
<template>
|
|
|
<div id="container">
|
|
|
- <router-view/>
|
|
|
+ <router-view />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import './assets/base.css'
|
|
|
- import Map from "./assets/api/Map.js"
|
|
|
- import {SZZSY_httpGet,SZZSQSY_httpGet,SZZXQ_httpGet} from "./assets/api/loadData.js"
|
|
|
+import "./assets/base.css";
|
|
|
+import Map from "./assets/api/Map.js";
|
|
|
+import {
|
|
|
+ SZZSY_httpGet,
|
|
|
+ SZZSQSY_httpGet,
|
|
|
+ SZZXQ_httpGet,
|
|
|
+} from "./assets/api/loadData.js";
|
|
|
export default {
|
|
|
- name: 'container',
|
|
|
- mounted(){
|
|
|
- window.cesiumMap=new Map();
|
|
|
- SZZSY_httpGet(result=>{
|
|
|
- this.$store.commit('setSzdata',result.data);
|
|
|
- },reuslt=>{})
|
|
|
- SZZSQSY_httpGet("大中社区",result=>{
|
|
|
- console.log("大中社区",result);
|
|
|
- this.$store.commit('setDaZhongdata',result.data);
|
|
|
- },result=>{})
|
|
|
- SZZXQ_httpGet("金湖国际",result=>{
|
|
|
- this.$store.commit('setJinghuguoji',result.data);
|
|
|
- // console.log("金湖国际",result);
|
|
|
- },result=>{})
|
|
|
- },
|
|
|
-}
|
|
|
+ name: "container",
|
|
|
+ mounted() {
|
|
|
+ window.cesiumMap = new Map();
|
|
|
+ SZZSY_httpGet(
|
|
|
+ (result) => {
|
|
|
+ console.log("首页", result);
|
|
|
+ this.$store.commit("setSzdata", result.data);
|
|
|
+ },
|
|
|
+ (reuslt) => {}
|
|
|
+ );
|
|
|
+ SZZSQSY_httpGet(
|
|
|
+ "大中社区",
|
|
|
+ (result) => {
|
|
|
+ console.log("大中社区", result);
|
|
|
+ this.$store.commit("setDaZhongdata", result.data);
|
|
|
+ },
|
|
|
+ (result) => {}
|
|
|
+ );
|
|
|
+ SZZXQ_httpGet(
|
|
|
+ "金湖国际",
|
|
|
+ (result) => {
|
|
|
+ this.$store.commit("setJinghuguoji", result.data);
|
|
|
+ // console.log("金湖国际",result);
|
|
|
+ },
|
|
|
+ (result) => {}
|
|
|
+ );
|
|
|
+ },
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style>
|
|
|
- html,body,#container {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- margin: 0;
|
|
|
- padding: 0;
|
|
|
- overflow: hidden;
|
|
|
- z-index: 1;
|
|
|
- position: absolute;
|
|
|
+html,
|
|
|
+body,
|
|
|
+#container {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+ overflow: hidden;
|
|
|
+ z-index: 1;
|
|
|
+ position: absolute;
|
|
|
}
|
|
|
</style>
|