changeMap.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <template>
  2. <div>
  3. <div class="toolmap">
  4. <div @click="setClass(0)" @mouseover="getTip('面雨量分布图')" @mouseout="closetip" :class="bkclick[0] ? 'divclick' : ''">
  5. <img src="../../assets/images/changeMap/mianyuliang.png" />
  6. </div>
  7. <div @click="setClass(1)" @mouseover="getTip('站点雨量图')" @mouseout="closetip" :class="bkclick[1] ? 'divclick' : ''">
  8. <img src="../../assets/images/changeMap/zhandian.png" />
  9. </div>
  10. <div @click="setClass(2)" @mouseover="getTip('分区雨量图')" @mouseout="closetip" :class="bkclick[2] ? 'divclick' : ''">
  11. <img src="../../assets/images/changeMap/fenqu.png" />
  12. </div>
  13. <div @click="setClass(3)" @mouseover="getTip('站点温度图')" @mouseout="closetip" :class="bkclick[3] ? 'divclick' : ''">
  14. <img src="../../assets/images/changeMap/wendu.png" />
  15. </div>
  16. <div @click="setClass(4)" @mouseover="getTip('站点风速风向图')" @mouseout="closetip" :class="bkclick[4] ? 'divclick' : ''">
  17. <img src="../../assets/images/changeMap/feng.png" />
  18. </div>
  19. </div>
  20. <div class="hover-info" :style="px" v-show="infoShow">
  21. {{ info }}
  22. </div>
  23. <div class="head-span" v-if="headInfoShow">
  24. <div style="font-size: 24px; font-weight: bold; color: #fff; text-align: center">{{ headInfo }} </div>
  25. <div
  26. style="
  27. color: #ffffff;
  28. font-size: 16px;
  29. font-weight: bold;
  30. text-align: center;
  31. margin-top: 9px;
  32. height: 30px;
  33. line-height: 30px;
  34. position: relative;
  35. "
  36. v-if="searchID != 3 && searchID != 4"
  37. >
  38. <a-date-picker v-model:value="startData" :allowClear="false" format="MM月DD日" valueFormat="YYYY-MM-DD" :disabled-date="disabledDate" />
  39. <div class="sanjiao-box">
  40. <div class="sanjiao-btn" @click="lastDay"> </div>
  41. <div class="sanjiao-btn2" @click="nextDay"> </div>
  42. </div>
  43. <TimePicker v-model:value="startTime" format="H时" valueFormat="HH" :allowClear="false" @change="changeTime" :disabledHours="disabledHour" />
  44. <div class="sanjiao-box">
  45. <div class="sanjiao-btn" @click="lastTime"> </div>
  46. <div class="sanjiao-btn2" @click="nextTime"> </div>
  47. </div>
  48. <span style="margin-right: 20px">至</span>
  49. <a-date-picker v-model:value="endData" :allowClear="false" :disabled-date="disabledDate2" format="MM月DD日" valueFormat="YYYY-MM-DD" />
  50. <div class="sanjiao-box">
  51. <div class="sanjiao-btn" @click="lastDay2"> </div>
  52. <div class="sanjiao-btn2" @click="nextDay2"> </div>
  53. </div>
  54. <TimePicker v-model:value="endTime" format="H时" valueFormat="HH" :allowClear="false" :disabledHours="disabledHour2" />
  55. <div class="sanjiao-box">
  56. <div class="sanjiao-btn" @click="lastTime2"> </div>
  57. <div class="sanjiao-btn2" @click="nextTime2"> </div>
  58. </div>
  59. <img src="../../assets/images/changeMap/checktime.png" style="display: inline-block" @click="search" />
  60. </div>
  61. <div
  62. style="
  63. color: #ffffff;
  64. font-size: 16px;
  65. font-weight: bold;
  66. text-align: center;
  67. margin-top: 9px;
  68. height: 30px;
  69. line-height: 30px;
  70. position: relative;
  71. "
  72. v-if="searchID == 3 || searchID == 4"
  73. >
  74. <a-date-picker v-model:value="endData" :allowClear="false" format="MM月DD日" valueFormat="YYYY-MM-DD" />
  75. <div class="sanjiao-box">
  76. <div class="sanjiao-btn" @click="lastDay3"> </div>
  77. <div class="sanjiao-btn2" @click="nextDay3"> </div>
  78. </div>
  79. <TimePicker v-model:value="endTime" format="H时" valueFormat="HH" :allowClear="false" />
  80. <div class="sanjiao-box">
  81. <div class="sanjiao-btn" @click="lastTime3"> </div>
  82. <div class="sanjiao-btn2" @click="nextTime3"> </div>
  83. </div>
  84. <img src="../../assets/images/changeMap/checktime.png" style="display: inline-block" @click="search" />
  85. </div>
  86. </div>
  87. <div class="class-legend" v-show="mapLgendShow3">
  88. <div style="border-radius: 25px 25px 0 0; background-color: #3f3dbd; color: #fff">mm</div>
  89. <div v-for="item in rainLegendNow2" :style="item.style">{{ item.value }}</div>
  90. <div style="border-radius: 0 0 25px 25px; background-color: #fff; color: #000; font-size: 12px">0</div>
  91. </div>
  92. <div class="class-legend" v-show="mapLgendShow">
  93. <div style="border-radius: 25px 25px 0 0; background-color: #3f3dbd; color: #fff">mm</div>
  94. <div v-for="item in rainLegendNow" :style="item.style">{{ item.value }}</div>
  95. <div style="border-radius: 0 0 25px 25px; background-color: #eaeaea; color: #000; font-size: 12px">无数据</div>
  96. </div>
  97. <div class="class-legendtwo" v-show="mapLgendShow2">
  98. <div style="border-radius: 25px 25px 0 0; background-color: #3f3dbd; color: #fff">℃</div>
  99. <div v-for="item in wdLegendNow" :style="item.style">{{ item.value }}</div>
  100. <!-- <div style="border-radius: 0 0 25px 25px ;background-color: #3f3dbd;color: #fff;">0</div> -->
  101. </div>
  102. </div>
  103. </template>
  104. <script setup>
  105. import { ref, reactive, onMounted } from 'vue';
  106. import moment from 'moment';
  107. import { TimePicker } from 'ant-design-vue';
  108. import eventBus from '/@/utils/eventBus';
  109. import { useMapStore } from '/@/store/modules/map';
  110. import { getColorVal, getWdColorVal } from '/@/utils/getcolor.js';
  111. const mapStore = useMapStore();
  112. const emit = defineEmits(['changeMap']);
  113. const bkclick = reactive([false, false, false, false, false]);
  114. const info = ref('');
  115. const infoShow = ref(false);
  116. const px = ref('');
  117. const headInfo = ref('');
  118. const headInfoShow = ref(false);
  119. const mapLgendShow = ref(false);
  120. const mapLgendShow2 = ref(false);
  121. const mapLgendShow3 = ref(false);
  122. const rainLegendNow2 = ref();
  123. eventBus.on('rainLegend2', (e) => {
  124. let colors = [];
  125. if (Number(e.max) > 0.5) {
  126. let level1=Number(((e.max-0.5)/3 +0.5).toFixed(2))
  127. let level2= Number((((e.max-0.5)/3)*2 +0.5).toFixed(2))
  128. colors = [
  129. {
  130. style: 'background:#7d8fbb',
  131. value: `0.5~${level1}`,
  132. },
  133. {
  134. style: 'background:#638cc9',
  135. value: `${level1}~${level2}`,
  136. },
  137. {
  138. style: 'background:#3660bd',
  139. value: `${level2}~${e.max}`,
  140. },
  141. ];
  142. }
  143. // console.log(maxIndex,minIndex,maxcolor,mincolor)
  144. rainLegendNow2.value = colors;
  145. rainLegendNow2.value.reverse();
  146. });
  147. eventBus.on('rainLegend', (e) => {
  148. let maxcolor = getColorVal(e.max);
  149. let mincolor = getColorVal(e.min);
  150. let maxIndex = 0;
  151. let minIndex = 0;
  152. rainLegend.forEach((i, index) => {
  153. if (i.style.split(':')[1] == maxcolor) {
  154. maxIndex = index;
  155. }
  156. if (i.style.split(':')[1] == mincolor) {
  157. minIndex = index;
  158. }
  159. });
  160. // console.log(maxIndex,minIndex,maxcolor,mincolor)
  161. rainLegendNow.value = rainLegend.slice(minIndex, maxIndex + 1);
  162. rainLegendNow.value.reverse();
  163. });
  164. eventBus.on('wdLegend', (e) => {
  165. let maxcolor = getWdColorVal(e.max);
  166. let mincolor = getWdColorVal(e.min);
  167. let maxIndex = 0;
  168. let minIndex = 0;
  169. wdLegend.forEach((i, index) => {
  170. if (i.style.split(':')[1] == maxcolor) {
  171. maxIndex = index;
  172. }
  173. if (i.style.split(':')[1] == mincolor) {
  174. minIndex = index;
  175. }
  176. });
  177. console.log(maxIndex, minIndex, maxcolor, mincolor);
  178. wdLegendNow.value = wdLegend.slice(minIndex, maxIndex + 1);
  179. console.log(wdLegendNow.value, 908);
  180. wdLegendNow.value.reverse();
  181. });
  182. const rainLegendNow = ref();
  183. const rainLegend = reactive([
  184. {
  185. style: 'background:#fffdff',
  186. value: '0~1',
  187. },
  188. {
  189. style: 'background:#a6f28e',
  190. value: '1~9.9',
  191. },
  192. {
  193. style: 'background:#3db93d',
  194. value: '10~24.9',
  195. },
  196. {
  197. style: 'background:#61b8ff',
  198. value: '25~49.9',
  199. },
  200. {
  201. style: 'background:#0000fe',
  202. value: '50~99.9',
  203. },
  204. {
  205. style: 'background:#fa00fa',
  206. value: '100~250',
  207. },
  208. {
  209. style: 'background:#810041',
  210. value: '>250',
  211. },
  212. ]);
  213. const wdLegendNow = ref([]);
  214. const wdLegend = reactive([
  215. {
  216. style: 'background:#032b8b',
  217. value: '<-12',
  218. },
  219. {
  220. style: 'background:#195da7',
  221. value: '-12~-8',
  222. },
  223. {
  224. style: 'background:#1d75d4',
  225. value: '-8~-4',
  226. },
  227. {
  228. style: 'background:#3f9fe9',
  229. value: '-4~0',
  230. },
  231. {
  232. style: 'background:#82d1ff',
  233. value: '0~4',
  234. },
  235. {
  236. style: 'background:#abe9f8',
  237. value: '4~8',
  238. },
  239. {
  240. style: 'background:#cffcff',
  241. value: '8~12',
  242. },
  243. {
  244. style: 'background:#f3fdee',
  245. value: '12~16',
  246. },
  247. {
  248. style: 'background:#ccffcc',
  249. value: '16~20',
  250. },
  251. {
  252. style: 'background:#bffb91',
  253. value: '20~24',
  254. },
  255. {
  256. style: 'background:#fdfb96',
  257. value: '24~28',
  258. },
  259. {
  260. style: 'background:#fef2c2',
  261. value: '28~32',
  262. },
  263. {
  264. style: 'background:#fecda1',
  265. value: '32~35',
  266. },
  267. {
  268. style: 'background:#f99782',
  269. value: '35~37',
  270. },
  271. {
  272. style: 'background:#f55900',
  273. value: '37~40',
  274. },
  275. {
  276. style: 'background:#e60101',
  277. value: '>40',
  278. },
  279. ]);
  280. const disabledDate = (current) => {
  281. return current > moment(endData.value).valueOf();
  282. };
  283. const disabledDate2 = (current) => {
  284. return current < moment(startData.value).valueOf();
  285. };
  286. const disabledDate3 = (current) => {
  287. return current > moment().valueOf();
  288. };
  289. const disabledHour = () => {
  290. if (startData.value == endData.value) {
  291. let arr = [];
  292. for (let i = 0; i <= 23; i++) {
  293. if (i > endTime.value) {
  294. arr.push(i);
  295. }
  296. }
  297. return arr;
  298. }
  299. };
  300. const disabledHour2 = () => {
  301. if (startData.value == endData.value) {
  302. let arr = [];
  303. for (let i = 0; i <= 23; i++) {
  304. if (i < startTime.value) {
  305. arr.push(i);
  306. }
  307. }
  308. return arr;
  309. }
  310. };
  311. const disabledHour3 = () => {
  312. if (moment().format('YYYY-MM-DD') == endData.value) {
  313. let arr = [];
  314. for (let i = 0; i <= 23; i++) {
  315. if (i > moment().format('HH')) {
  316. arr.push(i);
  317. }
  318. }
  319. return arr;
  320. }
  321. };
  322. const lastDay = () => {
  323. startData.value = moment(startData.value).subtract(1, 'days').format('YYYY-MM-DD');
  324. };
  325. const nextDay = () => {
  326. if (moment(startData.value).format('YYYY-MM-DD').valueOf() < moment(endData.value).format('YYYY-MM-DD').valueOf()) {
  327. startData.value = moment(startData.value).add(1, 'days').format('YYYY-MM-DD');
  328. }
  329. };
  330. const lastDay2 = () => {
  331. if (moment(startData.value).format('YYYY-MM-DD').valueOf() < moment(endData.value).format('YYYY-MM-DD').valueOf()) {
  332. endData.value = moment(endData.value).subtract(1, 'days').format('YYYY-MM-DD');
  333. }
  334. };
  335. const nextDay3 = () => {
  336. // if(moment().format('YYYY-MM-DD').valueOf()!= moment(endData.value).format('YYYY-MM-DD').valueOf()){
  337. endData.value = moment(endData.value).add(1, 'days').format('YYYY-MM-DD');
  338. // }
  339. };
  340. const lastDay3 = () => {
  341. endData.value = moment(endData.value).subtract(1, 'days').format('YYYY-MM-DD');
  342. };
  343. const nextDay2 = () => {
  344. endData.value = moment(endData.value).add(1, 'days').format('YYYY-MM-DD');
  345. };
  346. const lastTime = () => {
  347. startTime.value = moment(startData.value + ' ' + startTime.value)
  348. .subtract(1, 'hours')
  349. .format('HH');
  350. };
  351. const nextTime = () => {
  352. if (
  353. moment(startData.value).format('YYYY-MM-DD').valueOf() == moment(endData.value).format('YYYY-MM-DD').valueOf() &&
  354. startTime.value == endTime.value
  355. ) {
  356. } else {
  357. startTime.value = moment(startData.value + ' ' + startTime.value)
  358. .add(1, 'hours')
  359. .format('HH');
  360. }
  361. };
  362. const lastTime2 = () => {
  363. if (
  364. moment(startData.value).format('YYYY-MM-DD').valueOf() == moment(endData.value).format('YYYY-MM-DD').valueOf() &&
  365. startTime.value == endTime.value
  366. ) {
  367. } else {
  368. endTime.value = moment(endData.value + ' ' + endTime.value)
  369. .subtract(1, 'hours')
  370. .format('HH');
  371. }
  372. };
  373. const nextTime2 = () => {
  374. endTime.value = moment(endData.value + ' ' + endTime.value)
  375. .add(1, 'hours')
  376. .format('HH');
  377. };
  378. const lastTime3 = () => {
  379. endTime.value = moment(endData.value + ' ' + endTime.value)
  380. .subtract(1, 'hours')
  381. .format('HH');
  382. };
  383. const nextTime3 = () => {
  384. // if( moment().format('YYYY-MM-DD').valueOf()== moment(endData.value).format('YYYY-MM-DD').valueOf()
  385. // &&moment().format('HH')== endTime.value){
  386. // }else{
  387. endTime.value = moment(endData.value + ' ' + endTime.value)
  388. .add(1, 'hours')
  389. .format('HH');
  390. // }
  391. };
  392. const startData = ref(moment().format('YYYY-MM-DD'));
  393. const startTime = ref('08');
  394. const endData = ref(moment().format('YYYY-MM-DD'));
  395. const endTime = ref(moment().format('HH'));
  396. const search = () => {
  397. // console.log(startData.value,startTime.value,endData.value,endTime.value,89)
  398. emit('changeMap', {
  399. flag: bkclick[searchID.value],
  400. maptype: searchID.value,
  401. start_time: startData.value + ' ' + startTime.value + ':00:00',
  402. end_time: endData.value + ' ' + endTime.value + ':00:00',
  403. });
  404. };
  405. onMounted(() => {
  406. // startData.value = moment().format('MM-DD')
  407. // endData.value = moment().format('MM-DD')
  408. // endTime.value=moment().format('hh')
  409. // console.log(endTime.value,)
  410. });
  411. const changeTime = (i) => {
  412. console.log(i, 7);
  413. };
  414. const searchID = ref();
  415. const setClass = (i) => {
  416. // 初始时间
  417. startData.value = moment().format('YYYY-MM-DD');
  418. startTime.value = '08';
  419. endData.value = moment().format('YYYY-MM-DD');
  420. endTime.value = moment().format('HH');
  421. searchID.value = i;
  422. bkclick.forEach((item, index) => {
  423. if (i === index) {
  424. bkclick[i] = !bkclick[i];
  425. } else {
  426. bkclick[index] = false;
  427. }
  428. });
  429. if (i == 0 || i == 1 || i == 2) {
  430. if (i == 0) {
  431. mapLgendShow3.value = true;
  432. mapLgendShow.value = false;
  433. mapLgendShow2.value = false;
  434. if (bkclick[i]) {
  435. mapLgendShow3.value = true;
  436. } else {
  437. mapLgendShow3.value = false;
  438. }
  439. } else {
  440. mapLgendShow.value = true;
  441. mapLgendShow2.value = false;
  442. mapLgendShow3.value = false;
  443. if (bkclick[i]) {
  444. mapLgendShow.value = true;
  445. } else {
  446. mapLgendShow.value = false;
  447. }
  448. }
  449. } else if (i == 3) {
  450. mapLgendShow3.value = false;
  451. mapLgendShow.value = false;
  452. mapLgendShow2.value = true;
  453. if (bkclick[i]) {
  454. mapLgendShow2.value = true;
  455. } else {
  456. mapLgendShow.value = false;
  457. mapLgendShow2.value = false;
  458. mapLgendShow3.value = false;
  459. }
  460. } else {
  461. mapLgendShow.value = false;
  462. mapLgendShow2.value = false;
  463. mapLgendShow3.value = false;
  464. }
  465. // eventBus.emit('legendColor', { maptype: searchID.value, flag: bkclick[searchID.value] });
  466. emit('changeMap', {
  467. flag: bkclick[searchID.value],
  468. maptype: searchID.value,
  469. start_time: startData.value + ' ' + startTime.value + ':00:00',
  470. end_time: endData.value + ' ' + endTime.value + ':00:00',
  471. });
  472. if (i == 0) {
  473. headInfo.value = '面雨量分布图';
  474. } else if (i == 1) {
  475. headInfo.value = '站点雨量图';
  476. } else if (i == 2) {
  477. headInfo.value = '分区雨量图';
  478. } else if (i == 3) {
  479. headInfo.value = '站点温度图';
  480. } else if (i == 4) {
  481. headInfo.value = '站点风速风向图';
  482. }
  483. if (bkclick.includes(true)) {
  484. headInfoShow.value = true;
  485. } else {
  486. headInfoShow.value = false;
  487. }
  488. };
  489. const getTip = (i) => {
  490. info.value = i;
  491. infoShow.value = true;
  492. if (mapStore.sideMenu) {
  493. if (i == '面雨量分布图') {
  494. px.value = ' right: 500px;top: 370px;';
  495. } else if (i == '站点雨量图') {
  496. px.value = ' right: 500px;top: 400px;';
  497. } else if (i == '分区雨量图') {
  498. px.value = ' right: 500px;top: 420px;';
  499. } else if (i == '站点温度图') {
  500. px.value = ' right: 500px;top: 450px;';
  501. } else if (i == '站点风速风向图') {
  502. px.value = ' right: 500px;top: 480px;';
  503. }
  504. } else {
  505. if (i == '面雨量分布图') {
  506. px.value = ' right: 70px;top: 370px;';
  507. } else if (i == '站点雨量图') {
  508. px.value = ' right: 70px;top: 400px;';
  509. } else if (i == '分区雨量图') {
  510. px.value = ' right: 70px;top: 420px;';
  511. } else if (i == '站点温度图') {
  512. px.value = ' right: 70px;top: 450px;';
  513. } else if (i == '站点风速风向图') {
  514. px.value = ' right: 70px;top: 480px;';
  515. }
  516. }
  517. };
  518. const closetip = () => {
  519. infoShow.value = false;
  520. };
  521. </script>
  522. <style lang="less" scoped>
  523. .toolmap {
  524. position: absolute;
  525. right: 450px;
  526. top: 370px;
  527. width: 36px;
  528. height: 140px;
  529. border-radius: 149px;
  530. opacity: 1;
  531. z-index: 10;
  532. /* 工具栏背景色 */
  533. background: rgba(10, 80, 110, 0.9);
  534. padding: 11px 0;
  535. display: flex;
  536. justify-content: space-between;
  537. flex-direction: column;
  538. align-items: center;
  539. div {
  540. width: 100%;
  541. text-align: center;
  542. img {
  543. display: inline-block;
  544. width: 20px;
  545. height: 20px;
  546. }
  547. }
  548. .line {
  549. width: 20px;
  550. height: 1px;
  551. transform: rotate(0deg);
  552. opacity: 1;
  553. border: 1px solid;
  554. border-image: linear-gradient(90deg, rgba(42, 207, 240, 0) 0%, #27ceef 52%, rgba(49, 209, 240, 0) 100%);
  555. }
  556. }
  557. .divclick {
  558. background: #103357;
  559. }
  560. .hover-info {
  561. position: absolute;
  562. width: 120px;
  563. height: 30px;
  564. line-height: 30px;
  565. border-radius: 473px;
  566. opacity: 1;
  567. background: rgba(21, 50, 76, 0.7);
  568. font-family: Source Han Sans CN;
  569. font-size: 14px;
  570. font-weight: 500;
  571. text-align: center;
  572. letter-spacing: 0em;
  573. color: #ffffff;
  574. z-index: 11;
  575. }
  576. .head-span {
  577. width: 427px;
  578. height: 92px;
  579. border-radius: 8px;
  580. opacity: 1;
  581. background: rgba(21, 50, 76, 0.7);
  582. position: absolute;
  583. top: 100px;
  584. right: 50%;
  585. transform: translateX(50%);
  586. z-index: 11;
  587. padding: 6px 10px;
  588. box-sizing: border-box;
  589. }
  590. .sanjiao-box {
  591. display: inline-block;
  592. height: 20px;
  593. margin-right: 15px;
  594. margin-left: 4px;
  595. .sanjiao-btn {
  596. width: 0;
  597. height: 0;
  598. border-left: 5px solid transparent;
  599. border-right: 5px solid transparent;
  600. border-bottom: 7px solid rgba(255, 255, 255, 0.5);
  601. margin-bottom: 5px;
  602. margin-top: 5px;
  603. cursor: pointer;
  604. }
  605. .sanjiao-btn2 {
  606. width: 0;
  607. height: 0;
  608. border-left: 5px solid transparent;
  609. border-right: 5px solid transparent;
  610. border-top: 7px solid rgba(255, 255, 255, 0.5);
  611. cursor: pointer;
  612. }
  613. }
  614. :deep(.ant-input) {
  615. padding: 0;
  616. border: none;
  617. width: 70px;
  618. color: #ffffff;
  619. font-size: 16px;
  620. font-weight: bold;
  621. }
  622. :deep(.ant-time-picker) {
  623. padding: 0;
  624. border: none;
  625. width: 35px;
  626. color: #ffffff;
  627. font-size: 16px;
  628. font-weight: bold;
  629. }
  630. :deep(.ant-time-picker-input.ant-input) {
  631. width: 35px !important;
  632. }
  633. :deep(.ant-time-picker-icon) {
  634. visibility: hidden;
  635. }
  636. .class-legend {
  637. position: absolute;
  638. left: 470px;
  639. bottom: 50px;
  640. z-index: 10;
  641. box-shadow: 5px rgba(53, 53, 52, 0.5);
  642. div {
  643. min-width: 50px;
  644. height: 25px;
  645. line-height: 25px;
  646. text-align: center;
  647. color: #222;
  648. padding: 0 4px;
  649. }
  650. }
  651. .class-legendtwo {
  652. position: absolute;
  653. left: 470px;
  654. bottom: 50px;
  655. z-index: 10;
  656. box-shadow: 5px rgba(53, 53, 52, 0.5);
  657. div {
  658. min-width: 50px;
  659. height: 25px;
  660. line-height: 25px;
  661. text-align: center;
  662. color: #222;
  663. }
  664. & > div:last-child {
  665. border-radius: 0 0 25px 25px;
  666. }
  667. }
  668. </style>