|
|
@@ -26,9 +26,9 @@
|
|
|
:title-style="{color:'#008cd6'}"
|
|
|
:title="`介绍信类型: ${getDictLabel(v.type,'out_in_type')}`"
|
|
|
@click="clickItem(v.id)">
|
|
|
- <template #extra>
|
|
|
+ <template #right-icon>
|
|
|
<van-button v-if="!v.departureTime" type="info" size="mini">登记离开时间</van-button>
|
|
|
- <van-button v-else type="info" size="mini">查看详情</van-button>
|
|
|
+ <van-button v-else type="info" size="mini">查看登记详情</van-button>
|
|
|
</template>
|
|
|
<template #label>
|
|
|
<div class="info-box">
|
|
|
@@ -43,13 +43,13 @@
|
|
|
<div class="info-item">
|
|
|
<div class="item-label">到达时间:</div>
|
|
|
<div class="item-value">
|
|
|
- {{v.arrivalTime}}
|
|
|
+ {{ dayjs(v.arrivalTime).format('YYYY-MM-DD HH:mm')}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="info-item">
|
|
|
<div class="item-label">离开时间:</div>
|
|
|
<div class="item-value">
|
|
|
- {{v.departureTime || '暂无'}}
|
|
|
+ {{v.departureTime? dayjs(v.departureTime).format('YYYY-MM-DD HH:mm') : '暂无'}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- <div class="info-item">-->
|
|
|
@@ -79,6 +79,7 @@ import {dataList} from './api'
|
|
|
import {mapGetters} from "vuex";
|
|
|
import {formatDate} from "@/filters/filter";
|
|
|
import DragButton from "@/components/DragButton/index.vue";
|
|
|
+import dayjs from "dayjs";
|
|
|
export default {
|
|
|
name: 'visitRecord',
|
|
|
components: {
|
|
|
@@ -117,6 +118,7 @@ export default {
|
|
|
...mapGetters(['orgId','id','dictionary']),
|
|
|
},
|
|
|
methods: {
|
|
|
+ dayjs,
|
|
|
clickAdd(){
|
|
|
this.$router.push({
|
|
|
path:'/visitUserRecord',
|