| | |
| | | <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" |
| | |
| | | eventchangemychart.resize() |
| | | }, |
| | | |
| | | // 案件统计中时间变化 |
| | | // 警情统计中时间变化 |
| | | async caseTimeChange (e) { |
| | | const date = e.map((item) => { |
| | | return this.dateFormat(item) |
| | |
| | | return time |
| | | }, |
| | | |
| | | // 获取案件统计值 |
| | | // 获取警情统计值 |
| | | getCaseAll (start, end) { |
| | | const caseAll = getCaseAll( |
| | | start, |
| | |
| | | return caseAll |
| | | }, |
| | | |
| | | // 初始化案件统计 |
| | | // 初始化警情统计 |
| | | async initEventChangeEcharts () { |
| | | this.eventChangeEchartsLoading = true |
| | | var chartDom = document.getElementById("EventChangeEcharts") |
| | |
| | | }, 500) |
| | | }, |
| | | |
| | | // 案件统计的options |
| | | // 警情统计的options |
| | | initEventChangeOption (xData, yDataList) { |
| | | let option |
| | | if (xData.length == 0) { |
| | | //暂无数据 |
| | | option = { |
| | | title: { |
| | | text: "暂无案件数据", |
| | | text: "暂无警情数据", |
| | | x: "center", |
| | | y: "center", |
| | | textStyle: { |