From a241dbc335d4564ac14b942cda85df6eb314ae73 Mon Sep 17 00:00:00 2001
From: zouyx <1798599149@qq.com>
Date: Fri, 29 Nov 2024 18:38:00 +0800
Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E7=BB=9F=E8=AE=A1?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/common/analyse.vue | 186 +++++++++++++++++++++--------
src/views/common/analyseFilter.vue | 141 +++++++++++++++++++++-
2 files changed, 270 insertions(+), 57 deletions(-)
diff --git a/src/views/common/analyse.vue b/src/views/common/analyse.vue
index 0965037..2e127f7 100644
--- a/src/views/common/analyse.vue
+++ b/src/views/common/analyse.vue
@@ -69,9 +69,11 @@
-
深圳市司法局,深圳市公安局深圳市司法局,深圳市公安局
-
-
+
+
+
+
+
@@ -81,20 +83,29 @@
-
+
--
-
+
+
+
+
-
+
- {{ data.staCount.deptTong }}
-
+ {{ data.staCount.deptHuan }}
+
+
+
+
-
-
- {{ data.staCount.deptTong }}
-
+
+
+ {{ data.staCount.deptHuan }}
+
+
+
+
@@ -105,20 +116,29 @@
{{ data.staCount.qyTotal }}
-
+
--
-
+
+
+
+
-
+
- {{ data.staCount.qyTong }}
-
+ {{ data.staCount.qyHuan }}
+
+
+
+
-
-
- {{ data.staCount.qyTong }}
-
+
+
+ {{ data.staCount.qyHuan }}
+
+
+
+
@@ -132,20 +152,29 @@
-
+
--
-
+
+
+
+
-
+
- {{ data.staCount.jcTong }}
-
+ {{ data.staCount.jcHuan }}
+
+
+
+
-
-
- {{ data.staCount.jcTong }}
-
+
+
+ {{ data.staCount.jcHuan }}
+
+
+
+
@@ -157,20 +186,29 @@
-
+
--
-
+
+
+
+
-
+
- {{ data.staCount.complaintTotal }}
-
+ {{ data.staCount.complaintHuan }}
+
+
+
+
-
- {{ data.staCount.complaintTong }}
-
+
+ {{ data.staCount.complaintHuan }}
+
+
+
+
@@ -178,7 +216,7 @@
-
+
{
+ console.log(val)
+ data.ruleList=val;
+ })
queryDictData("enterpriseType",(val) =>{
console.log(val)
@@ -530,16 +573,16 @@
const element3 = success.data[3]
//部门统计
data.staCount.deptTotal = element.number;
- data.staCount.deptTong = element.tong;
+ data.staCount.deptHuan = element.huan;
//企业统计
data.staCount.qyTotal = element1.number;
- data.staCount.qyTong = element1.tong;
+ data.staCount.qyHuan = element1.huan;
//检查统计
data.staCount.jcTotal = element2.number;
- data.staCount.jcTong = element2.tong;
+ data.staCount.jcHuan = element2.huan;
//投诉统计
data.staCount.complaintTotal = element3.number;
- data.staCount.complaintTong = element3.tong;
+ data.staCount.complaintHuan = element3.huan;
},error =>{
@@ -557,16 +600,16 @@
const element3 = success.data[3]
//部门统计
data.staCount.deptTotal = element.number;
- data.staCount.deptTong = element.tong;
+ data.staCount.deptHuan = element.huan;
//企业统计
data.staCount.qyTotal = element1.number;
- data.staCount.qyTong = element1.tong;
+ data.staCount.qyHuan = element1.huan;
//检查统计
data.staCount.jcTotal = element2.number;
- data.staCount.jcTong = element2.tong;
+ data.staCount.jcHuan = element2.huan;
//投诉统计
data.staCount.complaintTotal = element3.number;
- data.staCount.complaintTong = element3.tong;
+ data.staCount.complaintHuan = element3.huan;
},error =>{
@@ -611,11 +654,23 @@
}
}
- // 点击确定
+ // 点击确定-部门
const confirmMultiple = () =>{
- data.formShowData = data.copyArr;
- data.multipleShowPicker = false;
- data.copyArr = [];
+ data.formShowData = data.copyArr;
+ data.multipleShowPicker = false;
+ data.copyArr = [];
+ const tmpArr = [];
+ data.formShowData.forEach(res =>{
+ tmpArr.push(res.value);
+ })
+ searchParam.deptId = tmpArr.join(",");
+ if(data.dataType == 0){
+ queryStatisticsIndicatorPartTwo();
+ }
+ if(data.dataType == 1){
+ queryStatisticsIndicatorPartThree();
+ }
+
}
// 点击取消
@@ -707,6 +762,33 @@
callback(dictList);
}, error => {})
}
+ const getDeptList=(type,callback)=>{
+ if(type==0){
+ //个人
+ getDeptListToPerson(searchParam,success=>{
+ var dictList=[];
+ console.log(success);
+ success.data.forEach(res => {
+ console.log(res)
+ var obj = {text: res.dictLabel, value: res.dictValue};
+ dictList.push(obj)
+ })
+ callback(dictList);
+ }, error => {})
+ }else if(type==1){
+ //部门
+ getDeptListToDept(searchParam,success=>{
+ var dictList=[];
+ console.log(success);
+ success.data.forEach(res => {
+ console.log(res)
+ var obj = {text: res.dictLabel, value: res.dictValue};
+ dictList.push(obj)
+ })
+ callback(dictList);
+ }, error => {})
+ }
+ }
// 企业类型打开弹出时触发
const openJcPicker = (item) =>{
diff --git a/src/views/common/analyseFilter.vue b/src/views/common/analyseFilter.vue
index 68e6d46..3655906 100644
--- a/src/views/common/analyseFilter.vue
+++ b/src/views/common/analyseFilter.vue
@@ -20,9 +20,40 @@
-
- 全市
- 福田区
+
+
+
+
+
+ {{item.text}}
+
+
+
+ {{i.text}}
+
+
+
+
+
+
+
+
@@ -43,8 +74,108 @@
+