Browse Source

二级大屏开始

main
parent
commit
3060b3c2a6
  1. 50
      src/api/screen/CaseVerif.ts
  2. 65
      src/api/screen/rightsComfort.ts
  3. 38
      src/api/screen/videoSupervise.ts
  4. 20
      src/assets/data/浏阳市.json
  5. 500
      src/views/datav/CaseVerif.vue
  6. 20
      src/views/datav/Gobal.vue
  7. 36
      src/views/datav/MailVisits.vue
  8. 850
      src/views/datav/RightsComfort.vue
  9. 10
      src/views/datav/SceneInsp.vue
  10. 694
      src/views/datav/Sub1.vue
  11. 514
      src/views/datav/VideoInsp.vue

50
src/api/screen/CaseVerif.ts

@ -2,8 +2,54 @@ import request from "../request";
export function getAllCaseVerifCount(times) {
export function getCaseVerificationRank(times) {
return request.get({
url: `/datav/caseVerif/getCaseVerificationRank?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getCaseProblemProperty(times) {
return request.get({
url: `/datav/caseVerif/getCaseProblemProperty?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getAllCaseVerificationCount(times) {
return request.get({
url: `/datav/caseVerif/getAllCaseVerificationCount?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getCaseVerificationMap(times) {
return request.get({
url: `/datav/caseVerif/getCaseVerificationMap?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getCaseVerificationTrend(year) {
return request.get({
url: `/datav/caseVerif/getCaseVerificationTrend?year=${year}`
});
}
export function getCaseSourceRateAndDealSituation(times) {
return request.get({
url: `/datav/caseVerif/getCaseSourceRateAndDealSituation?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getConfinementAndPause(times) {
return request.get({ return request.get({
url: `/datav/caseVerif/getAllCaseVerifCount?beginTime=${times[0]}&endTime=${times[1]}` url: `/datav/caseVerif/getConfinementAndPause?beginTime=${times[0]}&endTime=${times[1]}`
}); });
} }

65
src/api/screen/rightsComfort.ts

@ -0,0 +1,65 @@
import request from "../request";
export function getRightsAndComfortRank(times) {
return request.get({
url: `/datav/rightsComfort/getRightsAndComfortRank?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getCaseTypeRate(times) {
return request.get({
url: `/datav/rightsComfort/getCaseTypeRate?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getALlComfortCount(times) {
return request.get({
url: `/datav/rightsComfort/getALlComfortCount?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getPunishmentSituation(times) {
return request.get({
url: `/datav/rightsComfort/getPunishmentSituation?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getComfortSituation(times) {
return request.get({
url: `/datav/rightsComfort/getComfortSituation?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getPoliceHurtSituationAndHurtType(times) {
return request.get({
url: `/datav/rightsComfort/getPoliceHurtSituationAndHurtType?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getCaseAriseSituationRate(times) {
return request.get({
url: `/datav/rightsComfort/getCaseAriseSituationRate?beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function test() {
return request.get({
url: `/datav/rightsComfort/test`
});
}

38
src/api/screen/videoSupervise.ts

@ -0,0 +1,38 @@
import request from "@/api/request";
// 视频督察大屏问题数排名
export function getVideoSuperviseProblemRank(times) {
return request.get({
url: `/datav/videoSupervise/getVideoSuperviseProblemRank?beginTime=${times[0]}&endTime=${times[1]}`
});
}
// 视频督察大屏总览数据
export function getAllVideoSuperviseCount(times) {
return request.get({
url: `/datav/videoSupervise/getAllVideoSuperviseCount?beginTime=${times[0]}&endTime=${times[1]}`
});
}
// 视频督察地图数据
export function getVideoSuperviseMap(times) {
return request.get({
url: `/datav/videoSupervise/getVideoSuperviseMap?beginTime=${times[0]}&endTime=${times[1]}`
});
}
// 视频督察问题趋势
export function getVideoSuperviseTrend(year) {
return request.get({
url: `/datav/videoSupervise/getVideoSuperviseTrend?year=${year}`
});
}
// 视频督察大屏问题类型占比
export function getVideoSuperviseProblemTypeRate(times) {
return request.get({
url: `/datav/videoSupervise/getVideoSuperviseProblemTypeRate?beginTime=${times[0]}&endTime=${times[1]}`
});
}

20
src/assets/data/浏阳市.json

File diff suppressed because one or more lines are too long

500
src/views/datav/CaseVerif.vue

@ -69,22 +69,22 @@
style="width: 16.66%" style="width: 16.66%"
/> />
<datav-statistic <datav-statistic
:value="overview.investigateAndPunish" :value="overview.dealCasePro"
title="查处问题(个)" title="查处问题(个)"
style="width: 16.66%" style="width: 16.66%"
/> />
<datav-statistic <datav-statistic
:value="overview.accountablePeopleNumber" :value="overview.punishPre"
title="问责人次" title="问责人次"
style="width: 16.66%" style="width: 16.66%"
/> />
<datav-statistic <datav-statistic
:value="overview.accountableDepartNumber" :value="overview.punishOrg"
title="问责单位数" title="问责单位数"
style="width: 16.66%" style="width: 16.66%"
/> />
<datav-statistic <datav-statistic
:value="overview.confirmedRate" :value="overview.Rate"
value-unit="%" value-unit="%"
title="查实率" title="查实率"
style="width: 16.66%" style="width: 16.66%"
@ -98,7 +98,7 @@
<datav-card title="查处问题趋势"> <datav-card title="查处问题趋势">
<v-charts <v-charts
style="height: 320px" style="height: 320px"
:option="option1" :option="proTrend"
autoresize autoresize
/> />
<div class="gobal-dropdown-container"> <div class="gobal-dropdown-container">
@ -145,7 +145,7 @@
<div class="mb-40"> <div class="mb-40">
<v-charts <v-charts
style="height: 340px" style="height: 340px"
:option="option4" :option="jbcloption"
autoresize autoresize
/> />
</div> </div>
@ -154,7 +154,7 @@
<div class="mb-40"> <div class="mb-40">
<v-charts <v-charts
style="height: 340px" style="height: 340px"
:option="option4" :option="tzcloption"
autoresize autoresize
/> />
</div> </div>
@ -173,9 +173,7 @@ import vCharts from "vue-echarts";
import changshaMap from "@/assets/data/changsha.json"; import changshaMap from "@/assets/data/changsha.json";
import * as echarts from "echarts/core"; import * as echarts from "echarts/core";
import moment from "moment"; import moment from "moment";
import {getCaseVerifData, getCaseVerifTrend} from "@/api/datav"; import {getAllCaseVerificationCount, getCaseVerificationRank, getCaseVerificationTrend, getCaseSourceRateAndDealSituation, getCaseVerificationMap, getCaseProblemProperty, getConfinementAndPause} from "@/api/screen/CaseVerif.ts";
import {getGobalRecentlyTrendByMonth} from "@/api/data/basicScreen.ts";
import {getAllCaseVerifCount} from "@/api/screen/CaseVerif.ts";
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); // const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); //
@ -185,127 +183,38 @@ const time = ref([
moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD"),
]); ]);
const fxsjBarList = ref([]);
const jsdwBarList = ref([]);
const overview = ref({ const overview = ref({
total: 0, total: 0,
confirmed: 0, // confirmed: 0, //
investigateAndPunish: 0, // dealCasePro: 0, //
accountablePeopleNumber: 0, // punishPre: 0, //
accountableDepartNumber: 0, // punishOrg: 0, //
confirmedRate: 0, // Rate: 0, //
}); });
let gobalTempMapVoList = [ let gobalTempMapVoList = ref([
{ {
"name": "浏阳市局", "name": "浏阳市局",
"totalPro": 93, "total": 93,
"checkedPro": 11, "confirmed": 11,
"dealPro": 8, "dealCasePro": 8,
"dealPersonCount": 7, "punishPre": 7,
"orgCount": 9, "punishOrg": 9,
"rate": "12%" "rate": "12%"
}, }
{ ]);
"name": "长沙县局",
"totalPro": 192,
"checkedPro": 33,
"dealPro": 33,
"dealPersonCount": 22,
"orgCount": 11,
"rate": "17%"
},
{
"name": "开福分局",
"totalPro": 174,
"checkedPro": 63,
"dealPro": 60,
"dealPersonCount": 32,
"orgCount": 13,
"rate": "36%"
},
{
"name": "芙蓉分局",
"totalPro": 175,
"checkedPro": 30,
"dealPro": 30,
"dealPersonCount": 24,
"orgCount": 17,
"rate": "17%"
},
{
"name": "雨花分局",
"totalPro": 214,
"checkedPro": 32,
"dealPro": 32,
"dealPersonCount": 27,
"orgCount": 12,
"rate": "15%"
},
{
"name": "天心分局",
"totalPro": 179,
"checkedPro": 34,
"dealPro": 21,
"dealPersonCount": 16,
"orgCount": 14,
"rate": "19%"
},
{
"name": "岳麓分局",
"totalPro": 234,
"checkedPro": 25,
"dealPro": 10,
"dealPersonCount": 9,
"orgCount": 10,
"rate": "11%"
},
{
"name": "宁乡分局",
"totalPro": 68,
"checkedPro": 9,
"dealPro": 9,
"dealPersonCount": 11,
"orgCount": 8,
"rate": "13%"
},
{
"name": "望城分局",
"totalPro": 78,
"checkedPro": 21,
"dealPro": 8,
"dealPersonCount": 9,
"orgCount": 5,
"rate": "27%"
},
];
const fxsjBarList = ref([]);
const jsdwBarList = ref([]);
const zfbaPieList = ref([]);
const fwglPieList = ref([]);
const jjjgPieList = ref([]); const jjjgPieList = ref([]);
const ajlyPieList = ref([]);
const ajhcqxList = ref([]);
const temp = ref({
tempCheckedCaseTotal: 0,
tempDealPro: 0,
tempDealPre: 0,
tempDealOrg: 0,
tempRate: 0,
})
// setTimeout(() => {
// temp.value={
// tempCheckedCaseTotal: 292,
// tempDealPro: 285,
// tempDealPre: 223,
// tempDealOrg: 93,
// tempRate: 18,
// }
// }, 1000);
//
// region || // region ||
const handleCommand = (year) => { const handleCommand = (year) => {
selectedYear.value = year; // selectedYear.value = year; //
getProTrendList(selectedYear.value);
}; };
watch(time, () => { watch(time, () => {
getData(); getData();
@ -315,30 +224,102 @@ watch(time, () => {
// region
const getRankList = async(timeValue) => {
const res = await getCaseVerificationRank(timeValue);
fxsjBarList.value = res.fxsjRankList
jsdwBarList.value = res.jsdwRankList
}
const getCaseProblemPropertyList = async(timeValue) => {
function getData() { const res = await getCaseProblemProperty(timeValue);
getCaseVerifData(time.value).then((data) => { zfbaPieOption.value.series[0].data = res.zfbaPieList;
// overview.value = data.overview; fwglPieOption.value.series[0].data = res.fwglPieList;
fxsjBarList.value = data.fxsjBarList; }
jsdwBarList.value = data.jsdwBarList; const getOverview = async(timeValue)=>{
zfbaPieList.value = data.zfbaPieList; const res = await getAllCaseVerificationCount(timeValue)
fwglPieList.value = data.fwglPieList; overview.value = res.overview
jjjgPieList.value = data.jjjgPieList; }
ajlyPieList.value = data.ajlyPieList; const getMapIcon = async(timeValue)=> {
const res = await getCaseVerificationMap(timeValue);
const mappedData = res.caseVerificationMapList.map(item => {
let name;
switch (item.name) {
case '长沙县局':
name = '长沙县';
break;
case '芙蓉分局':
name = '芙蓉区';
break;
case '天心分局':
name = '天心区';
break;
case '岳麓分局':
name = '岳麓区';
break;
case '开福分局':
name = '开福区';
break;
case '雨花分局':
name = '雨花区';
break;
case '望城分局':
name = '望城区';
break;
case '宁乡市局':
name = '宁乡市';
break;
case '浏阳市局':
name = '浏阳市';
break;
case '高新分局':
name = '高新区';
break;
default:
name = item.name;
break;
}
return {
...item,
originalName: item.name, //
name: name,
value: item.total,
};
}); });
gobalTempMapVoList.value = mappedData
option.value.series[0].data = mappedData;
}
const getProTrendList= async(year) => {
const res = await getCaseVerificationTrend(year);
const temp = res.proTrendList;
const categories = temp.map(item => item.name);
const values = temp.map(item => item.value);
proTrend.value.xAxis.data = categories;
proTrend.value.series[0].data = values;
}
const getCaseSourceAndDeal = async (timeValue)=>{
const res = await getCaseSourceRateAndDealSituation(timeValue);
ajlyPieOption.value.series[0].data = res.caseSourceRateList
wzclPieOption.value.series[0].data = res.dealSituationPieList
}
const getConfinementAndPauseList = async (timeValue)=>{
const res = await getConfinementAndPause(timeValue);
jbcloption.value.series[0].data = res.jbclList;
dzcloption.value.series[0].data = res.dzclList;
}
// endregion
getCaseVerifTrend(time.value, 12).then((data) => {
ajhcqxList.value = data.ajhcqsList;
// console.log(ajhcqxList.value)
});
getAllCaseVerifCount(time.value).then((data) => {
overview.value = data.overview;
console.log(overview.value)
})
function getData() {
getRankList(time.value);
getCaseProblemPropertyList(time.value)
getOverview(time.value);
getMapIcon(time.value);
getProTrendList(selectedYear.value);
getCaseSourceAndDeal(time.value);
} }
watch(time, () => { watch(time, () => {
@ -348,46 +329,7 @@ onMounted(() => {
getData(); getData();
}); });
const zfbaPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: zfbaPieList.value,
},
],
};
});
const fwglPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [
{value: 4, name: "交警执法"},
{value: 3, name: "态度生硬"},
{value: 3, name: "户政业务"},
{value: 2, name: "监所管理"},
],
},
],
};
});
const jjjgPieOption = computed(() => { const jjjgPieOption = computed(() => {
return { return {
@ -407,61 +349,11 @@ const jjjgPieOption = computed(() => {
}; };
}); });
const ajlyPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [
{name: "12389", value: 843},
{name: "网络投诉", value: 711},
{name: "信件投诉", value: 29},
{name: "其他投诉", value: 3},
{name: "值班来电", value: 3},
],
},
],
};
});
const wzclPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [
{name: "通报批评", value: 167},
{name: "未处置人", value: 54},
{name: "工作提醒", value: 17},
{name: "批评教育", value: 9},
{name: "提醒谈话", value: 21},
{name: "禁闭", value: 2},
{name: "责令检查", value: 2},
{name: "党纪处分", value: 1},
],
},
],
};
});
echarts.registerMap("changsha", changshaMap); echarts.registerMap("changsha", changshaMap);
const option = { const option = ref({
geo: { geo: {
// registerMap'' // registerMap''
map: "changsha", map: "changsha",
@ -470,18 +362,18 @@ const option = {
trigger: 'item', trigger: 'item',
formatter: function (params) { formatter: function (params) {
console.log(params) console.log(params)
const dataItem = gobalTempMapVoList.find(item => item.name.includes(params.name.substring(0, 2))); const dataItem = gobalTempMapVoList.value.find(item => item.name.includes(params.name.substring(0, 2)));
if (dataItem) { if (dataItem ) {
return ` return `
<div class="tooltip"> <div class="tooltip">
<div class="tooltip-title">${dataItem.name}</div> <div class="tooltip-title">${dataItem.originalName}</div>
<div class="tooltip-content"> <div class="tooltip-content">
<ul class="tooltip-ul" > <ul class="tooltip-ul" >
<li>案件总数<span>${dataItem.totalPro}</span></li> <li>案件总数<span>${dataItem.total}</span></li>
<li>查实案件数 <span>${dataItem.checkedPro}</span></li> <li>查实案件数 <span>${dataItem.confirmed}</span></li>
<li>查处问题 <span>${dataItem.dealPro}</span></li> <li>查处问题 <span>${dataItem.dealCasePro}</span></li>
<li>问责人次 <span>${dataItem.dealPersonCount}</span></li> <li>问责人次 <span>${dataItem.punishPre}</span></li>
<li>问责单位数 <span>${dataItem.orgCount}</span></li> <li>问责单位数 <span>${dataItem.punishOrg}</span></li>
<li>查实率 <span>${dataItem.rate}</span></li> <li>查实率 <span>${dataItem.rate}</span></li>
</ul> </ul>
</div> </div>
@ -491,12 +383,12 @@ const option = {
<div class="tooltip-title">${dataItem.name}</div> <div class="tooltip-title">${dataItem.name}</div>
<div class="tooltip-content"> <div class="tooltip-content">
<ul class="tooltip-ul""> <ul class="tooltip-ul"">
<li>案件总数 <span>0</span></li> <li>案件总数 <span>-</span></li>
<li>查实案件数 <span>0</span></li> <li>查实案件数 <span>-</span></li>
<li>查处问题 <span>0</span></li> <li>查处问题 <span>-</span></li>
<li>问责人次 <span>0</span></li> <li>问责人次 <span>-</span></li>
<li>问责单位数 <span>0</span></li> <li>问责单位数 <span>-</span></li>
<li>查实率 <span>0</span></li> <li>查实率 <span>-</span></li>
</ul> </ul>
</div> </div>
</div>`; </div>`;
@ -514,9 +406,9 @@ const option = {
type: "piecewise", type: "piecewise",
bottom: 10, bottom: 10,
pieces: [ pieces: [
{gte: 85, lte: 100, label: "问题数低于500"}, {gte: 0, lte: 65, label: "问题数低于500"},
{gte: 65, lte: 85, label: "问题数低于1000"}, {gte: 65, lte: 85, label: "问题数介于500-1000"},
{gte: 0, lte: 65, label: "问题数于1000"}, {gte: 85, lte: 100, label: "问题数于1000"},
], ],
right: 10, // right: 10, //
realtime: false, realtime: false,
@ -526,7 +418,7 @@ const option = {
}, },
calculable: true, calculable: true,
inRange: { inRange: {
color: ["#D34343", "#F6A149", "#4987F6"], color: ["#4987F6","#F6A149", "#D34343" ],
}, },
}, },
series: [ series: [
@ -535,7 +427,6 @@ const option = {
type: "map", type: "map",
map: "changsha", map: "changsha",
hoverAnimation: true, hoverAnimation: true,
label: { label: {
show: true, show: true,
color: "white", color: "white",
@ -543,11 +434,11 @@ const option = {
itemStyle: { itemStyle: {
areaColor: "#02215E", // areaColor: "#02215E", //
}, },
data: gobalTempMapVoList.value,
}, },
], ],
}; });
const proTrend = ref({
const option1 = ref({
grid: { grid: {
left: '5%', // left: '5%', //
right: '2%', // right: '2%', //
@ -605,12 +496,73 @@ const option1 = ref({
}, },
]), ]),
}, },
data: [175, 101, 158, 141, 177, 162, 108, 166, 197, 104], data: [],
},
],
});
const ajlyPieOption = ref({
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [],
},
],
tooltip: {
trigger: "item",
},
});
const wzclPieOption = ref({
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [],
},
],
tooltip: {
trigger: "item",
},
});
const zfbaPieOption = ref({
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [],
}, },
], ],
tooltip: {
trigger: "item",
},
});
const fwglPieOption = ref({
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [],
},
],
tooltip: {
trigger: "item",
},
}); });
const option4 = { const jbcloption = ref({
tooltip: { tooltip: {
trigger: "item", trigger: "item",
}, },
@ -622,20 +574,44 @@ const option4 = {
color: "#fff", color: "#fff",
}, },
data: [ data: [
{value: 14, name: "工作饮酒"}, // {value: 14, name: ""},
{value: 11, name: "违规办案"}, // {value: 11, name: ""},
{value: 3, name: "涉嫌违纪"}, // {value: 3, name: ""},
{value: 2, name: "违反“三个规定”"}, // {value: 2, name: ""},
{value: 12, name: "违反生活纪律、工作纪律"}, // {value: 12, name: ""},
{value: 8, name: "违规接受管理服务对象宴请"}, // {value: 8, name: ""},
{value: 2, name: "酒后驾车、涉嫌违法"}, // {value: 2, name: ""},
{value: 2, name: "执法乱作为"}, // {value: 2, name: ""},
{value: 3, name: "为落实请示报告制度"}, // {value: 3, name: ""},
], ],
}, },
], ],
}; });
const tzcloption = ref({
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [
// {value: 14, name: ""},
// {value: 11, name: ""},
// {value: 3, name: ""},
// {value: 2, name: ""},
// {value: 12, name: ""},
// {value: 8, name: ""},
// {value: 2, name: ""},
// {value: 2, name: ""},
// {value: 3, name: ""},
],
},
],
});
const colors = [ const colors = [
{ {
@ -651,6 +627,7 @@ const colors = [
percentage: 40, percentage: 40,
}, },
]; ];
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@ -753,7 +730,6 @@ const colors = [
color: #fff; color: #fff;
} }
</style> </style>

20
src/views/datav/Gobal.vue

@ -79,6 +79,7 @@
style="height: 360px" style="height: 360px"
:option="option" :option="option"
autoresize autoresize
@click="handleClick"
/> />
<div> <div>
@ -145,6 +146,8 @@ import {
} from "@/api/data/basicScreen.ts"; } from "@/api/data/basicScreen.ts";
// region // region
const router = useRouter();
const activeOrgTab = ref("1"); const activeOrgTab = ref("1");
const fxsjlist = ref([]); // const fxsjlist = ref([]); //
const jsdwlist = ref([]); // const jsdwlist = ref([]); //
@ -174,7 +177,7 @@ const gobalTempMapVoList = ref([
"reviewPro": 11 "reviewPro": 11
} }
]); // ]); //
const router = useRouter();
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); // const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); //
const selectedYear = ref('2024'); // const selectedYear = ref('2024'); //
@ -232,7 +235,7 @@ const option = ref({
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: function (params) { formatter: function (params) {
console.log(params); // console.log(params);
const dataItem = gobalTempMapVoList.value.find(item => item.name.includes(params.name.substring(0, 2))); const dataItem = gobalTempMapVoList.value.find(item => item.name.includes(params.name.substring(0, 2)));
if (dataItem) { if (dataItem) {
return ` return `
@ -478,6 +481,19 @@ const handleCommand = (year) => {
watch(time, () => { watch(time, () => {
getData(); getData();
}); });
const handleClick = (params) => {
const departId = params.data.departId;
const { name } = params.data;
alert("部门id:"+departId);
alert("部门名字:"+name);
const url = router.resolve({
path: "/datav/sub1",
query: { departId: departId },
}).href;
window.open(url, "_blank");
}
// endregion // endregion

36
src/views/datav/MailVisits.vue

@ -7,7 +7,7 @@
<el-col :span="6"> <el-col :span="6">
<datav-card title="初访重访情况"> <datav-card title="初访重访情况">
<el-row class="mb-32"> <el-row class="mb-32">
<el-col :span="12"> <el-col :span="8">
<div class="descriptions_cell text-center"> <div class="descriptions_cell text-center">
<div class="descriptions_content"> <div class="descriptions_content">
{{ overview.firstMail }} {{ overview.firstMail }}
@ -17,7 +17,7 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="8">
<div class="descriptions_cell text-center"> <div class="descriptions_cell text-center">
<div class="descriptions_content"> <div class="descriptions_content">
{{ overview.secondMail }} {{ overview.secondMail }}
@ -27,6 +27,16 @@
</div> </div>
</div> </div>
</el-col> </el-col>
<el-col :span="8">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ overview.secondMail }}
</div>
<div class="descriptions_label">
领导接访数
</div>
</div>
</el-col>
</el-row> </el-row>
<datav-card> <datav-card>
<datav-tabs v-model="activeTab"> <datav-tabs v-model="activeTab">
@ -55,6 +65,16 @@
/> />
</el-scrollbar> </el-scrollbar>
</datav-tab-item> </datav-tab-item>
<datav-tab-item label="领导接访" name="3">
<el-scrollbar height="300px">
<datav-chart-bar
:data="fxsjRepeatMailList"
:max="11"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs> </datav-tabs>
</datav-tab-item> </datav-tab-item>
<datav-tab-item label="部委支队" name="2"> <datav-tab-item label="部委支队" name="2">
@ -79,6 +99,16 @@
/> />
</el-scrollbar> </el-scrollbar>
</datav-tab-item> </datav-tab-item>
<datav-tab-item label="领导接访" name="3">
<el-scrollbar height="300px">
<datav-chart-bar
:data="fxsjRepeatMailList"
:max="11"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs> </datav-tabs>
</datav-tab-item> </datav-tab-item>
</datav-tabs> </datav-tabs>
@ -96,6 +126,7 @@
</div> </div>
</div> </div>
</datav-card> </datav-card>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -154,7 +185,6 @@
autoresize autoresize
/> />
</datav-tab-item> </datav-tab-item>
<datav-tab-item label="12337信访" name="4"> <datav-tab-item label="12337信访" name="4">
<v-charts <v-charts
style="width: 105%; height: 300px; " style="width: 105%; height: 300px; "

850
src/views/datav/RightsComfort.vue

File diff suppressed because it is too large Load Diff

10
src/views/datav/SceneInsp.vue

@ -931,7 +931,6 @@ const wtlxPieOption = computed(() => {
color: "#fff", color: "#fff",
}, },
data: wtlxList.value, data: wtlxList.value,
}, },
], ],
}; };
@ -954,7 +953,7 @@ const option = ref({
if (dataItem) { if (dataItem) {
return ` return `
<div class="tooltip"> <div class="tooltip">
<div class="tooltip-title">${dataItem.name}</div> <div class="tooltip-title">${dataItem.originalName}</div>
<div class="tooltip-content"> <div class="tooltip-content">
<ul class="tooltip-ul" > <ul class="tooltip-ul" >
<li>通报问题数 <span>${dataItem.totalPro}</span></li> <li>通报问题数 <span>${dataItem.totalPro}</span></li>
@ -1034,7 +1033,6 @@ const option = ref({
// region 线 // region 线
const proTrend = ref({ const proTrend = ref({
grid: { grid: {
left: '5%', // left: '5%', //
right: '2%', // right: '2%', //
@ -1249,12 +1247,6 @@ function getData() {
watch(time, () => { watch(time, () => {
getData(); getData();
}); });
// watch(activeTabLeft, () => {
// getChangedRank(time.value, activeTabLeft.value).then((res) => {
// rankOverview.value = res.rankOverview;
// data1.value = res.changedRankList;
// });
// });
onMounted(() => { onMounted(() => {

694
src/views/datav/Sub1.vue

@ -1,17 +1,697 @@
<template> <template>
<el-scrollbar height="100vh"> <el-scrollbar height="100vh">
<div class="wrapper"> <div class="wrapper">
<datav-header /> <datav-header/>
<img src="/imgs/datav/sub1.png" alt="" class="relative pointer" @click="go"> <!-- <img src="/imgs/datav/sub1.png" alt="" class="relative pointer" @click="go">-->
</div> <main>
</el-scrollbar> <el-row :gutter="16">
<el-col :span="6">
<datav-card title="督察问题">
<datav-tabs
v-model="activeOrgTab"
type="bottom-button"
>
<datav-tab-item label="派出所" name="1">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="大队" name="2">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
<datav-card title="警务评议">
<datav-tabs
v-model="activeOrgTab"
type="bottom-button"
>
<datav-tab-item label="派出所" name="1">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="大队" name="2">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
</el-col>
<el-col :span="12">
<datav-date-picker v-model="time"/>
<div class="flex gap-42">
<datav-statistic
:value="22"
title="问题总数"
style="width: 20%"
/>
<datav-statistic
:value="22"
title="处理中"
style="width: 20%"
/>
<datav-statistic
:value="33"
title="涉及单位"
style="width: 20%"
/>
<datav-statistic
:value="44"
title="涉及人员"
style="width: 20%"
/>
<datav-statistic
:value="22"
title="办结率"
style="width: 20%"
/>
</div>
<v-charts
style="height: 360px"
:option="option"
autoresize
/>
<datav-card title="问题趋势">
<datav-tabs v-model="activeMailTrend" @change="handleTabChange">
<datav-tab-item label="督察问题趋势" name="1">
<v-charts
style="width: 105%; height: 300px;"
:option="option1"
autoresize
/>
</datav-tab-item>
<datav-tab-item label="案件核查趋势" name="2">
<v-charts
style="width: 105%; height: 300px;"
:option="option1"
autoresize
/>
</datav-tab-item>
<datav-tab-item label="警务评议趋势" name="3">
<v-charts
style="width: 105%; height: 300px;"
:option="option1"
autoresize
/>
</datav-tab-item>
<datav-tab-item label="信访投诉趋势" name="4">
<v-charts
style="width: 105%; height: 300px;"
:option="option1"
autoresize
/>
</datav-tab-item>
</datav-tabs>
</datav-card>
</el-col>
<el-col :span="6">
<datav-card title="局长信箱">
<datav-tabs
v-model="activeOrgTab"
type="bottom-button"
>
<datav-tab-item label="派出所" name="1">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="大队" name="2">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
<datav-card title="案件核查">
<datav-tabs
v-model="activeOrgTab"
type="bottom-button"
>
<datav-tab-item label="派出所" name="1">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="大队" name="2">
<el-row class="mb-32">
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
问题数
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
整改中
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22
</div>
<div class="descriptions_label">
已整改
</div>
</div>
</el-col>
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
22%
</div>
<div class="descriptions_label">
整改率
</div>
</div>
</el-col>
</el-row>
<el-scrollbar height="350px">
<datav-chart-bar
:size="small"
title="整改率排名"
sub-title="已整改/问题数"
unit="%"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
</el-col>
</el-row>
</main>
</div>
</el-scrollbar>
</template> </template>
<script setup> <script setup>
import vCharts from "vue-echarts";
import moment from "moment";
import * as echarts from "echarts/core";
const time = ref([
moment().startOf("year").format("YYYY-MM-DD"),
moment().format("YYYY-MM-DD"),
]); //
const router = useRouter() const router = useRouter()
import geoJson from "@/assets/data/浏阳市.json";
echarts.registerMap("浏阳市", geoJson);
const option = ref({
geo: {
map: "浏阳市",
},
tooltip: {
trigger: 'item',
formatter: function (params) {
// console.log(params);
// const dataItem = gobalTempMapVoList.value.find(item => item.name.includes(params.name.substring(0, 2)));
// if (dataItem) {
// return `
// <div class="tooltip">
// <div class="tooltip-title">${dataItem.originalName}</div>
// <div class="tooltip-content">
// <ul class="tooltip-ul" >
// <li> <span>${dataItem.totalPro}</span></li>
// <li> <span>${dataItem.supervisePro}</span></li>
// <li> <span>${dataItem.caseVerifyPro}</span></li>
// <li>访 <span>${dataItem.mailPro}</span></li>
// <li> <span>${dataItem.policePro}</span></li>
// <li> <span>${dataItem.reviewPro}</span></li>
// </ul>
// </div>
// </div>`;
// } else {
// return `
// <div class="tooltip">
// <div class="tooltip-title">${dataItem.originalName}</div>
// <div class="tooltip-content">
// <ul class="tooltip-ul"">
// <li> <span>0000</span></li>
// <li> <span>0000</span></li>
// <li> <span>0000</span></li>
// <li>访 <span>0000</span></li>
// <li> <span>0000</span></li>
// <li> <span>0000</span></li>
//
// </ul>
//
// </div>
// </div>`;
// }
},
},
visualMap: {
type: "piecewise",
bottom: 10,
pieces: [
{min: 0, max: 500, label: "问题数低于500", color: "#4987F6"},
{min: 501, max: 1000, label: "问题数介于500-1000", color: "#F6A149"},
{min: 1001, label: "问题数高于1000", color: "#D34343"},
],
right: 10,
realtime: false,
orient: "horizontal",
textStyle: {
color: "#fff",
},
calculable: true,
},
series: [
{
type: "map",
map: "浏阳市",
hoverAnimation: true,
label: {
show: true,
color: "white",
},
itemStyle: {
normal: {
areaColor: "#02215E",
borderColor: "#1773c3",
},
},
emphasis: {
areaColor: "#FFD700", //
borderColor: "#FF0000", //
borderWidth: 4 //
},
data: []
}
],
})
const option1 = ref({
xAxis: {
type: "category",
boundaryGap: false,
data: [],
},
yAxis: {
type: "value",
splitLine: {
show: true,
lineStyle: {
color: "#193775",
},
}
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line',
label: {
backgroundColor: '#6a7985'
}
}
},
series: [
{
type: "line",
smooth: true,
label: {
show: false
},
lineStyle: {
color: "#28E6FF",
width: 4,
},
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: "rgba(40,230,255,0.47)", //
},
{
offset: 1,
color: "rgba(40,230,255,0)", //
},
]),
},
data: [],
},
],
});
function go() { function go() {
router.push('/datav/sub2') router.push('/datav/sub2')
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/style/datav.scss"; @import "@/style/datav.scss";
</style> </style>

514
src/views/datav/VideoInsp.vue

@ -42,44 +42,58 @@
</el-col> </el-col>
</el-row> </el-row>
</datav-card> </datav-card>
<datav-card title="问题数排名" style="height: 370px;"> <datav-card title="问题数排名" sub-title="问题数" style="height: 370px;">
<datav-chart-bar <datav-tabs
sub-title="问题数" type="bottom-button"
:data="data1" >
:max="11" <datav-tab-item label="分县市局" name="1">
:color="colors" <el-scrollbar height="280px">
/> <datav-chart-bar
:data="fxsjRankList"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="局属单位" name="2">
<el-scrollbar height="280px">
<datav-chart-bar
:data="jsdwRankList"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card> </datav-card>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<div class="datav-col"> <datav-date-picker v-model="time"/>
<label for="">统计周期</label>
<span>2024年01月01日 - 2024年08月30日</span>
</div>
<div class="flex gap-42"> <div class="flex gap-42">
<datav-statistic <datav-statistic
:value="temp.tempPro" :value="overview.discoverProblem"
title="发现问题数" title="发现问题数"
style="width: 20%" style="width: 20%"
/> />
<datav-statistic <datav-statistic
:value="temp.tempChangePro" :value="overview.changedProblem"
title="整改问题数" title="整改问题数"
style="width: 20%" style="width: 20%"
/> />
<datav-statistic <datav-statistic
:value="temp.tempRelationOrg" :value="overview.relativeOrg"
title="涉及单位数" title="涉及单位数"
style="width: 20%" style="width: 20%"
/> />
<datav-statistic <datav-statistic
:value="temp.tempRelationPre" :value="overview.relativePer"
title="涉及人数" title="涉及人数"
style="width: 20%" style="width: 20%"
/> />
<datav-statistic <datav-statistic
:value="temp.tempChangeRate" :value="overview.changedRate"
value-unit="%" value-unit="%"
title="整改率" title="整改率"
style="width: 20%" style="width: 20%"
@ -93,11 +107,25 @@
<datav-card title="问题趋势"> <datav-card title="问题趋势">
<v-charts <v-charts
style="height: 250px" style="height: 250px"
:option="option1" :option="proTrend"
autoresize autoresize
/> />
<div class="gobal-dropdown-container">
<el-dropdown class="test" @command="handleCommand">
<span class="el-dropdown-link my-gobal-yearselect">
{{ selectedYear + ' 年'}}
</span>
<template #dropdown>
<el-dropdown-menu style="width: 90px">
<el-dropdown-item v-for="year in years" :key="year" :command="year">{{ year + " " }}
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
</div>
</datav-card> </datav-card>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<datav-card title="实时预警"> <datav-card title="实时预警">
<el-scrollbar height="450px"> <el-scrollbar height="450px">
@ -146,7 +174,7 @@
<datav-card title="问题类型占比"> <datav-card title="问题类型占比">
<v-charts <v-charts
style="height: 300px" style="height: 300px"
:option="option2" :option="ProblemTypeRateChart"
autoresize autoresize
/> />
</datav-card> </datav-card>
@ -156,96 +184,208 @@
</div> </div>
</el-scrollbar> </el-scrollbar>
</template> </template>
<script setup> <script setup>
import changshaMap from "@/assets/data/changsha.json"; import changshaMap from "@/assets/data/changsha.json";
import vCharts from "vue-echarts"; import vCharts from "vue-echarts";
import * as echarts from "echarts/core"; import * as echarts from "echarts/core";
import {
getAllVideoSuperviseCount,
getVideoSuperviseProblemTypeRate,
getVideoSuperviseProblemRank, getVideoSuperviseMap, getVideoSuperviseTrend
} from "@/api/screen/videoSupervise.ts";
import moment from "moment/moment.js";
const time = ref([
moment().startOf("year").format("YYYY-MM-DD"),
moment().format("YYYY-MM-DD"),
]);
const fxsjRankList = ref([]);
const jsdwRankList = ref([]);
const overview = ref({
discoverProblem: 0,
changedProblem: 0,
relativeOrg: 0,
relativePer: 0,
changedRate: 0,
});
const mapIconList = ref([{
originalName:"浏阳市局",
name: "浏阳市",
discoverProblem: 135,
changedProblem: 135,
relativeOrg: 89,
relativePer: 152,
changedRate: 100
}])
const ProblemTypeRate = ref([])
const currentYear = new Date().getFullYear();
const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); //
const selectedYear = ref('2024'); //
// region
const getOverview = async (timeValue) => {
const res = await getAllVideoSuperviseCount(timeValue);
overview.value = res.overview;
}
const getMap = async (timeValue) => {
const res = await getVideoSuperviseMap(timeValue);
console.log(res.videoSuperviseMapIconVoList)
const mappedData = res.videoSuperviseMapIconVoList.map(item => {
let name;
switch (item.name) {
case '长沙县局':
name = '长沙县';
break;
case '芙蓉分局':
name = '芙蓉区';
break;
case '天心分局':
name = '天心区';
break;
case '岳麓分局':
name = '岳麓区';
break;
case '开福分局':
name = '开福区';
break;
case '雨花分局':
name = '雨花区';
break;
case '望城分局':
name = '望城区';
break;
case '宁乡市局':
name = '宁乡市';
break;
case '浏阳市局':
name = '浏阳市';
break;
case '高新分局':
name = '高新区';
break;
default:
name = item.name;
break;
}
return {
...item,
originalName: item.name, //
name: name,
value: item.discoverProblem,
};
});
mapIconList.value = mappedData
console.log(mapIconList.value)
}
const temp =ref({
tempPro: 0, const getProblemTypeRate = async (timeValue) => {
tempChangePro: 0, const res = await getVideoSuperviseProblemTypeRate(timeValue);
tempRelationOrg: 0, ProblemTypeRate.value = res.videoSuperviseProblemTypeRate
tempRelationPre: 0, }
tempChangeRate: 0
const getRankList = async (timeValue) => {
const res = await getVideoSuperviseProblemRank(timeValue);
fxsjRankList.value = res.fxsjVideoSuperviseProblemRankList
jsdwRankList.value = res.jsdwVideoSuperviseProblemRankList
}
const getTrend = async(year)=> {
const res = await getVideoSuperviseTrend(year);
const temp = res.videoSuperviseTrendList;
const categories = temp.map(item => item.name);
const values = temp.map(item => item.value);
proTrend.value.xAxis.data = categories;
proTrend.value.series[0].data = values;
}
const getData = async () => {
getOverview(time.value);
getProblemTypeRate(time.value);
getRankList(time.value)
getMap(time.value)
getTrend(selectedYear.value)
}
// endregion
// region
watch(time, () => {
getData()
}) })
setTimeout(() => { onMounted(() => {
temp.value = { getData()
tempPro: 135, })
tempChangePro: 135, const handleCommand = (year) => {
tempRelationOrg: 89, selectedYear.value = year; //
tempRelationPre: 152, getTrend(selectedYear.value)
tempChangeRate: 100 };
} // endregion
}, 1000);
// region
const proTrend = ref({
xAxis: {
type: "category",
boundaryGap: true,
data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月",],
axisTick: {
// X线
show: false
},
},
yAxis: {
type: "value",
splitLine: {
show: true,
lineStyle: {
color: "#193775",
},
},
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line',
label: {
backgroundColor: '#6a7985'
}
}
},
series: [
{
type: "line",
smooth: true,
lineStyle: {
color: "#28E6FF",
width: 4,
},
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: "rgba(40,230,255,0.47)", //
},
{
offset: 1,
color: "rgba(40,230,255,0)", //
},
]),
},
data: [12, 16, 14, 11, 6, 13, 8, 17, 16, 10, 12],
},
],
grid: {
left: '5%', //
right: '2%', //
top: '10%', //
bottom: '20%', //
containLabel: false //
},
});
echarts.registerMap("changsha", changshaMap); echarts.registerMap("changsha", changshaMap);
let gobalTempMapVoList = [
{
"name": "芙蓉分局",
"total": 25,
"changedPro": 25,
"relationOrg": 15,
"relationPre": 27,
"changeRate": 100
}, {
"name": "天心分局",
"total": 5,
"changedPro": 5,
"relationOrg": 5,
"relationPre": 7,
"changeRate": 100
}, {
"name": "岳麓分局",
"total": 22,
"changedPro": 22,
"relationOrg": 12,
"relationPre": 25,
"changeRate": 100
}, {
"name": "开福分局",
"total": 30,
"changedPro": 30,
"relationOrg": 16,
"relationPre": 32,
"changeRate": 100
}, {
"name": "雨花分局",
"total": 18,
"changedPro": 18,
"relationOrg": 12,
"relationPre": 16,
"changeRate": 100
}, {
"name": "望城分局",
"total": 15,
"changedPro": 15,
"relationOrg": 10,
"relationPre": 15,
"changeRate": 100
}, {
"name": "浏阳市局",
"total": 13,
"changedPro": 13,
"relationOrg": 11,
"relationPre": 15,
"changeRate": 100
}, {
"name": "宁乡市局",
"total": 11,
"changedPro": 11,
"relationOrg": 9,
"relationPre": 13,
"changeRate": 100
}, {
"name": "长沙县局",
"total": 6,
"changedPro": 6,
"relationOrg": 8,
"relationPre": 9,
"changeRate": 100
}
];
const option = ref({ const option = ref({
geo: { geo: {
map: "changsha", map: "changsha",
@ -254,19 +394,18 @@ const option = ref({
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: function (params) { formatter: function (params) {
console.log(params) const dataItem = mapIconList.value.find(item => item.name.includes(params.name.substring(0, 2)));
const dataItem = gobalTempMapVoList.find(item => item.name.includes(params.name.substring(0, 2)));
if (dataItem) { if (dataItem) {
return ` return `
<div class="tooltip"> <div class="tooltip">
<div class="tooltip-title">${dataItem.name}</div> <div class="tooltip-title">${dataItem.originalName}</div>
<div class="tooltip-content"> <div class="tooltip-content">
<ul class="tooltip-ul" > <ul class="tooltip-ul" >
<li>发现问题数 <span>${dataItem.total}</span></li> <li>发现问题数 <span>${dataItem.discoverProblem}</span></li>
<li>整改问题数 <span>${dataItem.changedPro}</span></li> <li>整改问题数 <span>${dataItem.changedProblem}</span></li>
<li>涉及单位数 <span>${dataItem.relationOrg}</span></li> <li>涉及单位数 <span>${dataItem.relativeOrg}</span></li>
<li>涉及人数 <span>${dataItem.relationPre}</span></li> <li>涉及人数 <span>${dataItem.relativePer}</span></li>
<li>整改率 <span>${dataItem.changeRate}%</span></li> <li>整改率 <span>${dataItem.changedRate}%</span></li>
</ul> </ul>
</div> </div>
</div>`; </div>`;
@ -275,11 +414,11 @@ const option = ref({
<div class="tooltip-title">${params.name}</div> <div class="tooltip-title">${params.name}</div>
<div class="tooltip-content"> <div class="tooltip-content">
<ul class="tooltip-ul""> <ul class="tooltip-ul"">
<li>信访总件 <span>0</span></li> <li>发现问题 <span>0</span></li>
<li>国家信访 <span>0</span></li> <li>整改问题数 <span>0</span></li>
<li>公安部信访 <span>0</span></li> <li>涉及单位数 <span>0</span></li>
<li>涉及人数 <span>0</span></li>
<li>12337信访 <span>0</span></li> <li>整改率 <span>0%</span></li>
</ul> </ul>
</div> </div>
</div>`; </div>`;
@ -288,13 +427,12 @@ const option = ref({
}, },
visualMap: { visualMap: {
type: "piecewise", type: "piecewise",
bottom: 10, bottom: 10,
pieces: [ pieces: [
{gte: 0, lte: 10, label: "问题数低于500"}, {gte: 0, lte: 500, label: "问题数低于500"},
{gte: 10, lte: 20, label: "问题数介于500-1000"}, {gte: 501, lte: 1000, label: "问题数介于500-1000"},
{gte: 30, label: "问题数高于1000"}, {gte: 1001, label: "问题数高于1000"},
], ],
right: 10, right: 10,
realtime: false, realtime: false,
@ -328,65 +466,11 @@ const option = ref({
borderColor: "#FF0000", // borderColor: "#FF0000", //
borderWidth: 4 // borderWidth: 4 //
}, },
data: gobalTempMapVoList.map(item => ({ data: mapIconList
name: item.name,
value: item.totalPro // totalPro value
}))
} }
], ],
}) })
const ProblemTypeRateChart = ref({
const option1 = ref({
xAxis: {
type: "category",
boundaryGap: false,
data: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月",],
},
yAxis: {
type: "value",
splitLine: {
show: true,
lineStyle: {
color: "#193775",
},
},
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'line',
label: {
backgroundColor: '#6a7985'
}
}
},
series: [
{
type: "line",
smooth: true,
lineStyle: {
color: "#28E6FF",
width: 4,
},
areaStyle: {
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{
offset: 0,
color: "rgba(40,230,255,0.47)", //
},
{
offset: 1,
color: "rgba(40,230,255,0)", //
},
]),
},
data: [12, 16, 14, 11, 6, 13, 8, 17, 16, 10, 12],
},
],
});
const option2 = {
series: [ series: [
{ {
type: "pie", type: "pie",
@ -394,61 +478,14 @@ const option2 = {
label: { label: {
color: "#fff", color: "#fff",
}, },
data: [ data: ProblemTypeRate.value,
{value: 40, name: "着装不规范"},
{value: 25, name: "看守人员睡岗"},
{value: 30, name: "工作人员玩手机"},
{value: 30, name: "单人问询"},
{value: 10, name: "民警不在岗"},
],
}, },
], ],
tooltip: { tooltip: {
trigger: "item", trigger: "item",
}, },
}; }); //
// endregion
const data1 = [
{
label: "开福分局",
value: 30
},
{
label: "芙蓉分局",
value: 25
},
{
label: "岳麓分局",
value: 22
},
{
label: "雨花分局",
value: 18
},
{
label: "望城分局",
value: 15
},
{
label: "浏阳分局",
value: 13
},
{
label: "宁乡分局",
value: 11
},
{
label: "长沙县局",
value: 6
},
{
label: "天心分局",
value: 5
},
];
const colors = [ const colors = [
@ -466,6 +503,8 @@ const colors = [
}, },
]; ];
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/style/datav.scss"; @import "@/style/datav.scss";
@ -621,4 +660,33 @@ img {
} }
.gobal-dropdown-container {
position: absolute;
right: 20px;
top: 15px;
}
.test {
width: 95px;
height: 25px;
background: #1C3472;
}
.gobal-dropdown-container {
position: absolute;
right: 20px;
top: 15px;
}
.my-gobal-yearselect {
font-size: 14px;
padding-top: 6px;
padding-left: 20px;
width: 90px;
color: #fff;
}
</style> </style>
Loading…
Cancel
Save