From a19b20afeacf84c1c743c76b5018bcfbddac2270 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Fri, 15 Nov 2024 09:10:12 +0800 Subject: [PATCH] fix: 国控站 --- src/views/toCarryOutLegislativeReforms/reform/index.vue | 32 +++++++++++++++++++++++++++++--- 1 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/views/toCarryOutLegislativeReforms/reform/index.vue b/src/views/toCarryOutLegislativeReforms/reform/index.vue index 2019831..2c2257c 100644 --- a/src/views/toCarryOutLegislativeReforms/reform/index.vue +++ b/src/views/toCarryOutLegislativeReforms/reform/index.vue @@ -7,6 +7,7 @@ <searchBar v-if="searchType" :search-type="'reform'" + :initialization-data="initializationData" @handleSearch="handleSearchBut" @handleAdd="handleOpenDialog(null, 'add')" /> @@ -506,7 +507,7 @@ // ������������������������������������������(���������������������������) totalCount: 0, // ������������������������������ - pageSizes: [10, 30, 60, 100], + pageSizes: [10, 50, 100, 200], // ������������������������������������������ pageSize: 10 }, @@ -566,6 +567,9 @@ parseInt(item.dataKey) === this.editEscalationUnitData.polluteType ) return data ? data.dataValue : '' + }, + initializationData () { + return this.$route.query } }, watch: { @@ -574,10 +578,32 @@ } }, created () { - this.handleSearch({ isInvalid: 0, state: [9, 20, 30] }) + if (Object.entries(this.$route.query).length === 0) { + this.handleSearch({ isInvalid: 0, state: [9, 20, 30] }) + } else { + let state = [] + let changeType = null + let startTime = this.initializationData.startTime + let endTime = this.initializationData.endTime + if (this.initializationData.type === 'total') { + state = [] + } else if (this.initializationData.type === 'unComplete') { + state = [9, 20, 30] + } else if (this.initializationData.type === 'complete') { + state = [40] + } else if (this.initializationData.type === 'overdue') { + state = [] + changeType = 2 + } + this.handleSearch({ isInvalid: 0, state: state, changeType: changeType, startTime: startTime, endTime: endTime }) + } this.getUnitList() this.getContaminateList() }, + // mounted () { + // console.log('this.$route.query', this.$route.query) + // this.initializationData = this.$route.query + // }, methods: { getaddressAndLnt (position, address) { if (this.mapType === 'edit') { @@ -905,7 +931,7 @@ // ������������������������������������������(���������������������������) totalCount: 0, // ������������������������������ - pageSizes: [10, 30, 60, 100], + pageSizes: [10, 50, 100, 200], // ������������������������������������������ pageSize: pageSize } -- Gitblit v1.8.0