index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. <template>
  2. <div class="fireHome">
  3. <!-- 模型区域 -->
  4. <!-- <div class="moduleArea">
  5. <iframe src="http://82.157.13.146:18224/valkyrja" width="100%" height="100%" frameborder="0"></iframe>
  6. </div> -->
  7. <div class="main-container">
  8. <transition name="fade" mode="out-in">
  9. <div class="left-area" v-if="isShow">
  10. <!-- 左上区域 -->
  11. <div class="left-t">
  12. <div class="tcontent-area">
  13. <div class="tcontent-l">
  14. <div>全矿井</div>
  15. <div>监测区域</div>
  16. </div>
  17. <div class="tcontent-c">
  18. <div
  19. style="margin-bottom: 15px;color: #1fb3f7; font-size: 24px;font-weight:bolder;letter-spacing:10px;">
  20. 低风险</div>
  21. <div style="color: #fff; font-size: 12px">自燃倾向性等级 : 容易自燃</div>
  22. </div>
  23. <div class="tcontent-r">火灾风险</div>
  24. </div>
  25. </div>
  26. <!-- 左中区域 -->
  27. <div class="left-c">
  28. <DanelBd :moduleName="'工作面风险监测'" :contentStyle="{ contentH: '450px' }">
  29. <workJc :heightT="'30%'" :heightB="'70%'" :echartData="echartDataWork" :cardData="cardData" />
  30. </DanelBd>
  31. </div>
  32. <!-- 左下区域 -->
  33. <div class="left-b">
  34. <DanelBd :moduleName="'密闭采空区监测系统'" :contentStyle="{ contentH: '245px' }" commonTitle="selected"
  35. :selectValue="areaCodeMb" :selectList="selectListMb" @change-select="changeSelect">
  36. <emptyJc :emptyData="emptyData" />
  37. </DanelBd>
  38. </div>
  39. <!-- 左底部区域 -->
  40. <!-- <div class="left-f">
  41. <DanelBd :moduleName="'GIS重点区域风险监测'" :contentStyle="{ contentH: '0px' }" commonTitle="switchs" />
  42. </div> -->
  43. </div>
  44. </transition>
  45. <div :class="isShow ? 'center-area' : 'center-area1'">
  46. <div :class="isShow ? 'center-t' : 'center-t1'">
  47. <div class="center-scalc" @click="getScalc">
  48. <div class="scalc-line"></div>
  49. <div class="scalc-line"></div>
  50. <div class="scalc-line"></div>
  51. </div>
  52. <iframe src="http://172.16.253.23:91/valkyrja/?type=tf" width="100%" height="100%" frameborder="0"></iframe>
  53. </div>
  54. <transition name="fade" mode="out-in">
  55. <div class="center-b" v-if="isShow">
  56. <DanelBd :moduleName="'工作面束管监测'" :selectValue="pointCode" :moduleSelect="moduleSelect"
  57. :contentStyle="{ contentH: '245px' }" commonTitle="selected" :selectList="selectList"
  58. @change-select="changeSelect">
  59. <fiberBunbleJc :bunbleData="bunbleData" />
  60. </DanelBd>
  61. </div>
  62. </transition>
  63. </div>
  64. <transition name="fade" mode="out-in">
  65. <div class="right-area" v-if="isShow">
  66. <!-- 右上区域 -->
  67. <div class="right-t">
  68. <DanelBd :moduleName="''" :contentStyle="{ contentH: '121px' }">
  69. <systemJc />
  70. </DanelBd>
  71. </div>
  72. <!-- 右中区域 -->
  73. <div class="right-c">
  74. <DanelBd :moduleName="'带式输送机防灭火监控系统'" :contentStyle="{ contentH: '180px' }" commonTitle="selected"
  75. :selectList="selectListDs" :selectValue="dsCode" @change-select="changeSelect">
  76. <outFireJc :outFireData="outFireData" />
  77. </DanelBd>
  78. </div>
  79. <!-- 右下区域 -->
  80. <div class="right-b">
  81. <DanelBd :moduleName="'变电硐室防灭火监控系统'" :contentStyle="{ contentH: '195px' }" commonTitle="selected"
  82. :selectList="selectListBd" :selectValue="pointCodeBd" @change-select="changeSelect">
  83. <substationJc :echartDatas="echartDatas" />
  84. </DanelBd>
  85. </div>
  86. <!-- 右底部区域 -->
  87. <div class="right-f">
  88. <DanelBd :moduleName="'安全监控系统'" :contentStyle="{ contentH: '245px' }" commonTitle="selected"
  89. :selectList="selectListAq" :selectValue="pointCodeAq" @change-select="changeSelect">
  90. <safetyJc :safetyHead="safetyHead" :safetyList="safetyList" />
  91. </DanelBd>
  92. </div>
  93. </div>
  94. </transition>
  95. </div>
  96. </div>
  97. </template>
  98. <script setup lang="ts">
  99. import { ref, reactive, onMounted, onUnmounted } from 'vue';
  100. import DanelBd from '../../common/danelBd.vue';
  101. import workJc from './components/workJc.vue';
  102. import emptyJc from './components/emptyJc.vue';
  103. import fiberBunbleJc from './components/fiberBunbleJc.vue';
  104. import systemJc from './components/systemJc.vue';
  105. import outFireJc from './components/outFireJc.vue';
  106. import substationJc from './components/substationJc.vue';
  107. import safetyJc from './components/safetyJc.vue';
  108. import {
  109. getFireAreaInfo,
  110. getMbRealData,
  111. getSgjcPointInfo,
  112. getSgjcRealDataByPointCode,
  113. getInfosByAreaCode,
  114. getGxcwHistoryDataByPointCode,
  115. getZcHfWd,
  116. getHeadingFace,
  117. getMainTrafficYw,
  118. getDsWd,
  119. getFireWarningCntByType
  120. } from './firehome.api';
  121. let moduleSelect = reactive([
  122. { label: '工作面束管监测' },
  123. // { label: '工作面光钎监测' },
  124. ]);
  125. //是否显示左侧区域和右侧区域
  126. let isShow = ref(true);
  127. let areaCode = ref('');
  128. let pointCode = ref('');
  129. let areaCodeMb = ref('');
  130. let dsCode = ref('');
  131. let areaCodeBd = ref('');
  132. let pointCodeBd = ref('');
  133. let pointCodeAq = ref('one');
  134. //工作面风险监测数据
  135. let echartDataWork = ref<any[]>([]);
  136. let cardData = reactive<any[]>([]);
  137. let selectList = reactive<any[]>([]);
  138. let bunbleData = reactive<any[]>([]);
  139. //密闭采空区数据
  140. let selectListMb = reactive<any[]>([]);
  141. let emptyData = reactive<any>([]);
  142. //带式输送机防灭火监控系统
  143. let selectListDs = reactive<any[]>([]);
  144. let outFireData = reactive<any[]>([]);
  145. //变电硐室
  146. let selectListBd = reactive<any[]>([]);
  147. let echartDatas = reactive({
  148. xData: [],
  149. yData: [],
  150. yData1: [],
  151. });
  152. //安全监控
  153. let selectListAq = reactive<any[]>([
  154. { label: '综放工作面传感器监测', value: 'one' },
  155. { label: '掘进工作面传感器监测', value: 'two' },
  156. { label: '主运输系统传感器监测', value: 'three' },
  157. { label: '机电硐室及配电点传感器监测', value: 'four' },
  158. ]);
  159. let safetyHead = reactive<any[]>([]);
  160. let safetyList = reactive<any[]>([]);
  161. //隐藏和显示左右侧区域
  162. function getScalc() {
  163. isShow.value = !isShow.value;
  164. }
  165. // https获取监测数据
  166. let timer: null | NodeJS.Timeout = null;
  167. function getMonitor() {
  168. timer = setTimeout(async () => {
  169. //工作面
  170. await getFireWarningCntByTypeList();
  171. await getFireAreaInfoList();
  172. //密闭
  173. await getFireAreaInfoListMb();
  174. //带式
  175. await getFireAreaInfoListDs();
  176. //变电硐室
  177. await getFireAreaInfoListBd();
  178. //安全监控
  179. await getTableList();
  180. if (timer) {
  181. timer = null;
  182. }
  183. getMonitor();
  184. }, 5000);
  185. }
  186. //下拉选项切换
  187. function changeSelect(data) {
  188. switch (data.label) {
  189. case '密闭采空区监测系统':
  190. areaCodeMb.value = data.value;
  191. getMbRealDataList();
  192. break;
  193. case '工作面束管监测':
  194. pointCode.value = data.value;
  195. getSgjcRealDataByPointCodeList();
  196. break;
  197. case '带式输送机防灭火监控系统':
  198. dsCode.value = data.value;
  199. getFireAreaInfoListDs();
  200. break;
  201. case '变电硐室防灭火监控系统':
  202. pointCodeBd.value = data.value;
  203. getGxcwHistoryDataByPointCodeList();
  204. break;
  205. case '安全监控系统':
  206. pointCodeAq.value = data.value;
  207. getTableList();
  208. break;
  209. }
  210. }
  211. //获取工作面风险监测图表数据
  212. async function getFireWarningCntByTypeList() {
  213. let res = await getFireWarningCntByType({ areaType: 2 })
  214. if (res.length != 0) {
  215. echartDataWork.value = res
  216. }
  217. }
  218. //获取工作面风险监测数据
  219. async function getFireAreaInfoList() {
  220. let res = await getFireAreaInfo({ fireCauseType: 2 });
  221. if (res.length != 0) {
  222. cardData.length = 0;
  223. let data = res.filter((v) => v.areaType == 2);
  224. data.forEach((el) => {
  225. cardData.push({
  226. title: '风险',
  227. val:
  228. el.warningLevel == 1
  229. ? '低'
  230. : el.warningLevel == 2
  231. ? '中'
  232. : el.warningLevel == 3
  233. ? '较大'
  234. : el.warningLevel == 4
  235. ? '重大'
  236. : '--',
  237. label: el.areaName,
  238. title1: '温度最大值',
  239. val1: el.infoTypeTwo.maxTemperature,
  240. });
  241. });
  242. areaCode.value = data[0].areaCode;
  243. //工作面束管监测
  244. getSgjcPointInfoList();
  245. }
  246. }
  247. //获取密闭下拉列表
  248. async function getFireAreaInfoListMb() {
  249. let res = await getFireAreaInfo({ fireCauseType: 2 });
  250. if (res.length != 0) {
  251. selectListMb.length = 0;
  252. let dataMb = res.filter((m) => m.areaType == 1);
  253. dataMb.forEach((m) => {
  254. selectListMb.push({ label: m.areaName, value: m.areaCode });
  255. });
  256. areaCodeMb.value = areaCodeMb.value ? areaCodeMb.value : selectListMb[0]['value'];
  257. //获取密闭监测实时信息
  258. getMbRealDataList();
  259. }
  260. }
  261. //获取密闭监测实时信息
  262. async function getMbRealDataList() {
  263. let res = await getMbRealData({ areaCode: areaCodeMb.value });
  264. emptyData.length = 0;
  265. res.forEach((el) => {
  266. emptyData.push({ label: el.name, val: el.currentValue, unit: el.unit });
  267. });
  268. }
  269. //工作面束管监测
  270. async function getSgjcPointInfoList() {
  271. let res = await getSgjcPointInfo({ areaCode: areaCode.value });
  272. if (res.length != 0) {
  273. selectList.length = 0;
  274. res.forEach((el) => {
  275. selectList.push({ label: el.pointName, value: el.pointCode });
  276. });
  277. pointCode.value = pointCode.value ? pointCode.value : selectList[0]['value'];
  278. //获取工作面束管测点实时数据
  279. getSgjcRealDataByPointCodeList();
  280. }
  281. }
  282. //获取工作面束管测点实时数据
  283. async function getSgjcRealDataByPointCodeList() {
  284. let res = await getSgjcRealDataByPointCode({ pointCode: pointCode.value });
  285. if (res.length != 0) {
  286. bunbleData.length = 0;
  287. res.forEach((el) => {
  288. bunbleData.push({
  289. type: el.name,
  290. label: '最大浓度',
  291. val: el.currentValue,
  292. label1: '位置',
  293. val1: el.position,
  294. label2: '时间',
  295. val2: el.time,
  296. unit: el.unit,
  297. });
  298. });
  299. }
  300. }
  301. //带式输送机防灭火监控系统
  302. async function getFireAreaInfoListDs() {
  303. const res = await getFireAreaInfo({});
  304. if (res.length != 0) {
  305. selectListDs.length = 0;
  306. outFireData.length = 0;
  307. let dataDs = res.filter((m) => m.areaType == 4);
  308. dataDs.forEach((el) => {
  309. selectListDs.push({ label: el.areaName, value: el.areaName });
  310. });
  311. dsCode.value = dsCode.value ? dsCode.value : selectListDs[0].value;
  312. let dataName = dataDs.filter((v) => v.areaName == dsCode.value)[0];
  313. outFireData.push(
  314. { title: '光纤预警', val: dataName.infoTypeTwo.maxTemperature, dw: '℃', label: '最高温度' },
  315. {
  316. title: '一氧化碳预警',
  317. val: dataName.infoTypeTwo.returnAirCornerCO,
  318. dw: 'ppm',
  319. label: '最高浓度',
  320. },
  321. { title: '烟雾预警', val: dataName.infoTypeTwo.hazard, dw: '', label: '状态' },
  322. { title: '火焰预警', val: '--', dw: '', label: '状态' },
  323. { title: '喷粉阀门', val: '--', dw: '', label: '开关量' },
  324. );
  325. }
  326. }
  327. //变电硐室防灭火监控系统
  328. async function getFireAreaInfoListBd() {
  329. const res = await getFireAreaInfo({});
  330. if (res.length != 0) {
  331. let dataBd = res.filter((m) => m.areaType == 5);
  332. areaCodeBd.value = dataBd[0].areaCode;
  333. //获取光钎条数及测点编号
  334. getInfosByAreaCodeList();
  335. }
  336. }
  337. //获取光钎条数及测点编号
  338. async function getInfosByAreaCodeList() {
  339. let res = await getInfosByAreaCode({ areaCode: areaCodeBd.value });
  340. if (res.length != 0) {
  341. selectListBd.length = 0;
  342. res.forEach((el) => {
  343. selectListBd.push({
  344. label: el.pointName,
  345. value: el.pointCode,
  346. });
  347. });
  348. pointCodeBd.value = pointCodeBd.value ? pointCodeBd.value : selectListBd[0].value;
  349. //获取光钎测温图表数据
  350. getGxcwHistoryDataByPointCodeList();
  351. }
  352. }
  353. //获取光钎测温图表数据
  354. async function getGxcwHistoryDataByPointCodeList() {
  355. let res = await getGxcwHistoryDataByPointCode({ pointCode: pointCodeBd.value });
  356. echartDatas.xData.length = 0;
  357. echartDatas.yData.length = 0;
  358. echartDatas.yData1.length = 0;
  359. res.time.forEach((el) => {
  360. echartDatas.xData.push(el);
  361. });
  362. res.maxValue.forEach((el) => {
  363. echartDatas.yData.push(el);
  364. });
  365. res.minValue.forEach((el) => {
  366. echartDatas.yData1.push(el);
  367. });
  368. }
  369. //获取安全监控列表数据
  370. function getTableList() {
  371. switch (pointCodeAq.value) {
  372. case 'one':
  373. getZcHfWdList();
  374. break;
  375. case 'two':
  376. getHeadingFaceList();
  377. break;
  378. case 'three':
  379. getMainTrafficYwList();
  380. break;
  381. case 'four':
  382. getDsWdList();
  383. break;
  384. default:
  385. getZcHfWdList();
  386. break;
  387. }
  388. }
  389. //获取综放工作面传感器监测数据
  390. async function getZcHfWdList() {
  391. let res = await getZcHfWd();
  392. safetyHead.length = 0;
  393. safetyList.length = 0;
  394. safetyHead.push(
  395. { label: '测点位置' },
  396. { label: '温度(°C)' },
  397. { label: '预警级别' },
  398. // { label: '时间' },
  399. );
  400. if (res.length != 0) {
  401. res.forEach((el) => {
  402. safetyList.push({
  403. address: el.nodePlacement,
  404. temp: el.detectValue || '-',
  405. grade: el.warningMsg,
  406. // time: el.dateTime,
  407. });
  408. });
  409. }
  410. }
  411. //获取掘进工作面传感器监测数据
  412. async function getHeadingFaceList() {
  413. let res = await getHeadingFace();
  414. safetyHead.length = 0;
  415. safetyList.length = 0;
  416. safetyHead.push(
  417. { label: '测点位置' },
  418. { label: 'CO浓度(%)' },
  419. { label: '温度' },
  420. { label: '预警级别' },
  421. // { label: '时间' },
  422. );
  423. if (res.length != 0) {
  424. res.forEach((el) => {
  425. safetyList.push({
  426. address: el.name,
  427. nd: el.co || '-',
  428. temp: el.wd || '-',
  429. grade: el.warningMsg,
  430. // time: el.dateTime,
  431. });
  432. });
  433. }
  434. }
  435. //获取运输系统烟雾传感器数据
  436. async function getMainTrafficYwList() {
  437. let res = await getMainTrafficYw();
  438. safetyHead.length = 0;
  439. safetyList.length = 0;
  440. safetyHead.push(
  441. { label: '测点位置' },
  442. { label: '温度(°C)' },
  443. { label: '预警级别' },
  444. // { label: '时间' },
  445. );
  446. if (res.length != 0) {
  447. res.forEach((el) => {
  448. safetyList.push({
  449. address: el.nodePlacement,
  450. temp: el.detectValue || '-',
  451. grade: el.warningMsg,
  452. // time: el.dateTime,
  453. });
  454. });
  455. }
  456. }
  457. //获取机电硐室传感器数据
  458. async function getDsWdList() {
  459. let res = await getDsWd();
  460. safetyHead.length = 0;
  461. safetyList.length = 0;
  462. safetyHead.push(
  463. { label: '测点位置' },
  464. { label: '温度(°C)' },
  465. { label: '预警级别' },
  466. // { label: '时间' },
  467. );
  468. if (res.length != 0) {
  469. res.forEach((el) => {
  470. safetyList.push({
  471. address: el.nodePlacement,
  472. temp: el.detectValue || '-',
  473. grade: el.warningMsg,
  474. // time: el.dateTime,
  475. });
  476. });
  477. }
  478. }
  479. onMounted(() => {
  480. //工作面
  481. getFireWarningCntByTypeList();
  482. getFireAreaInfoList();
  483. //密闭
  484. getFireAreaInfoListMb();
  485. //带式
  486. getFireAreaInfoListDs();
  487. //变电硐室
  488. getFireAreaInfoListBd();
  489. //安全监控
  490. getTableList();
  491. getMonitor();
  492. });
  493. onUnmounted(() => {
  494. if (timer) {
  495. clearTimeout(timer);
  496. timer = null;
  497. }
  498. });
  499. </script>
  500. <style lang="less" scoped>
  501. @font-face {
  502. font-family: douyuFont;
  503. src: url('../../../../assets/font/douyuFont.otf');
  504. }
  505. .fireHome {
  506. position: relative;
  507. width: 100%;
  508. height: 928px;
  509. .moduleArea {
  510. width: 100%;
  511. height: 100%;
  512. }
  513. .main-container {
  514. display: flex;
  515. position: absolute;
  516. top: 0;
  517. left: 0;
  518. box-sizing: border-box;
  519. justify-content: space-between;
  520. width: 100%;
  521. height: 100%;
  522. padding: 15px 10px;
  523. .left-area {
  524. display: flex;
  525. flex-direction: column;
  526. align-items: center;
  527. justify-content: space-between;
  528. // width: 30%;
  529. width: 392px;
  530. height: 100%;
  531. margin-right: 15px;
  532. .left-t {
  533. position: relative;
  534. width: 100%;
  535. // height: 121px;
  536. height: 100px;
  537. background: url('../../../../assets/images/fire/firehome/qkjaq.png') no-repeat center;
  538. background-size: 100% 100%;
  539. .tcontent-area {
  540. display: flex;
  541. position: absolute;
  542. top: 50%;
  543. left: 0;
  544. box-sizing: border-box;
  545. align-items: center;
  546. justify-content: space-around;
  547. width: 100%;
  548. height: 90px;
  549. padding: 0 15px;
  550. transform: translate(0, -50%);
  551. .tcontent-l {
  552. display: flex;
  553. flex: 1;
  554. flex-direction: column;
  555. align-items: center;
  556. justify-content: center;
  557. height: 100%;
  558. color: #9da5aa;
  559. font-size: 14px;
  560. font-weight: bold;
  561. letter-spacing: 2px;
  562. }
  563. .tcontent-c {
  564. display: flex;
  565. flex: 3;
  566. flex-direction: column;
  567. align-items: center;
  568. justify-content: center;
  569. height: 100%;
  570. }
  571. .tcontent-r {
  572. display: flex;
  573. flex: 1;
  574. flex-direction: column;
  575. align-items: center;
  576. justify-content: center;
  577. height: 100%;
  578. color: #9da5aa;
  579. font-size: 14px;
  580. font-weight: bold;
  581. letter-spacing: 2px;
  582. }
  583. }
  584. }
  585. .left-c {
  586. width: 100%;
  587. }
  588. .left-b {
  589. width: 100%;
  590. }
  591. // .left-f {
  592. // width: 100%;
  593. // }
  594. }
  595. .center-area {
  596. display: flex;
  597. flex-direction: column;
  598. align-items: center;
  599. justify-content: space-between;
  600. width: calc(100% - 814px);
  601. .center-t {
  602. position: relative;
  603. width: 100%;
  604. height: calc(100% - 295px);
  605. margin-bottom: 15px;
  606. overflow: hidden;
  607. .center-scalc {
  608. position: absolute;
  609. top: 0;
  610. left: 0;
  611. width: 44px;
  612. height: 44px;
  613. border-radius: 50%;
  614. background-color: #000;
  615. box-shadow: 0 0 15px 1px rgb(31 179 247 / 70%) inset;
  616. cursor: pointer;
  617. .scalc-line {
  618. position: absolute;
  619. left: 50%;
  620. width: 22px;
  621. height: 3px;
  622. transform: translate(-50%, 0);
  623. background-color: #fff;
  624. &:nth-child(1) {
  625. top: 14px;
  626. }
  627. &:nth-child(2) {
  628. top: 21px;
  629. }
  630. &:nth-child(3) {
  631. bottom: 13px;
  632. }
  633. }
  634. }
  635. }
  636. .center-b {
  637. width: 100%;
  638. height: 280px;
  639. }
  640. }
  641. .center-area1 {
  642. display: flex;
  643. flex-direction: column;
  644. align-items: center;
  645. justify-content: space-between;
  646. width: 100%;
  647. .center-t1 {
  648. position: relative;
  649. width: 100%;
  650. height: 100%;
  651. margin-bottom: 15px;
  652. overflow: hidden;
  653. .center-scalc {
  654. position: absolute;
  655. top: 0;
  656. left: 0;
  657. width: 44px;
  658. height: 44px;
  659. border-radius: 50%;
  660. background-color: #000;
  661. box-shadow: 0 0 15px 1px rgb(31 179 247 / 70%) inset;
  662. cursor: pointer;
  663. .scalc-line {
  664. position: absolute;
  665. left: 50%;
  666. width: 22px;
  667. height: 3px;
  668. transform: translate(-50%, 0);
  669. background-color: #fff;
  670. &:nth-child(1) {
  671. top: 14px;
  672. }
  673. &:nth-child(2) {
  674. top: 21px;
  675. }
  676. &:nth-child(3) {
  677. bottom: 13px;
  678. }
  679. }
  680. }
  681. }
  682. }
  683. .right-area {
  684. display: flex;
  685. flex-direction: column;
  686. align-items: center;
  687. justify-content: space-between;
  688. // width: 30%;
  689. width: 392px;
  690. height: 100%;
  691. margin-left: 15px;
  692. .right-t {
  693. width: 100%;
  694. }
  695. .right-c {
  696. width: 100%;
  697. }
  698. .right-b {
  699. width: 100%;
  700. }
  701. .right-f {
  702. width: 100%;
  703. }
  704. }
  705. }
  706. /* fade.css */
  707. .fade-enter-active {
  708. transition: opacity 2.5s ease;
  709. /* 设置过渡时间为1秒 */
  710. }
  711. .fade-leave-active {
  712. transition: opacity 0.5s ease;
  713. /* 设置过渡时间为1秒 */
  714. }
  715. .fade-enter,
  716. .fade-leave-to {
  717. opacity: 0;
  718. /* 初始状态为不可见 */
  719. }
  720. }
  721. </style>