From 9251f709dc2a0d278ef2c0cdd76a244bfefc5784 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Thu, 12 Sep 2024 13:15:53 +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..3b2e88e 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.formData.startTime = this.initializationData.startTime + 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.formData.changeType = 2 + } + } }, methods: { changeUid (val) { -- Gitblit v1.8.0