index.vue 24 KB

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