index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832
  1. <!--
  2. * @Author: zk
  3. * @Date: 2022-01-17 10:39:22
  4. * @LastEditTime: 2022-06-21 17:52:33
  5. * @LastEditors: your name
  6. * @Description: 进港01
  7. -->
  8. <template>
  9. <div class="arrival-one">
  10. <!--功能区-表单-->
  11. <div
  12. ref="formWrap"
  13. class="terminal-form-wrap"
  14. >
  15. <el-form
  16. ref="form"
  17. :inline="true"
  18. :model="formData"
  19. :rules="rules"
  20. class="form"
  21. >
  22. <div class="form-left">
  23. <el-form-item prop="currentAirport">
  24. <!-- <el-cascader
  25. v-model="formData.currentAirport"
  26. style="width:144px;margin-left:10px"
  27. placeholder="全部机场"
  28. size="small"
  29. :options="currentAirportList"
  30. :props="currentAirportProps"
  31. collapse-tags
  32. clearable
  33. filterable
  34. @change="setCurrentAirport"
  35. /> -->
  36. <el-select
  37. v-model="formData.currentAirport"
  38. class="input-shadow"
  39. size="small"
  40. filterable
  41. placeholder="请选择机场"
  42. @change="airPortChange"
  43. >
  44. <el-option
  45. v-for="(item, index) in AirportList"
  46. :key="index"
  47. :label="item.planLandingApt"
  48. :value="item.planLandingApt"
  49. />
  50. </el-select>
  51. </el-form-item>
  52. <!-- <el-form-item prop="startDate">
  53. <el-date-picker
  54. v-model="formData.startDate"
  55. class="input-shadow"
  56. style="width: 216px"
  57. size="small"
  58. type="date"
  59. value-format="yyyy-MM-dd"
  60. placeholder="开始时间"
  61. @change="startDateChangeHandler"
  62. />
  63. </el-form-item>
  64. <el-form-item prop="endDate">
  65. <el-date-picker
  66. v-model="formData.endDate"
  67. class="input-shadow"
  68. style="width: 216px"
  69. size="small"
  70. type="date"
  71. value-format="yyyy-MM-dd"
  72. placeholder="结束时间"
  73. @change="endDateChangeHandler"
  74. />
  75. </el-form-item> -->
  76. <el-form-item
  77. prop="flightDate"
  78. label="航班日期"
  79. >
  80. <el-date-picker
  81. v-model="formData.flightDate"
  82. size="small"
  83. type="daterange"
  84. value-format="yyyy-MM-dd"
  85. start-placeholder="开始日期"
  86. end-placeholder="结束日期"
  87. :picker-options="dateRangePickerOptions"
  88. @change="dateChangeHandler"
  89. />
  90. </el-form-item>
  91. <el-form-item>
  92. <div class="box-item">
  93. <p>预计装载总数:</p>
  94. <li
  95. v-for="(item, index) in orderNum"
  96. :key="index"
  97. :class="{ 'number-item': !isNaN(item), 'mark-item': isNaN(item) }"
  98. >
  99. <span v-if="!isNaN(item)">
  100. <i ref="numberItem">0123456789</i>
  101. </span>
  102. <span
  103. v-else
  104. class="comma"
  105. >{{ item }}</span>
  106. </li>
  107. </div>
  108. </el-form-item>
  109. </div>
  110. <div
  111. class="form-right"
  112. @keyup.enter="onSubmit(1)"
  113. >
  114. <el-form-item prop="search">
  115. <el-popover
  116. :value="popoverVisible"
  117. placement="bottom"
  118. trigger="manual"
  119. >
  120. <span>请输入航班号(示例:CA1234)或行李牌号(示例:1234567890)</span>
  121. <el-input
  122. slot="reference"
  123. v-model="formData.search"
  124. class="input-shadow"
  125. style="width: 240px; margin-left: 105px"
  126. size="small"
  127. placeholder="请输入内容"
  128. prefix-icon="el-icon-search"
  129. clearable
  130. @focus="popoverVisible = true"
  131. @blur="popoverVisible = false"
  132. />
  133. </el-popover>
  134. </el-form-item>
  135. <el-form-item>
  136. <el-button
  137. class="btn-shadow"
  138. size="mini"
  139. type="primary"
  140. @click="onSubmit(1)"
  141. >搜索</el-button>
  142. </el-form-item>
  143. <el-form-item v-is="['i_timeIcon']">
  144. <TimeZoneSelector />
  145. </el-form-item>
  146. <el-form-item>
  147. <img
  148. class="btn-img btn-shadow"
  149. src="../../../../assets/baggage/ic_setting.png"
  150. @click="show"
  151. >
  152. </el-form-item>
  153. </div>
  154. </el-form>
  155. </div>
  156. <!--表格-->
  157. <div
  158. v-loading="loading"
  159. class="terminal-table"
  160. element-loading-text="拼命加载中"
  161. element-loading-spinner="el-icon-loading"
  162. element-loading-background="rgba(0, 0, 0, 0.8)"
  163. >
  164. <el-table
  165. ref="table"
  166. class="table"
  167. :height="computedTableHeight"
  168. :data="dealedTableData"
  169. :header-cell-class-name="headerCellClass"
  170. :row-class-name="tableRowClassName"
  171. :cell-class-name="cellClass"
  172. show-summary
  173. :summary-method="summaryMethod"
  174. border
  175. stripe
  176. fit
  177. @cell-click="cellClickHandler"
  178. >
  179. <el-table-column
  180. v-for="col in tableColsCopy"
  181. :key="col.prop"
  182. :prop="col.prop"
  183. :label="col.label"
  184. :width="col.width"
  185. :fixed="col.fixed"
  186. >
  187. <el-table-column
  188. v-for="childCol in col.children"
  189. :key="childCol.prop"
  190. :prop="childCol.prop"
  191. :label="childCol.label"
  192. :width="childCol.width"
  193. >
  194. <template #header>
  195. <el-tooltip
  196. :content="childCol.disc"
  197. placement="top"
  198. >
  199. <TableHeaderCell
  200. :label="childCol.label"
  201. :filter-options="tableDataFilters[childCol.prop]"
  202. :filter-values.sync="filterValues[childCol.prop]"
  203. :sortable="childCol.sortable"
  204. :sort-rule.sync="tableDataSortRules[childCol.prop]"
  205. />
  206. </el-tooltip>
  207. </template>
  208. </el-table-column>
  209. </el-table-column>
  210. </el-table>
  211. </div>
  212. <!--列设置-->
  213. <Dialog
  214. :flag="dialogFlag"
  215. class="dialog-check-cols"
  216. >
  217. <div class="col-dialog">
  218. <div class="title">列设置</div>
  219. <div class="content">
  220. <el-tree
  221. :data="tableCols"
  222. :class="colsCheckClass"
  223. show-checkbox
  224. node-key="index"
  225. :default-expand-all="true"
  226. :props="{
  227. label: 'label',
  228. children: 'children'
  229. }"
  230. :default-checked-keys="checkedKeysTemp"
  231. @check="handleCheck"
  232. />
  233. </div>
  234. <div class="foot right t30">
  235. <el-button
  236. size="medium"
  237. class="r24"
  238. type="primary"
  239. @click="onCheck"
  240. >确定</el-button>
  241. <el-button
  242. size="medium"
  243. @click="hide"
  244. >取消</el-button>
  245. </div>
  246. </div>
  247. </Dialog>
  248. </div>
  249. </template>
  250. <script>
  251. import Dialog from '@/layout/components/Dialog'
  252. import TimeZoneSelector from '@/components/TimeZoneSelector'
  253. import terminalMixin from '../../mixins/terminal'
  254. import formMixin from '../../mixins/form'
  255. import tableColsMixin from '../../mixins/tableCols'
  256. import { getQuery } from '@/api/flight'
  257. import TableHeaderCell from '@/components/TableHeaderCell'
  258. import { setTableFilters } from '@/utils/table'
  259. export default {
  260. name: 'DepartureTerminalView',
  261. components: { Dialog, TimeZoneSelector, TableHeaderCell },
  262. mixins: [terminalMixin, formMixin, tableColsMixin],
  263. data() {
  264. return {
  265. orderNum: ['0', '0', '0', '0', '0', '0'], // 默认总数
  266. popoverVisible: false,
  267. // 初始表头
  268. tableCols: [
  269. {
  270. prop: 'flightInfo',
  271. label: '航班信息',
  272. width: 185,
  273. fixed: 'left',
  274. children: [
  275. {
  276. prop: 'flightNO',
  277. label: '航班号',
  278. disc: '指航班编号',
  279. width: 80,
  280. filterable: true,
  281. sortable: true
  282. },
  283. {
  284. prop: 'flightDate',
  285. label: '执飞日期',
  286. disc: '指航班计划起飞日期(不变的,机票上),不是预计起飞日期(预计起飞时间可能多个),也不是实际起飞日期(实际起飞等于最后预计)',
  287. width: 105,
  288. filterable: true,
  289. sortable: true
  290. },
  291. {
  292. prop: 'arrivalTime',
  293. label: '到港时间',
  294. disc: '指航班预计降落时间,数据是变化的,仅显示最新结果',
  295. width: 150,
  296. filterable: true,
  297. sortable: true
  298. },
  299. {
  300. prop: 'departureTerminal',
  301. label: '起飞航站',
  302. disc: '指航班执飞航段的起飞航站,以航站三字码显示',
  303. width: 85,
  304. filterable: true,
  305. sortable: true
  306. },
  307. {
  308. prop: 'arrivalTerminal',
  309. label: '到达航站楼',
  310. disc: '指航班执飞航段的目的航站的航站楼代码',
  311. width: 100,
  312. filterable: true,
  313. sortable: true
  314. },
  315. {
  316. prop: 'luggageCarousel',
  317. label: '行李转盘',
  318. disc: '指航班进港,旅客提取行李转盘的代码',
  319. width: 85,
  320. filterable: true,
  321. sortable: true
  322. },
  323. {
  324. prop: 'parkingSpace',
  325. label: '停机位',
  326. disc: '指航班的停机位代码,数据是变化的,仅显示最新信息',
  327. filterable: true,
  328. sortable: true
  329. }
  330. ]
  331. },
  332. {
  333. prop: 'originAirportBaggageInfo',
  334. label: '始飞站行李信息',
  335. children: [
  336. {
  337. prop: 'checkIns',
  338. label: '值机',
  339. disc: '指已办理值机托运的行李数量,含取消托运的行李数量,含未激活'
  340. },
  341. {
  342. prop: 'projectedLoad',
  343. label: '预计装载',
  344. disc: '指已办理值机托运的行李数量,不含取消托运的行李数量,不包含未激活'
  345. },
  346. {
  347. prop: 'loadedQuantity',
  348. label: '已装载',
  349. disc: '指实际装机完成的行李数量,不包含取消托运的行李数量'
  350. }
  351. ]
  352. },
  353. {
  354. prop: 'arrvivalBaggageInfo',
  355. label: '到达行李信息',
  356. children: [
  357. {
  358. prop: 'numberOfDestinationArrivals',
  359. label: '到达',
  360. disc: '指行李到达提取转盘的行李数量,数据是变化的,仅显示最新信息'
  361. },
  362. {
  363. prop: 'endPointNotReached',
  364. label: '未到达',
  365. disc: '指行李仍未到达提取转盘的行李数量,数据是变化的,仅显示最新信息'
  366. },
  367. {
  368. prop: 'specialQuantity',
  369. label: '特殊',
  370. disc: '指非正常行李的数量,包括(装笼动物、乘务员行李、易碎行李、VIP 行李等),参考 BSM 报文.E 项',
  371. width: 65
  372. },
  373. {
  374. prop: 'numberOfClaims',
  375. label: '理赔',
  376. disc: '指航班收到旅客申请理赔的行李数量',
  377. width: 65
  378. }
  379. ]
  380. },
  381. {
  382. prop: 'uninstallInfo',
  383. label: '卸载状态',
  384. children: [
  385. {
  386. prop: 'uninstalled',
  387. label: '已卸载',
  388. disc: '指卸机的行李数量,数据是变化的,仅显示最新信息'
  389. },
  390. {
  391. prop: 'numberToBeUninstalled',
  392. label: '待卸载',
  393. disc: '指仍未卸机的行李数量,数据是变化的,仅显示最新信息'
  394. }
  395. ]
  396. },
  397. {
  398. prop: 'terminationdBaggageInfo',
  399. label: '终止行李',
  400. children: [
  401. {
  402. prop: 'terminateArrivalQuantity',
  403. label: '到达',
  404. disc: '指旅客已到达目的站的行李数量,数据是变化的,仅显示最新信息'
  405. },
  406. {
  407. prop: 'terminateUnreachedQuantity',
  408. label: '未到达',
  409. disc: '指未到达目的站的行李数量,数据是变化的,仅显示最新信息'
  410. }
  411. ]
  412. },
  413. {
  414. prop: 'transferBaggageInfo',
  415. label: '转运行李',
  416. children: [
  417. {
  418. prop: 'quantityShipped',
  419. label: '已交运',
  420. disc: '指当前航班中转出的行李已完成交运的行李数量,数据是变化的,仅显示最新信息'
  421. },
  422. {
  423. prop: 'undeliveredQuantity',
  424. label: '未交运',
  425. disc: '指当前航班中转出的行李未完成交运的行李数量,数据是变化的,仅显示最新信息'
  426. }
  427. ]
  428. },
  429. {
  430. prop: 'baggageDistributionInfo',
  431. label: '行李分布',
  432. children: [
  433. {
  434. prop: 'numberOfContainers',
  435. label: '容器',
  436. disc: '指当前航班使用容器装载的行李数量,数据是变化的,仅显示最新信息'
  437. },
  438. {
  439. prop: 'numberOfBulk',
  440. label: '散装',
  441. disc: '指当前航班没有使用容器装载的行李数量,数据是变化的,仅显示最新信息',
  442. width: 65
  443. }
  444. ]
  445. }
  446. ],
  447. tableDataSortRules: {
  448. flightCanceled: 'ascending'
  449. },
  450. loading: false,
  451. AirportList: [],
  452. loopEvent: null,
  453. arrivalCount: 0,
  454. baggageCount: 0,
  455. hasSetTableScroll: false
  456. }
  457. },
  458. computed: {
  459. singleDay() {
  460. return this.startDate === this.endDate
  461. }
  462. },
  463. mounted() {
  464. this.getAirPortData()
  465. },
  466. beforeDestroy() {
  467. if (this.loopEvent) {
  468. clearInterval(this.loopEvent)
  469. this.loopEvent = null
  470. }
  471. },
  472. methods: {
  473. resetLoopEvent() {
  474. this.loading = true
  475. this.hasSetTableScroll = false
  476. if (this.loopEvent) {
  477. clearInterval(this.loopEvent)
  478. }
  479. this.getTableData()
  480. const that = this
  481. this.loopEvent = setInterval(function () {
  482. that.getTableData()
  483. }, 3000)
  484. },
  485. airPortChange() {
  486. this.resetLoopEvent()
  487. },
  488. dateChangeHandler() {
  489. this.resetLoopEvent()
  490. },
  491. // 选择机场
  492. async getAirPortData() {
  493. try {
  494. const res = await getQuery({
  495. id: DATACONTENT_ID.arrivalAirId,
  496. dataContent: []
  497. })
  498. if (Number(res.code) === 0) {
  499. this.AirportList = this._.orderBy(res.returnData.listValues, o => o.planLandingApt)
  500. this.formData.currentAirport = 'PEK'
  501. this.resetLoopEvent()
  502. } else {
  503. this.$message.error(res.message)
  504. }
  505. } catch (error) {
  506. console.log('出错了', error)
  507. }
  508. },
  509. tableRowClassName({ row, rowIndex }) {
  510. const classes = []
  511. if (row.flightStatus === 'DLY') {
  512. classes.push('bgl-delayed')
  513. }
  514. if (row.flightStatus === 'CAN') {
  515. classes.push('bgl-canceled')
  516. }
  517. if (row.hasArrived) {
  518. classes.push('bgl-hui')
  519. if (rowIndex === this.arrivalCount - 1) {
  520. classes.push('redBorder')
  521. }
  522. }
  523. return classes.join(' ')
  524. },
  525. headerCellClass({ row, column }) {
  526. const classes = []
  527. const rule = this.tableDataSortRules[column.property]
  528. if (rule) {
  529. classes.push(rule)
  530. }
  531. return classes.join(' ')
  532. },
  533. // 获取表单下拉框数据
  534. // getFormData(params) {
  535. // this.relatedAirportQuery({
  536. // ...params,
  537. // type: 'OUT'
  538. // })
  539. // this.outgoingAirlineQuery(params)
  540. // this.craftTypeQuery(params)
  541. // this.flightAttrQuery(params)
  542. // },
  543. // 获取表格数据
  544. async getTableData() {
  545. if (!this.formData.currentAirport || !this.startDate || !this.endDate) {
  546. return
  547. }
  548. const arr = [this.formData.currentAirport, this.startDate, this.endDate]
  549. try {
  550. const res = await getQuery({
  551. id: DATACONTENT_ID.arrivalTableId,
  552. dataContent: [...arr, ...arr, ...arr]
  553. })
  554. if (Number(res.code) === 0) {
  555. this.initTableData(res.returnData.listValues)
  556. } else {
  557. console.log(res.message)
  558. }
  559. this.loading = false
  560. } catch (error) {
  561. if (this.loopEvent) {
  562. clearInterval(this.loopEvent)
  563. this.loopEvent = null
  564. }
  565. this.loading = false
  566. console.log('出错了', error)
  567. }
  568. },
  569. initTableData(tableData) {
  570. this.arrivalCount = 0
  571. this.baggageCount = 0
  572. tableData.forEach(item => {
  573. item['flightCanceled'] = item['flightStatus'] === 'CAN' ? 1 : 0
  574. if (this.hasArrived(item)) {
  575. this.arrivalCount++
  576. }
  577. this.baggageCount = this.baggageCount + item.projectedLoad
  578. })
  579. this.tableData = this._.orderBy(tableData, ['hasArrived', 'arrivalTime'], ['desc', 'asc'])
  580. setTableFilters(this.tableData, this.tableDataFilters)
  581. this.toOrderNum(this.baggageCount)
  582. // setInterval(() => {
  583. // this.baggageCount = this.baggageCount+1;
  584. // // 这里输入数字即可调用
  585. // }, 2000);
  586. this.$nextTick(() => {
  587. this.setTableScroll()
  588. })
  589. },
  590. hasArrived(flight) {
  591. if (flight.arrivalTime) {
  592. const now = new Date()
  593. const arrivalTime = new Date(flight.arrivalTime)
  594. flight['hasArrived'] = now > arrivalTime && !flight['flightCanceled']
  595. } else {
  596. flight['hasArrived'] = false
  597. }
  598. return flight['hasArrived']
  599. },
  600. setTableScroll() {
  601. if (!this.singleDay || this.hasSetTableScroll || this.arrivalCount === 0) {
  602. return
  603. }
  604. const table = this.$refs['table'].$el
  605. const scrollParent = table.querySelector('.el-table__body-wrapper')
  606. if (scrollParent.scrollHeight <= scrollParent.offsetHeight) {
  607. return
  608. }
  609. const lastRow = table.querySelectorAll('.el-table__body tr')[this.arrivalCount - 1]
  610. setTimeout(() => {
  611. const scrollMid = lastRow.offsetTop + lastRow.offsetHeight - scrollParent.offsetHeight / 2
  612. const scrollMax = scrollParent.scrollHeight - scrollParent.offsetHeight
  613. if (scrollMid > 0) {
  614. const scrollHeight = Math.min(scrollMid, scrollMax)
  615. scrollParent.scrollTo(0, scrollHeight)
  616. }
  617. }, 0)
  618. this.hasSetTableScroll = true
  619. },
  620. setNumberTransform() {
  621. const numberItems = this.$refs.numberItem // 拿到数字的ref,计算元素数量
  622. const numberArr = this.orderNum.filter(item => !isNaN(item))
  623. // 结合CSS 对数字字符进行滚动,显示订单数量
  624. for (let index = 0; index < numberItems.length; index++) {
  625. const elem = numberItems[index]
  626. elem.style.transform = `translate(-50%, -${numberArr[index] * 10}%)`
  627. }
  628. },
  629. toOrderNum(num) {
  630. num = num.toString()
  631. if (num.length < 6) {
  632. num = '0' + num // 如未满八位数,添加"0"补位
  633. this.toOrderNum(num) // 递归添加"0"补位
  634. } else if (num.length >= 6) {
  635. this.orderNum = num.split('') // 将其便变成数据,渲染至滚动数组
  636. } else {
  637. // 订单总量数字超过八位显示异常
  638. this.$message.warning('总量数字过大')
  639. }
  640. this.setNumberTransform()
  641. }
  642. }
  643. }
  644. </script>
  645. <style lang="scss" scoped>
  646. .terminal-form-wrap {
  647. padding-top: 11px;
  648. padding-left: 5px;
  649. ::v-deep .form {
  650. display: flex;
  651. justify-content: space-between;
  652. .form-left {
  653. flex: 1;
  654. }
  655. .form-right {
  656. flex: 0 1 498px;
  657. }
  658. .el-form-item {
  659. margin-bottom: 0px;
  660. margin-right: 8px;
  661. button,
  662. input,
  663. optgroup,
  664. select,
  665. textarea {
  666. font-family: Helvetica, 'Microsoft YaHei';
  667. font-size: 14px;
  668. }
  669. .el-switch__label {
  670. color: #303133;
  671. }
  672. .el-form-item__error {
  673. z-index: 10;
  674. }
  675. }
  676. .btn-img {
  677. position: relative;
  678. top: 6px;
  679. }
  680. }
  681. .box-item {
  682. position: relative;
  683. height: 50px;
  684. font-size: 18px;
  685. line-height: 32px;
  686. text-align: center;
  687. list-style: none;
  688. color: #2d7cff;
  689. writing-mode: vertical-lr;
  690. text-orientation: upright;
  691. /*文字禁止编辑*/
  692. -moz-user-select: none; /*火狐*/
  693. -webkit-user-select: none; /*webkit浏览器*/
  694. -ms-user-select: none; /*IE10*/
  695. -khtml-user-select: none; /*早期浏览器*/
  696. user-select: none;
  697. /* overflow: hidden; */
  698. p {
  699. line-height: 32px;
  700. writing-mode: horizontal-tb !important;
  701. text-orientation: none !important;
  702. /*文字禁止编辑*/
  703. -moz-user-select: none; /*火狐*/
  704. -webkit-user-select: none; /*webkit浏览器*/
  705. -ms-user-select: none; /*IE10*/
  706. -khtml-user-select: none; /*早期浏览器*/
  707. user-select: none;
  708. margin-top: 5px;
  709. }
  710. }
  711. /* 默认逗号设置 */
  712. .mark-item {
  713. width: 10px;
  714. height: 32px;
  715. margin-right: 5px;
  716. line-height: 10px;
  717. font-size: 18px;
  718. position: relative;
  719. & > span {
  720. position: absolute;
  721. width: 100%;
  722. bottom: 0;
  723. writing-mode: vertical-rl;
  724. text-orientation: upright;
  725. }
  726. }
  727. /*滚动数字设置*/
  728. .number-item {
  729. width: 41px;
  730. height: 42px;
  731. /* 背景图片 */
  732. background: url(/images/text-bg-blue.png) no-repeat center center;
  733. background-size: 100% 100%;
  734. // background: #ccc;
  735. list-style: none;
  736. margin-right: 5px;
  737. // background:rgba(250,250,250,1);
  738. border-radius: 4px;
  739. border: 3px solid rgb(221, 221, 221);
  740. & > span {
  741. position: relative;
  742. display: inline-block;
  743. margin-right: 10px;
  744. width: 100%;
  745. height: 100%;
  746. writing-mode: vertical-rl;
  747. text-orientation: upright;
  748. overflow: hidden;
  749. & > i {
  750. font-style: normal;
  751. position: absolute;
  752. top: 11px;
  753. left: 50%;
  754. transform: translate(-50%, -1%);
  755. transition: transform 1s ease-in-out;
  756. letter-spacing: 10px;
  757. }
  758. }
  759. }
  760. .number-item:last-child {
  761. margin-right: 0;
  762. }
  763. }
  764. .terminal-table {
  765. width: 100%;
  766. ::v-deep .table {
  767. width: 100%;
  768. .cell {
  769. padding: 0;
  770. text-align: center;
  771. font-size: 14px;
  772. font-family: Helvetica, 'Microsoft YaHei';
  773. letter-spacing: 0;
  774. }
  775. .cell-click {
  776. cursor: pointer;
  777. color: #2d7cff;
  778. &.cell-clicked {
  779. color: purple;
  780. }
  781. }
  782. .el-table__header-wrapper,
  783. .el-table__fixed-header-wrapper {
  784. .cell {
  785. font-weight: bold;
  786. color: #101116;
  787. }
  788. .has-gutter {
  789. tr {
  790. .bgl-huang {
  791. background: #fcf0b1;
  792. }
  793. }
  794. }
  795. }
  796. .el-table__body-wrapper,
  797. .el-table__fixed-body-wrapper {
  798. tr.bgl-hui {
  799. background: #d2d6df;
  800. td {
  801. background: #d2d6df;
  802. }
  803. &.redBorder {
  804. position: relative;
  805. &::after {
  806. content: '';
  807. position: absolute;
  808. left: 0;
  809. bottom: 0;
  810. width: 100%;
  811. height: 2px;
  812. background: #e83f82;
  813. }
  814. }
  815. }
  816. tr.bgl-delayed td {
  817. background: #fcf0b1;
  818. }
  819. tr.bgl-canceled td {
  820. background: #f7babe;
  821. }
  822. }
  823. .el-table__cell.is-hidden > * {
  824. visibility: visible;
  825. }
  826. }
  827. }
  828. </style>