shuishen
2023-02-03 08e2db5b94d878189f5377fc5ed0f7bd4b2bb19e
src/views/home/components/rightContainer.vue
@@ -153,7 +153,7 @@
            linetype: 0,
            tableHeight: 0,
            schedulingList: [],
            policeStaionID: ''
        }
    },
    created () {
@@ -173,7 +173,9 @@
    mounted () {
        this.initEquipmentEcharts()
        this.initEventChangeEcharts()
        this.getHomeAllData()
        this.clickEquimentChart()
        this.$nextTick(() => {
@@ -189,6 +191,16 @@
        //     this.$emit('changeActivityType', type)
        //     this.$emit('activityChange')
        // },
        /**
         * @description: 获取当前组件内所有数据
         * @return {*}
         */
        getHomeAllData (id = '') {
            this.policeStaionID = id
            this.initEventChangeEcharts()
        },
        getSchedulingList () {
            getSchedulingList().then(res => {
@@ -235,7 +247,7 @@
        // 获取案件统计值
        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)