Commit 486e6a40 authored by 姬鋆屾's avatar 姬鋆屾

推修改无法查询日期搜索

parent cbe6eb58
...@@ -220,6 +220,7 @@ export default { ...@@ -220,6 +220,7 @@ export default {
resetTable() { resetTable() {
let { path, query } = this.$route; let { path, query } = this.$route;
if (this.form.attendanceDateStart && this.form.attendanceDateEnd) { if (this.form.attendanceDateStart && this.form.attendanceDateEnd) {
console.log(123);
let startValue = Date.parse(this.form.attendanceDateStart); let startValue = Date.parse(this.form.attendanceDateStart);
let endValue = Date.parse(this.form.attendanceDateEnd); let endValue = Date.parse(this.form.attendanceDateEnd);
if (startValue > endValue) { if (startValue > endValue) {
...@@ -420,7 +421,6 @@ export default { ...@@ -420,7 +421,6 @@ export default {
delete this.form.summaryTimeEnd; delete this.form.summaryTimeEnd;
} }
if (this.$route.name == "attendance/record/hik/list") { if (this.$route.name == "attendance/record/hik/list") {
console.log(this.$route, "11111111");
if (this.form.attendanceDateStart && this.form.attendanceDateEnd) { if (this.form.attendanceDateStart && this.form.attendanceDateEnd) {
let startValue = Date.parse(this.form.attendanceDateStart); let startValue = Date.parse(this.form.attendanceDateStart);
let endValue = Date.parse(this.form.attendanceDateEnd); let endValue = Date.parse(this.form.attendanceDateEnd);
...@@ -433,9 +433,6 @@ export default { ...@@ -433,9 +433,6 @@ export default {
this.form.attendanceDateStart = timestampToTime(new Date(), 3); this.form.attendanceDateStart = timestampToTime(new Date(), 3);
this.form.attendanceDateEnd = timestampToTime(new Date(), 3); this.form.attendanceDateEnd = timestampToTime(new Date(), 3);
} }
} else {
delete this.form.attendanceDateStart;
delete this.form.attendanceDateEnd;
} }
let params = JSON.parse(JSON.stringify(this.form)); //不更改原始数据 let params = JSON.parse(JSON.stringify(this.form)); //不更改原始数据
let data = this.decode(params); let data = this.decode(params);
......
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