Commit 48a8c7c5 authored by forevertyler's avatar forevertyler

fix:进出区域的历史数据

parent b3d3f843
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</el-form-item> </el-form-item>
<el-form-item label="" prop="areaType"> <el-form-item label="" prop="areaType">
<el-select v-model="queryParams.areaType" placeholder="请选择区域" clearable> <el-select v-model="queryParams.areaType" placeholder="请选择区域类型" clearable>
<el-option <el-option
v-for="dict in AreaTypeList" v-for="dict in AreaTypeList"
:key="dict.value" :key="dict.value"
...@@ -53,12 +53,12 @@ ...@@ -53,12 +53,12 @@
<el-table-column label="区域名称" align="center" prop="areaName" /> <el-table-column label="区域名称" align="center" prop="areaName" />
<el-table-column label="人员卡号" align="center" prop="cardNumber" /> <el-table-column label="人员卡号" align="center" prop="cardNumber" />
<el-table-column label="部门" align="center" prop="departName" /> <el-table-column label="部门" align="center" prop="departName" />
<el-table-column label="进入时间" align="center" prop="entryTime" width="180"> <el-table-column label="进入时间" align="center" prop="entryTime">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.entryTime) }}</span> <span>{{ parseTime(scope.row.entryTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="离开时间" align="center" prop="leaveTime" width="180"> <el-table-column label="离开时间" align="center" prop="leaveTime">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ parseTime(scope.row.leaveTime) }}</span> <span>{{ parseTime(scope.row.leaveTime) }}</span>
</template> </template>
...@@ -270,3 +270,35 @@ ...@@ -270,3 +270,35 @@
} }
}; };
</script> </script>
<style media="print" lang="scss">
@page {
size: auto;
margin: 3mm;
}
@media print {
html {
background-color: #ffffff;
height: auto;
margin: 0px;
}
body {
border: solid 1px #ffffff;
margin: 10mm 15mm 10mm 15mm;
}
#printArea table {
table-layout: auto !important;
}
#printArea .el-table__header-wrapper .el-table__header {
width: 100% !important;
border: solid 1px #f2f2f2;
}
#printArea .el-table__body-wrapper .el-table__body {
width: 100% !important;
}
#printArea #pagetable table {
table-layout: fixed !important;
}
}
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment