From 5cc98b511448f6145dc52cc2565483f1cb1f7c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E7=88=B1=E5=AD=A6=E4=B9=A0=E7=9A=84=E7=9F=B3?= =?UTF-8?q?=E5=90=8C=E5=AD=A6?= <2936013465@qq.com> Date: Mon, 25 Nov 2024 12:41:22 +0800 Subject: [PATCH] =?UTF-8?q?11/25/12:41=20=20=20=20=20=E6=B0=91=E6=84=8F?= =?UTF-8?q?=E6=84=9F=E7=9F=A5=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/screen/jwpy.ts | 68 +- src/views/datav/Jwpy.vue | 1688 +++++++++++++++++++------------------- 2 files changed, 873 insertions(+), 883 deletions(-) diff --git a/src/api/screen/jwpy.ts b/src/api/screen/jwpy.ts index 1874c7c..264dd3c 100644 --- a/src/api/screen/jwpy.ts +++ b/src/api/screen/jwpy.ts @@ -1,23 +1,22 @@ import outrequest from "../outrequest"; -export function GetDCQK() { +export function GetDCQK(PeriodId, PeriodSonID, OrgNo) { let formData = new FormData(); - formData.append("PeriodId", 6); - formData.append("PeriodSonID", -1); - formData.append("OrgNo", 4301); - formData.append("TaskID", 2); + formData.append("PeriodId", PeriodId); + formData.append("PeriodSonID", PeriodSonID); + formData.append("OrgNo", OrgNo); return outrequest.post({ url: `/out-police-service/api/DSJ/GetDCQK`, body: formData }); } -export function GetBMYYBQS() { +export function GetBMYYBQS(PeriodId, OrgNo) { let formData = new FormData(); - formData.append("PeriodId", 6); + formData.append("PeriodId", PeriodId); formData.append("PeriodSonID", -1); - formData.append("OrgNo", 4301); + formData.append("OrgNo", OrgNo); formData.append("TaskID", 2); return outrequest.post({ url: `/out-police-service/api/DSJ/GetBMYYBQS`, @@ -25,9 +24,9 @@ export function GetBMYYBQS() { }); } -export function GetZHMYLPM() { +export function GetZHMYLPM(PeriodId) { let formData = new FormData(); - formData.append("PeriodId", 6); + formData.append("PeriodId", PeriodId); formData.append("PeriodSonID", -1); formData.append("OrgNo", 4301); formData.append("TaskID", 2); @@ -37,11 +36,11 @@ export function GetZHMYLPM() { }); } -export function GetRCSQQK() { +export function GetRCSQQK(PeriodId, PeriodSonID, OrgNo) { let formData = new FormData(); - formData.append("PeriodId", 6); - formData.append("PeriodSonID", -1); - formData.append("OrgNo", 4301); + formData.append("PeriodId", PeriodId); + formData.append("PeriodSonID", PeriodSonID); + formData.append("OrgNo", OrgNo); formData.append("TaskID", 2); return outrequest.post({ url: `/out-police-service/api/DSJ/GetRCSQQK`, @@ -49,11 +48,11 @@ export function GetRCSQQK() { }); } -export function GetDXFX() { +export function GetDXFX(PeriodId, PeriodSonID, OrgNo) { let formData = new FormData(); - formData.append("PeriodId", 6); - formData.append("PeriodSonID", -1); - formData.append("OrgNo", 4301); + formData.append("PeriodId", PeriodId); + formData.append("PeriodSonID", PeriodSonID); + formData.append("OrgNo", OrgNo); formData.append("TaskID", 2); return outrequest.post({ url: `/out-police-service/api/DSJ/GetDXFX`, @@ -61,11 +60,11 @@ export function GetDXFX() { }); } -export function GetZRSJXF() { +export function GetZRSJXF(PeriodId, PeriodSonID, OrgNo) { let formData = new FormData(); - formData.append("PeriodId", 6); - formData.append("PeriodSonID", -1); - formData.append("OrgNo", 4301); + formData.append("PeriodId", PeriodId); + formData.append("PeriodSonID", PeriodSonID); + formData.append("OrgNo", OrgNo); formData.append("TaskID", 2); return outrequest.post({ url: `/out-police-service/api/DSJ/GetZRSJXF`, @@ -73,10 +72,10 @@ export function GetZRSJXF() { }); } -export function GetGLFW() { +export function GetGLFW(PeriodId, PeriodSonID) { let formData = new FormData(); - formData.append("PeriodId", 6); - formData.append("PeriodSonID", -1); + formData.append("PeriodId", PeriodId); + formData.append("PeriodSonID", PeriodSonID); formData.append("OrgNo", 4301); formData.append("TaskID", 2); return outrequest.post({ @@ -86,12 +85,9 @@ export function GetGLFW() { } -export function GetDITU() { +export function GetDITU(PeriodId) { let formData = new FormData(); - formData.append("PeriodId", 6); - formData.append("PeriodSonID", -1); - formData.append("OrgNo", 4301); - formData.append("TaskID", 2); + formData.append("PeriodId", PeriodId); return outrequest.post({ url: `/out-police-service/api/DSJ/GetDITU`, body: formData @@ -100,9 +96,9 @@ export function GetDITU() { -export function GetMyPeriod() { +export function GetMyPeriod(PeriodId) { let formData = new FormData(); - formData.append("PeriodId", 6); + formData.append("PeriodId", PeriodId); formData.append("PeriodSonID", -1); formData.append("OrgNo", 4301); formData.append("TaskID", 2); @@ -114,9 +110,9 @@ export function GetMyPeriod() { -export function GetCustomOffLineSonPeriodSet() { +export function GetCustomOffLineSonPeriodSet(PeriodId) { let formData = new FormData(); - formData.append("PeriodId", 6); + formData.append("PeriodId", PeriodId); formData.append("PeriodSonID", -1); formData.append("OrgNo", 4301); formData.append("TaskID", 2); @@ -126,9 +122,9 @@ export function GetCustomOffLineSonPeriodSet() { }); } -export function qx_get() { +export function qx_get(PeriodId) { let formData = new FormData(); - formData.append("PeriodId", 6); + formData.append("PeriodId", PeriodId); formData.append("PeriodSonID", -1); formData.append("OrgNo", 4301); formData.append("TaskID", 2); diff --git a/src/views/datav/Jwpy.vue b/src/views/datav/Jwpy.vue index c09bcab..5a4d8e2 100644 --- a/src/views/datav/Jwpy.vue +++ b/src/views/datav/Jwpy.vue @@ -30,7 +30,7 @@
- {{ reviewOk[0].State3 - reviewOk[0].bmys }} + {{ reviewOk[0].mys }}
满意 @@ -40,7 +40,7 @@
- {{ 0 }} + {{ reviewOk[0].jbmys }}
基本满意 @@ -66,7 +66,7 @@
- {{ dcmyd.length > 0 && dcmyd[2] && dcmyd[2].FinalRP !== undefined ? dcmyd[2].FinalRP : '0' }} + {{ dcmyd.length > 0 && dcmyd[1] && dcmyd[1].FinalRP !== undefined ? dcmyd[1].FinalRP : '0' }}
上期满意度 @@ -108,11 +108,7 @@ > - - - + @@ -127,7 +123,7 @@ - + - +
@@ -194,7 +191,7 @@ :show-summary='false' :highlight-current-row='false' > - + @@ -218,7 +215,7 @@ :row-style="tableRowStyleTableData2" :show-summary='false' > - + @@ -347,7 +344,7 @@ const selectMonth = ref(); const org = ref([]) const text = ref("省(全市)") const content = ["省(全市)"] -const selectOrg=ref() +const selectOrg = ref() // endregion // 监听年份变化,更新月份数据 @@ -370,82 +367,45 @@ const treeProps = { // 选中节点变化的处理函数 -const handleYearChange = ( checkedYear) => { +const handleYearChange = (checkedYear) => { console.log('选中的节点:', checkedYear); - console.log ("年份"+ selectYear.value + " 月份" + selectMonth.value + " 单位" + selectOrg.value) + console.log("年份" + selectYear.value + " 月份" + selectMonth.value + " 单位" + selectOrg.value) } -const handleMonthChange = ( checkenMonth)=> { +const handleMonthChange = (checkenMonth) => { console.log('选中的节点:', checkenMonth); - console.log ("年份"+ selectYear.value + " 月份" + selectMonth.value + " 单位" + selectOrg.value) + console.log("年份" + selectYear.value + " 月份" + selectMonth.value + " 单位" + selectOrg.value) } - const handleOrgChange = (checkedOrg) => { console.log('选中的节点:', checkedOrg); - console.log ("年份"+ selectYear.value + " 月份" + selectMonth.value + " 单位" + selectOrg.value) + console.log("年份" + selectYear.value + " 月份" + selectMonth.value + " 单位" + selectOrg.value) }; - - - +const mapDataList = ref([]); echarts.registerMap("changsha", changshaMap); -let mapDataList = reactive([ - {name: '长沙县', value: 500}, - {name: '浏阳市', value: 400}, - {name: '开福区', value: 300}, - {name: '浏阳市', value: 400}, - {name: '望城区', value: 400}, - {name: '芙蓉区', value: 400}, - {name: '天心区', value: 400}, - {name: '雨花区', value: 400}, - {name: '岳麓区', value: 400}, - {name: '宁乡市', value: 400}, -]); -const option = { +const option = ref({ geo: { - // 是上面注册时的名字哦,registerMap('名字保持一致') map: "changsha", - itemStyle: { - normal: { - areaColor: "#02215E", // 这里将地图区域的颜色修改为红色 - }, - }, - }, - tooltip: { - show: false, - trigger: "item", - position: "right", - backgroundColor: "#031577", // - borderColor: "#0A2F86", - borderWidth: 0, // 设置边框宽度为1像素 - borderRadius: 3, // 设置边框半径为3像素 - shadowBlur: 0, // 设置阴影模糊程度为8像素 - shadowOffsetX: 0, // 设置水平阴影位移量为0像素 - shadowOffsetY: 0, // 设置垂直阴影位移量为6像素 }, - visualMap: { - show: false, + visualMap: { type: "piecewise", bottom: 10, pieces: [ - {gte: 85, lte: 100, label: "信访总件数>300"}, - {gte: 65, lte: 85, label: "信访总件数>200"}, - {gte: 0, lte: 65, label: "信访总件数0-200"}, + {min: 0, max: 500, label: "问题数低于500", color: "#F6A149"}, + {min: 501, max: 1000, label: "问题数介于500-1000", color: "#F6A149"}, + {min: 1001, label: "问题数高于1000", color: "#D34343"}, ], - right: 10, // 右边距 + right: 10, realtime: false, - orient: "horizontal", // 水平显示 + orient: "horizontal", textStyle: { - color: "#fff", // 文字颜色 + color: "#fff", }, calculable: true, - inRange: { - color: ["#D34343", "#F6A149", "#4987F6"], - }, }, series: [ { @@ -457,10 +417,21 @@ const option = { show: true, color: "white", }, - data: mapDataList, - }, + itemStyle: { + normal: { + areaColor: "#02215E", + borderColor: "#1773c3", + }, + }, + emphasis: { + areaColor: "#FFD700", // 高亮时区域颜色 + borderColor: "#FF0000", // 高亮时边框颜色 + borderWidth: 4 // 高亮时边框宽度 + }, + data: [] + } ], -}; +}) const option1 = ref({ xAxis: { type: "category", @@ -656,10 +627,751 @@ const tableData2 = ref([]) const tableData3 = ref([]) const tableData4 = ref([]) // 单项调查情况 // endregion +// region 测试地图 +// endregion // region 初始化 onMounted(() => { - // getData(); + tempMap.value = [ + { + "OrganizeID": "430100", + "OrganizeName": "长沙市直属", + "lstNeed": [ + { + "OrganizeID": "430100", + "OrganizeName": "长沙市直属", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "32.54", + "SetName": "(省)区", + "TBRp": -4.85, + "HBRp": 32.54, + "QACount": 2 + }, + { + "OrganizeID": "430100", + "OrganizeName": "长沙市直属", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "0.00", + "SetName": "(省)区", + "TBRp": 0, + "HBRp": 0, + "QACount": 0 + }, + { + "OrganizeID": "430100", + "OrganizeName": "长沙市直属", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "29.20", + "SetName": "(省)区", + "TBRp": -0.33, + "HBRp": 29.2, + "QACount": 22 + }, + { + "OrganizeID": "430100", + "OrganizeName": "长沙市直属", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.30", + "SetName": "(省)区", + "TBRp": -0.01, + "HBRp": 15.3, + "QACount": 0 + } + ] + }, + { + "OrganizeID": "430102", + "OrganizeName": "湖南省长沙市公安局芙蓉分局", + "lstNeed": [ + { + "OrganizeID": "430102", + "OrganizeName": "湖南省长沙市公安局芙蓉分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "15.32", + "SetName": "(省)区", + "TBRp": 0.04, + "HBRp": 15.32, + "QACount": 6 + }, + { + "OrganizeID": "430102", + "OrganizeName": "湖南省长沙市公安局芙蓉分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "34.87", + "SetName": "(省)区", + "TBRp": -2.02, + "HBRp": 34.87, + "QACount": 67 + }, + { + "OrganizeID": "430102", + "OrganizeName": "湖南省长沙市公安局芙蓉分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.28", + "SetName": "(省)区", + "TBRp": 0.01, + "HBRp": 15.28, + "QACount": 3 + }, + { + "OrganizeID": "430102", + "OrganizeName": "湖南省长沙市公安局芙蓉分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "29.17", + "SetName": "(省)区", + "TBRp": -0.69, + "HBRp": 29.17, + "QACount": 87 + } + ] + }, + { + "OrganizeID": "430103", + "OrganizeName": "湖南省长沙市公安局天心分局", + "lstNeed": [ + { + "OrganizeID": "430103", + "OrganizeName": "湖南省长沙市公安局天心分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "15.31", + "SetName": "(省)区", + "TBRp": 0, + "HBRp": 15.31, + "QACount": 16 + }, + { + "OrganizeID": "430103", + "OrganizeName": "湖南省长沙市公安局天心分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "34.48", + "SetName": "(省)区", + "TBRp": -2.6, + "HBRp": 34.48, + "QACount": 120 + }, + { + "OrganizeID": "430103", + "OrganizeName": "湖南省长沙市公安局天心分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.32", + "SetName": "(省)区", + "TBRp": 0, + "HBRp": 15.32, + "QACount": 8 + }, + { + "OrganizeID": "430103", + "OrganizeName": "湖南省长沙市公安局天心分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "28.82", + "SetName": "(省)区", + "TBRp": -1.01, + "HBRp": 28.82, + "QACount": 172 + } + ] + }, + { + "OrganizeID": "430104", + "OrganizeName": "湖南省长沙市公安局岳麓分局", + "lstNeed": [ + { + "OrganizeID": "430104", + "OrganizeName": "湖南省长沙市公安局岳麓分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.31", + "SetName": "(省)区", + "TBRp": 0.01, + "HBRp": 15.31, + "QACount": 19 + }, + { + "OrganizeID": "430104", + "OrganizeName": "湖南省长沙市公安局岳麓分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "28.87", + "SetName": "(省)区", + "TBRp": -0.99, + "HBRp": 28.87, + "QACount": 278 + }, + { + "OrganizeID": "430104", + "OrganizeName": "湖南省长沙市公安局岳麓分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "15.30", + "SetName": "(省)区", + "TBRp": 0.02, + "HBRp": 15.3, + "QACount": 23 + }, + { + "OrganizeID": "430104", + "OrganizeName": "湖南省长沙市公安局岳麓分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "33.44", + "SetName": "(省)区", + "TBRp": -2.07, + "HBRp": 33.44, + "QACount": 210 + } + ] + }, + { + "OrganizeID": "430105", + "OrganizeName": "湖南省长沙市公安局开福分局", + "lstNeed": [ + { + "OrganizeID": "430105", + "OrganizeName": "湖南省长沙市公安局开福分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "15.30", + "SetName": "(省)区", + "TBRp": 0, + "HBRp": 15.3, + "QACount": 11 + }, + { + "OrganizeID": "430105", + "OrganizeName": "湖南省长沙市公安局开福分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "34.81", + "SetName": "(省)区", + "TBRp": -1.69, + "HBRp": 34.81, + "QACount": 95 + }, + { + "OrganizeID": "430105", + "OrganizeName": "湖南省长沙市公安局开福分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.21", + "SetName": "(省)区", + "TBRp": -0.08, + "HBRp": 15.21, + "QACount": 10 + }, + { + "OrganizeID": "430105", + "OrganizeName": "湖南省长沙市公安局开福分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "28.82", + "SetName": "(省)区", + "TBRp": -1.13, + "HBRp": 28.82, + "QACount": 136 + } + ] + }, + { + "OrganizeID": "430111", + "OrganizeName": "湖南省长沙市公安局雨花分局", + "lstNeed": [ + { + "OrganizeID": "430111", + "OrganizeName": "湖南省长沙市公安局雨花分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "33.93", + "SetName": "(省)区", + "TBRp": -1.41, + "HBRp": 33.93, + "QACount": 237 + }, + { + "OrganizeID": "430111", + "OrganizeName": "湖南省长沙市公安局雨花分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "15.30", + "SetName": "(省)区", + "TBRp": 0.01, + "HBRp": 15.3, + "QACount": 16 + }, + { + "OrganizeID": "430111", + "OrganizeName": "湖南省长沙市公安局雨花分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.31", + "SetName": "(省)区", + "TBRp": 0.02, + "HBRp": 15.31, + "QACount": 9 + }, + { + "OrganizeID": "430111", + "OrganizeName": "湖南省长沙市公安局雨花分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "28.88", + "SetName": "(省)区", + "TBRp": -0.97, + "HBRp": 28.88, + "QACount": 250 + } + ] + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "lstNeed": [ + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "9.98", + "SetName": "(省)县市考评", + "TBRp": 0.02, + "HBRp": 9.98, + "QACount": 3 + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "22.33", + "SetName": "(省)县市考评", + "TBRp": -1.43, + "HBRp": 22.33, + "QACount": 51 + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "9.96", + "SetName": "(省)县市考评", + "TBRp": 0, + "HBRp": 9.96, + "QACount": 1 + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 35, + "MasterName": "省车辆上户(自动)", + "FinalRP": "9.94", + "SetName": "(省)县市考评", + "TBRp": 0.01, + "HBRp": 9.94, + "QACount": 12 + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 38, + "MasterName": "省122接处警(自动)", + "FinalRP": "14.46", + "SetName": "(省)县市考评", + "TBRp": -0.11, + "HBRp": 14.46, + "QACount": 174 + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "18.88", + "SetName": "(省)县市考评", + "TBRp": -0.48, + "HBRp": 18.88, + "QACount": 49 + }, + { + "OrganizeID": "430112", + "OrganizeName": "湖南省长沙市公安局望城分局", + "MasterID": 33, + "MasterName": "省驾考(自动)", + "FinalRP": "10.00", + "SetName": "(省)县市考评", + "TBRp": 0, + "HBRp": 10, + "QACount": 0 + } + ] + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "lstNeed": [ + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 38, + "MasterName": "省122接处警(自动)", + "FinalRP": "14.38", + "SetName": "(省)县市考评", + "TBRp": -0.24, + "HBRp": 14.38, + "QACount": 466 + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 35, + "MasterName": "省车辆上户(自动)", + "FinalRP": "9.95", + "SetName": "(省)县市考评", + "TBRp": 0.01, + "HBRp": 9.95, + "QACount": 3 + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 33, + "MasterName": "省驾考(自动)", + "FinalRP": "0.00", + "SetName": "(省)县市考评", + "TBRp": -9.94, + "HBRp": 0, + "QACount": 0 + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "9.97", + "SetName": "(省)县市考评", + "TBRp": 0.02, + "HBRp": 9.97, + "QACount": 5 + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "18.71", + "SetName": "(省)县市考评", + "TBRp": -0.48, + "HBRp": 18.71, + "QACount": 129 + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "9.94", + "SetName": "(省)县市考评", + "TBRp": -0.01, + "HBRp": 9.94, + "QACount": 13 + }, + { + "OrganizeID": "430121", + "OrganizeName": "湖南省长沙市公安局长沙县公安局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "22.17", + "SetName": "(省)县市考评", + "TBRp": -1.11, + "HBRp": 22.17, + "QACount": 82 + } + ] + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "lstNeed": [ + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 33, + "MasterName": "省驾考(自动)", + "FinalRP": "9.94", + "SetName": "(省)县市考评", + "TBRp": 0.03, + "HBRp": 9.94, + "QACount": 0 + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 35, + "MasterName": "省车辆上户(自动)", + "FinalRP": "9.92", + "SetName": "(省)县市考评", + "TBRp": 0, + "HBRp": 9.92, + "QACount": 12 + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "9.97", + "SetName": "(省)县市考评", + "TBRp": 0, + "HBRp": 9.97, + "QACount": 5 + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 38, + "MasterName": "省122接处警(自动)", + "FinalRP": "14.59", + "SetName": "(省)县市考评", + "TBRp": -0.09, + "HBRp": 14.59, + "QACount": 163 + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "18.87", + "SetName": "(省)县市考评", + "TBRp": -0.53, + "HBRp": 18.87, + "QACount": 43 + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "9.96", + "SetName": "(省)县市考评", + "TBRp": 0, + "HBRp": 9.96, + "QACount": 2 + }, + { + "OrganizeID": "430124", + "OrganizeName": "湖南省长沙市公安局宁乡市公安局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "22.69", + "SetName": "(省)县市考评", + "TBRp": -1.12, + "HBRp": 22.69, + "QACount": 39 + } + ] + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "lstNeed": [ + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 35, + "MasterName": "省车辆上户(自动)", + "FinalRP": "9.92", + "SetName": "(省)县市考评", + "TBRp": -0.01, + "HBRp": 9.92, + "QACount": 14 + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 33, + "MasterName": "省驾考(自动)", + "FinalRP": "10.00", + "SetName": "(省)县市考评", + "TBRp": 0, + "HBRp": 10, + "QACount": 0 + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "18.71", + "SetName": "(省)县市考评", + "TBRp": -0.43, + "HBRp": 18.71, + "QACount": 78 + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "9.97", + "SetName": "(省)县市考评", + "TBRp": 0.01, + "HBRp": 9.97, + "QACount": 7 + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 38, + "MasterName": "省122接处警(自动)", + "FinalRP": "14.41", + "SetName": "(省)县市考评", + "TBRp": -0.22, + "HBRp": 14.41, + "QACount": 211 + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "9.96", + "SetName": "(省)县市考评", + "TBRp": 0.01, + "HBRp": 9.96, + "QACount": 10 + }, + { + "OrganizeID": "430181", + "OrganizeName": "湖南省长沙市公安局浏阳市公安局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "22.14", + "SetName": "(省)县市考评", + "TBRp": -1.58, + "HBRp": 22.14, + "QACount": 83 + } + ] + }, + { + "OrganizeID": "430197", + "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", + "lstNeed": [ + { + "OrganizeID": "430197", + "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "28.64", + "SetName": "(省)区", + "TBRp": -0.87, + "HBRp": 28.64, + "QACount": 11 + }, + { + "OrganizeID": "430197", + "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "37.44", + "SetName": "(省)区", + "TBRp": 2.44, + "HBRp": 37.44, + "QACount": 0 + }, + { + "OrganizeID": "430197", + "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "0.00", + "SetName": "(省)区", + "TBRp": 0, + "HBRp": 0, + "QACount": 0 + }, + { + "OrganizeID": "430197", + "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "0.00", + "SetName": "(省)区", + "TBRp": 0, + "HBRp": 0, + "QACount": 0 + } + ] + }, + { + "OrganizeID": "430199", + "OrganizeName": "湖南省长沙市公安局高新区分局", + "lstNeed": [ + { + "OrganizeID": "430199", + "OrganizeName": "湖南省长沙市公安局高新区分局", + "MasterID": 93, + "MasterName": "省案件当事人2020(自动)", + "FinalRP": "34.69", + "SetName": "(省)区", + "TBRp": -1.83, + "HBRp": 34.69, + "QACount": 58 + }, + { + "OrganizeID": "430199", + "OrganizeName": "湖南省长沙市公安局高新区分局", + "MasterID": 92, + "MasterName": "省户政(自动)", + "FinalRP": "15.33", + "SetName": "(省)区", + "TBRp": 0.03, + "HBRp": 15.33, + "QACount": 5 + }, + { + "OrganizeID": "430199", + "OrganizeName": "湖南省长沙市公安局高新区分局", + "MasterID": 37, + "MasterName": "省110接处警(自动)", + "FinalRP": "29.03", + "SetName": "(省)区", + "TBRp": -0.89, + "HBRp": 29.03, + "QACount": 53 + }, + { + "OrganizeID": "430199", + "OrganizeName": "湖南省长沙市公安局高新区分局", + "MasterID": 36, + "MasterName": "省身份证办理(自动)", + "FinalRP": "15.29", + "SetName": "(省)区", + "TBRp": -0.06, + "HBRp": 15.29, + "QACount": 2 + } + ] + } + ] + mapDataList.value = tempMap.value.map(org => { + return { name: org.OrganizeName, value: org.OrganizeID }; + }) + console.log(mapDataList.value) + option.value.series.data=mapDataList.value + console.log(option.value) setTimeout(() => { reviewOk.value = [{ LevelType: "省", @@ -1380,6 +2092,10 @@ onMounted(() => { } ] tempTable = tempTable.filter(item => item.Name !== null) + // if (tempTable.length > 0 && tempTable[tempTable.length - 1].MasterID==="0") { + // tempTable[tempTable.length - 1].Name = "总计"; // 将最后一个对象的 Name 属性设置为 "总计" + // } + tableData.value = tempTable // 综合满意度排名 @@ -1653,742 +2369,6 @@ onMounted(() => { tableData4.value = text - let tempMap = [ - { - "OrganizeID": "430100", - "OrganizeName": "长沙市直属", - "lstNeed": [ - { - "OrganizeID": "430100", - "OrganizeName": "长沙市直属", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "32.54", - "SetName": "(省)区", - "TBRp": -4.85, - "HBRp": 32.54, - "QACount": 2 - }, - { - "OrganizeID": "430100", - "OrganizeName": "长沙市直属", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "0.00", - "SetName": "(省)区", - "TBRp": 0, - "HBRp": 0, - "QACount": 0 - }, - { - "OrganizeID": "430100", - "OrganizeName": "长沙市直属", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "29.20", - "SetName": "(省)区", - "TBRp": -0.33, - "HBRp": 29.2, - "QACount": 22 - }, - { - "OrganizeID": "430100", - "OrganizeName": "长沙市直属", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.30", - "SetName": "(省)区", - "TBRp": -0.01, - "HBRp": 15.3, - "QACount": 0 - } - ] - }, - { - "OrganizeID": "430102", - "OrganizeName": "湖南省长沙市公安局芙蓉分局", - "lstNeed": [ - { - "OrganizeID": "430102", - "OrganizeName": "湖南省长沙市公安局芙蓉分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "15.32", - "SetName": "(省)区", - "TBRp": 0.04, - "HBRp": 15.32, - "QACount": 6 - }, - { - "OrganizeID": "430102", - "OrganizeName": "湖南省长沙市公安局芙蓉分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "34.87", - "SetName": "(省)区", - "TBRp": -2.02, - "HBRp": 34.87, - "QACount": 67 - }, - { - "OrganizeID": "430102", - "OrganizeName": "湖南省长沙市公安局芙蓉分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.28", - "SetName": "(省)区", - "TBRp": 0.01, - "HBRp": 15.28, - "QACount": 3 - }, - { - "OrganizeID": "430102", - "OrganizeName": "湖南省长沙市公安局芙蓉分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "29.17", - "SetName": "(省)区", - "TBRp": -0.69, - "HBRp": 29.17, - "QACount": 87 - } - ] - }, - { - "OrganizeID": "430103", - "OrganizeName": "湖南省长沙市公安局天心分局", - "lstNeed": [ - { - "OrganizeID": "430103", - "OrganizeName": "湖南省长沙市公安局天心分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "15.31", - "SetName": "(省)区", - "TBRp": 0, - "HBRp": 15.31, - "QACount": 16 - }, - { - "OrganizeID": "430103", - "OrganizeName": "湖南省长沙市公安局天心分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "34.48", - "SetName": "(省)区", - "TBRp": -2.6, - "HBRp": 34.48, - "QACount": 120 - }, - { - "OrganizeID": "430103", - "OrganizeName": "湖南省长沙市公安局天心分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.32", - "SetName": "(省)区", - "TBRp": 0, - "HBRp": 15.32, - "QACount": 8 - }, - { - "OrganizeID": "430103", - "OrganizeName": "湖南省长沙市公安局天心分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "28.82", - "SetName": "(省)区", - "TBRp": -1.01, - "HBRp": 28.82, - "QACount": 172 - } - ] - }, - { - "OrganizeID": "430104", - "OrganizeName": "湖南省长沙市公安局岳麓分局", - "lstNeed": [ - { - "OrganizeID": "430104", - "OrganizeName": "湖南省长沙市公安局岳麓分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.31", - "SetName": "(省)区", - "TBRp": 0.01, - "HBRp": 15.31, - "QACount": 19 - }, - { - "OrganizeID": "430104", - "OrganizeName": "湖南省长沙市公安局岳麓分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "28.87", - "SetName": "(省)区", - "TBRp": -0.99, - "HBRp": 28.87, - "QACount": 278 - }, - { - "OrganizeID": "430104", - "OrganizeName": "湖南省长沙市公安局岳麓分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "15.30", - "SetName": "(省)区", - "TBRp": 0.02, - "HBRp": 15.3, - "QACount": 23 - }, - { - "OrganizeID": "430104", - "OrganizeName": "湖南省长沙市公安局岳麓分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "33.44", - "SetName": "(省)区", - "TBRp": -2.07, - "HBRp": 33.44, - "QACount": 210 - } - ] - }, - { - "OrganizeID": "430105", - "OrganizeName": "湖南省长沙市公安局开福分局", - "lstNeed": [ - { - "OrganizeID": "430105", - "OrganizeName": "湖南省长沙市公安局开福分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "15.30", - "SetName": "(省)区", - "TBRp": 0, - "HBRp": 15.3, - "QACount": 11 - }, - { - "OrganizeID": "430105", - "OrganizeName": "湖南省长沙市公安局开福分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "34.81", - "SetName": "(省)区", - "TBRp": -1.69, - "HBRp": 34.81, - "QACount": 95 - }, - { - "OrganizeID": "430105", - "OrganizeName": "湖南省长沙市公安局开福分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.21", - "SetName": "(省)区", - "TBRp": -0.08, - "HBRp": 15.21, - "QACount": 10 - }, - { - "OrganizeID": "430105", - "OrganizeName": "湖南省长沙市公安局开福分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "28.82", - "SetName": "(省)区", - "TBRp": -1.13, - "HBRp": 28.82, - "QACount": 136 - } - ] - }, - { - "OrganizeID": "430111", - "OrganizeName": "湖南省长沙市公安局雨花分局", - "lstNeed": [ - { - "OrganizeID": "430111", - "OrganizeName": "湖南省长沙市公安局雨花分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "33.93", - "SetName": "(省)区", - "TBRp": -1.41, - "HBRp": 33.93, - "QACount": 237 - }, - { - "OrganizeID": "430111", - "OrganizeName": "湖南省长沙市公安局雨花分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "15.30", - "SetName": "(省)区", - "TBRp": 0.01, - "HBRp": 15.3, - "QACount": 16 - }, - { - "OrganizeID": "430111", - "OrganizeName": "湖南省长沙市公安局雨花分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.31", - "SetName": "(省)区", - "TBRp": 0.02, - "HBRp": 15.31, - "QACount": 9 - }, - { - "OrganizeID": "430111", - "OrganizeName": "湖南省长沙市公安局雨花分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "28.88", - "SetName": "(省)区", - "TBRp": -0.97, - "HBRp": 28.88, - "QACount": 250 - } - ] - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "lstNeed": [ - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "9.98", - "SetName": "(省)县市考评", - "TBRp": 0.02, - "HBRp": 9.98, - "QACount": 3 - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "22.33", - "SetName": "(省)县市考评", - "TBRp": -1.43, - "HBRp": 22.33, - "QACount": 51 - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "9.96", - "SetName": "(省)县市考评", - "TBRp": 0, - "HBRp": 9.96, - "QACount": 1 - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 35, - "MasterName": "省车辆上户(自动)", - "FinalRP": "9.94", - "SetName": "(省)县市考评", - "TBRp": 0.01, - "HBRp": 9.94, - "QACount": 12 - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 38, - "MasterName": "省122接处警(自动)", - "FinalRP": "14.46", - "SetName": "(省)县市考评", - "TBRp": -0.11, - "HBRp": 14.46, - "QACount": 174 - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "18.88", - "SetName": "(省)县市考评", - "TBRp": -0.48, - "HBRp": 18.88, - "QACount": 49 - }, - { - "OrganizeID": "430112", - "OrganizeName": "湖南省长沙市公安局望城分局", - "MasterID": 33, - "MasterName": "省驾考(自动)", - "FinalRP": "10.00", - "SetName": "(省)县市考评", - "TBRp": 0, - "HBRp": 10, - "QACount": 0 - } - ] - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "lstNeed": [ - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 38, - "MasterName": "省122接处警(自动)", - "FinalRP": "14.38", - "SetName": "(省)县市考评", - "TBRp": -0.24, - "HBRp": 14.38, - "QACount": 466 - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 35, - "MasterName": "省车辆上户(自动)", - "FinalRP": "9.95", - "SetName": "(省)县市考评", - "TBRp": 0.01, - "HBRp": 9.95, - "QACount": 3 - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 33, - "MasterName": "省驾考(自动)", - "FinalRP": "0.00", - "SetName": "(省)县市考评", - "TBRp": -9.94, - "HBRp": 0, - "QACount": 0 - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "9.97", - "SetName": "(省)县市考评", - "TBRp": 0.02, - "HBRp": 9.97, - "QACount": 5 - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "18.71", - "SetName": "(省)县市考评", - "TBRp": -0.48, - "HBRp": 18.71, - "QACount": 129 - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "9.94", - "SetName": "(省)县市考评", - "TBRp": -0.01, - "HBRp": 9.94, - "QACount": 13 - }, - { - "OrganizeID": "430121", - "OrganizeName": "湖南省长沙市公安局长沙县公安局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "22.17", - "SetName": "(省)县市考评", - "TBRp": -1.11, - "HBRp": 22.17, - "QACount": 82 - } - ] - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "lstNeed": [ - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 33, - "MasterName": "省驾考(自动)", - "FinalRP": "9.94", - "SetName": "(省)县市考评", - "TBRp": 0.03, - "HBRp": 9.94, - "QACount": 0 - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 35, - "MasterName": "省车辆上户(自动)", - "FinalRP": "9.92", - "SetName": "(省)县市考评", - "TBRp": 0, - "HBRp": 9.92, - "QACount": 12 - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "9.97", - "SetName": "(省)县市考评", - "TBRp": 0, - "HBRp": 9.97, - "QACount": 5 - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 38, - "MasterName": "省122接处警(自动)", - "FinalRP": "14.59", - "SetName": "(省)县市考评", - "TBRp": -0.09, - "HBRp": 14.59, - "QACount": 163 - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "18.87", - "SetName": "(省)县市考评", - "TBRp": -0.53, - "HBRp": 18.87, - "QACount": 43 - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "9.96", - "SetName": "(省)县市考评", - "TBRp": 0, - "HBRp": 9.96, - "QACount": 2 - }, - { - "OrganizeID": "430124", - "OrganizeName": "湖南省长沙市公安局宁乡市公安局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "22.69", - "SetName": "(省)县市考评", - "TBRp": -1.12, - "HBRp": 22.69, - "QACount": 39 - } - ] - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "lstNeed": [ - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 35, - "MasterName": "省车辆上户(自动)", - "FinalRP": "9.92", - "SetName": "(省)县市考评", - "TBRp": -0.01, - "HBRp": 9.92, - "QACount": 14 - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 33, - "MasterName": "省驾考(自动)", - "FinalRP": "10.00", - "SetName": "(省)县市考评", - "TBRp": 0, - "HBRp": 10, - "QACount": 0 - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "18.71", - "SetName": "(省)县市考评", - "TBRp": -0.43, - "HBRp": 18.71, - "QACount": 78 - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "9.97", - "SetName": "(省)县市考评", - "TBRp": 0.01, - "HBRp": 9.97, - "QACount": 7 - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 38, - "MasterName": "省122接处警(自动)", - "FinalRP": "14.41", - "SetName": "(省)县市考评", - "TBRp": -0.22, - "HBRp": 14.41, - "QACount": 211 - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "9.96", - "SetName": "(省)县市考评", - "TBRp": 0.01, - "HBRp": 9.96, - "QACount": 10 - }, - { - "OrganizeID": "430181", - "OrganizeName": "湖南省长沙市公安局浏阳市公安局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "22.14", - "SetName": "(省)县市考评", - "TBRp": -1.58, - "HBRp": 22.14, - "QACount": 83 - } - ] - }, - { - "OrganizeID": "430197", - "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", - "lstNeed": [ - { - "OrganizeID": "430197", - "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "28.64", - "SetName": "(省)区", - "TBRp": -0.87, - "HBRp": 28.64, - "QACount": 11 - }, - { - "OrganizeID": "430197", - "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "37.44", - "SetName": "(省)区", - "TBRp": 2.44, - "HBRp": 37.44, - "QACount": 0 - }, - { - "OrganizeID": "430197", - "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "0.00", - "SetName": "(省)区", - "TBRp": 0, - "HBRp": 0, - "QACount": 0 - }, - { - "OrganizeID": "430197", - "OrganizeName": "湖南省长沙市公安局公共交通治安管理分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "0.00", - "SetName": "(省)区", - "TBRp": 0, - "HBRp": 0, - "QACount": 0 - } - ] - }, - { - "OrganizeID": "430199", - "OrganizeName": "湖南省长沙市公安局高新区分局", - "lstNeed": [ - { - "OrganizeID": "430199", - "OrganizeName": "湖南省长沙市公安局高新区分局", - "MasterID": 93, - "MasterName": "省案件当事人2020(自动)", - "FinalRP": "34.69", - "SetName": "(省)区", - "TBRp": -1.83, - "HBRp": 34.69, - "QACount": 58 - }, - { - "OrganizeID": "430199", - "OrganizeName": "湖南省长沙市公安局高新区分局", - "MasterID": 92, - "MasterName": "省户政(自动)", - "FinalRP": "15.33", - "SetName": "(省)区", - "TBRp": 0.03, - "HBRp": 15.33, - "QACount": 5 - }, - { - "OrganizeID": "430199", - "OrganizeName": "湖南省长沙市公安局高新区分局", - "MasterID": 37, - "MasterName": "省110接处警(自动)", - "FinalRP": "29.03", - "SetName": "(省)区", - "TBRp": -0.89, - "HBRp": 29.03, - "QACount": 53 - }, - { - "OrganizeID": "430199", - "OrganizeName": "湖南省长沙市公安局高新区分局", - "MasterID": 36, - "MasterName": "省身份证办理(自动)", - "FinalRP": "15.29", - "SetName": "(省)区", - "TBRp": -0.06, - "HBRp": 15.29, - "QACount": 2 - } - ] - } - ] - - // 年份 let tempYear = [ { @@ -13256,37 +13236,68 @@ onMounted(() => { ] org.value = tempOrgs }, 500) + getData(); if (years.value.length > 0) { - selectYear.value = years.value[0]; // 选择第一个年份 + selectYear.value = years.value[0].ID; // 选择第一个年份 } - if (org.value.length>0) { - selectOrg.value=org.value[0] + if (org.value.length > 0) { + selectOrg.value = org.value[0] } }); +// + function getData() { + + // 年 + GetMyPeriod(6).then((res) => { + let tempYear = res + years.value = tempYear.map(item => ({ + ID: item.ID, + PeriodName: item.PeriodName + })); + }) + + // 月 + GetCustomOffLineSonPeriodSet(6).then((res) => { + let month = res + tempMonths.value = month.map((item) => { + return { + ID: item.ID, + SonPeriodName: item.SonPeriodName, + PeriodID: item.PeriodID, + } + }) + }) + + // 组织机构 + qx_get(6).then((res) => { + let tempOrgs = res + org.value = tempOrgs + }) + // 调查情况 - GetDCQK().then((res) => { + GetDCQK(6, -1, 4301).then((res) => { console.log("GetDCQK ==== " + res) reviewOk.value = res }); // 调查满意度 - GetGLFW().then((res) => { + GetGLFW(6, -1).then((res) => { dcmyd.value = res option1.value.xAxis.data = dcmyd.value[0].lstson.slice(-6).map(item => item.SonPeriodName); option1.value.series[0].data = dcmyd.value[0].lstson.slice(-6).map(item => item.FinalRP); }); // 业务满意率 - GetZRSJXF().then((res) => { + GetZRSJXF(6, -1, 4301).then((res) => { let temp = res.lstCity temp = temp.filter(item => item.Name !== null); tableData.value = temp }); // 综合满意度排名 - GetZHMYLPM().then((res) => { + GetZHMYLPM(6).then((res) => { tableData1.value = res[0].lstCity let temp = res[0].lstSheng; const group2 = temp.filter(item => item.SetName === "(省)县市考评"); @@ -13296,7 +13307,7 @@ function getData() { }); // 不满意样本趋势 - GetBMYYBQS().then((res) => { + GetBMYYBQS(6, 4301).then((res) => { console.log("GetBMYYBQS ==== " + res) bmyybqs.value = res; option2.value.xAxis.data = bmyybqs.value.map(item => item.SonPeriodName); @@ -13305,7 +13316,7 @@ function getData() { }); // 单项分析 - GetDXFX().then((res) => { + GetDXFX(6, -1, 4301).then((res) => { console.log("GetDXFX ==== " + res) dxfx.value = res; option3.value.xAxis.data = dxfx.value[0].lstson.map(item => item.MasterName); @@ -13315,39 +13326,23 @@ function getData() { }); // 单项调查情况 - GetRCSQQK().then((res) => { + GetRCSQQK(6, -1, 4301).then((res) => { let text = res text = text.filter(item => item.Name !== null) tableData4.value = text }); - // 年 - GetMyPeriod().then((res)=>{ - let tempYear = res - years.value = tempYear.map(item => ({ - ID: item.ID, - PeriodName: item.PeriodName - })); - }) - // 月 - GetCustomOffLineSonPeriodSet().then((res)=>{ - let month = res - tempMonths.value = month.map((item) => { - return { - ID: item.ID, - SonPeriodName: item.SonPeriodName, - PeriodID: item.PeriodID, - } + // 地图数据 + GetDITU(6).then((res) => { + tempMap.value = res + mapDataList.value = tempMap.value.map(org => { + return { name: org.OrganizeName, value: org.OrganizeID }; }) - }) - // 组织机构 - qx_get().then((res)=>{ - let tempOrgs = res - org.value = tempOrgs - }) + option.value.series.data=mapDataList.value + }); - // GetDITU().then((res) => { }); } + // endregion // region 表格样式 @@ -13381,7 +13376,6 @@ const tableRowStyleTableData2 = () => { height: '50px', }; } - // 自定义总合行样式 const summaryCellStyle = () => { return { @@ -13415,11 +13409,6 @@ const getSummaries = (param) => { }); return sums; }; -const calculateSatisfaction = (row) => { - const validCount = row.sdcl || 0 // 有效数 - const dissatisfiedCount = row.sbmys || 0 // 不满意数 - return validCount - dissatisfiedCount // 返回基本满意数 -} const getCellStyle = (smyltb) => { if (smyltb > 0) { return {color: 'green'}; @@ -13429,13 +13418,17 @@ const getCellStyle = (smyltb) => { } // endregion - +const handleChartClick = (params) => { + if (params.componentType === 'series') { + const clickedData = mapDataList.value.find(item => item.name.includes(params.name.substring(0, 2))); + alert(`Clicked on ${params.name}, Value: ${clickedData ? clickedData.value : '无数据'}`); + } +}; // region 数据 // endregion - @@ -13470,11 +13463,12 @@ const getCellStyle = (smyltb) => { //border: 0px solid ; } - .el-select__placeholder{ + .el-select__placeholder { font-weight: 400; font-size: 14px; color: #FFFFFF; } + .el-select.is-focus { border-color: red; /* 去掉高亮时的边框颜色 */ box-shadow: none; /* 去掉高亮时的阴影 */