ZZJ
2022-07-15 5c0c6ad7ac6f28e970532af9936de638830f1161
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<template>
  <div class="whiteContent Content">
    <div class="heart">
      <LeftMenu @mChange="mChange"> </LeftMenu>
      <div class="right-content">
        <SubAccount v-if="activeIndex == 2"></SubAccount>
        <BasicInfo v-if="activeIndex == 1" @gotolist="gotolist"></BasicInfo>
        <OrderMng v-if="activeIndex == 0"></OrderMng>
      </div>
    </div>
  </div>
</template>
 
<script>
import SubAccount from "./SubAccount";
import LeftMenu from "./LeftMenu";
import BasicInfo from "./BasicInfo";
import OrderMng from "./OrderMng";
 
export default {
  created() {
    window._AMapSecurityConfig = {
      securityJsCode: "768ab79bdc4075aa082bc070c53bb3c4",
    };
    if (this.$route.query && this.$route.query.id) {
      this.activeIndex = this.$route.query.id;
    }
  },
  mounted() {},
  components: {
    SubAccount, //表格
    LeftMenu,
    BasicInfo,
    OrderMng,
  },
  data() {
    return {
      map: null,
      AMap: null,
      activeIndex: 0,
      nodes: [],
      isShowCard: false,
      isFull: false, //是否全屏
      zoom: 4, //地图级别
      center: [116.06157, 39.66157], //地图中心
      activeNode: null, //选中的地图节点
      geocoder: {},
    };
  },
 
  methods: {
    //关闭设备详情弹层
    closeCard() {
      this.isShowCard = false;
    },
    mChange(i) {
      this.activeIndex = i;
    },
    gotolist() {
      this.mChange(4);
    },
  },
};
</script>
 
<style scoped lang="scss">
.whiteContent {
  position: relative;
  box-sizing: border-box;
  margin: 30px auto;
  display: flex;
  justify-content: center;
 
  .heart {
    display: flex;
  }
 
  .left-menu {
    margin-right: 24px;
  }
  .sub-account {
    height: 100%;
    box-sizing: border-box;
    background-color: #fff;
  }
  .right-content {
    min-height: 856px;
    box-sizing: border-box;
    background-color: #fff;
    width: 1036px;
  }
}
</style>