index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div style="padding: 0px 35px; display: flex; justify-content: space-between; cursor: pointer;">
  3. <div>
  4. <border-panel
  5. height="443px"
  6. style="margin-bottom: 6px"
  7. title="高层建筑管理"
  8. >
  9. <Construction :qx="qx" :glztList="glztList" :wbxsList="wbxsList" />
  10. </border-panel>
  11. <border-panel height="500px" style="margin-bottom: 6px" title="管理内容">
  12. <ManagementContent :qx="qx" />
  13. </border-panel>
  14. </div>
  15. <div>
  16. <div style="width: 900px; height: 1000px; display: flex;justify-content: center; margin-top: 150px;">
  17. <MapCharts :qx="qx" @selectArea="area => qx = area" />
  18. </div>
  19. </div>
  20. <div>
  21. <border-panel
  22. height="521px"
  23. style="margin-bottom: 6px"
  24. title="建筑管理单位分布"
  25. >
  26. <Management :gldListL="gldListL" :JzrzdList="JzrzdList" :wbdwList="wbdwList" />
  27. </border-panel>
  28. <border-panel
  29. height="421px"
  30. style="margin-bottom: 6px"
  31. title="建筑管理单位信息"
  32. >
  33. <UnitInfo :qx="qx"/>
  34. </border-panel>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. import Management from "./components/Management.vue";
  40. import UnitInfo from "./components/UnitInfo.vue";
  41. import Construction from "./components/Construction.vue";
  42. import ManagementContent from "./components/ManagementContent.vue";
  43. import MapCharts from "../Home/components/MapCharts.vue";
  44. import {
  45. getGlzts,
  46. getWbxxs,
  47. getGldwgljzpm,
  48. getJzrzdwpms,
  49. getWbdwgljzpm,
  50. } from "@/api/management.js";
  51. export default {
  52. name: "FirePage",
  53. components: {
  54. Management,
  55. UnitInfo,
  56. Construction,
  57. ManagementContent,
  58. MapCharts,
  59. },
  60. data() {
  61. return {
  62. glztList: [],
  63. wbxsList: [],
  64. gldListL: [],
  65. JzrzdList: [],
  66. ZjglList: [],
  67. wbdwList: [],
  68. qx: "万州区",
  69. params: {
  70. pageSize: 100,
  71. pageNum: 1,
  72. },
  73. };
  74. },
  75. watch: {
  76. qx() {
  77. this.unitZt();
  78. this.getWbxsList();
  79. this.getDwfbList();
  80. this.getDwpmList();
  81. this.getWbdwList()
  82. }
  83. },
  84. methods: {
  85. // 管理主体
  86. unitZt() {
  87. getGlzts({
  88. pageSize: 100,
  89. pageNum: 1,
  90. jzszqx: (this.qx === '重庆市' ? '' : this.qx ),
  91. }).then((res) => {
  92. this.glztList = res.data.rows;
  93. });
  94. },
  95. // 维保形式
  96. getWbxsList() {
  97. getWbxxs({
  98. pageSize: 100,
  99. pageNum: 1,
  100. qx: (this.qx === '重庆市' ? '' : this.qx ),
  101. }).then((res) => {
  102. this.wbxsList = res.data.rows;
  103. });
  104. },
  105. // 单位分布
  106. getDwfbList() {
  107. getGldwgljzpm({
  108. pageSize: 100,
  109. pageNum: 1,
  110. qx: (this.qx === '重庆市' ? '' : this.qx ),
  111. }).then((res) => {
  112. this.gldListL = res.data.rows;
  113. });
  114. },
  115. //入住单位排名
  116. getDwpmList() {
  117. getJzrzdwpms({
  118. pageSize: 100,
  119. pageNum: 1,
  120. jzszqx: (this.qx === '重庆市' ? '' : this.qx ),
  121. }).then((res) => {
  122. this.JzrzdList = res.data.rows;
  123. });
  124. },
  125. //维保单位
  126. getWbdwList() {
  127. getWbdwgljzpm({
  128. pageSize: 100,
  129. pageNum: 1,
  130. qx: (this.qx === '重庆市' ? '' : this.qx ),
  131. }).then((res) => {
  132. this.wbdwList = res.data.rows;
  133. });
  134. },
  135. },
  136. created() {
  137. this.unitZt();
  138. this.getWbxsList();
  139. this.getDwfbList();
  140. this.getDwpmList();
  141. this.getWbdwList()
  142. },
  143. };
  144. </script>
  145. <style scoped lang="less"></style>