diff --git a/src/views/query/listRecord.vue b/src/views/query/listRecord.vue
index be5ad57..e168b83 100644
--- a/src/views/query/listRecord.vue
+++ b/src/views/query/listRecord.vue
@@ -7,7 +7,7 @@
-
+
@@ -47,19 +47,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ start-placeholder="选择开始时间"
+ end-placeholder="选择结束时间"/>
搜索
@@ -130,6 +139,7 @@
isAbnormal: '',
deviceType: ''
}, // 筛选条件
+ timeRange: [],
columns: [
{
text: '员工编号',
@@ -201,7 +211,19 @@
filename: 'device_template.xlsx',
deptShowTop: false, // 权属单位下拉是否显示顶级
deptShow: true,
- deviceTypeList: []
+ deviceTypeList: [],
+
+ }
+ },
+ watch: {
+ timeRange(val) {
+ if (val && val.length > 0) {
+ this.listQuery.beginTime = val[0]
+ this.listQuery.endTime = val[1]
+ } else {
+ this.listQuery.beginTime = ''
+ this.listQuery.endTime = ''
+ }
}
},
mounted() {
diff --git a/src/views/query/listRecord.vue b/src/views/query/listRecord.vue
index be5ad57..e168b83 100644
--- a/src/views/query/listRecord.vue
+++ b/src/views/query/listRecord.vue
@@ -7,7 +7,7 @@
-
+
@@ -47,19 +47,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ start-placeholder="选择开始时间"
+ end-placeholder="选择结束时间"/>
搜索
@@ -130,6 +139,7 @@
isAbnormal: '',
deviceType: ''
}, // 筛选条件
+ timeRange: [],
columns: [
{
text: '员工编号',
@@ -201,7 +211,19 @@
filename: 'device_template.xlsx',
deptShowTop: false, // 权属单位下拉是否显示顶级
deptShow: true,
- deviceTypeList: []
+ deviceTypeList: [],
+
+ }
+ },
+ watch: {
+ timeRange(val) {
+ if (val && val.length > 0) {
+ this.listQuery.beginTime = val[0]
+ this.listQuery.endTime = val[1]
+ } else {
+ this.listQuery.beginTime = ''
+ this.listQuery.endTime = ''
+ }
}
},
mounted() {
diff --git a/src/views/query/queryStaff.vue b/src/views/query/queryStaff.vue
index 033712f..976579e 100644
--- a/src/views/query/queryStaff.vue
+++ b/src/views/query/queryStaff.vue
@@ -7,40 +7,49 @@
-
+
+ v-for="item in doorList"
+ :key="item.id"
+ :label="item.doorName"
+ :value="item.doorCode"/>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ start-placeholder="选择开始时间"
+ end-placeholder="选择结束时间"/>
搜索
@@ -112,6 +121,7 @@
personDeptId: '',
isAbnormal: ''
}, // 筛选条件
+ timeRange: [],
columns: [
{
text: '员工编号',
@@ -185,6 +195,17 @@
deptShow: true
}
},
+ watch: {
+ timeRange(val) {
+ if (val && val.length > 0) {
+ this.listQuery.beginTime = val[0]
+ this.listQuery.endTime = val[1]
+ } else {
+ this.listQuery.beginTime = ''
+ this.listQuery.endTime = ''
+ }
+ }
+ },
mounted() {
this.getDoorSource()
this.getDeviceSource()
diff --git a/src/views/query/listRecord.vue b/src/views/query/listRecord.vue
index be5ad57..e168b83 100644
--- a/src/views/query/listRecord.vue
+++ b/src/views/query/listRecord.vue
@@ -7,7 +7,7 @@
-
+
@@ -47,19 +47,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ start-placeholder="选择开始时间"
+ end-placeholder="选择结束时间"/>
搜索
@@ -130,6 +139,7 @@
isAbnormal: '',
deviceType: ''
}, // 筛选条件
+ timeRange: [],
columns: [
{
text: '员工编号',
@@ -201,7 +211,19 @@
filename: 'device_template.xlsx',
deptShowTop: false, // 权属单位下拉是否显示顶级
deptShow: true,
- deviceTypeList: []
+ deviceTypeList: [],
+
+ }
+ },
+ watch: {
+ timeRange(val) {
+ if (val && val.length > 0) {
+ this.listQuery.beginTime = val[0]
+ this.listQuery.endTime = val[1]
+ } else {
+ this.listQuery.beginTime = ''
+ this.listQuery.endTime = ''
+ }
}
},
mounted() {
diff --git a/src/views/query/queryStaff.vue b/src/views/query/queryStaff.vue
index 033712f..976579e 100644
--- a/src/views/query/queryStaff.vue
+++ b/src/views/query/queryStaff.vue
@@ -7,40 +7,49 @@
-
+
+ v-for="item in doorList"
+ :key="item.id"
+ :label="item.doorName"
+ :value="item.doorCode"/>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ start-placeholder="选择开始时间"
+ end-placeholder="选择结束时间"/>
搜索
@@ -112,6 +121,7 @@
personDeptId: '',
isAbnormal: ''
}, // 筛选条件
+ timeRange: [],
columns: [
{
text: '员工编号',
@@ -185,6 +195,17 @@
deptShow: true
}
},
+ watch: {
+ timeRange(val) {
+ if (val && val.length > 0) {
+ this.listQuery.beginTime = val[0]
+ this.listQuery.endTime = val[1]
+ } else {
+ this.listQuery.beginTime = ''
+ this.listQuery.endTime = ''
+ }
+ }
+ },
mounted() {
this.getDoorSource()
this.getDeviceSource()
diff --git a/src/views/query/queryVisitor.vue b/src/views/query/queryVisitor.vue
index d452eb0..1219602 100644
--- a/src/views/query/queryVisitor.vue
+++ b/src/views/query/queryVisitor.vue
@@ -25,19 +25,28 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+ start-placeholder="选择开始时间"
+ end-placeholder="选择结束时间"/>
搜索
@@ -103,6 +112,7 @@
keyword: '',
personDeptId: ''
},
+ timeRange: [],
devQuery: {
devType: '1'
},
@@ -172,6 +182,17 @@
deptShow: true
}
},
+ watch: {
+ timeRange(val) {
+ if (val && val.length > 0) {
+ this.listQuery.beginTime = val[0]
+ this.listQuery.endTime = val[1]
+ } else {
+ this.listQuery.beginTime = ''
+ this.listQuery.endTime = ''
+ }
+ }
+ },
mounted() {
this.getDoorSource()
this.getDeviceSource()