From 761dc97c8ac017e5d57b331f7bcf3cfaf1ca1159 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 08 Nov 2024 15:44:06 +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