diff --git a/src/api/screen/mail.ts b/src/api/screen/mail.ts new file mode 100644 index 0000000..6366b88 --- /dev/null +++ b/src/api/screen/mail.ts @@ -0,0 +1,30 @@ +import request from "../request"; + + + +export function getFirstAndRepeatMail(times) { + return request.get({ + url: `/datav/mailVisits/getFirstAndRepeatMail?beginTime=${times[0]}&endTime=${times[1]}` + }); +} + + + +export function getAllMailCount(times) { + return request.get({ + url: `/datav/mailVisits/getAllMailCount?beginTime=${times[0]}&endTime=${times[1]}` + }); +} + + +export function getMailTrend(year) { + return request.get({ + url: `/datav/mailVisits/getMailTrend?year=${year}` + }); +} + +export function getEntanglementAndMassMail(times) { + return request.get({ + url: `/datav/mailVisits/getEntanglementAndMassMail?beginTime=${times[0]}&endTime=${times[1]}` + }); +} diff --git a/src/api/screen/rightsComfort.ts b/src/api/screen/rightsComfort.ts index 2b4621e..d0074ad 100644 --- a/src/api/screen/rightsComfort.ts +++ b/src/api/screen/rightsComfort.ts @@ -55,11 +55,6 @@ export function getCaseAriseSituationRate(times) { } -export function test() { - return request.get({ - url: `/datav/rightsComfort/test` - }); -} diff --git a/src/api/screen/sub1.ts b/src/api/screen/sub1.ts new file mode 100644 index 0000000..0a32ee1 --- /dev/null +++ b/src/api/screen/sub1.ts @@ -0,0 +1,7 @@ +import request from "../request"; + +export function test(departId) { + return request.get({ + url: `/datav/sub1/test?departId=${departId}` + }); +} \ No newline at end of file diff --git a/src/views/datav/Gobal.vue b/src/views/datav/Gobal.vue index 4490c48..355d6aa 100644 --- a/src/views/datav/Gobal.vue +++ b/src/views/datav/Gobal.vue @@ -174,7 +174,8 @@ const gobalTempMapVoList = ref([ "caseVerifyPro": 11, "mailPro": 11, "policePro": 11, - "reviewPro": 11 + "reviewPro": 11, + "value":200 } ]); // 地图临时数据 @@ -280,20 +281,18 @@ const option = ref({ shadowOffsetY: 0, // 设置垂直阴影位移量为6像素 }, visualMap: { - type: "piecewise", - bottom: 10, - pieces: [ - {min: 0, max: 500, label: "问题数低于500", color: "#4987F6"}, - {min: 501, max: 1000, label: "问题数介于500-1000", color: "#F6A149"}, - {min: 1001, label: "问题数高于1000", color: "#D34343"}, - ], - right: 10, - realtime: false, - orient: "horizontal", + min: 1, + max: 200, + text: ['最高问题数', '最低问题数'], + left: 'right', textStyle: { - color: "#fff", + color: '#fff', }, + realtime: false, calculable: true, + inRange: { + color: ['#4987F6', '#F6A149', '#D34343'] + } }, series: [ { @@ -453,12 +452,16 @@ function getData() { return { ...item, originalName: item.name, // 添加原始名称 - name: name, value: item.totalPro, + name: name, + value: item.totalPro, }; }); + const maxItem = mappedData.reduce((prev, current) => (prev.value > current.value) ? prev : current); + const minItem = mappedData.reduce((prev, current) => (prev.value < current.value) ? prev : current); gobalTempMapVoList.value = mappedData; - // gobalTempMapVoList.value = res.gobalTempMapVoList; - option.value.series[0].data = mappedData; + option.value.series[0].data = gobalTempMapVoList; + option.value.visualMap.max = maxItem.value; + option.value.visualMap.min = minItem.value; }) } onMounted(() => { diff --git a/src/views/datav/MailVisits.vue b/src/views/datav/MailVisits.vue index 4a8bf5d..55cd344 100644 --- a/src/views/datav/MailVisits.vue +++ b/src/views/datav/MailVisits.vue @@ -10,7 +10,7 @@
- {{ overview.firstMail }} + {{ firstAndRepeatOverview.firstMail }}
初信初访 @@ -20,7 +20,7 @@
- {{ overview.secondMail }} + {{ firstAndRepeatOverview.repeatMail }}
重复信访 @@ -30,7 +30,7 @@
- {{ overview.secondMail }} + {{ firstAndRepeatOverview.leaderMail }}
领导接访数 @@ -68,7 +68,7 @@ +
@@ -157,7 +158,7 @@ /> @@ -174,32 +175,42 @@ + + + + -