index.vue 21 KB

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