From 1656e578fe5438a4566542b0c0d02d40e9705c3a 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: Thu, 31 Oct 2024 15:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E8=AE=BF=E5=A4=A7=E5=B1=8F=E5=89=8D?= =?UTF-8?q?=E7=AB=AF1.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/datav/MailVisits.vue | 175 ++++++--------------------------- 1 file changed, 29 insertions(+), 146 deletions(-) diff --git a/src/views/datav/MailVisits.vue b/src/views/datav/MailVisits.vue index f56e544..6cd86aa 100644 --- a/src/views/datav/MailVisits.vue +++ b/src/views/datav/MailVisits.vue @@ -39,7 +39,7 @@ - + - - - - - + + + + + - + @@ -241,14 +241,14 @@ @@ -327,7 +327,6 @@ const option = { }, ], }; - const option1 = ref({ xAxis: { type: "category", @@ -388,134 +387,6 @@ const option1 = ref({ }, ], }); - -const data1 = [ - { - name: "雨花分局", - value: 98, - unit: "%", - numerator: 776, - denominator: 791, - }, - { - name: "岳麓分局", - value: 97, - unit: "%", - numerator: 772, - denominator: 795, - }, - { - name: "开福分局", - value: 92, - unit: "%", - numerator: 750, - denominator: 815, - }, - { - name: "天心分局", - value: 92, - unit: "%", - numerator: 661, - denominator: 718, - }, - { - name: "芙蓉分局", - value: 89, - unit: "%", - numerator: 641, - denominator: 720, - }, - { - name: "望城分局", - value: 85, - unit: "%", - numerator: 451, - denominator: 530, - }, - { - name: "浏阳市局", - value: 79, - unit: "%", - numerator: 451, - denominator: 570, - }, - { - name: "长沙县局", - value: 70, - unit: "%", - numerator: 350, - denominator: 500, - }, -]; - -const data3 = [ - - { - name: "天心分局", - value: 7 - }, - { - name: "芙蓉分局", - value: 6 - }, - { - name: "开福分局", - value: 5 - }, - { - name: "岳麓分局", - value: 2 - }, - { - name: "雨花分局", - value: 2 - }, - { - name: "望城分局", - value: 1 - }, - { - name: "浏阳市局", - value: 1 - }, - { - name: "长沙县局", - value: 1 - }, -]; - - -const data2 = [ - { - name: "开福分局", - value: 9700 - }, - { - name: "芙蓉分局", - value: 9021 - }, - { - name: "岳麓分局", - value: 8512 - }, - { - name: "雨花分局", - value: 8021 - }, - { - name: "望城分局", - value: 7111 - }, - { - name: "浏阳市局", - value: 6622 - }, - { - name: "长沙县局", - value: 6221 - }, -]; - const option2 = { series: [ { @@ -535,7 +406,6 @@ const option2 = { }, ], }; - const option3 = { series: [ { @@ -555,10 +425,12 @@ const option3 = { }, ], }; + + const activeTab = ref("1"); const activeMailTab = ref("1"); -const activeTabRight=ref("1"); -const activeMailTabRight=ref("1"); +const activeTabRight = ref("1"); +const activeMailTabRight = ref("1"); // 总数对象 const overview = ref({ total: 0, @@ -577,16 +449,23 @@ const overview = ref({ // 分局初重领信 const fxsjFirstMailList = ref([]); const fxsjRepeatMailList = ref([]); -const fxsjLeaderViewMailList= ref([]); +const fxsjLeaderViewMailList = ref([]); // 部委初重信 const bwzdFirstMailList = ref([]); const bwzdRepeatMailList = ref([]); -const bwzdLeaderViewMailList= ref([]); +const bwzdLeaderViewMailList = ref([]); +// 分局缠闹 +const fxsjEntanglementMailList = ref([]); +const fxsjMassMailList = ref([]); + +// 部委缠闹 +const bwzdEntanglementMailList = ref([]); +const bwzdMassMailList = ref([]); + const time = ref([ moment().startOf("year").format("YYYY-MM-DD"), moment().format("YYYY-MM-DD"), ]); - function getData() { getMailVisitsData(time.value).then((data) => { overview.value = data.overview; @@ -596,6 +475,10 @@ function getData() { bwzdFirstMailList.value = data.bwzdFirstMailList; bwzdRepeatMailList.value = data.bwzdRepeatMailList; bwzdLeaderViewMailList.value = data.bwzdLeaderViewMailList; + fxsjEntanglementMailList.value = data.fxsjEntanglementMailList + fxsjMassMailList.value = data.fxsjMassMailList + bwzdEntanglementMailList.value = data.bwzdEntanglementMailList + bwzdMassMailList.value = data.bwzdMassMailList }); }