Explorar o código

行李视图修改

zhongxiaoyu hai 1 ano
pai
achega
0872234d5b

+ 8 - 3
src/views/newBagDetails/components/baggageMessage.vue

@@ -73,7 +73,11 @@ export default {
         this.loading = true
         const { code, returnData } = await this.getQueryList(SERVICE_ID.bagDetailId, this.dataContent)
         if (code == 0 && returnData && returnData.length) {
-          this.messageList = [...returnData]
+          // this.messageList = [...returnData]
+          this.messageList = returnData.map(message => ({
+            ...message,
+            readTime: message.readTime ? `${message.readTime.replace('T', ' ')}(广州)` : '(北京)'
+          }))
           this.loading = false
         } else {
           this.loading = false
@@ -88,7 +92,7 @@ export default {
       const xlsxDatas = [['Date & Time', 'Message']]
       xlsxDatas.push(
         ...this.messageList.map(message => [
-          message.flightDate,
+          message.readTime,
           message.sourceData.replaceAll(/[\\r\\n]{2,}/g, '\n').replaceAll('\\', '')
         ])
       )
@@ -198,7 +202,8 @@ export default {
     box-shadow: 0px 3px 2px 0px rgba(0, 0, 0, 0.29);
     margin-bottom: 12px;
     > .message-date {
-      width: 180px;
+      // width: 180px;
+      width: 200px;
       height: 26px;
       line-height: 14px;
       font-size: 14px;

+ 3 - 0
src/views/newBagDetails/index.vue

@@ -107,6 +107,9 @@ export default {
         this.getColumnData(auth_id)
       }
     }
+    if (arrs.every(item => item.auth_ident !== 'baggage_message')) {
+      this.tabMenu = this.tabMenu.filter(tab => tab.key !== 'baggageMessage')
+    }
     this.query = query
   },
   methods: {