index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811
  1. <!--
  2. * @Author: your name
  3. * @Date: 2022-01-17 10:39:22
  4. * @LastEditTime: 2022-05-10 09:33:09
  5. * @LastEditors: your name
  6. * @Description: 行李视图
  7. -->
  8. <template>
  9. <div class="baggage-view">
  10. <div class="part1">
  11. <div class="title">
  12. <span>行李基本信息</span>
  13. <el-radio-group
  14. v-model="infoBtn"
  15. class="radioBtn"
  16. size="mini"
  17. fill="#FFFFFF"
  18. text-color="#28344D"
  19. >
  20. <el-radio-button
  21. v-for="item in infoRadios"
  22. :key="item"
  23. :label="item"
  24. />
  25. </el-radio-group>
  26. </div>
  27. <div class="part1_info">
  28. <el-row :gutter="12">
  29. <el-col
  30. v-for="(item, index) in baggageBasicInfoCols"
  31. :key="index"
  32. :span="[1, 4, 5].includes(index % 7) ? 4 : 3"
  33. >
  34. <span class="label">{{ item.label }}:</span><span
  35. class="content"
  36. :title="baggageBasicInfo[item.content]"
  37. >{{ baggageBasicInfo[item.content] }}</span>
  38. </el-col>
  39. </el-row>
  40. </div>
  41. </div>
  42. <div
  43. v-if="infoBtn === infoRadios[0]"
  44. class="part2"
  45. >
  46. <div class="part2_info">
  47. <div
  48. style="width: 120px"
  49. class="title"
  50. >行李跟踪信息</div>
  51. <div
  52. v-if="infoBtn === infoRadios[0]"
  53. class="type normal"
  54. >
  55. {{ baggageBasicInfo.BagStatus }}
  56. </div>
  57. <div
  58. v-if="infoBtn === infoRadios[0]"
  59. class="step"
  60. >
  61. <div class="baggage-track-chart">
  62. <div class="stepLine">
  63. <div
  64. :style="{ width: lineWidth }"
  65. class="stepLineBlue"
  66. />
  67. </div>
  68. <div
  69. v-for="(item, index) in stepData"
  70. :key="index"
  71. class="stepItem"
  72. :class="{ activeItem: item.DealTime }"
  73. >
  74. <span class="head">
  75. <!-- {{ item.airPort }} -->
  76. <!-- <span v-if="item.airPort && item.nodeName !== ''">-</span> -->
  77. <span>{{ item.NodeNameEN }}</span>
  78. </span>
  79. <span>{{ item.DealTime }}</span>
  80. <!-- <span>{{ item.time }}</span> -->
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="btns">
  86. <el-button
  87. type="primary"
  88. icon="el-icon-download"
  89. size="mini"
  90. />
  91. <el-button
  92. class="btn-set"
  93. type="primary"
  94. icon="el-icon-s-tools"
  95. size="mini"
  96. @click="show"
  97. />
  98. </div>
  99. </div>
  100. <div
  101. v-if="infoBtn == infoRadios[0]"
  102. class="part3"
  103. >
  104. <el-table
  105. ref="table"
  106. :data="baggageTableData"
  107. size="mini"
  108. border
  109. stripe
  110. fit
  111. :span-method="tableSpanMethod"
  112. :header-cell-style="{ color: '#101116' }"
  113. >
  114. <el-table-column
  115. v-for="item in tableColsCopy"
  116. :key="item.index"
  117. :prop="item.prop"
  118. :label="item.name"
  119. :align="item.align"
  120. :width="item.width + 'px'"
  121. :show-overflow-tooltip="true"
  122. />
  123. </el-table>
  124. </div>
  125. <div
  126. v-if="infoBtn === infoRadios[1]"
  127. class="part4"
  128. >
  129. <header class="head">
  130. <div class="title">行李跟踪信息</div>
  131. <div class="btns">
  132. <el-button
  133. type="primary"
  134. icon="el-icon-download"
  135. size="mini"
  136. />
  137. <el-button
  138. class="btn-set"
  139. type="primary"
  140. icon="el-icon-s-tools"
  141. size="mini"
  142. />
  143. </div>
  144. </header>
  145. <main class="main">
  146. <template v-if="messageList.length">
  147. <el-row
  148. :gutter="24"
  149. type="flex"
  150. >
  151. <el-col
  152. v-for="(message, index) in messageList"
  153. :key="index"
  154. :span="6"
  155. >
  156. <div class="card">
  157. <div class="message-content">
  158. {{ message.replace(/\s+/g, "").split(".").join("\n.") }}
  159. <!-- BSM <br>
  160. .V/1LHRB <br>
  161. .F/XX1640/08APR/PEK/Y <br>
  162. .O/ZZ941/08APR/DXB/E <br>
  163. .N/0666826758001 <br>
  164. .D/SELF//08APR/110023L//PEK30113 <br>
  165. .S/N/32L/C/030//Y/I <br>
  166. .W/K/l/0 <br>
  167. .P/1CUI/DI ENDBSM<br> -->
  168. </div>
  169. </div>
  170. </el-col>
  171. </el-row>
  172. </template>
  173. <template v-else>
  174. <el-empty
  175. :image-size="1"
  176. description="暂无数据"
  177. />
  178. </template>
  179. </main>
  180. </div>
  181. <!--列设置-->
  182. <Dialog
  183. :flag="dialogFlag"
  184. class="dialog-check-cols"
  185. >
  186. <div class="col-dialog">
  187. <div class="title">列设置</div>
  188. <div class="content">
  189. <el-tree
  190. :data="tableCols"
  191. :class="colsCheckClass"
  192. show-checkbox
  193. node-key="index"
  194. :default-expand-all="true"
  195. :props="{
  196. label: 'name',
  197. children: 'children',
  198. }"
  199. :default-checked-keys="checkedKeysTemp"
  200. @check="handleCheck"
  201. />
  202. </div>
  203. <div class="foot right t30">
  204. <el-button
  205. size="medium"
  206. class="r24"
  207. type="primary"
  208. @click="onCheck"
  209. >确定</el-button>
  210. <el-button
  211. size="medium"
  212. @click="hide"
  213. >取消</el-button>
  214. </div>
  215. </div>
  216. </Dialog>
  217. </div>
  218. </template>
  219. <script>
  220. import Dialog from '@/layout/components/Dialog/index.vue'
  221. import { queryMap, myQuery } from '@/api/dataIntegration'
  222. import tableColsMixin from '../../mixins/tableCols'
  223. import { advancedInquiry, getQuery } from '@/api/flight'
  224. export default {
  225. name: 'BaggageView',
  226. components: {
  227. Dialog
  228. },
  229. mixins: [tableColsMixin],
  230. data() {
  231. return {
  232. departureAirport: '',
  233. landingAirport: '',
  234. queryData: {},
  235. baggageBasicInfoCols: [
  236. {
  237. label: '行李牌号',
  238. content: 'bagNo'
  239. },
  240. {
  241. label: '航班号',
  242. content: 'FlightNO'
  243. },
  244. {
  245. label: '企业或团队名称',
  246. content: 'teamOrGroup'
  247. },
  248. {
  249. label: '值机位置',
  250. content: 'checkInLocation'
  251. },
  252. {
  253. label: '特殊行李类型',
  254. content: 'specialType'
  255. },
  256. {
  257. label: 'PNR编号',
  258. content: 'PNR'
  259. },
  260. {
  261. label: '旅客姓名大写拼音',
  262. content: 'name'
  263. },
  264. {
  265. label: '装载序列号',
  266. content: 'loadSequenceIndex'
  267. },
  268. {
  269. label: '总件数',
  270. content: 'totalNumber'
  271. },
  272. {
  273. label: '总重量',
  274. content: 'totalWeight'
  275. },
  276. {
  277. label: '尺寸',
  278. content: 'size'
  279. },
  280. {
  281. label: '外部特征描述',
  282. content: 'externalCharacterization'
  283. },
  284. {
  285. label: '常旅客号',
  286. content: 'frequentFlyerNumber'
  287. },
  288. {
  289. label: '常旅客级别',
  290. content: 'frequentFlyerClass'
  291. },
  292. {
  293. label: '是否取消值机',
  294. content: 'whetherToCancelTheCheckIn'
  295. },
  296. {
  297. label: '是否可装载',
  298. content: 'isItLoadable'
  299. },
  300. {
  301. label: '是否可运输',
  302. content: 'isItTransportable'
  303. },
  304. {
  305. label: '行李激活状态',
  306. content: 'activeState'
  307. },
  308. {
  309. label: '无BSM状态',
  310. content: 'noBSM'
  311. },
  312. {
  313. label: '中转标记',
  314. content: 'transitSign'
  315. },
  316. {
  317. label: '速运标记',
  318. content: 'expressSign'
  319. },
  320. {
  321. label: '破损标记',
  322. content: 'brokenSign'
  323. },
  324. {
  325. label: '投诉标记',
  326. content: 'complaintSign'
  327. },
  328. {
  329. label: '赔偿标记',
  330. content: 'compensationSign'
  331. },
  332. {
  333. label: '异常状态',
  334. content: 'bagExcType'
  335. }
  336. ],
  337. baggageBasicInfo: {},
  338. dialogVisibledele: false,
  339. active: 2,
  340. infoBtn: '跟踪信息',
  341. infoRadios: ['跟踪信息', '跟踪报文'],
  342. messageList: [
  343. // {
  344. // content: `BSM
  345. // .V/1LHRB
  346. // .F/XX1640/08APR/PEK/Y
  347. // .O/ZZ941/08APR/DXB/E
  348. // .N/0666826758001
  349. // .D/SELF//08APR/110023L//PEK30113
  350. // .S/N/32L/C/030//Y/I
  351. // .W/K/l/0
  352. // .P/1CUI/DI ENDBSM`,
  353. // date: '2022-04-25 12:42:38:00'
  354. // }
  355. ],
  356. checkList: [],
  357. stepData: new Array(9).fill({}),
  358. tableCols: [
  359. {
  360. name: '航班号',
  361. prop: 'flightNo',
  362. align: 'center'
  363. },
  364. { name: '航班日期', prop: 'flightDate', align: 'center', width: 103 },
  365. {
  366. name: '起飞航站\n预计起飞时间',
  367. prop: 'departureAirport',
  368. align: 'center',
  369. width: 111
  370. },
  371. {
  372. name: '目的航站\n预计降落时间',
  373. prop: 'landingAirport',
  374. align: 'center',
  375. sortable: 'custom',
  376. width: 111
  377. },
  378. { name: '旅客仓位', prop: 'passengerCompartment', align: 'center' },
  379. { name: '旅客座位号', prop: 'passengerSeatNumber', align: 'center', width: 101 },
  380. { name: '值机序号', prop: 'passengerCheckInNumber', align: 'center' },
  381. { name: '节点标识', prop: 'nodeCode', align: 'center', width: 102 },
  382. { name: '节点名称', prop: 'nodeName', align: 'center' },
  383. { name: '位置标识', prop: 'locationCode', align: 'center' },
  384. // { name: '位置码', prop: '', align: 'center' },
  385. { name: '位置描述', prop: 'locationRemark', align: 'center' },
  386. { name: '读取时间', prop: 'dealTime', align: 'center' },
  387. { name: '结果', prop: 'status', align: 'center' },
  388. { name: '次级代码', prop: 'secondaryCode', align: 'center' },
  389. { name: '操作人', prop: 'AgentCode', align: 'center' },
  390. { name: '设备ID', prop: 'DeviceCode', align: 'center' },
  391. { name: '发往位置', prop: 'toLocation', align: 'center' },
  392. { name: '发往位置描述', prop: 'toLocationMark', align: 'center', width: 113 },
  393. { name: '装载序号', prop: 'LoadSN', align: 'center' },
  394. { name: '容器编号', prop: 'U_Device_ID', align: 'center' }
  395. ],
  396. baggageTableData: [],
  397. spanArr: [],
  398. pos: 0,
  399. loopEvent: null,
  400. msgEvent:null
  401. }
  402. },
  403. computed: {
  404. lineWidth() {
  405. for (let i = this.stepData.length - 1; i > -1; i--) {
  406. if (this.stepData[i].DealTime) {
  407. return (i * 100) / (this.stepData.length - 1) + '%'
  408. }
  409. }
  410. return 0
  411. }
  412. },
  413. watch: {
  414. infoBtn(val) {
  415. let that = this;
  416. if (val === '跟踪报文') {
  417. clearInterval(this.loopEvent);
  418. this.baggageMessageQuery()
  419. this.msgEvent = setInterval(function(){
  420. that.baggageMessageQuery()
  421. },5000)
  422. }
  423. else{
  424. clearInterval(this.loopEvent);
  425. this.queryBaggageAll()
  426. this.loopEvent = setInterval(function () {
  427. that.queryBaggageAll()
  428. }, 3000)
  429. }
  430. }
  431. },
  432. mounted() {
  433. this.queryData = this._.cloneDeep(this.$route.query)
  434. // console.log(this.queryData)
  435. const that = this
  436. this.queryBaggageAll()
  437. this.loopEvent = setInterval(function () {
  438. that.queryBaggageAll()
  439. }, 3000)
  440. },
  441. beforeDestroy() {
  442. clearInterval(this.loopEvent)
  443. this.loopEvent = null
  444. clearInterval(this.queryMessageLoop)
  445. this.queryMessageLoop = null
  446. },
  447. methods: {
  448. // objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  449. // if (columnIndex < 4) {
  450. // const _row = this.spanArr[rowIndex]
  451. // const _col = _row > 0 ? 1 : 0
  452. // return {
  453. // rowspan: _row,
  454. // colspan: _col
  455. // }
  456. // }
  457. // },
  458. initTableData(tableData) {
  459. const spanArr = []
  460. let pos = 0
  461. for (let i = 0; i < tableData.length; i++) {
  462. if (i === 0) {
  463. spanArr.push(1)
  464. } else {
  465. if (
  466. tableData[i]['flightNo'] === tableData[i - 1]['flightNo'] &&
  467. tableData[i]['flightDate'] === tableData[i - 1]['flightDate'] &&
  468. tableData[i]['departureAirport'] === tableData[i - 1]['departureAirport'] &&
  469. tableData[i]['landingAirport'] === tableData[i - 1]['landingAirport']
  470. ) {
  471. spanArr[pos] += 1
  472. spanArr.push(0)
  473. } else {
  474. spanArr.push(1)
  475. pos = i
  476. }
  477. }
  478. }
  479. this.spanArr = spanArr
  480. this.pos = pos
  481. },
  482. tableSpanMethod({ row, column, rowIndex, columnIndex }) {
  483. if (['flightNo', 'flightDate', 'departureAirport', 'landingAirport'].includes(column['property'])) {
  484. const _row = this.spanArr[rowIndex]
  485. const _col = _row > 0 ? 1 : 0
  486. return {
  487. rowspan: _row,
  488. colspan: _col
  489. }
  490. }
  491. },
  492. // 行李详情基础信息
  493. queryBaggageBasicInfo(dataContent) {
  494. return myQuery(queryMap.baggageBasicInfoByID, ...dataContent)
  495. },
  496. // 行李详情追踪链
  497. queryBaggageTrack(dataContent) {
  498. return myQuery(queryMap.baggageTrackByID, ...dataContent)
  499. },
  500. // 行李详情表格
  501. queryBaggageDetails(dataContent) {
  502. return myQuery(queryMap.baggageDetailsByID, ...dataContent)
  503. },
  504. // 原始报文
  505. queryMessage(dataContent) {
  506. return myQuery(queryMap.message, ...dataContent)
  507. },
  508. async queryBaggageAll(queryData = this.queryData) {
  509. const { FlightNO, FlightDate, BagSN } = queryData
  510. const dataContent = [FlightNO, FlightDate, BagSN]
  511. try {
  512. const [
  513. baggageBasicInfo,
  514. // baggageTrack,
  515. baggageDetails
  516. ] = await Promise.all([
  517. this.queryBaggageBasicInfo(dataContent),
  518. // this.queryBaggageTrack(new Array(2).fill(dataContent).flat()),
  519. this.queryBaggageDetails(new Array(6).fill(dataContent).flat())
  520. ])
  521. baggageBasicInfo[0].FlightNO = FlightNO
  522. baggageBasicInfo.length && (this.baggageBasicInfo = baggageBasicInfo[0])
  523. // this._.sortBy(baggageTrack, item => item.DealTime).forEach((item, index) => {
  524. // item['DealTime'] = item['DealTime'].replace('T', '\n')
  525. // item.NodeNameEN && this.stepData.splice(index, 1, item)
  526. // })
  527. const baggageDetailsData = this._.sortBy(baggageDetails, ['flightDate', 'dealTime'])
  528. this.baggageTableData = baggageDetailsData.map((item, index) => {
  529. this.stepData.splice(index, 1, {
  530. NodeNameEN: item.nodeCode,
  531. DealTime: item.dealTime.replace('T', '\n')
  532. })
  533. if (item['dealTime'].split('T').length > 1) {
  534. item['dealTime'] = item['dealTime'].split('T')[1]
  535. }
  536. item['departureAirport'] = `${item['departureAirport']}\n${item['departureTime'].split('T')[1]}`
  537. item['landingAirport'] = `${item['landingAirport']}\n${item['landingTime'].split('T')[1]}`
  538. return item
  539. })
  540. this.initTableData(this.baggageTableData)
  541. } catch (error) {
  542. console.log('错误', error)
  543. }
  544. },
  545. async baggageMessageQuery() {
  546. const { FlightNO, FlightDate, BagSN } = this.queryData
  547. let dataContent = [FlightNO,FlightDate,BagSN]
  548. try {
  549. const res = await getQuery({
  550. id:75,
  551. dataContent:dataContent
  552. }
  553. )
  554. if (res.code == 0) {
  555. this.messageList = res.returnData
  556. } else {
  557. this.$message.error(res.message)
  558. }
  559. } catch (error) {
  560. console.log('出错了', error)
  561. }
  562. }
  563. }
  564. }
  565. </script>
  566. <style lang="scss">
  567. .radioBtn {
  568. padding: 5px;
  569. background: #000d2a;
  570. .el-radio-button__inner {
  571. background: #000d2a;
  572. color: #fff;
  573. border: none;
  574. font-weight: bold;
  575. }
  576. .el-radio-button:first-child .el-radio-button__inner {
  577. border: none;
  578. }
  579. }
  580. </style>
  581. <style lang="scss" scoped>
  582. .baggage-view {
  583. width: 100%;
  584. height: calc(100vh - 81px);
  585. overflow: hidden;
  586. background: #dfe3ea;
  587. padding: 8px 8px 0;
  588. .part1 {
  589. width: 100%;
  590. height: 232px;
  591. background: #041741;
  592. padding: 16px 30px;
  593. .title {
  594. font-size: 18px;
  595. font-weight: bold;
  596. color: #ffffff;
  597. width: 320px;
  598. display: flex;
  599. flex-direction: row;
  600. justify-content: space-between;
  601. align-items: center;
  602. }
  603. .part1_info {
  604. width: 100%;
  605. color: #fff;
  606. font-size: 14px;
  607. font-weight: 400;
  608. color: #ffffff;
  609. > .el-row > .el-col {
  610. height: 38px;
  611. line-height: 38px;
  612. display: flex;
  613. .label {
  614. flex-basis: 126px;
  615. text-align: right;
  616. }
  617. .content {
  618. flex: 1;
  619. margin: 0;
  620. white-space: nowrap;
  621. overflow: hidden;
  622. text-overflow: ellipsis;
  623. }
  624. }
  625. }
  626. }
  627. .part2 {
  628. margin: 8px 0;
  629. width: 100%;
  630. padding: 24px 30px;
  631. background: #ffffff;
  632. display: flex;
  633. flex-direction: row;
  634. justify-content: space-between;
  635. align-items: center;
  636. .part2_info {
  637. display: flex;
  638. flex-direction: row;
  639. justify-content: flex-start;
  640. align-items: center;
  641. .title {
  642. font-size: 18px;
  643. font-weight: bold;
  644. color: #303133;
  645. margin-right: 42px;
  646. }
  647. .type {
  648. font-size: 18px;
  649. font-weight: bold;
  650. margin-right: 80px;
  651. }
  652. .warn {
  653. color: #df3559;
  654. }
  655. .normal {
  656. color: #519f6b;
  657. }
  658. .step {
  659. height: 80px;
  660. width: 1430px;
  661. position: relative;
  662. .baggage-track-chart {
  663. display: flex;
  664. flex-direction: row;
  665. justify-content: space-between;
  666. align-items: center;
  667. width: 100%;
  668. overflow-x: scroll;
  669. overflow-y: hidden;
  670. }
  671. .stepLine {
  672. width: 100%;
  673. height: 20px;
  674. background: #afb4bf;
  675. position: absolute;
  676. top: 50%;
  677. margin-top: -10px;
  678. border-radius: 10px;
  679. .stepLineBlue {
  680. position: absolute;
  681. height: 100%;
  682. z-index: 1;
  683. background: #041741;
  684. border-radius: 10px;
  685. }
  686. }
  687. .stepItem {
  688. width: 80px;
  689. height: 80px;
  690. background: #afb4bf;
  691. border-radius: 50%;
  692. z-index: 1;
  693. text-align: center;
  694. font-weight: bold;
  695. color: #ffffff;
  696. font-size: 12px;
  697. display: flex;
  698. flex-direction: column;
  699. align-content: space-around;
  700. align-items: center;
  701. // padding-top: 19px;
  702. justify-content: center;
  703. .head {
  704. font-size: 14px;
  705. }
  706. }
  707. .activeItem {
  708. background: #041741;
  709. }
  710. }
  711. }
  712. }
  713. .part3 {
  714. width: 100%;
  715. height: calc(100% - 232px - 146px);
  716. ::v-deep .el-table {
  717. width: 100%;
  718. height: 100%;
  719. .el-table__cell {
  720. background: #f0f3f7;
  721. }
  722. &.el-table--striped {
  723. .el-table__body tr.el-table__row--striped td.el-table__cell,
  724. .el-table__header .el-table__cell {
  725. background: #ffffff;
  726. }
  727. }
  728. .cell {
  729. word-spacing: 0;
  730. font-size: 14px;
  731. font-family: Helvetica, 'Microsoft YaHei';
  732. font-weight: 400;
  733. color: #303133;
  734. white-space: pre-line;
  735. }
  736. }
  737. }
  738. .part4 {
  739. width: 100%;
  740. height: calc(100vh - 81px - 232px);
  741. .head {
  742. padding: 16px 24px 11px 30px;
  743. background: transparent;
  744. display: flex;
  745. justify-content: space-between;
  746. .title {
  747. line-height: 30px;
  748. font-size: 18px;
  749. font-weight: bold;
  750. color: #303133;
  751. }
  752. }
  753. .main {
  754. height: calc(100% - 57px);
  755. overflow-y: auto;
  756. overflow-x: hidden;
  757. ::v-deep .el-row {
  758. flex-wrap: wrap;
  759. .card {
  760. width: 100%;
  761. min-height: 440px;
  762. padding: 24px 0 24px 32px;
  763. background: #ffffff;
  764. box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, 0.29);
  765. margin-bottom: 24px;
  766. > .message-date {
  767. width: 160px;
  768. height: 26px;
  769. line-height: 14px;
  770. font-size: 14px;
  771. font-family: Helvetica;
  772. color: #afb4bf;
  773. border-bottom: 1px solid #afb4bf;
  774. margin-bottom: 18px;
  775. }
  776. > .message-content {
  777. white-space: pre-line;
  778. line-height: 24px;
  779. font-size: 14px;
  780. color: #303133;
  781. }
  782. }
  783. }
  784. }
  785. }
  786. .btns {
  787. height: 30px;
  788. display: flex;
  789. .el-button {
  790. margin-left: 10px;
  791. width: 30px;
  792. display: flex;
  793. align-items: center;
  794. justify-content: center;
  795. }
  796. }
  797. }
  798. ::v-deep .dialog-check-cols .el-tree {
  799. &.has-children .el-tree-node > .el-tree-node__children {
  800. display: flex;
  801. flex-wrap: wrap;
  802. }
  803. &.no-children {
  804. display: flex;
  805. flex-wrap: wrap;
  806. }
  807. }
  808. </style>