From 08e2db5b94d878189f5377fc5ed0f7bd4b2bb19e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 03 Feb 2023 15:26:46 +0800
Subject: [PATCH] 接口及首页数据联动调整
---
src/views/home/components/rightContainer.vue | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/views/home/components/rightContainer.vue b/src/views/home/components/rightContainer.vue
index 89867ac..89f70a7 100644
--- a/src/views/home/components/rightContainer.vue
+++ b/src/views/home/components/rightContainer.vue
@@ -153,7 +153,7 @@
linetype: 0,
tableHeight: 0,
schedulingList: [],
-
+ policeStaionID: ''
}
},
created () {
@@ -173,7 +173,9 @@
mounted () {
this.initEquipmentEcharts()
- this.initEventChangeEcharts()
+
+ this.getHomeAllData()
+
this.clickEquimentChart()
this.$nextTick(() => {
@@ -189,6 +191,16 @@
// this.$emit('changeActivityType', type)
// this.$emit('activityChange')
// },
+
+ /**
+ * @description: 获取当前组件内所有数据
+ * @return {*}
+ */
+ getHomeAllData (id = '') {
+ this.policeStaionID = id
+
+ this.initEventChangeEcharts()
+ },
getSchedulingList () {
getSchedulingList().then(res => {
@@ -235,7 +247,7 @@
// 获取案件统计值
getCaseAll (start, end) {
- const caseAll = getCaseAll(start, end, this.userInfo.dept_id).then(res => {
+ const caseAll = getCaseAll(start, end, this.policeStaionID != '' ? this.policeStaionID : this.userInfo.dept_id).then(res => {
if (res.data.length > 0) {
return res.data.reduce((previous, current) => {
previous.xData.push(current.days)
--
Gitblit v1.9.3