|
@@ -1,22 +1,26 @@
|
|
|
<template>
|
|
|
<div v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)" class="baggageMessage">
|
|
|
- <el-scrollbar style="height: 100%">
|
|
|
+ <div class="baggageMessage-content">
|
|
|
<template v-if="messageList.length">
|
|
|
- <el-row :gutter="24">
|
|
|
- <el-col v-for="(message, index) in messageList" :key="index" :span="6">
|
|
|
- <div class="card">
|
|
|
- <div class="message-date">{{ message.flightDate }}</div>
|
|
|
- <div class="message-content">
|
|
|
- {{ message.sourceData.replaceAll(/[\r\n]{2,}/g, '\n').replaceAll('\\', '') }}
|
|
|
+ <el-scrollbar style="height: 100%">
|
|
|
+ <el-row style="margin:0" :gutter="15">
|
|
|
+ <el-col v-for="(message, index) in messageList" :key="index" :span="6">
|
|
|
+ <div class="card">
|
|
|
+ <div class="message-date">{{ message.readTime }}</div>
|
|
|
+ <div class="message-content">
|
|
|
+ <el-scrollbar style="height: 100%">
|
|
|
+ <div>{{ message.sourceData.replaceAll(/[\r\n]{2,}/g, '\n').replaceAll('\\', '') }}</div>
|
|
|
+ </el-scrollbar>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-scrollbar>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<el-empty :image-size="1" description="暂无数据" />
|
|
|
</template>
|
|
|
- </el-scrollbar>
|
|
|
+ </div>
|
|
|
<div class="btns">
|
|
|
<img class="btn-square btn-shadow" src="@/assets/baggage/ic_export.png" title="导出" @click="exportMessageToExcel">
|
|
|
</div>
|
|
@@ -44,9 +48,22 @@ export default {
|
|
|
data () {
|
|
|
return {
|
|
|
messageList: [],
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
+ dataContent: []
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ tagObj: {
|
|
|
+ handler (obj) {
|
|
|
+ this.dataContent = obj
|
|
|
+ this.queryDetails()
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
}
|
|
|
},
|
|
|
+ created () {
|
|
|
+ this.dataContent = this.query
|
|
|
+ },
|
|
|
mounted () {
|
|
|
this.queryDetails()
|
|
|
},
|
|
@@ -54,7 +71,7 @@ export default {
|
|
|
async queryDetails () {
|
|
|
try {
|
|
|
this.loading = true
|
|
|
- const { code, returnData } = await this.getQueryList(SERVICE_ID.bagDetailId, this.query)
|
|
|
+ const { code, returnData } = await this.getQueryList(SERVICE_ID.bagDetailId, this.dataContent)
|
|
|
if (code == 0 && returnData && returnData.length) {
|
|
|
this.messageList = [...returnData]
|
|
|
this.loading = false
|
|
@@ -166,16 +183,20 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.baggageMessage {
|
|
|
- padding: 24px;
|
|
|
height: 100%;
|
|
|
position: relative;
|
|
|
+ &-content {
|
|
|
+ padding: 24px;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
.card {
|
|
|
width: 100%;
|
|
|
- min-height: 440px;
|
|
|
+ height: 440px;
|
|
|
padding: 20px;
|
|
|
background: #ffffff;
|
|
|
+ border: 1px solid #dfe3ea;
|
|
|
box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, 0.29);
|
|
|
- margin-bottom: 24px;
|
|
|
+ margin-bottom: 12px;
|
|
|
> .message-date {
|
|
|
width: 180px;
|
|
|
height: 26px;
|
|
@@ -192,6 +213,7 @@ export default {
|
|
|
font-size: 14px;
|
|
|
color: #303133;
|
|
|
word-break: break-all;
|
|
|
+ height: calc(100% - 44px);
|
|
|
}
|
|
|
}
|
|
|
.btns {
|