diff --git a/src/api/data/risk.ts b/src/api/data/risk.ts index f3cea26..f9156c4 100644 --- a/src/api/data/risk.ts +++ b/src/api/data/risk.ts @@ -1,99 +1,99 @@ import request from "@/api/request"; -export function totalStatistics() { +export function totalStatistics(times) { return request.get({ - url: `/datav/risk/total/statistics` + url: `/datav/risk/total/statistics?beginTime=${times[0]}&endTime=${times[1]}` }); } -export function areaRiskStatistics() { +export function areaRiskStatistics(times, type) { return request.get({ - url: `/datav/risk/area/risk/statistics` + url: `/datav/risk/area/risk/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function orgRiskStatistics() { +export function orgRiskStatistics(times, type) { return request.get({ - url: `/datav/risk/risk/org/statistics` + url: `/datav/risk/risk/org/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function orgCarRiskStatistics() { +export function orgCarRiskStatistics(times, type) { return request.get({ - url: `/datav/risk/risk/org/car/statistics` + url: `/datav/risk/risk/org/car/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function policeARiskStatistics() { +export function policeARiskStatistics(times, type) { return request.get({ - url: `/datav/risk/risk/police/a/statistics` + url: `/datav/risk/risk/police/a/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function policeBRiskStatistics() { +export function policeBRiskStatistics(times, type) { return request.get({ - url: `/datav/risk/risk/police/b/statistics` + url: `/datav/risk/risk/police/b/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function leaderRiskStatistics() { +export function leaderRiskStatistics(times, type) { return request.get({ - url: `/datav/risk/risk/leader/statistics` + url: `/datav/risk/risk/leader/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } // ******************************************* -export function areaNegativeStatistics() { +export function areaNegativeStatistics(times, type) { return request.get({ - url: `/datav/risk/area/negative/statistics` + url: `/datav/risk/area/negative/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function orgNegativeStatistics() { +export function orgNegativeStatistics(times, type) { return request.get({ - url: `/datav/risk/org/negative/statistics` + url: `/datav/risk/org/negative/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function orgCarNegativeStatistics() { +export function orgCarNegativeStatistics(times, type) { return request.get({ - url: `/datav/risk/org/car/negative/statistics` + url: `/datav/risk/org/car/negative/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function policeANegativeStatistics() { +export function policeANegativeStatistics(times, type) { return request.get({ - url: `/datav/risk/police/a/negative/statistics` + url: `/datav/risk/police/a/negative/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function policeBNegativeStatistics() { +export function policeBNegativeStatistics(times, type) { return request.get({ - url: `/datav/risk/police/b/negative/statistics` + url: `/datav/risk/police/b/negative/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function policeLeaderNegativeStatistics() { +export function policeLeaderNegativeStatistics(times, type) { return request.get({ - url: `/datav/risk/police/leader/negative/statistics` + url: `/datav/risk/police/leader/negative/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } // ******************************************* -export function areaRateStatistics() { +export function areaRateStatistics(times, type) { return request.get({ - url: `/datav/risk/area/rate/statistics` + url: `/datav/risk/area/rate/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function orgRateStatistics() { +export function orgRateStatistics(times, type) { return request.get({ - url: `/datav/risk/org/rate/statistics` + url: `/datav/risk/org/rate/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } -export function orgCarRateStatistics() { +export function orgCarRateStatistics(times, type) { return request.get({ - url: `/datav/risk/org/car/rate/statistics` + url: `/datav/risk/org/car/rate/statistics?beginTime=${times[0]}&endTime=${times[1]}&type=${type}` }); } diff --git a/src/api/datav.ts b/src/api/datav.ts index c9de5ec..a6de431 100644 --- a/src/api/datav.ts +++ b/src/api/datav.ts @@ -6,6 +6,12 @@ export function getCaseVerifData(times) { }); } +export function getCaseVerifTrend(times, month) { + return request.get({ + url: `/datav/caseVerif/trend?beginTime=${times[0]}&endTime=${times[1]}&month=${month}` + }); +} + export function getMailVisitsData(times) { return request.get({ url: `/datav/mailVisits?beginTime=${times[0]}&endTime=${times[1]}` diff --git a/src/components/datav/tabs.vue b/src/components/datav/tabs.vue index d46367a..23ee00b 100644 --- a/src/components/datav/tabs.vue +++ b/src/components/datav/tabs.vue @@ -112,6 +112,9 @@ function handleChangeActiveTab(name) { &:last-child { border-radius: 0 103px 103px 0; } + &:only-child { + border-radius: 103px; /* 当只有唯一一个元素时,设置所有四个角的圆角 */ + } } } diff --git a/src/views/datav/AuditSuper.vue b/src/views/datav/AuditSuper.vue index 4f22044..d2dbc02 100644 --- a/src/views/datav/AuditSuper.vue +++ b/src/views/datav/AuditSuper.vue @@ -1,388 +1,668 @@ + + + + \ No newline at end of file + + + + diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index 02c503d..703c5a2 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -14,7 +14,6 @@ @@ -24,7 +23,6 @@ :data="jsdwBarList" :max="11" size="large" - :color="colors" /> @@ -46,13 +44,7 @@ autoresize /> - - - + @@ -65,27 +57,27 @@ style="width: 16.66%" /> +
+ +
@@ -131,8 +130,7 @@ /> - - + @@ -147,7 +145,7 @@ import vCharts from "vue-echarts"; import changshaMap from "@/assets/data/changsha.json"; import * as echarts from "echarts/core"; import moment from "moment"; -import {getCaseVerifData} from "@/api/datav"; +import {getCaseVerifData, getCaseVerifTrend} from "@/api/datav"; const time = ref([ moment().startOf("year").format("YYYY-MM-DD"), @@ -162,14 +160,97 @@ const overview = ref({ accountableDepartNumber: 0, confirmedRate: 0, }); +let gobalTempMapVoList = [ + { + "name": "浏阳市局", + "totalPro": 93, + "checkedPro": 11, + "dealPro": 8, + "dealPersonCount": 7, + "orgCount": 9, + "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 ajlyPieList = ref([]); +const ajhcqxList = ref([]); function getData() { getCaseVerifData(time.value).then((data) => { @@ -181,6 +262,14 @@ function getData() { jjjgPieList.value = data.jjjgPieList; ajlyPieList.value = data.ajlyPieList; }); + + + getCaseVerifTrend(time.value, 12).then((data) => { + ajhcqxList.value = data.ajhcqsList; + console.log(ajhcqxList.value) + }); + + } watch(time, () => { @@ -220,7 +309,12 @@ const fwglPieOption = computed(() => { label: { color: "#fff", }, - data: fwglPieList.value, + data: [ + {value: 4, name: "交警执法"}, + {value: 3, name: "态度生硬"}, + {value: 3, name: "户政业务"}, + {value: 2, name: "监所管理"}, + ], }, ], }; @@ -256,18 +350,97 @@ const ajlyPieOption = computed(() => { label: { color: "#fff", }, - data: ajlyPieList.value, + 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); const option = { geo: { // 是上面注册时的名字哦,registerMap('名字保持一致') map: "changsha", }, + tooltip: { + trigger: 'item', + formatter: function (params) { + console.log(params) + const dataItem = gobalTempMapVoList.find(item => item.name.includes(params.name.substring(0, 2))); + if (dataItem) { + return ` +
+
${dataItem.name}
+
+
    +
  • 案件总数(起)${dataItem.totalPro}
  • +
  • 查实案件数 ${dataItem.checkedPro}
  • +
  • 查处问题(个) ${dataItem.dealPro}
  • +
  • 问责人次 ${dataItem.dealPersonCount}
  • +
  • 问责单位数 ${dataItem.orgCount}
  • +
  • 查实率 ${dataItem.rate}
  • +
+
+
`; + } else { + return `
+
${dataItem.name}
+
+
    +
  • 案件总数(起) 0
  • +
  • 查实案件数 0
  • +
  • 查处问题(个) 0
  • +
  • 问责人次 0
  • +
  • 问责单位数 0
  • +
  • 查实率 0
  • +
+
+
`; + } + }, + // backgroundColor: "#031577", // + // borderColor: "#0A2F86", + // borderWidth: 0, // 设置边框宽度为1像素 + // borderRadius: 3, // 设置边框半径为3像素 + // shadowBlur: 0, // 设置阴影模糊程度为8像素 + // shadowOffsetX: 0, // 设置水平阴影位移量为0像素 + // shadowOffsetY: 0, // 设置垂直阴影位移量为6像素 + }, visualMap: { type: "piecewise", bottom: 10, @@ -309,22 +482,7 @@ const option1 = ref({ xAxis: { type: "category", boundaryGap: false, - data: [ - "9/10", - "9/11", - "9/12", - "9/13", - "9/14", - "9/15", - "9/16", - "9/17", - "9/18", - "9/19", - "9/20", - "9/21", - "9/22", - "9/23", - ], + data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月'], }, yAxis: { type: "value", @@ -367,10 +525,7 @@ const option1 = ref({ }, ]), }, - data: [ - 2000, 1160, 2310, 3000, 3100, 3100, 3100, 2000, 1160, 2310, - 3000, 3100, 3100, 3100, - ], + data: [175, 101, 158, 141, 177, 162, 108, 166, 197, 104], }, ], }); @@ -418,4 +573,90 @@ const colors = [ + + + + + + + + + diff --git a/src/views/datav/Gobal.vue b/src/views/datav/Gobal.vue index 5432fb9..ca321c5 100644 --- a/src/views/datav/Gobal.vue +++ b/src/views/datav/Gobal.vue @@ -66,7 +66,7 @@ /> 督察问题 ${dataItem.supervisePro}
  • 案件核查问题 ${dataItem.caseVerifyPro}
  • 信访投诉问题 ${dataItem.mailPro}
  • -
  • 警务评议问题 ${dataItem.policePro}
  • +
  • 民意感知问题 ${dataItem.policePro}
  • 审计监督问题 ${dataItem.reviewPro}
  • @@ -200,7 +200,7 @@ const option = ref({
  • 督察问题 0
  • 案件核查问题 0
  • 信访投诉问题 0
  • -
  • 警务评议问题 0
  • +
  • 民意感知问题 0
  • 审计监督问题 0
  • diff --git a/src/views/datav/Lmgz.vue b/src/views/datav/Lmgz.vue index 8395c51..653aeda 100644 --- a/src/views/datav/Lmgz.vue +++ b/src/views/datav/Lmgz.vue @@ -9,9 +9,8 @@ 执法监督灵敏感知体系
    - - 2024年01月01日 - 2024年08月30日 -
    + +
    - + +
    + 分县市局 +
    + + + + + +
    +
    - + - + - +
    - + +
    + 派出所 +
    + + + + + +
    +
    - + - + - +
    - + +
    + 交警大队 +
    + + + + + +
    +
    - + - + - + - + +
    + 领导 +
    + + + + + +
    +
    - + - - - + +
    - + +
    + 民警 +
    + + + + + +
    +
    - + - +
    - - - - - - - - - - - - - - - + +
    + 协辅警 +
    + + + + + +
    +
    + + + - - + + +
    @@ -267,8 +317,13 @@ import { orgRateStatistics, orgCarRateStatistics } from '@/api/data/risk'; - - +import moment from "moment"; +let selectedMetric = ref('problemNumber'); +let selectedMetricPCS = ref('problemNumber'); +let selectedMetricJJDD = ref('problemNumber'); +let selectedMetricLD = ref('paichusuo'); +let selectedMetricMJ = ref('paichusuo'); +let selectedMetricXFJ = ref('paichusuo'); let statisticsTotal = ref({ caseTotal: 0, aTotal: 0, @@ -288,38 +343,57 @@ let orgNegativeList = ref([]) let orgCarNegativeList = ref([]) let policeANegativeList = ref([]) let policeBNegativeList = ref([]) -let leaderNegativeList = ref([ - {label: '1', value:123}, - {label: '2', value:42}, - {label: '3', value:33}, - {label: '4', value:12} -]) +let leaderNegativeList = ref([]) let areaRateList = ref([]) let orgRateList = ref([]) let orgCarRateList = ref([]) +const time = ref([ + moment().startOf("year").format("YYYY-MM-DD"), + moment().format("YYYY-MM-DD"), +]); + +watch([time, selectedMetric, selectedMetricPCS, selectedMetricJJDD, selectedMetricLD, selectedMetricMJ, selectedMetricXFJ], () => { + getTotalData();//数量统计 /total/statistics + getAreaRiskData(selectedMetric.value); // 【分县市局 高业务量】 + getAreaNegativeData(selectedMetric.value);// 分县 /area/negative/statistics 【分县市局 中业务量】 + getAreaRateData(selectedMetric.value);// /area/rate/statistics 【分县市局 低业务量】 + getPCSRiskData(selectedMetricPCS.value);//分机构统计风险分 派出所 /risk/org/statistics 【派出所 高业务量】 + getOrgNegativeData(selectedMetricPCS.value);// 派出所 /org/negative/statistics 【派出所 中业务量】 + getOrgRateData(selectedMetricPCS.value);// 派出所 /org/rate/statistics 【派出所 低业务量】 + getCarRiskData(selectedMetricJJDD.value);//分机构统计风险分 交警大队 【交警大队 高业务量】 + getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics 【交警大队 中业务量】 + getCarOrgRateData(selectedMetricJJDD.value);// 交警人均率 /org/car/rate/statistics 【交警大队 低业务量】 + getLeaderNegativeData(selectedMetricLD.value);// 【领导 问题数】 + getLeaderRiskData(selectedMetricLD.value);// 【领导 问题涉及人数】 + getPoliceANegativeData(selectedMetricMJ.value);// 【民警 问题数】 + getPoliceARiskData(selectedMetricMJ.value);// 【民警 问题发生率】 + // getPoliceBNegativeData(selectedMetricXFJ.value);//【辅警/协警 问题数】 + // getPoliceBRiskData(selectedMetricXFJ.value);//【辅警/协警 问题发生率】 +}); + onMounted(() => { - // getTotalData(); - // getAreaRiskData(); - // getPCSRiskData(); - // getCarRiskData() - // getPoliceARiskData(); - // getPoliceBRiskData(); - // getLeaderRiskData(); - // getLeaderNegativeData(); - // getPoliceBNegativeData(); - // getPoliceANegativeData(); - // getAreaNegativeData(); - // getCarOrgNegativeData(); - // getOrgNegativeData(); - // getAreaRateData(); - // getOrgRateData(); - // getCarOrgRateData(); + getTotalData();//数量统计 /total/statistics + getAreaRiskData(selectedMetric.value); // 【分县市局 高业务量】 + getAreaNegativeData(selectedMetric.value);// 分县 /area/negative/statistics 【分县市局 中业务量】 + getAreaRateData(selectedMetric.value);// /area/rate/statistics 【分县市局 低业务量】 + getPCSRiskData(selectedMetricPCS.value);//分机构统计风险分 派出所 /risk/org/statistics 【派出所 高业务量】 + getOrgNegativeData(selectedMetricPCS.value);// 派出所 /org/negative/statistics 【派出所 中业务量】 + getOrgRateData(selectedMetricPCS.value);// 派出所 /org/rate/statistics 【派出所 低业务量】 + getCarRiskData(selectedMetricJJDD.value);//分机构统计风险分 交警大队 【交警大队 高业务量】 + getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics 【交警大队 中业务量】 + getCarOrgRateData(selectedMetricJJDD.value);// 交警人均率 /org/car/rate/statistics 【交警大队 低业务量】 + getLeaderNegativeData(selectedMetricLD.value);// 【领导 问题数】 + getLeaderRiskData(selectedMetricLD.value);// 【领导 问题涉及人数】 + getPoliceANegativeData(selectedMetricMJ.value);// 【民警 问题数】 + getPoliceARiskData(selectedMetricMJ.value);// 【民警 问题发生率】 + // getPoliceBNegativeData(selectedMetricXFJ.value);//【辅警/协警 问题数】 + // getPoliceBRiskData(selectedMetricXFJ.value);//【辅警/协警 问题发生率】 }); const getTotalData = () => { - totalStatistics().then(res => { + totalStatistics(time.value).then(res => { statisticsTotal.value.aTotal = res.atotal == undefined ? 0 : res.atotal; statisticsTotal.value.caseTotal = res.caseTotal == undefined ? 0 : res.caseTotal; statisticsTotal.value.negativeTotal = res.negativeTotal == undefined ? 0 : res.negativeTotal; @@ -328,104 +402,104 @@ const getTotalData = () => { }) } -const getAreaRiskData = () => { - areaRiskStatistics().then(res => { +const getAreaRiskData = (type) => { + areaRiskStatistics(time.value, type).then(res => { areaRiskList.value = eachData(res) }) } -const getPCSRiskData = () => { - orgRiskStatistics().then(res => { +const getPCSRiskData = (type) => { + orgRiskStatistics(time.value, type).then(res => { pcsRiskList.value = eachData(res) }) } -const getCarRiskData = () => { - orgCarRiskStatistics().then(res => { +const getCarRiskData = (type) => { + orgCarRiskStatistics(time.value, type).then(res => { carRiskList.value = eachData(res) }) } -const getPoliceARiskData = () => { - policeARiskStatistics().then(res => { +const getPoliceARiskData = (type) => { + policeARiskStatistics(time.value, type).then(res => { policeARiskList.value = eachData(res) }) } -const getPoliceBRiskData = () => { - policeBRiskStatistics().then(res => { +const getPoliceBRiskData = (type) => { + policeBRiskStatistics(time.value, type).then(res => { policeBRiskList.value = eachData(res) }) } -const getLeaderRiskData = () => { - leaderRiskStatistics().then(res => { +const getLeaderRiskData = (type) => { + leaderRiskStatistics(time.value, type).then(res => { leaderRiskList.value = eachData(res) }) } -const getAreaNegativeData = () => { - areaNegativeStatistics().then(res => { - areaNegativeList.value = res +const getAreaNegativeData = (type) => { + areaNegativeStatistics(time.value, type).then(res => { + areaNegativeList.value = eachData(res) }) } -const getOrgNegativeData = () => { - orgNegativeStatistics().then(res => { - orgNegativeList.value = res +const getOrgNegativeData = (type) => { + orgNegativeStatistics(time.value, type).then(res => { + orgNegativeList.value = eachData(res) }) } -const getCarOrgNegativeData = () => { - orgCarNegativeStatistics().then(res => { - orgCarNegativeList.value = res +const getCarOrgNegativeData = (type) => { + orgCarNegativeStatistics(time.value, type).then(res => { + orgCarNegativeList.value = eachData(res) }) } -const getPoliceANegativeData = () => { - policeANegativeStatistics().then(res => { - policeANegativeList.value = res +const getPoliceANegativeData = (type) => { + policeANegativeStatistics(time.value, type).then(res => { + policeANegativeList.value = eachData(res) }) } -const getPoliceBNegativeData = () => { - policeBNegativeStatistics().then(res => { - policeBNegativeList.value = res +const getPoliceBNegativeData = (type) => { + policeBNegativeStatistics(time.value, type).then(res => { + policeBNegativeList.value = eachData(res) }) } -const getLeaderNegativeData = () => { - policeLeaderNegativeStatistics().then(res => { - leaderNegativeList.value = res +const getLeaderNegativeData = (type) => { + policeLeaderNegativeStatistics(time.value, type).then(res => { + leaderNegativeList.value = eachData(res) }) } -const getAreaRateData = () => { - areaRateStatistics().then(res => { +const getAreaRateData = (type) => { + areaRateStatistics(time.value, type).then(res => { areaRateList.value = eachData(res) }) } -const getOrgRateData = () => { - orgRateStatistics().then(res => { +const getOrgRateData = (type) => { + orgRateStatistics(time.value, type).then(res => { orgRateList.value = eachData(res) }) } -const getCarOrgRateData = () => { - orgCarRateStatistics().then(res => { +const getCarOrgRateData = (type) => { + orgCarRateStatistics(time.value, type).then(res => { orgCarRateList.value = eachData(res) }) } const eachData = (data) => { - let arr = [] + let arr = []; data.forEach(item => { arr.push({ label: item.name, - value: item.score - }) - }) + value: 'score' in item ? Number(item.score) : Number(item.value) + }); + }); return arr; } @@ -446,4 +520,25 @@ const colors = [ diff --git a/src/views/datav/RightsComfort.vue b/src/views/datav/RightsComfort.vue index a9f0860..934505b 100644 --- a/src/views/datav/RightsComfort.vue +++ b/src/views/datav/RightsComfort.vue @@ -151,14 +151,14 @@ const punishmentSituationList = ref([]); const comfortSituationList = ref([]); function getData() { - // getRightsComfortData(time.value).then((data) => { - // console.log('Received data:', data); // 添加日志输出 - // comfortPersonNumber.value = data.comfortPersonNumber; - // hitPersonNumber.value = data.hitPersonNumber; - // comfortMoney.value = data.comfortMoney; - // punishmentSituationList.value = data.punishmentSituation; - // comfortSituationList.value = data.comfortSituation; - // }); + getRightsComfortData(time.value).then((data) => { + console.log('Received data:', data); // 添加日志输出 + comfortPersonNumber.value = data.comfortPersonNumber; + hitPersonNumber.value = data.hitPersonNumber; + comfortMoney.value = data.comfortMoney; + punishmentSituationList.value = data.punishmentSituation; + comfortSituationList.value = data.comfortSituation; + }); } watch(time, () => { diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index 85cffe2..12fea87 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -65,6 +65,7 @@ + - + + + +
    +
    + {{ hddOverview.proTotal }} +
    +
    + 问题数 +
    +
    +
    + +
    +
    + {{ hddOverview.changing }} +
    +
    + 整改中 +
    +
    +
    + +
    +
    + {{ hddOverview.changed }} +
    +
    + 已整改 +
    +
    +
    + +
    +
    + {{ hddOverview.correctionRate }}% +
    +
    + 整改率 +
    +
    +
    +
    + +