guhongwei %!s(int64=2) %!d(string=hai) anos
pai
achega
b482ee6d64
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      src/views/patent/admin/examine/hairmess/list-1.vue

+ 10 - 0
src/views/patent/admin/examine/hairmess/list-1.vue

@@ -13,6 +13,9 @@
             <van-col span="24" class="otherInfo">
               接收人:<span>{{ item.to_name || '暂无' }}</span>
             </van-col>
+            <van-col span="24" class="otherInfo">
+              发送时间:<span>{{ getDate(item.meta.createdAt) }}</span>
+            </van-col>
           </van-col>
           <van-col span="24" class="btn">
             <van-button size="small" type="info" @click="toView(item.file_url)">查看文件</van-button>
@@ -36,6 +39,8 @@
 
 <script>
 import { mapState, createNamespacedHelpers } from 'vuex';
+import moment from 'moment';
+
 export default {
   name: 'list-1',
   props: {
@@ -67,6 +72,11 @@ export default {
         this.$toast({ type: `fail`, message: `未上传文件` });
       }
     },
+    // 过滤时间
+    getDate(val) {
+      let newDate = moment(val).format('YYYY-MM-DD HH:mm:ss');
+      if (newDate) return newDate;
+    },
   },
   computed: {
     ...mapState(['user']),