diff --git a/src/views/visit/record.vue b/src/views/visit/record.vue
index 75c312d..fa15489 100644
--- a/src/views/visit/record.vue
+++ b/src/views/visit/record.vue
@@ -23,6 +23,11 @@
+
访客类型
+
+
+
+
起始时间
@@ -323,6 +328,20 @@
total: 0,
data: [],
// 模拟数据
+ visitTypeList: [
+ {
+ id: 1,
+ value: '普通访客'
+ },
+ {
+ id: 2,
+ value: '施工人员'
+ },
+ {
+ id: 3,
+ value: '物流司机'
+ }
+ ],
mockData: [
{
id: 1,
@@ -777,6 +796,11 @@
})
}
+ // 访客类型筛选
+ if (this.select.type !== '' && this.select.type !== null && this.select.type !== undefined) {
+ filteredData = filteredData.filter(item => item.type === this.select.type)
+ }
+
// 计算分页
this.total = filteredData.length
const start = (this.select.page - 1) * this.select.page_size