shuishen
2023-04-12 c682da5b3f4ee8cdff770ddfec6ada001b49c767
案件统计更换为警情统计
1 files modified
12 ■■■■ changed files
src/views/home/components/rightContainer.vue 12 ●●●● patch | view | raw | blame | history
src/views/home/components/rightContainer.vue
@@ -52,7 +52,7 @@
        <div class="alert-box" ref="alertBox ">
            <div class="box">
                <div class="title">
                    案件统计
                    警情统计
                    <div class="timer">
                        <el-date-picker :clearable="false" v-model="eventTime" type="daterange" align="right" unlink-panels
                            range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="caseTimeChange"
@@ -352,7 +352,7 @@
                eventchangemychart.resize()
        },
        // 案件统计中时间变化
        // 警情统计中时间变化
        async caseTimeChange (e) {
            const date = e.map((item) => {
                return this.dateFormat(item)
@@ -394,7 +394,7 @@
            return time
        },
        // 获取案件统计值
        // 获取警情统计值
        getCaseAll (start, end) {
            const caseAll = getCaseAll(
                start,
@@ -442,7 +442,7 @@
            return caseAll
        },
        // 初始化案件统计
        // 初始化警情统计
        async initEventChangeEcharts () {
            this.eventChangeEchartsLoading = true
            var chartDom = document.getElementById("EventChangeEcharts")
@@ -469,14 +469,14 @@
            }, 500)
        },
        // 案件统计的options
        // 警情统计的options
        initEventChangeOption (xData, yDataList) {
            let option
            if (xData.length == 0) {
                //暂无数据
                option = {
                    title: {
                        text: "暂无案件数据",
                        text: "暂无警情数据",
                        x: "center",
                        y: "center",
                        textStyle: {