ComprehensiveAnalysis.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <div class="comprehensive-analysis">
  3. <div class="comprehensive-analysis-backbtn" @click="backEvent">
  4. <div class="left-arrow"></div>
  5. <div class="title">返回上级</div>
  6. </div>
  7. <!-- 右上角工具栏 -->
  8. <div class="comprehensive-analysis-toolbar">
  9. <div class="selected-icon" @click="showLayers"></div>
  10. <div class="layers-control-icon" @click="selectLayers"></div>
  11. <div class="searchbox">
  12. <el-input
  13. placeholder="请输入地址、地块名称等"
  14. v-model="analysis.searchInput"
  15. ></el-input>
  16. </div>
  17. </div>
  18. <!-- 图例 -->
  19. <MenuCard
  20. class="comprehensive-analysis-legendbox"
  21. :menuData="{
  22. type: 'chart',
  23. title: '图例',
  24. boxWidth: '200',
  25. boxHeight: '200',
  26. }"
  27. >
  28. </MenuCard>
  29. <div class="comprehensive-analysis-left">
  30. <div class="collapse-btn" @click="collapsePanelEvent"></div>
  31. <div class="close-btn"></div>
  32. </div>
  33. <div class="comprehensive-analysis-right">
  34. <div class="control-container"><div class="control-btn"></div></div>
  35. <div class="contant-container"></div>
  36. </div>
  37. </div>
  38. </template>
  39. <script>
  40. // 综合分析
  41. import MenuCard from "@/components/layout/MenuCard.vue";
  42. export default {
  43. name: "ComprehensiveAnalysis",
  44. components: {
  45. MenuCard,
  46. },
  47. data() {
  48. return {
  49. analysis: {
  50. searchInput: "",
  51. },
  52. };
  53. },
  54. mounted() {},
  55. methods: {
  56. // 回退事件
  57. backEvent() {
  58. console.log("综合分析回退事件");
  59. },
  60. // 控制图层的显示与隐藏
  61. showLayers() {},
  62. // 选择图层
  63. selectLayers() {},
  64. // 折叠
  65. collapsePanelEvent() {},
  66. // 关闭面板
  67. closeEvent() {},
  68. },
  69. };
  70. </script>
  71. <style lang="less" scoped>
  72. @commonBorderColor: #00aaff;
  73. .comprehensive-analysis {
  74. &-backbtn {
  75. width: 120px;
  76. height: 35px;
  77. background: @commonBorderColor;
  78. color: #fff;
  79. border-radius: 3px;
  80. position: absolute;
  81. left: 30px;
  82. top: 15px;
  83. pointer-events: auto;
  84. cursor: pointer;
  85. .left-arrow {
  86. width: 7px;
  87. height: 7px;
  88. border-top: 3px solid #ffffff;
  89. border-right: 3px solid #ffffff;
  90. transform: translate(-50%, -50%) rotate(224deg);
  91. position: absolute;
  92. top: 16px;
  93. left: 25px;
  94. }
  95. .title {
  96. width: 80px;
  97. height: 35px;
  98. line-height: 35px;
  99. position: absolute;
  100. left: 34px;
  101. }
  102. }
  103. &-toolbar {
  104. width: 340px;
  105. height: 50px;
  106. line-height: 28px;
  107. color: #fff;
  108. border-radius: 3px;
  109. position: absolute;
  110. right: 60px;
  111. top: 8px;
  112. pointer-events: auto;
  113. .selected-icon {
  114. width: 40px;
  115. height: 40px;
  116. background: url("../assets/map/display.png") no-repeat center;
  117. position: absolute;
  118. bottom: 0;
  119. left: 0;
  120. cursor: pointer;
  121. }
  122. .layers-control-icon {
  123. width: 44px;
  124. height: 32px;
  125. background: url("../assets/map/layer_default.png") no-repeat center;
  126. position: absolute;
  127. bottom: 4px;
  128. left: 40px;
  129. cursor: pointer;
  130. }
  131. .searchbox {
  132. width: 245px;
  133. height: 40px;
  134. position: absolute;
  135. bottom: 2px;
  136. right: 0;
  137. }
  138. }
  139. &-legendbox {
  140. position: absolute;
  141. right: 30px;
  142. bottom: 30px;
  143. }
  144. &-left {
  145. width: 300px;
  146. height: 85%;
  147. position: absolute;
  148. top: 60px;
  149. left: 0;
  150. border-right: 2px solid @commonBorderColor;
  151. border-top: 2px solid @commonBorderColor;
  152. border-bottom: 2px solid @commonBorderColor;
  153. background: rgba(0, 170, 255, 0.2);
  154. pointer-events: auto;
  155. .collapse-btn {
  156. width: 30px;
  157. height: 40px;
  158. position: absolute;
  159. top: 5px;
  160. right: 50px;
  161. background: @commonBorderColor;
  162. cursor: pointer;
  163. }
  164. .close-btn {
  165. width: 30px;
  166. height: 30px;
  167. position: absolute;
  168. top: 5px;
  169. right: 5px;
  170. background: url("../assets/image/close.png") no-repeat center;
  171. cursor: pointer;
  172. }
  173. }
  174. &-right {
  175. width: 300px;
  176. height: 85%;
  177. position: absolute;
  178. top: 60px;
  179. right: 0;
  180. border-left: 2px solid @commonBorderColor;
  181. border-top: 2px solid @commonBorderColor;
  182. border-bottom: 2px solid @commonBorderColor;
  183. background: rgba(0, 170, 255, 0.2);
  184. pointer-events: auto;
  185. display: flex;
  186. .control-container {
  187. width: 12%;
  188. height: 100%;
  189. background: red;
  190. display: flex;
  191. flex-direction: column;
  192. justify-content: center;
  193. align-items: center;
  194. position: relative;
  195. .control-btn {
  196. width: 50px;
  197. height: 50px;
  198. background: purple;
  199. position: absolute;
  200. left: -25px;
  201. }
  202. }
  203. .contant-container {
  204. width: 88%;
  205. height: 100%;
  206. background: yellow;
  207. }
  208. }
  209. }
  210. </style>