Procházet zdrojové kódy

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

1. 为teamProfile和groupProfile页面补充了统计接口需要的startDate和endDate参数
2. 为deptProfile页面添加了调试日志并修复参数展开问题
huoyi před 1 týdnem
rodič
revize
28fe900546

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

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

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

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

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

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