index.vue 23 KB

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