Reservoir.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <template>
  2. <div class="container">
  3. <div class="gradient-text title">江湖河库</div>
  4. <div class="flex">
  5. <el-input v-model="queryParams.keyword" :prefix-icon="Search" size="large" clearable />
  6. <el-button type="primary" size="large" @click="initData" style="margin-left: 20px">搜索</el-button>
  7. </div>
  8. <div class="gradient-text">视频类型</div>
  9. <div class="custom-table">
  10. <div class="th">
  11. <div class="td">
  12. 所有区县
  13. <!-- <el-select v-model="queryParams.area" placeholder="所有区县" size="large" clearable @change="initData">-->
  14. <!-- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />-->
  15. <!-- </el-select>-->
  16. </div>
  17. <div class="td">名称</div>
  18. </div>
  19. <div class="table-content">
  20. <div v-for="(item, index) in listData" :key="index" class="tr" @click="handleShowDialog(item)">
  21. <div class="td">{{ item.area }}</div>
  22. <div class="td">{{ item.name }}</div>
  23. </div>
  24. </div>
  25. </div>
  26. <Dialog v-if="showDialog" v-model="showDialog" title="江湖河库" width="2500px" height="1200px">
  27. <div style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center">
  28. <HKVideo :dot_data="videoMonitorData" />
  29. </div>
  30. </Dialog>
  31. </div>
  32. </template>
  33. <script lang="ts" setup>
  34. import { Search } from '@element-plus/icons-vue';
  35. import Dialog from './Dialog.vue';
  36. import { getWaterList2 } from '@/api/globalMap/reservoir';
  37. import { deepClone } from '@/utils';
  38. const queryParams = reactive({
  39. current: 1,
  40. size: 10,
  41. keyword: '',
  42. area: ''
  43. });
  44. const total = ref(0);
  45. const options = reactive([
  46. {
  47. value: '茂南区',
  48. label: '茂南区'
  49. },
  50. {
  51. value: '高州市',
  52. label: '高州市'
  53. },
  54. {
  55. value: '电白区',
  56. label: '电白区'
  57. },
  58. {
  59. value: '信宜市',
  60. label: '信宜市'
  61. },
  62. {
  63. value: '化州市',
  64. label: '化州市'
  65. }
  66. ]);
  67. const listData = ref([]);
  68. let showDialog = ref(false);
  69. let videoMonitorData = ref({});
  70. const handleShowDialog = (row) => {
  71. showDialog.value = false;
  72. nextTick(() => {
  73. videoMonitorData.value = row;
  74. showDialog.value = true;
  75. });
  76. };
  77. const initData = () => {
  78. let newQueryParams = deepClone(queryParams);
  79. newQueryParams.query = {
  80. area: queryParams.area,
  81. keyword: queryParams.keyword
  82. };
  83. delete newQueryParams.area;
  84. delete newQueryParams.keyword;
  85. getWaterList2(newQueryParams).then((res) => {
  86. listData.value = res.rows;
  87. total.value = res.total;
  88. });
  89. };
  90. initData();
  91. </script>
  92. <style lang="scss" scoped>
  93. .custom-table {
  94. width: 1499px;
  95. .table-content {
  96. height: 880px;
  97. overflow-y: auto;
  98. overflow-x: hidden;
  99. }
  100. .th {
  101. width: 1499px;
  102. height: 151px;
  103. background: url('@/assets/images/map/rightMenu/th.png') no-repeat;
  104. display: flex;
  105. }
  106. .tr {
  107. height: 139px;
  108. background: url('@/assets/images/map/rightMenu/td.png') no-repeat;
  109. //margin-left: -23px;
  110. display: flex;
  111. padding-right: 20px;
  112. &:hover {
  113. background: url('@/assets/images/map/rightMenu/td_checked.png') no-repeat;
  114. }
  115. }
  116. .td {
  117. flex: 1;
  118. color: #edfaff;
  119. font-size: 38px;
  120. display: flex;
  121. justify-content: center;
  122. align-items: center;
  123. cursor: pointer;
  124. }
  125. .td-text {
  126. /* 设置字体透明 */
  127. color: transparent;
  128. /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
  129. -webkit-background-clip: text;
  130. /* 非Webkit内核浏览器需要使用标准前缀 */
  131. background-clip: text;
  132. font-family: 'YouSheBiaoTiHei';
  133. /* 设置线性渐变,从红色渐变到蓝色 */
  134. background-image: linear-gradient(to bottom, #ffffff 50%, #3075d3 100%);
  135. font-size: 48px;
  136. }
  137. .text-green {
  138. background-image: linear-gradient(to bottom, #ffffff 50%, #40c75f 100%);
  139. }
  140. .text-danger {
  141. background-image: linear-gradient(to bottom, #ffffff 50%, #ff2f3c 100%);
  142. }
  143. }
  144. .title {
  145. font-size: 60px;
  146. position: absolute;
  147. top: 12px;
  148. left: 210px;
  149. }
  150. </style>