|
@@ -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']),
|