From f752f50a484f63fc3786ab1c7ad563f3b17cce77 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Fri, 15 Nov 2024 15:58:32 +0800
Subject: [PATCH] fix: 国控站
---
src/views/toCarryOutLegislativeReforms/summaryPage/index.vue | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 50 insertions(+), 5 deletions(-)
diff --git a/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue b/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
index a8d8b97..1833507 100644
--- a/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
+++ b/src/views/toCarryOutLegislativeReforms/summaryPage/index.vue
@@ -42,19 +42,31 @@
/>
</div>
<div class="agentSummary">
- <div class="circle">
+ <div
+ class="circle"
+ @click="toOtherPage('total')"
+ >
<div>������������</div>
<div>{{ responeForm.total }}</div>
</div>
- <div class="circle">
+ <div
+ class="circle"
+ @click="toOtherPage('unComplete')"
+ >
<div>���������</div>
<div>{{ responeForm.unComplete }}</div>
</div>
- <div class="circle">
+ <div
+ class="circle"
+ @click="toOtherPage('complete')"
+ >
<div>���������</div>
<div>{{ responeForm.complete }}</div>
</div>
- <div class="circle">
+ <div
+ class="circle"
+ @click="toOtherPage('overdue')"
+ >
<div>������</div>
<div>{{ responeForm.overdue }}</div>
</div>
@@ -364,6 +376,37 @@
this.handleSearch()
},
methods: {
+ toOtherPage (val) {
+ console.log('val', val)
+ let startTime = ''
+ let endTime = ''
+
+ if (this.searchForm.number) {
+ startTime = this.getPeriods(Number(this.searchForm.number))[0]
+ endTime = this.getPeriods(Number(this.searchForm.number))[1]
+ } else {
+ startTime = this.timeInterval[0]
+ endTime = this.timeInterval[1]
+ }
+ this.$router.push({ path: '/toCarryOutLegislativeReforms/toCarryOutLegislativeReforms/reform',
+ query: {
+ type: val,
+ startTime: startTime,
+ endTime: endTime
+ }
+ })
+ },
+ getPeriods (month) {
+ const today = new Date()
+ const end = new Date(new Date())
+ // ������������������������������
+ const oneMonthAgo = new Date(today)
+ oneMonthAgo.setMonth(oneMonthAgo.getMonth() - month)
+ const startTime = oneMonthAgo.toISOString().substring(0, 10)
+ const endTime = end.toISOString().substring(0, 10)
+ console.log('startTime', startTime, 'endTime', endTime)
+ return [startTime, endTime]
+ },
changeUid (val) {
this.unitIdlist = this.uniqueArrayReduce(val)
this.handleSearch()
@@ -431,7 +474,8 @@
params: {
startTime: this.timeInterval[0],
endTime: this.timeInterval[1],
- number: Number(this.searchForm.number)
+ number: Number(this.searchForm.number),
+ unitId: this.unitIdlist.join(',')
}
}).then(res => {
this.getOutExcel('������������������.xlsx', res)
@@ -595,6 +639,7 @@
justify-content: center;
flex-wrap: wrap;
flex-direction: column;
+ cursor: pointer;
}
}
--
Gitblit v1.8.0