Browse Source

step1.局方报文修改为其他机场通信记录,step2.报文类型转换中文

zhaoke 11 months ago
parent
commit
bac4adc124
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/router/routes/routes-file-five.ts
  2. 3 3
      src/views/dataQuery/message/index.vue

+ 1 - 1
src/router/routes/routes-file-five.ts

@@ -76,7 +76,7 @@ const HomeRoutes = {
     {
       path: '/dataQuery/messageQuery',
       name: 'MessageQuery',
-      meta: { title: '局方报文', roles: ['messageQuery_page']  },
+      meta: { title: '其他机场通信记录', roles: ['messageQuery_page']  },
       component: () => import('@/views/dataQuery/message/index.vue'),
     },
   ],

+ 3 - 3
src/views/dataQuery/message/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="data-query">
     <div class="data-query-header">
-      <div class="manageTitle">局方报文</div>
+      <div class="manageTitle">其他机场通信记录</div>
       <el-form ref="formRef" :model="formData" class="data-query-form" :rules="rules" @submit.native.prevent>
         <div class="form-left">
           <el-form-item prop="startDate">
@@ -305,8 +305,8 @@ const formatter: CommonTableFormatter = (row, column, cellValue, index) => {
   if (column.property === 'execTime') {
     return value.replace('T', ' ')
   }
-  if (column.property === 'messageState') {
-    return messageStateMap[value] ?? ''
+  if (column.property === 'messageType') {
+    return MESSAGE_TYPE[value] ?? value
   }
   return value
 }