From 293a5597a6823edc5c64372ec41b1024c9f87ee0 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Thu, 12 Sep 2024 16:04:03 +0800
Subject: [PATCH] fix: 责任单位修改
---
src/views/toCarryOutLegislativeReforms/components/queryForm.vue | 6 +++---
src/views/toCarryOutLegislativeReforms/summaryPage/index.vue | 5 ++---
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/views/toCarryOutLegislativeReforms/components/queryForm.vue b/src/views/toCarryOutLegislativeReforms/components/queryForm.vue
index 3b2e88e..83a74d8 100644
--- a/src/views/toCarryOutLegislativeReforms/components/queryForm.vue
+++ b/src/views/toCarryOutLegislativeReforms/components/queryForm.vue
@@ -172,8 +172,8 @@
this.formData.isInvalid = 0
this.getContaminateList()
if (Object.entries(this.initializationData).length !== 0) {
- this.formData.startTime = this.initializationData.startTime
- this.formData.endTime = this.initializationData.endTime
+ this.$set(this.formData, 'startTime', this.initializationData.startTime)
+ this.$set(this.formData, 'endTime', this.initializationData.endTime)
// total ������������ unComplete ��������� complete ��������� overdue ������
if (this.initializationData.type === 'total') {
this.formData.state = []
@@ -183,7 +183,7 @@
this.formData.state = [40]
} else if (this.initializationData.type === 'overdue') {
this.formData.state = []
- this.formData.changeType = 2
+ this.$set(this.formData, 'changeType', 2)
}
}
},
diff --git a/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue b/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
index b5f8c3d..1833507 100644
--- a/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
+++ b/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
@@ -397,13 +397,12 @@
})
},
getPeriods (month) {
- const now = new Date()
+ const today = new Date()
const end = new Date(new Date())
- const today = new Date(now.getFullYear(), now.getMonth(), now.getDate())
// ������������������������������
const oneMonthAgo = new Date(today)
oneMonthAgo.setMonth(oneMonthAgo.getMonth() - month)
- const startTime = oneMonthAgo.toISOString().split('T')[0]
+ const startTime = oneMonthAgo.toISOString().substring(0, 10)
const endTime = end.toISOString().substring(0, 10)
console.log('startTime', startTime, 'endTime', endTime)
return [startTime, endTime]
--
Gitblit v1.8.0