|
@@ -6,9 +6,9 @@
|
|
|
<van-col span="24" class="otherInfo">
|
|
|
<span>{{ item.name || '暂无' }}</span>
|
|
|
</van-col>
|
|
|
- <!-- <van-col span="24" class="otherInfo">
|
|
|
- 专利失效日期:<span>{{ item.lose_date || '暂无' }}</span>
|
|
|
- </van-col> -->
|
|
|
+ <van-col span="24" class="otherInfo">
|
|
|
+ 发送时间:<span>{{ getDate(item.meta) || '暂无' }}</span>
|
|
|
+ </van-col>
|
|
|
<van-col span="24" class="otherInfo">
|
|
|
预警信息:<span>{{ item.content }}</span>
|
|
|
</van-col>
|
|
@@ -23,6 +23,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const moment = require('moment');
|
|
|
export default {
|
|
|
name: 'list-4',
|
|
|
props: {
|
|
@@ -37,6 +38,10 @@ export default {
|
|
|
toDel(data) {
|
|
|
this.$emit('toDel', data);
|
|
|
},
|
|
|
+ getDate(data) {
|
|
|
+ let newDate = moment(data.createdAt).format('YYYY-MM-DD hh:mm:ss');
|
|
|
+ if (newDate) return newDate;
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|