| | |
| | | linetype: 0, |
| | | tableHeight: 0, |
| | | schedulingList: [], |
| | | |
| | | policeStaionID: '' |
| | | } |
| | | }, |
| | | created () { |
| | |
| | | |
| | | mounted () { |
| | | this.initEquipmentEcharts() |
| | | this.initEventChangeEcharts() |
| | | |
| | | this.getHomeAllData() |
| | | |
| | | this.clickEquimentChart() |
| | | |
| | | this.$nextTick(() => { |
| | |
| | | // this.$emit('changeActivityType', type) |
| | | // this.$emit('activityChange') |
| | | // }, |
| | | |
| | | /** |
| | | * @description: 获取当前组件内所有数据 |
| | | * @return {*} |
| | | */ |
| | | getHomeAllData (id = '') { |
| | | this.policeStaionID = id |
| | | |
| | | this.initEventChangeEcharts() |
| | | }, |
| | | |
| | | getSchedulingList () { |
| | | getSchedulingList().then(res => { |
| | |
| | | |
| | | // 获取案件统计值 |
| | | getCaseAll (start, end) { |
| | | const caseAll = getCaseAll(start, end, this.userInfo.dept_id).then(res => { |
| | | const caseAll = getCaseAll(start, end, this.policeStaionID != '' ? this.policeStaionID : this.userInfo.dept_id).then(res => { |
| | | if (res.data.length > 0) { |
| | | return res.data.reduce((previous, current) => { |
| | | previous.xData.push(current.days) |