|
@@ -13,7 +13,7 @@
|
|
<div class="card2">
|
|
<div class="card2">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
<i class="icon-line" />
|
|
<i class="icon-line" />
|
|
- <div class="card-title">事件级别统计</div>
|
|
|
|
|
|
+ <div class="card-title">来源单位统计</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="card-content">
|
|
<div class="box2">
|
|
<div class="box2">
|
|
@@ -32,7 +32,7 @@
|
|
<div class="card2">
|
|
<div class="card2">
|
|
<div class="card-header">
|
|
<div class="card-header">
|
|
<i class="icon-line" />
|
|
<i class="icon-line" />
|
|
- <div class="card-title">区县事件统计</div>
|
|
|
|
|
|
+ <div class="card-title">发布时间统计</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="card-content">
|
|
<div class="box1">
|
|
<div class="box1">
|
|
@@ -90,17 +90,9 @@
|
|
import { option1, option2, option3 } from './options';
|
|
import { option1, option2, option3 } from './options';
|
|
import { deepClone } from '@/utils';
|
|
import { deepClone } from '@/utils';
|
|
import { toRefs } from 'vue';
|
|
import { toRefs } from 'vue';
|
|
-import { parseTime } from '@/utils/ruoyi';
|
|
|
|
import { fetchReports } from '@/api/kenowledge';
|
|
import { fetchReports } from '@/api/kenowledge';
|
|
|
|
|
|
const proxy = getCurrentInstance()?.proxy;
|
|
const proxy = getCurrentInstance()?.proxy;
|
|
-const { mm_event_type } = toRefs<any>(proxy?.useDict('mm_event_type'));
|
|
|
|
-const statisticalData = ref([
|
|
|
|
- { name: '事件总数', icon: 'icon1', data1: '126560', type: '', data2: '' },
|
|
|
|
- { name: '今年新增事件数', icon: 'icon2', data1: '2341', type: '1', data2: '2.8' },
|
|
|
|
- { name: '本月新增事件数', icon: 'icon3', data1: '278', type: '2', data2: '1.78' },
|
|
|
|
- { name: '今天新增事件数', icon: 'icon4', data1: '126560', type: '2', data2: '1.29' }
|
|
|
|
-]);
|
|
|
|
// 事件类型统计
|
|
// 事件类型统计
|
|
const dateOption = ref([
|
|
const dateOption = ref([
|
|
{ name: '今日', value: '1' },
|
|
{ name: '今日', value: '1' },
|
|
@@ -117,8 +109,8 @@ const handleChangeDate = (type: string) => {
|
|
};
|
|
};
|
|
|
|
|
|
const getEventTypeData = () => {
|
|
const getEventTypeData = () => {
|
|
- chartOption1.xAxis.data = ['自然灾害', '事故灾害', '突发卫生公共卫生事件', '突发社会安全事件'];
|
|
|
|
- chartOption1.series[0].data = [345, 1873, 487, 783];
|
|
|
|
|
|
+ chartOption1.xAxis.data = ['自然灾害', '事故灾害', '突发卫生公\n共事件', '突发社会安\n全事件'];
|
|
|
|
+ chartOption1.series[0].data = [45, 123, 87, 83];
|
|
};
|
|
};
|
|
|
|
|
|
let chartOption2 = reactive(option2);
|
|
let chartOption2 = reactive(option2);
|
|
@@ -156,15 +148,15 @@ const getIconClass = (index) => {
|
|
const initData = () => {
|
|
const initData = () => {
|
|
getEventTypeData();
|
|
getEventTypeData();
|
|
const data1 = [
|
|
const data1 = [
|
|
- { value: 234, name: '市应急管理局', percent: '32.33%', itemStyle: { color: '#2c81ff' } },
|
|
|
|
- { value: 51, name: '市自然资源局', percent: '8.57%', itemStyle: { color: '#62d9ab' } },
|
|
|
|
- { value: 123, name: '市医疗保障局', percent: '20.57%', itemStyle: { color: '#feb20d' } },
|
|
|
|
- { value: 187, name: '市教育局', percent: '27.27%', itemStyle: { color: '#fe6a6a' } }
|
|
|
|
|
|
+ { value: 154, name: '市应急管理局', percent: '45.56%', itemStyle: { color: '#2c81ff' } },
|
|
|
|
+ { value: 45, name: '市自然资源局', percent: '13.31%', itemStyle: { color: '#62d9ab' } },
|
|
|
|
+ { value: 62, name: '市医疗保障局', percent: '18.34%', itemStyle: { color: '#feb20d' } },
|
|
|
|
+ { value: 77, name: '市教育局', percent: '22.79%', itemStyle: { color: '#fe6a6a' } }
|
|
];
|
|
];
|
|
legendData.value = data1;
|
|
legendData.value = data1;
|
|
chartOption2.series[0].data = data1;
|
|
chartOption2.series[0].data = data1;
|
|
chartOption3.xAxis[0].data = ['2020年', '2021年', '2022年', '2023年', '2024年'];
|
|
chartOption3.xAxis[0].data = ['2020年', '2021年', '2022年', '2023年', '2024年'];
|
|
- chartOption3.series[0].data = [380, 780, 390, 660, 370];
|
|
|
|
|
|
+ chartOption3.series[0].data = [48, 64, 79, 63, 84];
|
|
getDataList();
|
|
getDataList();
|
|
const date = new Date();
|
|
const date = new Date();
|
|
const year = date.getFullYear();
|
|
const year = date.getFullYear();
|