shuishen
2023-05-08 e24f70ababdee2b4fdce71c6b80a9bc928fa0331
警情排行调整
1 files modified
32 ■■■■■ changed files
src/views/home/components/rightContainer.vue 32 ●●●●● patch | view | raw | blame | history
src/views/home/components/rightContainer.vue
@@ -537,7 +537,7 @@
        // 获取警情排行统计值
        getCaseRanking (start, end) {
            const caseAll = getCaseRanking(
            getCaseRanking(
                start,
                end,
                this.policeStaionID != "" ? this.policeStaionID : this.userInfo.dept_id
@@ -545,36 +545,6 @@
                let data = []
                if (res.data.data) {
                    res.data.data.push({
                        name: 123,
                        count: 1
                    })
                    res.data.data.push({
                        name: 456,
                        count: 1
                    })
                    res.data.data.push({
                        name: 22,
                        count: 1
                    })
                    res.data.data.push({
                        name: 33,
                        count: 1
                    })
                    res.data.data.push({
                        name: 55,
                        count: 1
                    })
                    res.data.data.push({
                        name: 66,
                        count: 1
                    })
                    res.data.data = res.data.data.sort((a, b) => a.value - b.value)
                    res.data.data = res.data.data.map((item, index) => {
                        item.value = item.count