| | |
| | | /> |
| | | </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> |
| | |
| | | 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 now = new Date() |
| | | const end = new Date(new Date()) |
| | | const today = new Date(now.getFullYear(), now.getMonth(), now.getDate()) |
| | | // 获取近一个月的时间段 |
| | | const oneMonthAgo = new Date(today) |
| | | oneMonthAgo.setMonth(oneMonthAgo.getMonth() - month) |
| | | const startTime = oneMonthAgo.toISOString().split('T')[0] |
| | | 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() |
| | |
| | | justify-content: center; |
| | | flex-wrap: wrap; |
| | | flex-direction: column; |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | |