UAV.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <template>
  2. <div class="menu-content">
  3. <div class="gradient-text title">无人机资源</div>
  4. <div class="flex-box">
  5. <el-select
  6. v-model="planForm.planType"
  7. :teleported="false"
  8. class="custom-select"
  9. placeholder="请选择行政区"
  10. popper-class="custom-select-popper"
  11. size="large"
  12. >
  13. <el-option v-for="item in plan_type" :key="item.value" :label="item.label" :value="item.value"></el-option>
  14. </el-select>
  15. </div>
  16. <div class="custom-table">
  17. <div class="th">
  18. <div class="td">无人机名称</div>
  19. <div class="td">
  20. <div style="width: 201px">
  21. <el-select
  22. v-model="queryParams.area"
  23. placeholder="类型"
  24. size="large"
  25. class="custom-select2"
  26. popper-class="custom-select-popper2"
  27. :teleported="false"
  28. >
  29. <el-option label="多旋翼" value="" />
  30. </el-select>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="table-content">
  35. <div v-for="(item, index) in droneResourcesData.listData" :key="index" class="tr">
  36. <div class="td">{{ item.drone_name }}</div>
  37. <div class="td">{{ item.drone_type }}</div>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </template>
  43. <script setup lang="ts">
  44. import { getDroneResourcesList } from '@/api/globalMap/UAV';
  45. // 请求参数
  46. const queryParams = reactive({
  47. area: '',
  48. drone_type: ''
  49. });
  50. // 返回数据
  51. const droneResourcesData = reactive({
  52. // time: '',
  53. // statusList: [],
  54. listData: []
  55. });
  56. // 获取数据
  57. const initData = async () => {
  58. getDroneResourcesList(queryParams).then((res) => {
  59. droneResourcesData.listData = res.data.list;
  60. });
  61. };
  62. initData();
  63. const planForm = reactive({
  64. planType: ''
  65. });
  66. // 固定的下拉选项数据
  67. const plan_type = [
  68. { label: '茂南区', value: 'maonan' },
  69. { label: '高州市', value: 'gaozhou' },
  70. { label: '电白区', value: 'dianbai' },
  71. { label: '信宜市', value: 'xinyi' },
  72. { label: '化州市', value: 'huazhou' }
  73. ];
  74. const dropdown_options = [{ label: '多旋翼', value: '多旋翼' }];
  75. </script>
  76. <style lang="scss" scoped>
  77. .detail-container {
  78. font-size: 36px;
  79. .dialog-content {
  80. display: flex;
  81. }
  82. .info-box {
  83. width: 834px;
  84. height: 459px;
  85. background: url('@/assets/images/map/rightMenu/box2.png') no-repeat;
  86. padding: 11px;
  87. .info-header {
  88. width: 311px;
  89. height: 56px;
  90. padding-left: 50px;
  91. background: url(@/assets/images/map/rightMenu/titleBox1.png) no-repeat;
  92. }
  93. .info-content {
  94. padding: 0 37px 26px 37px;
  95. font-size: 32px;
  96. color: #a8ccde;
  97. }
  98. .info-item {
  99. display: flex;
  100. align-items: center;
  101. height: 72px;
  102. white-space: nowrap;
  103. overflow: hidden;
  104. text-overflow: ellipsis;
  105. }
  106. }
  107. .box1 {
  108. width: 776px;
  109. height: 459px;
  110. display: flex;
  111. flex-direction: column;
  112. margin-left: 94px;
  113. margin-right: 110px;
  114. .box1-title {
  115. width: 372px;
  116. height: 54px;
  117. background: url('@/assets/images/map/rightMenu/titleBox2.png');
  118. padding-left: 65px;
  119. font-size: 44px;
  120. color: #f4f7fa;
  121. }
  122. }
  123. .box2 {
  124. margin-top: 45px;
  125. .box2-title {
  126. height: 54px;
  127. background: url('@/assets/images/map/rightMenu/titleBox2.png') no-repeat;
  128. padding-left: 65px;
  129. font-size: 44px;
  130. color: #f4f7fa;
  131. }
  132. }
  133. }
  134. .menu-content {
  135. width: 1579px;
  136. height: 1394px;
  137. background: url('@/assets/images/map/rightMenu/content.png') no-repeat;
  138. padding: 130px 20px 20px 20px;
  139. font-size: 36px;
  140. position: relative;
  141. color: #000000;
  142. }
  143. .title {
  144. font-size: 60px;
  145. position: absolute;
  146. top: 30px;
  147. left: 160px;
  148. }
  149. .flex-box {
  150. display: flex;
  151. width: 100%;
  152. color: #fff;
  153. font-size: 38px;
  154. margin: 20px 0;
  155. .custom-select {
  156. width: 100%;
  157. }
  158. }
  159. .custom-table {
  160. width: 100%;
  161. height: 1030px;
  162. overflow-y: auto;
  163. overflow-x: hidden;
  164. .table-content {
  165. height: 880px;
  166. overflow-y: auto;
  167. overflow-x: hidden;
  168. }
  169. .th {
  170. width: 100%;
  171. height: 151px;
  172. background: url('@/assets/images/map/rightMenu/th.png') no-repeat;
  173. background-size: 100% 100%;
  174. display: flex;
  175. }
  176. .tr {
  177. width: 100%;
  178. height: 139px;
  179. background: url('@/assets/images/map/rightMenu/td.png') no-repeat;
  180. background-size: 100% 100%;
  181. display: flex;
  182. padding-right: 20px;
  183. &:hover {
  184. background: url('@/assets/images/map/rightMenu/td_checked.png') no-repeat;
  185. background-size: 100% 100%;
  186. }
  187. }
  188. .td {
  189. flex: 1;
  190. color: #edfaff;
  191. font-size: 38px;
  192. display: flex;
  193. justify-content: center;
  194. align-items: center;
  195. cursor: pointer;
  196. }
  197. .td-text {
  198. /* 设置字体透明 */
  199. color: transparent;
  200. /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
  201. -webkit-background-clip: text;
  202. /* 非Webkit内核浏览器需要使用标准前缀 */
  203. background-clip: text;
  204. font-family: 'YouSheBiaoTiHei';
  205. /* 设置线性渐变,从红色渐变到蓝色 */
  206. background-image: linear-gradient(to bottom, #ffffff 50%, #3075d3 100%);
  207. font-size: 48px;
  208. }
  209. .text-green {
  210. background-image: linear-gradient(to bottom, #ffffff 50%, #40c75f 100%);
  211. }
  212. .text-danger {
  213. background-image: linear-gradient(to bottom, #ffffff 50%, #ff2f3c 100%);
  214. }
  215. }
  216. .gradient-text2 {
  217. color: transparent !important;
  218. }
  219. </style>