Browse Source

案件核查二级大屏

main
不爱学习的石同学 12 months ago
parent
commit
c1b750cb47
  1. 33
      src/api/screen/subScreen/subOneCaseVerif.ts
  2. 62
      src/api/screen/subScreen/subOneSupervisionNotify.ts
  3. 0
      src/api/screen/subScreen/subOneVideoSupervise.ts
  4. 108
      src/api/screen/subScreen/supervisionNotify.ts
  5. 4
      src/router/routes.ts
  6. 58
      src/views/datav/CaseVerif.vue
  7. 10
      src/views/datav/MailVisits.vue
  8. 2
      src/views/datav/Sub1.vue
  9. 735
      src/views/datav/subonedatav/SubOneCaseVerif.vue
  10. 181
      src/views/datav/subonedatav/SubOneSceneInsp.vue
  11. 2
      src/views/datav/subonedatav/SubOneVideoInsp.vue

33
src/api/screen/subScreen/subOneCaseVerif.ts

@ -0,0 +1,33 @@
import request from "@/api/request";
export function getSubOneCaseVerificationRank(departId, times) {
return request.get({
url: `/datav/sub1/caseVerif/getSubOneCaseVerificationRank?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneCaseProblemProperty(departId, times) {
return request.get({
url: `/datav/sub1/caseVerif/getSubOneCaseProblemProperty?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneAllCaseVerificationCount(departId, times) {
return request.get({
url: `/datav/sub1/caseVerif/getSubOneAllCaseVerificationCount?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneCaseVerificationTrend(departId, year) {
return request.get({
url: `/datav/sub1/caseVerif/getSubOneCaseVerificationTrend?departId=${departId}&year=${year}`
});
}
export function getSubOneCaseSourceRateAndDealSituation(departId, times) {
return request.get({
url: `/datav/sub1/caseVerif/getSubOneCaseSourceRateAndDealSituation?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}

62
src/api/screen/subScreen/subOneSupervisionNotify.ts

@ -0,0 +1,62 @@
import request from "@/api/request";
export function getSubOneChangedRank(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneChangedRank?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneProblemTypeRate(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneProblemTypeRate?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneSupervisionTrend(departId, year) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionTrend?departId=${departId}&year=${year}`
});
}
export function getAllSubOneSupervisionNotifyCount(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getAllSubOneSupervisionNotifyCount?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneYellowBetDrug(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneYellowBetDrug?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneGunController(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneGunController?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneCompanyProblem(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneCompanyProblem?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneHandleCase(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneHandleCase?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneCheckBeer(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneCheckBeer?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
// export

0
src/api/screen/subScreen/videoSupervise.ts → src/api/screen/subScreen/subOneVideoSupervise.ts

108
src/api/screen/subScreen/supervisionNotify.ts

@ -1,108 +0,0 @@
import request from "@/api/request";
export function getSubOneChangedRank(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneChangedRank?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneProblemTypeRate(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneProblemTypeRate?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneSupervisionTrend(departId, year) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionTrend?departId=${departId}&year=${year}`
});
}
// export function getAllSupervisionNotifyCount(times) {
// return request.get({
// url: `/datav/supervisonNotify?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
// /**
// * 问题类型占比
// */
// export function getProblemTypeRate(times) {
// return request.get({
// url: `/datav/supervisonNotify/getProblemTypeRate?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
//
//
//
// export function getChangedRank(times, groupType) {
// return request.get({
// url: `/datav/supervisonNotify/rank?beginTime=${times[0]}&endTime=${times[1]}&groupType=${groupType}`
// });
// }
// /**
// * 获取问题趋势数据
// */
// export function getSupervisionTrend(year) {
// return request.get({
// url: `/datav/supervisonNotify/getSupervisionTrend?year=${year}`
// });
// }
//
//
//
// /**
// * 获取地图数据
// */
// export function getMap(times) {
// return request.get({
// url: `/datav/supervisonNotify/getMap?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
//
//
// /**
// * 黄赌毒数据
// */
// export function getYellowBetDrug(times) {
// return request.get({
// url: `/datav/supervisonNotify/getYellowBetDrug?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
//
// // 枪支管理数据
// export function getGunController(times) {
// return request.get({
// url: `/datav/supervisonNotify/getGunController?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
//
// // 枪支管理数据
// export function getCompanyProblem(times) {
// return request.get({
// url: `/datav/supervisonNotify/getCompanyProblem?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
//
// // 执法办案数据
// export function getHandleCase(times) {
// return request.get({
// url: `/datav/supervisonNotify/getHandleCase?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }
//
//
// // 枪支管理数据
// export function getCheckBeer(times) {
// return request.get({
// url: `/datav/supervisonNotify/getCheckBeer?beginTime=${times[0]}&endTime=${times[1]}`
// });
// }

4
src/router/routes.ts

@ -78,6 +78,10 @@ export const routes = [
path: '/401', path: '/401',
component: () => import('@/views/error/401.vue'), component: () => import('@/views/error/401.vue'),
}, },
{
path: '/datav/subOneCaseVerif',
component: () => import('@/views/datav/subonedatav/SubOneCaseVerif.vue'),
},
]; ];

58
src/views/datav/CaseVerif.vue

@ -48,7 +48,7 @@
<datav-tab-item label="警纪警规" name="3"> <datav-tab-item label="警纪警规" name="3">
<v-charts <v-charts
style="height: 320px" style="height: 320px"
:option="fwglPieOption" :option="jgjjPieOption"
autoresize autoresize
/> />
</datav-tab-item> </datav-tab-item>
@ -94,6 +94,7 @@
style="height: 420px" style="height: 420px"
:option="option" :option="option"
autoresize autoresize
@click="handleClick"
/> />
<datav-card title="查处问题趋势"> <datav-card title="查处问题趋势">
<v-charts <v-charts
@ -187,7 +188,7 @@ const time = ref([
const fxsjBarList = ref([]); const fxsjBarList = ref([]);
const jsdwBarList = ref([]); const jsdwBarList = ref([]);
const router = useRouter();
const overview = ref({ const overview = ref({
total: 0, total: 0,
confirmed: 0, // confirmed: 0, //
@ -304,7 +305,7 @@ const getCaseSourceAndDeal = async (timeValue)=>{
const getConfinementAndPauseList = async (timeValue)=>{ const getConfinementAndPauseList = async (timeValue)=>{
const res = await getConfinementAndPause(timeValue); const res = await getConfinementAndPause(timeValue);
jbcloption.value.series[0].data = res.jbclList; jbcloption.value.series[0].data = res.jbclList;
dzcloption.value.series[0].data = res.dzclList; tzcloption.value.series[0].data = res.dzclList;
} }
// endregion // endregion
@ -329,23 +330,6 @@ onMounted(() => {
const jjjgPieOption = computed(() => {
return {
tooltip: {
trigger: "item",
},
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: jjjgPieList.value,
},
],
};
});
@ -498,8 +482,7 @@ const proTrend = ref({
data: [], data: [],
}, },
], ],
}); }); //
const ajlyPieOption = ref({ const ajlyPieOption = ref({
series: [ series: [
{ {
@ -560,7 +543,21 @@ const fwglPieOption = ref({
trigger: "item", trigger: "item",
}, },
}); });
const jgjjPieOption = ref({
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [],
},
],
tooltip: {
trigger: "item",
},
});
const jbcloption = ref({ const jbcloption = ref({
tooltip: { tooltip: {
trigger: "item", trigger: "item",
@ -612,6 +609,19 @@ const tzcloption = ref({
], ],
}); });
const handleClick = (params) => {
const departId = params.data.departId;
const url = router.resolve({
path: "/datav/subOneCaseVerif",
query: {departId: departId},
}).href;
window.open(url, "_blank");
}
const colors = [ const colors = [
{ {
color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)", color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)",
@ -627,6 +637,8 @@ const colors = [
}, },
]; ];
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

10
src/views/datav/MailVisits.vue

@ -173,7 +173,7 @@
<datav-tab-item label="国家信访" name="1"> <datav-tab-item label="国家信访" name="1">
<v-charts <v-charts
style="width: 105%; height: 300px;" style="width: 105%; height: 300px;"
:option="policeTrend" :option="countryTrend"
autoresize autoresize
/> />
</datav-tab-item> </datav-tab-item>
@ -184,15 +184,13 @@
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; "
:option="policeTrend" :option="numberTrend"
autoresize autoresize
/> />
</datav-tab-item> </datav-tab-item>
</datav-tabs> </datav-tabs>
<div class="gobal-dropdown-container"> <div class="gobal-dropdown-container">
<el-dropdown class="test" @command="handleCommand"> <el-dropdown class="test" @command="handleCommand">
@ -382,8 +380,6 @@ const fxsjLeaderViewMailList = ref([]); // 分局领导接访
const bwzdFirstMailList = ref([]); // const bwzdFirstMailList = ref([]); //
const bwzdRepeatMailList = ref([]); // 访 const bwzdRepeatMailList = ref([]); // 访
const bwzdLeaderViewMailList = ref([]); // 访 const bwzdLeaderViewMailList = ref([]); // 访
const mailEntanglementMassOverview = ref({ const mailEntanglementMassOverview = ref({
entanglement: 0, entanglement: 0,
mass: 0, mass: 0,
@ -392,7 +388,6 @@ const mailEntanglementMassOverview = ref({
const fxsjLeaderReviewMailList = ref([]); // const fxsjLeaderReviewMailList = ref([]); //
const fxsjEntanglementMailList = ref([]); // const fxsjEntanglementMailList = ref([]); //
const fxsjMassMailList = ref([]); // 访 const fxsjMassMailList = ref([]); // 访
const bwzdLeaderReviewMailList = ref([]); // const bwzdLeaderReviewMailList = ref([]); //
const bwzdEntanglementMailList = ref([]); // const bwzdEntanglementMailList = ref([]); //
const bwzdMassMailList = ref([]); // 访 const bwzdMassMailList = ref([]); // 访
@ -990,7 +985,6 @@ onMounted(() => {
// }, 3000); // 3 // }, 3000); // 3
}); });
const colors = [ const colors = [
{ {
color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)", color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)",

2
src/views/datav/Sub1.vue

@ -532,11 +532,11 @@ import changshaMap from "@/assets/data/changsha.json";
const router = useRouter() const router = useRouter()
const route = useRoute(); const route = useRoute();
const currentDepartId = route.query.departId;
const time = ref([ const time = ref([
moment().startOf("year").format("YYYY-MM-DD"), moment().startOf("year").format("YYYY-MM-DD"),
moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD"),
]); // ]); //
const currentDepartId = route.query.departId;
const currentMapData = ref({}) const currentMapData = ref({})
const chart = ref(null); // const chart = ref(null); //
const currentYear = new Date().getFullYear(); // const currentYear = new Date().getFullYear(); //

735
src/views/datav/subonedatav/SubOneCaseVerif.vue

@ -0,0 +1,735 @@
<template>
<el-scrollbar height="100vh">
<div class="wrapper">
<datav-header/>
<main>
<el-row :gutter="16">
<el-col :span="6">
<datav-card title="所队排名" subTitle="查实案件数">
<datav-tabs
type="bottom-button"
>
<datav-tab-item label="派出所" name="1">
<el-scrollbar height="350px">
<datav-chart-bar
:data="fxsjBarList"
size="large"
:color="colors"
/>
</el-scrollbar>
</datav-tab-item>
<datav-tab-item label="大队" name="2">
<el-scrollbar height="350px">
<datav-chart-bar
:data="jsdwBarList"
:max="11"
size="large"
/>
</el-scrollbar>
</datav-tab-item>
</datav-tabs>
</datav-card>
<datav-card title="案件问题性质">
<datav-tabs>
<datav-tab-item label="执法办案" name="1">
<v-charts
style="height: 320px"
:option="zfbaPieOption"
autoresize
/>
</datav-tab-item>
<datav-tab-item label="服务管理" name="2">
<v-charts
style="height: 320px"
:option="fwglPieOption"
autoresize
/>
</datav-tab-item>
<datav-tab-item label="警纪警规" name="3">
<v-charts
style="height: 320px"
:option="jgjjPieOption"
autoresize
/>
</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="overview.total"
title="案件总数(起)"
style="width: 16.66%"
/>
<datav-statistic
:value="overview.confirmed"
title="查实案件数"
style="width: 16.66%"
/>
<datav-statistic
:value="overview.dealCasePro"
title="查处问题(个)"
style="width: 16.66%"
/>
<datav-statistic
:value="overview.punishPre"
title="问责人次"
style="width: 16.66%"
/>
<datav-statistic
:value="overview.punishOrg"
title="问责单位数"
style="width: 16.66%"
/>
<datav-statistic
:value="overview.rate"
value-unit="%"
title="查实率"
style="width: 16.66%"
/>
</div>
<v-charts
style="height: 420px"
:option="option"
autoresize
ref="chart"
/>
<datav-card title="查实问题趋势">
<v-charts
style="height: 320px"
:option="proTrend"
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>
</el-col>
<el-col :span="6">
<datav-card>
<datav-tabs>
<datav-tab-item label="案件来源占比" name="1">
<div class="mb-40">
<v-charts
style="height: 340px"
:option="ajlyPieOption"
autoresize
/>
</div>
</datav-tab-item>
<datav-tab-item label="问责处理情况" name="2">
<div class="mb-40">
<v-charts
style="height: 340px"
:option="wzclPieOption"
autoresize
/>
</div>
</datav-tab-item>
</datav-tabs>
</datav-card>
<datav-card>
<datav-tabs>
<datav-tab-item label="禁闭处理情况" name="1">
<div class="mb-40">
<v-charts
style="height: 340px"
:option="jbcloption"
autoresize
/>
</div>
</datav-tab-item>
<datav-tab-item label="停职处理情况" name="2">
<div class="mb-40">
<v-charts
style="height: 340px"
:option="tzcloption"
autoresize
/>
</div>
</datav-tab-item>
</datav-tabs>
</datav-card>
</el-col>
</el-row>
</main>
</div>
</el-scrollbar>
</template>
<script setup>
import vCharts from "vue-echarts";
import changshaMap from "@/assets/data/changsha.json";
import * as echarts from "echarts/core";
import moment from "moment";
import {getCaseVerificationMap } from "@/api/screen/CaseVerif.ts";
import {getSubOneStreetMap} from "@/api/screen/sub1.ts";
import {
getSubOneAllCaseVerificationCount,
getSubOneCaseProblemProperty, getSubOneCaseSourceRateAndDealSituation,
getSubOneCaseVerificationRank, getSubOneCaseVerificationTrend
} from "@/api/screen/subScreen/subOneCaseVerif.ts";
const currentYear = new Date().getFullYear();
const years = ref([currentYear.toString(), (currentYear - 1).toString(), (currentYear - 2).toString()]); //
const selectedYear = ref(currentYear); //
const time = ref([
moment().startOf("year").format("YYYY-MM-DD"),
moment().format("YYYY-MM-DD"),
]);
const route = useRoute();
const currentDepartId = route.query.departId;
const chart = ref(null); //
const currentMapData = ref({}) //
const fxsjBarList = ref([]);
const jsdwBarList = ref([]);
const overview = ref({
total: 0,
confirmed: 0, //
dealCasePro: 0, //
punishPre: 0, //
punishOrg: 0, //
rate: 0, //
});
let gobalTempMapVoList = ref([]);
// region ||
const handleCommand = ( year) => {
selectedYear.value = year; //
getProTrendList(currentDepartId,year);
};
watch(time, () => {
getData();
});
onMounted(() => {
getData();
});
// endregion
// region
const getMapJSON = async (departId) => {
const res = await getSubOneStreetMap(departId);
currentMapData.value = res;
echarts.registerMap("changsha", res);
chart.value.chart.setOption(option.value);
}
const getRankListData = async(departId, timeValue) => {
const res = await getSubOneCaseVerificationRank(departId, timeValue);
fxsjBarList.value = res.fxsjRankList
jsdwBarList.value = res.jsdwRankList
}
const getCaseProblemPropertyList = async(departId, timeValue) => {
const res = await getSubOneCaseProblemProperty(departId,timeValue);
zfbaPieOption.value.series[0].data = res.zfbaPieList;
fwglPieOption.value.series[0].data = res.fwglPieList;
}
const getOverview = async(departId, timeValue)=>{
const res = await getSubOneAllCaseVerificationCount(departId, timeValue)
overview.value = res.overview
}
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
// const total = mappedData.reduce((sum, item) => sum + Number(item.value), 0);
// const avg = total / mappedData.length; //
// const range30Percent = avg*0.3 //
// option.value.series[0].data = mappedData;
// option.value.visualMap.pieces = [
// {gte: 0, lte: avg - range30Percent, label: "30%", color: "#4987F6"},
// {gte: avg - range30Percent, lte: avg + range30Percent+0.1, label: "30%", color: "#F6A149"},
// {gte: avg + range30Percent, label: "30%", color: "#D34343"},
// ];
}
const getProTrendList= async(departId, year) => {
const res = await getSubOneCaseVerificationTrend(departId, 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 (departId, timeValue)=>{
const res = await getSubOneCaseSourceRateAndDealSituation(departId, 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;
// tzcloption.value.series[0].data = res.dzclList;
// }
function getData() {
getMapJSON(currentDepartId)
getRankListData(currentDepartId,time.value)
getCaseProblemPropertyList(currentDepartId,time.value)
getOverview(currentDepartId,time.value)
getProTrendList(currentDepartId,currentYear)
getCaseSourceAndDeal(currentDepartId,time.value)
}
// endregion
echarts.registerMap("changsha", changshaMap);
const option = ref({
geo: {
// registerMap''
map: "changsha",
},
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.total}</span></li>
<li>查实案件数 <span>${dataItem.confirmed}</span></li>
<li>查处问题 <span>${dataItem.dealCasePro}</span></li>
<li>问责人次 <span>${dataItem.punishPre}</span></li>
<li>问责单位数 <span>${dataItem.punishOrg}</span></li>
<li>查实率 <span>${dataItem.rate}</span></li>
</ul>
</div>
</div>`;
} else {
return `<div class="tooltip">
<div class="tooltip-title">${params.name}</div>
<div class="tooltip-content">
<ul class="tooltip-ul"">
<li>案件总数 <span>-</span></li>
<li>查实案件数 <span>-</span></li>
<li>查处问题 <span>-</span></li>
<li>问责人次 <span>-</span></li>
<li>问责单位数 <span>-</span></li>
<li>查实率 <span>-</span></li>
</ul>
</div>
</div>`;
}
},
// backgroundColor: "#031577", //
// borderColor: "#0A2F86",
// borderWidth: 0, // 1
// borderRadius: 3, // 3
// shadowBlur: 0, // 8
// shadowOffsetX: 0, // 0
// shadowOffsetY: 0, // 6
},
visualMap: {
type: "piecewise",
bottom: 10,
pieces: [
{gte: 0, lte: 200, label: "低于平均问题30%", color: "#4987F6"},
{gte: 200, lte: 400, label: "平均问题上下浮动30%内", color: "#F6A149"},
{gte: 400, label: "高于平均问题30%", color: "#D34343"},],
right: 10, //
realtime: false,
orient: "horizontal", //
textStyle: {
color: "#fff", //
},
calculable: true,
inRange: {
color: ["#4987F6","#F6A149", "#D34343" ],
},
},
series: [
{
name: "长沙",
type: "map",
map: "changsha",
hoverAnimation: true,
label: {
show: true,
color: "white",
},
itemStyle: {
areaColor: "#02215E", //
borderColor: "#24D2EE",
borderWidth: 1 //
},
data: [],
},
],
});
const proTrend = ref({
grid: {
left: '5%', //
right: '2%', //
top: '10%', //
bottom: '20%', //
containLabel: false //
},
xAxis: {
type: "category",
boundaryGap: true,
axisTick: {
// X线
show: false
},
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月'],
},
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: [],
},
],
});
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 jgjjPieOption = ref({
series: [
{
type: "pie",
radius: ["40%", "70%"],
label: {
color: "#fff",
},
data: [],
},
],
tooltip: {
trigger: "item",
},
});
const jbcloption = 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 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 = [
{
color: "linear-gradient( 270deg, #FB002D 0%, #822232 100%)",
percentage: 80,
},
{
color: "linear-gradient( 270deg, #FFB90E 0%, #71501D 100%)",
percentage: 60,
},
{
color: "linear-gradient( 270deg, #63E700 0%, #19674C 100%)",
percentage: 40,
},
];
</script>
<style lang="scss" scoped>
@import "@/style/datav.scss";
:deep() {
//
.tooltip {
position: relative;
width: 160px;
height: 194px;
background: linear-gradient(180deg, rgba(1, 4, 87, 0.8) 0%, rgba(3, 21, 119, 0.8) 100%);
border: 1px solid #4E8FFF;
margin: -10px -10px -10px -10px;
}
////
.tooltip-title {
width: 160px;
height: 43px;
background: linear-gradient(180deg, #0A2F86 0%, #04154E 100%);
box-shadow: inset 0px -1px 0px 0px #253755;
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
font-weight: 400;
font-size: 16px;
color: #FFFFFF;
border-bottom: 1px solid #253755; /* 设置下边框 */
}
.tooltip-content {
width: 160px;
height: 150px;
background: linear-gradient(180deg, #010457 0%, #031577 100%)
}
.tooltip-content ul {
list-style-type: none; /* 移除默认的小圆点 */
padding-left: 5px;
margin: 0;
}
.tooltip-content ul li {
height: 24px;
color: #597AE9;
font-weight: 400;
font-size: 14px;
}
//// span
.tooltip-ul span {
float: right;
width: 55px;
color: #fff;
font-size: 14px;
text-align: center; /* 水平居中 */
}
///* */
//.tooltip::before {
// content: '';
// position: absolute;
// top: 90px; /* */
// left: -10px; /* */
// width: 0;
// height: 0;
// //border-top: 10px solid red; /* */
// //border-bottom: 10px solid green; /* */
// //border-right: 10px solid blue; /* */
//}
}
.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>

181
src/views/datav/subonedatav/SubOneSceneInsp.vue

@ -790,10 +790,12 @@ import moment from "moment";
import {getSubOneStreetMap} from "@/api/screen/sub1.ts"; import {getSubOneStreetMap} from "@/api/screen/sub1.ts";
import { import {
getSubOneChangedRank, getAllSubOneSupervisionNotifyCount,
getSubOneChangedRank, getSubOneCheckBeer, getSubOneCompanyProblem, getSubOneGunController, getSubOneHandleCase,
getSubOneProblemTypeRate, getSubOneProblemTypeRate,
getSubOneSupervisionTrend getSubOneSupervisionTrend, getSubOneYellowBetDrug
} from "@/api/screen/subScreen/supervisionNotify.ts"; } from "@/api/screen/subScreen/subOneSupervisionNotify.ts";
// region // region
const activeTabRight = ref("1") const activeTabRight = ref("1")
@ -1113,7 +1115,6 @@ const getMapJSON = async (currentDepartId) => {
subOneSceneInspMapChart.value.chart.setOption(option.value); subOneSceneInspMapChart.value.chart.setOption(option.value);
} }
const getChangedRank = async(currentDepartId, times)=>{ const getChangedRank = async(currentDepartId, times)=>{
const res = await getSubOneChangedRank(currentDepartId, times) const res = await getSubOneChangedRank(currentDepartId, times)
fxsjRankOverview.value = res.fxsjRankOverview; fxsjRankOverview.value = res.fxsjRankOverview;
@ -1130,6 +1131,18 @@ const getProblemTypeRate = async(currentDepartId, times)=>{
console.log(res); console.log(res);
} }
const getSupervisionOverView = async(currentDepartId, times)=>{
const res = await getAllSubOneSupervisionNotifyCount(currentDepartId, times)
Object.assign(overview.value, {
correctionRate: Number(res.overview.rectifyRate),
supervisionNotifyPreTotal: Number(res.overview.personNumber),
supervisionNotifyChangingTotal: Number(res.overview.rectifingNumber),
supervisionNotifyChangedTotal: Number(res.overview.rectifedNumber),
supervisionNotifyTotal: Number(res.overview.problemNumber),
supervisionNotifyOrgTotal: Number(res.overview.departNumber),
});
}
const getSupervisionTrend = async(currentDepartId, times)=>{ const getSupervisionTrend = async(currentDepartId, times)=>{
const res = await getSubOneSupervisionTrend(currentDepartId, times) const res = await getSubOneSupervisionTrend(currentDepartId, times)
const supervisionTrend = res.supervisionTrend; const supervisionTrend = res.supervisionTrend;
@ -1139,8 +1152,45 @@ const getSupervisionTrend = async(currentDepartId, times)=>{
proTrend.value.series[0].data = values; proTrend.value.series[0].data = values;
} }
const getYellowBetDrugData = async(currentDepartId, times)=>{
const res = await getSubOneYellowBetDrug(currentDepartId, times)
fxsjYellowBetOverview.value = res.fxsjYellowBetOverview
jsdwYellowBetOverview.value = res.jsdwYellowBetOverview
fxsjYellowBetRankList.value = res.fxsjYellowBetRankList
jsdwYellowBetRankList.value = res.jsdwYellowBetRankList
}
const getGunControllerData = async(currentDepartId, times)=>{
const res = await getSubOneGunController(currentDepartId, times)
fxsjGunControllerOverview.value = res.fxsjGunControllerOverview
jsdwGunControllerOverview.value = res.jsdwGunControllerOverview
fxsjGunControllerRankList.value = res.fxsjGunControllerRankList
jsdwGunControllerRankList.value = res.jsdwGunControllerRankList
}
const getCompanyProblemData = async(currentDepartId, times)=>{
const res = await getSubOneCompanyProblem(currentDepartId, times)
fxsjCompanyProblemOverview.value = res.fxsjCompanyProblemOverview
jsdwCompanyProblemOverview.value = res.jsdwCompanyProblemOverview
fxsjCompanyProblemRankList.value = res.fxsjCompanyProblemRankList
jsdwCompanyProblemRankList.value = res.jsdwCompanyProblemRankList
}
const getHandleCaseData = async(currentDepartId, times)=>{
const res = await getSubOneHandleCase(currentDepartId, times)
fxsjHandleCaseOverview.value = res.fxsjHandleCaseOverview
jsdwHandleCaseOverview.value = res.jsdwHandleCaseOverview
fxsjHandleCaseRankList.value = res.fxsjHandleCaseRankList
jsdwHandleCaseRankList.value = res.jsdwHandleCaseRankList
}
const getCheckBeerData = async(currentDepartId, times)=>{
const res = await getSubOneCheckBeer(currentDepartId, times)
fxsjCheckBeerOverview.value = res.fxsjCheckBeerOverview
jsdwCheckBeerOverview.value = res.jsdwCheckBeerOverview
fxsjCheckBeerRankList.value = res.fxsjCheckBeerRankList
jsdwCheckBeerRankList.value = res.jsdwCheckBeerRankList
}
// endregion // endregion
@ -1155,124 +1205,13 @@ const getData = async () => {
getMapJSON(currentDepartId); getMapJSON(currentDepartId);
getChangedRank(currentDepartId, time.value); getChangedRank(currentDepartId, time.value);
getProblemTypeRate(currentDepartId, time.value); getProblemTypeRate(currentDepartId, time.value);
getSupervisionOverView(currentDepartId, time.value);
getSupervisionTrend(currentDepartId, time.value); getSupervisionTrend(currentDepartId, time.value);
getYellowBetDrugData(currentDepartId, time.value);
// getAllSupervisionNotifyCount(time.value).then((res) => { getGunControllerData(currentDepartId, time.value);
// Object.assign(overview.value, { getCompanyProblemData(currentDepartId, time.value);
// correctionRate: Number(res.overview.correctionRate), getHandleCaseData(currentDepartId, time.value);
// supervisionNotifyPreTotal: Number(res.overview.supervisionNotifyPreTotal), getCheckBeerData(currentDepartId, time.value);
// supervisionNotifyChangingTotal: Number(res.overview.supervisionNotifyChangingTotal),
// supervisionNotifyChangedTotal: Number(res.overview.supervisionNotifyChangedTotal),
// supervisionNotifyTotal: Number(res.overview.supervisionNotifyTotal),
// supervisionNotifyOrgTotal: Number(res.overview.supervisionNotifyOrgTotal),
//
// });
// });
//
//
// getMap(time.value).then((res) => {
// //
// const mappedData = res.superviseTempMapVoList.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.totalPro,
// };
// });
// const total = mappedData.reduce((sum, item) => sum + Number(item.value), 0);
// const avg = total / mappedData.length; //
// const range30Percent = avg * 0.3 //
// option.value.visualMap.pieces = [
// {gte: 0, lte: avg - range30Percent, label: "30%", color: "#4987F6"},
// {gte: avg - range30Percent, lte: avg + range30Percent, label: "30%", color: "#F6A149"},
// {gte: avg + range30Percent, label: "30%", color: "#D34343"},
// ];
// superviseTempMapVoList.value = mappedData;
// option.value.series[0].data = mappedData;
// })
//
// getProblemTypeRate(time.value).then((res) => {
// wtlxList.value = res.wtlxList
// });
//
// getYellowBetDrug(time.value).then((res) => {
// fxsjYellowBetOverview.value = res.fxsjYellowBetOverview
// jsdwYellowBetOverview.value = res.jsdwYellowBetOverview
// fxsjYellowBetRankList.value = res.fxsjYellowBetRankList
// jsdwYellowBetRankList.value = res.jsdwYellowBetRankList
//
// // hddOverview.value = res.hddOverview;
// // hddList.value = res.hddList
// });
//
// getGunController(time.value).then((res) => {
// fxsjGunControllerOverview.value = res.fxsjGunControllerOverview
// jsdwGunControllerOverview.value = res.jsdwGunControllerOverview
// fxsjGunControllerRankList.value = res.fxsjGunControllerRankList
// jsdwGunControllerRankList.value = res.jsdwGunControllerRankList
// })
//
// getCompanyProblem(time.value).then((res) => {
// fxsjCompanyProblemOverview.value = res.fxsjCompanyProblemOverview
// jsdwCompanyProblemOverview.value = res.jsdwCompanyProblemOverview
// fxsjCompanyProblemRankList.value = res.fxsjCompanyProblemRankList
// jsdwCompanyProblemRankList.value = res.jsdwCompanyProblemRankList
// })
//
// getHandleCase(time.value).then((res) => {
// fxsjHandleCaseOverview.value = res.fxsjHandleCaseOverview
// jsdwHandleCaseOverview.value = res.jsdwHandleCaseOverview
// fxsjHandleCaseRankList.value = res.fxsjHandleCaseRankList
// jsdwHandleCaseRankList.value = res.jsdwHandleCaseRankList
// })
//
// getCheckBeer(time.value).then((res) => {
// fxsjCheckBeerOverview.value = res.fxsjCheckBeerOverview
// jsdwCheckBeerOverview.value = res.jsdwCheckBeerOverview
// fxsjCheckBeerRankList.value = res.fxsjCheckBeerRankList
// jsdwCheckBeerRankList.value = res.jsdwCheckBeerRankList
// })
} }
watch(time, () => { watch(time, () => {

2
src/views/datav/subonedatav/SubOneVideoInsp.vue

@ -198,7 +198,7 @@ import {getSubOneStreetMap} from "@/api/screen/sub1.ts";
import { import {
getSubOneAllVideoSuperviseCount, getSubOneAllVideoSuperviseCount,
getSubOneVideoSuperviseProblemRank, getSubOneVideoSuperviseProblemTypeRate, getSubOneVideoSuperviseTrend getSubOneVideoSuperviseProblemRank, getSubOneVideoSuperviseProblemTypeRate, getSubOneVideoSuperviseTrend
} from "@/api/screen/subScreen/videoSupervise.ts"; } from "@/api/screen/subScreen/subOneVideoSupervise.ts";
const time = ref([ const time = ref([
moment().startOf("year").format("YYYY-MM-DD"), moment().startOf("year").format("YYYY-MM-DD"),

Loading…
Cancel
Save