Browse Source

fix(portrait): 修复部门/团队/群组画像的统计接口参数缺失问题

1. 为teamProfile和groupProfile页面补充了统计接口需要的startDate和endDate参数
2. 为deptProfile页面添加了调试日志并修复参数展开问题
huoyi 1 week ago
parent
commit
28fe900546

+ 2 - 1
src/views/portraitManagement/deptProfile/index.vue

@@ -31,9 +31,10 @@ const queryParams = ref({})
31
 
31
 
32
 const pentagonItems = ref([])
32
 const pentagonItems = ref([])
33
 const invokerCountDeptTeamStats = (params) => {
33
 const invokerCountDeptTeamStats = (params) => {
34
+  console.log(params,999)
34
   const copyParams = {
35
   const copyParams = {
35
     deptId: params.deptId,
36
     deptId: params.deptId,
36
-
37
+    ...params
37
   }
38
   }
38
   countDeptTeamStats(copyParams).then(res => {
39
   countDeptTeamStats(copyParams).then(res => {
39
     if (res.code === 200 && res.data) {
40
     if (res.code === 200 && res.data) {

+ 3 - 1
src/views/portraitManagement/groupProfile/index.vue

@@ -33,7 +33,9 @@ const queryParams = ref({})
33
 const pentagonItems = ref([])
33
 const pentagonItems = ref([])
34
 const invokerCountDeptTeamStats = (params) => {
34
 const invokerCountDeptTeamStats = (params) => {
35
   const copyParams = {
35
   const copyParams = {
36
-    deptId: params.groupId
36
+    deptId: params.groupId,
37
+    startDate: params.startDate,
38
+    endDate: params.endDate
37
   }
39
   }
38
   countDeptTeamStats(copyParams).then(res => {
40
   countDeptTeamStats(copyParams).then(res => {
39
     if (res.code === 200 && res.data) {
41
     if (res.code === 200 && res.data) {

+ 3 - 1
src/views/portraitManagement/teamProfile/index.vue

@@ -31,7 +31,9 @@ const queryParams = ref({})
31
 const pentagonItems = ref([])
31
 const pentagonItems = ref([])
32
 const invokerCountDeptTeamStats = (params) => {
32
 const invokerCountDeptTeamStats = (params) => {
33
   const copyParams = {
33
   const copyParams = {
34
-    deptId: params.teamId
34
+    deptId: params.teamId,
35
+    startDate: params.startDate,
36
+    endDate: params.endDate
35
   }
37
   }
36
   countDeptTeamStats(copyParams).then(res => {
38
   countDeptTeamStats(copyParams).then(res => {
37
     if (res.code === 200 && res.data) {
39
     if (res.code === 200 && res.data) {