index.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <div class="container-bg">
  3. <el-container class="main-layout">
  4. <el-aside class="left-plate"><tree-list /></el-aside>
  5. <el-container class="right-plate">
  6. <el-header class="main-top">Header</el-header>
  7. <el-main class="main-cont">Main</el-main>
  8. </el-container>
  9. </el-container>
  10. <!-- 测试弹窗 注释掉即可隐藏弹窗 -->
  11. <BulletBox :windowWidth="'150rem'" :windowHeight="'72rem'"></BulletBox>
  12. </div>
  13. </template>
  14. <script>
  15. import {basicAreaList } from '@/api/dashboard'
  16. import BulletBox from "@/components/bulletBox/index.vue"
  17. import TreeList from '@/components/tree-list.vue'
  18. export default {
  19. components: { TreeList, BulletBox},
  20. data() {
  21. return {
  22. treeData:[
  23. {
  24. apmac: "",area_code: "pstype01/882",area_kind_cod: "154",area_level: "206",area_name: "安宁站",area_sort: "0",area_type: "pstype01",
  25. cr: "1",ct: "2023-06-19 13:51:38",id: "882",is_leaf: "0",jd: "0.0000000000000",live_num: "0",pi: "0",type_name: "变电站",wd: "0.0000000000000"
  26. },
  27. {
  28. apmac: "",area_code: "pstype01/888",area_kind_cod: "156",area_level: "152",area_name: "高丰变",area_sort: "0",area_type: "pstype01",
  29. cr: "1",ct: "2023-06-19 13:51:38",id: "888",is_leaf: "0",jd: "0.0000000000000",live_num: "0",pi: "0",type_name: "变电站",wd: "0.0000000000000"
  30. },
  31. {
  32. apmac: "",area_code: "pstype01/889",area_kind_cod: "156",area_level: "153",area_name: "海田变",area_sort: "0",area_type: "pstype01",
  33. cr: "1",ct: "2023-06-19 13:51:38",id: "889",is_leaf: "0",jd: "0.0000000000000",live_num: "0",pi: "0",type_name: "变电站",wd: "0.0000000000000"
  34. },
  35. {
  36. apmac: "",area_code: "pstype01/891",area_kind_cod: "154",area_level: "206",area_name: "红房变",area_sort: "0",area_type: "pstype01",
  37. cr: "1",ct: "2023-06-19 13:51:38",id: "890",is_leaf: "0",jd: "0.0000000000000",live_num: "0",pi: "0",type_name: "变电站",wd: "0.0000000000000"
  38. },
  39. ]
  40. };
  41. },
  42. mounted() {},
  43. created(){
  44. this.basicAreaList()
  45. },
  46. methods: {
  47. async basicAreaList() {
  48. // const result = await basicAreaList({pid: 0,}).catch((err) => (console.log('err', err)))
  49. // if (!result) return
  50. // console.log('first', result)
  51. },
  52. },
  53. };
  54. </script>
  55. <style lang="scss" scoped>
  56. @import "~@/styles/home.scss";
  57. </style>