|
|
@@ -23,45 +23,84 @@
|
|
|
<empty v-if="!dataList || dataList.length === 0"/>
|
|
|
<card v-else v-for="(v,i) in dataList" :key="v.id">
|
|
|
<van-cell
|
|
|
+ :border="false"
|
|
|
+ class="item-title"
|
|
|
:title-style="{color:'#008cd6'}"
|
|
|
:title="`介绍信类型: ${getDictLabel(v.type,'out_in_type')}`"
|
|
|
- @click="clickItem(v.id)">
|
|
|
+ @click="clickItem(v.id)">
|
|
|
<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>
|
|
|
</template>
|
|
|
- <template #label>
|
|
|
- <div class="info-box">
|
|
|
- <div class="info-item">
|
|
|
- <div class="item-label">人员姓名:</div>
|
|
|
- <div class="item-value"> {{v.userName}}</div>
|
|
|
- </div>
|
|
|
-<!-- <div class="info-item">-->
|
|
|
-<!-- <div class="item-label">证件号码:</div>-->
|
|
|
-<!-- <div class="item-value">{{v.idCard}}</div>-->
|
|
|
-<!-- </div>-->
|
|
|
- <div class="info-item">
|
|
|
- <div class="item-label">到达时间:</div>
|
|
|
- <div class="item-value">
|
|
|
- {{ dayjs(v.arrivalTime).format('YYYY-MM-DD HH:mm')}}
|
|
|
+ </van-cell>
|
|
|
+ <van-cell
|
|
|
+ :border="false"
|
|
|
+ class="item-value"
|
|
|
+ @click="clickItem(v.id)">
|
|
|
+ <template #default>
|
|
|
+ <div class="info-box">
|
|
|
+ <div class="info-item">
|
|
|
+ <div class="item-label">人员姓名:</div>
|
|
|
+ <div class="item-value"> {{v.userName}}</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="info-item">
|
|
|
- <div class="item-label">离开时间:</div>
|
|
|
- <div class="item-value">
|
|
|
- {{v.departureTime? dayjs(v.departureTime).format('YYYY-MM-DD HH:mm') : '暂无'}}
|
|
|
+ <div class="info-item">
|
|
|
+ <div class="item-label">到达时间:</div>
|
|
|
+ <div class="item-value">
|
|
|
+ {{ 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? dayjs(v.departureTime).format('YYYY-MM-DD HH:mm') : '暂无'}}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ </template>
|
|
|
+ </van-cell>
|
|
|
+ </card>
|
|
|
+
|
|
|
+
|
|
|
+<!-- <card v-else v-for="(v,i) in dataList" :key="v.id">-->
|
|
|
+<!-- <van-cell-->
|
|
|
+<!-- :title-style="{color:'#008cd6'}"-->
|
|
|
+<!-- :title="`介绍信类型: ${getDictLabel(v.type,'out_in_type')}`"-->
|
|
|
+<!-- @click="clickItem(v.id)">-->
|
|
|
+<!-- <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>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- <template #label>-->
|
|
|
+<!-- <div class="info-box">-->
|
|
|
<!-- <div class="info-item">-->
|
|
|
-<!-- <div class="item-label">出入事由:</div>-->
|
|
|
+<!-- <div class="item-label">人员姓名:</div>-->
|
|
|
+<!-- <div class="item-value"> {{v.userName}}</div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!--<!– <div class="info-item">–>-->
|
|
|
+<!--<!– <div class="item-label">证件号码:</div>–>-->
|
|
|
+<!--<!– <div class="item-value">{{v.idCard}}</div>–>-->
|
|
|
+<!--<!– </div>–>-->
|
|
|
+<!-- <div class="info-item">-->
|
|
|
+<!-- <div class="item-label">到达时间:</div>-->
|
|
|
<!-- <div class="item-value">-->
|
|
|
-<!-- {{v.reasons}}-->
|
|
|
+<!-- {{ dayjs(v.arrivalTime).format('YYYY-MM-DD HH:mm')}}-->
|
|
|
<!-- </div>-->
|
|
|
<!-- </div>-->
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
- </card>
|
|
|
+<!-- <div class="info-item">-->
|
|
|
+<!-- <div class="item-label">离开时间:</div>-->
|
|
|
+<!-- <div class="item-value">-->
|
|
|
+<!-- {{v.departureTime? dayjs(v.departureTime).format('YYYY-MM-DD HH:mm') : '暂无'}}-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!--<!– <div class="info-item">–>-->
|
|
|
+<!--<!– <div class="item-label">出入事由:</div>–>-->
|
|
|
+<!--<!– <div class="item-value">–>-->
|
|
|
+<!--<!– {{v.reasons}}–>-->
|
|
|
+<!--<!– </div>–>-->
|
|
|
+<!--<!– </div>–>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </van-cell>-->
|
|
|
+<!-- </card>-->
|
|
|
</Scroll>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -80,9 +119,11 @@ import {mapGetters} from "vuex";
|
|
|
import {formatDate} from "@/filters/filter";
|
|
|
import DragButton from "@/components/DragButton/index.vue";
|
|
|
import dayjs from "dayjs";
|
|
|
+import Item from "@/views/menu/protection/components/item.vue";
|
|
|
export default {
|
|
|
name: 'visitRecord',
|
|
|
components: {
|
|
|
+ Item,
|
|
|
DragButton,
|
|
|
NavBar,
|
|
|
OrgTree,
|
|
|
@@ -203,6 +244,10 @@ export default {
|
|
|
height: calc(100vh - 426px);
|
|
|
overflow: auto;
|
|
|
}
|
|
|
+.item-title{
|
|
|
+ border-bottom: 1px solid #f5f5f5;
|
|
|
+ padding-bottom: 20px !important;
|
|
|
+}
|
|
|
.card-num{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
@@ -229,6 +274,7 @@ export default {
|
|
|
}
|
|
|
.info-box{
|
|
|
color:#555;
|
|
|
+ padding-top: 20px;
|
|
|
}
|
|
|
.info-desc{
|
|
|
padding-top: 10px;
|
|
|
@@ -247,17 +293,17 @@ export default {
|
|
|
.info-item{
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
font-size: 26px;
|
|
|
.item-label{
|
|
|
- flex:.25;
|
|
|
+ flex:.23;
|
|
|
text-align: left;
|
|
|
color:#333;
|
|
|
}
|
|
|
.item-value{
|
|
|
- flex:.75;
|
|
|
+ flex:.77;
|
|
|
color:#666;
|
|
|
min-height: 50px;
|
|
|
- line-height: 36px;
|
|
|
max-height: 250px;
|
|
|
display: -webkit-box;
|
|
|
-webkit-line-clamp: 3; /* 限制显示为3行 */
|