diff --git a/src/views/deptAccess/deptAccess.vue b/src/views/deptAccess/deptAccess.vue index 7477c12..7e2904a 100644 --- a/src/views/deptAccess/deptAccess.vue +++ b/src/views/deptAccess/deptAccess.vue @@ -59,7 +59,7 @@ dialogVisible: false, timeRange: [], query: { - beginTime: '', + begTime: '', endTime: '' }, pickerOptions: { @@ -95,10 +95,10 @@ watch: { timeRange(val) { if (val && val.length > 0) { - this.query.beginTime = val[0] + this.query.begTime = val[0] this.query.endTime = val[1] } else { - this.query.beginTime = '' + this.query.begTime = '' this.query.endTime = '' } } @@ -108,10 +108,10 @@ }, methods: { fetchData() { - if (this.query.beginTime === '' || this.query.endTime === '') { - this.query.beginTime = moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD') + if (this.query.begTime === '' || this.query.endTime === '') { + this.query.begTime = moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD') this.query.endTime = moment().subtract(1, 'months').endOf('month').format('YYYY-MM-DD') - this.timeRange = [this.query.beginTime, this.query.endTime] + this.timeRange = [this.query.begTime, this.query.endTime] } departmentAssess(this.query).then(res => { this.list = res.data diff --git a/src/views/deptAccess/deptAccess.vue b/src/views/deptAccess/deptAccess.vue index 7477c12..7e2904a 100644 --- a/src/views/deptAccess/deptAccess.vue +++ b/src/views/deptAccess/deptAccess.vue @@ -59,7 +59,7 @@ dialogVisible: false, timeRange: [], query: { - beginTime: '', + begTime: '', endTime: '' }, pickerOptions: { @@ -95,10 +95,10 @@ watch: { timeRange(val) { if (val && val.length > 0) { - this.query.beginTime = val[0] + this.query.begTime = val[0] this.query.endTime = val[1] } else { - this.query.beginTime = '' + this.query.begTime = '' this.query.endTime = '' } } @@ -108,10 +108,10 @@ }, methods: { fetchData() { - if (this.query.beginTime === '' || this.query.endTime === '') { - this.query.beginTime = moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD') + if (this.query.begTime === '' || this.query.endTime === '') { + this.query.begTime = moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD') this.query.endTime = moment().subtract(1, 'months').endOf('month').format('YYYY-MM-DD') - this.timeRange = [this.query.beginTime, this.query.endTime] + this.timeRange = [this.query.begTime, this.query.endTime] } departmentAssess(this.query).then(res => { this.list = res.data diff --git a/src/views/deptAccess/deptAccessList.vue b/src/views/deptAccess/deptAccessList.vue index 7336e60..d649c46 100644 --- a/src/views/deptAccess/deptAccessList.vue +++ b/src/views/deptAccess/deptAccessList.vue @@ -156,7 +156,7 @@ this.$router.push({ path: '/assessDeptCaseList', query: { - begTime: this.query.beginTime, + begTime: this.query.begTime, endTime: this.query.endTime, caseType: value, departmentId: row.depId