From a02ec7f857f264a93267075d4b914bc7b0563714 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: Fri, 1 Nov 2024 21:48:05 +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.5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/datav/MailVisits.vue | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/views/datav/MailVisits.vue b/src/views/datav/MailVisits.vue
index 739a646..f5ff664 100644
--- a/src/views/datav/MailVisits.vue
+++ b/src/views/datav/MailVisits.vue
@@ -187,7 +187,7 @@
- {{ selectedOption }}
+ {{ selectedOption }} 年
2024年
@@ -502,10 +502,10 @@ const time = ref([
* 信访趋势
* @type {Ref, UnwrapRef | string>}
*/
-const selectedOption = ref('2024年');
+const selectedOption = ref('2024');
const shihao= ref(1);
const handleCommand = async (command) => {
- selectedOption.value = `${command}年`;
+ selectedOption.value = `${command}`;
const recentlyMailTrend = await getRecentlyMailTrend({
sourcesCode: activeMailTab.value,
year: command,
@@ -530,9 +530,17 @@ function initRecentlyMailTrend() {
});
}
-watch(activeMailTrend, () => {
- alert(activeMailTrend.value)
- alert(shihao.value)
+watch(activeMailTrend, async () => {
+ // console.log("Active Tab: ", activeMailTrend.value);
+ // console.log("Active Tab Right: ", selectedOption.value);
+ const recentlyMailTrend = await getRecentlyMailTrend({
+ sourcesCode: activeMailTrend.value,
+ year: selectedOption.value,
+ startTime: time.value[0],
+ endTime: time.value[1]
+ });
+ option1.value.xAxis.data = recentlyMailTrend.monthList;
+ option1.value.series[0].data = recentlyMailTrend.totalList;
})