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 |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/views/toCarryOutLegislativeReforms/components/queryForm.vue b/src/views/toCarryOutLegislativeReforms/components/queryForm.vue
index 60c83b3..83a74d8 100644
--- a/src/views/toCarryOutLegislativeReforms/components/queryForm.vue
+++ b/src/views/toCarryOutLegislativeReforms/components/queryForm.vue
@@ -150,7 +150,8 @@
 <script>
 export default {
   props: {
-    searchType: { type: String, default: '' }
+    searchType: { type: String, default: '' },
+    initializationData: { type: Object, default: () => {} }
   },
   data () {
     return {
@@ -170,6 +171,21 @@
     this.getUnitList()
     this.formData.isInvalid = 0
     this.getContaminateList()
+    if (Object.entries(this.initializationData).length !== 0) {
+      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 = []
+      } else if (this.initializationData.type === 'unComplete') {
+        this.formData.state = [9, 20, 30]
+      } else if (this.initializationData.type === 'complete') {
+        this.formData.state = [40]
+      } else if (this.initializationData.type === 'overdue') {
+        this.formData.state = []
+        this.$set(this.formData, 'changeType', 2)
+      }
+    }
   },
   methods: {
     changeUid (val) {

--
Gitblit v1.8.0