| | |
| | | }, |
| | | |
| | | mounted () { |
| | | this.timeTabClick() |
| | | if (this.timetype == 0) { |
| | | this.policeSituationHistoryArr = this.chooseWeekTimeDate(this.policeSituationHistorySaveArr) |
| | | } else { |
| | | this.policeSituationHistoryArr = this.chooseMouthTimeDate(this.policeSituationHistorySaveArr) |
| | | } |
| | | }, |
| | | |
| | | methods: { |
| | | timeTabClick (type = 0) { |
| | | timeTabClick (type) { |
| | | this.timetype = type |
| | | this.$emit('changePoliceSituationTimeType', type) |
| | | this.$emit('policeSituationChange') |
| | |
| | | if (name == '全部') { |
| | | this.policeSituationRealtimeArr = realtimeArr |
| | | this.policeSituationHistoryArr = historyArr |
| | | this.timeTabClick(this.timetype) |
| | | } else { |
| | | let realtimeNewArr = [] |
| | | let historyNewArr = [] |
| | |
| | | }) |
| | | this.policeSituationHistorySaveArr = historyNewArr |
| | | this.policeSituationHistoryArr = historyNewArr |
| | | this.timeTabClick() |
| | | this.timeTabClick(this.timetype) |
| | | } |
| | | }, |
| | | |