index.vue 25 KB

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