guhongwei 2 年之前
父節點
當前提交
b482ee6d64
共有 1 個文件被更改,包括 10 次插入0 次删除
  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">
             <van-col span="24" class="otherInfo">
               接收人:<span>{{ item.to_name || '暂无' }}</span>
               接收人:<span>{{ item.to_name || '暂无' }}</span>
             </van-col>
             </van-col>
+            <van-col span="24" class="otherInfo">
+              发送时间:<span>{{ getDate(item.meta.createdAt) }}</span>
+            </van-col>
           </van-col>
           </van-col>
           <van-col span="24" class="btn">
           <van-col span="24" class="btn">
             <van-button size="small" type="info" @click="toView(item.file_url)">查看文件</van-button>
             <van-button size="small" type="info" @click="toView(item.file_url)">查看文件</van-button>
@@ -36,6 +39,8 @@
 
 
 <script>
 <script>
 import { mapState, createNamespacedHelpers } from 'vuex';
 import { mapState, createNamespacedHelpers } from 'vuex';
+import moment from 'moment';
+
 export default {
 export default {
   name: 'list-1',
   name: 'list-1',
   props: {
   props: {
@@ -67,6 +72,11 @@ export default {
         this.$toast({ type: `fail`, message: `未上传文件` });
         this.$toast({ type: `fail`, message: `未上传文件` });
       }
       }
     },
     },
+    // 过滤时间
+    getDate(val) {
+      let newDate = moment(val).format('YYYY-MM-DD HH:mm:ss');
+      if (newDate) return newDate;
+    },
   },
   },
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),