Просмотр исходного кода

Merge branch 'wyf-dev' into 'all-v4'

fix: 数据管理平台统计积分统计应用新接口

See merge request skyeye/skyeye_frontend/skyeye-admin!280
Fei Liu 1 год назад
Родитель
Сommit
1715e1da6e

+ 5 - 4
src/api/datamanagement/dataplatform.ts

@@ -170,7 +170,7 @@ export interface ScoreTableQueryBody {
 /** 条件获取分页积分 */
 /** 条件获取分页积分 */
 export const getScoreTable = (body: ScoreTableQueryBody) => {
 export const getScoreTable = (body: ScoreTableQueryBody) => {
   return http.request<ScoreTableRecord>({
   return http.request<ScoreTableRecord>({
-    url: '/scoreManagement/getScorePageByCondition',
+    url: '/admin/scoreManagement/getScorePageByCondition',
     method: 'post',
     method: 'post',
     data: body,
     data: body,
   });
   });
@@ -195,10 +195,11 @@ export interface ScoreTableRecord {
 }
 }
 
 
 /** 获取积分分段人数 */
 /** 获取积分分段人数 */
-export const getScoreChartData = (deptIdList: string) => {
+export const getScoreChartData = (deptIdList: number[]) => {
   return http.request<ScoreChartItem[]>({
   return http.request<ScoreChartItem[]>({
-    url: `/scoreManagement/getNumOfSectionScore?deptIdList=${deptIdList}`,
-    method: 'get',
+    url: `/admin/scoreManagement/getNumOfSectionScore`,
+    method: 'post',
+    data: { deptIdList },
   });
   });
 };
 };
 
 

+ 2 - 2
src/views/datamanager/platformdata/components/score/Score.vue

@@ -128,8 +128,8 @@
     val: [],
     val: [],
   });
   });
   const onSearch = () => {
   const onSearch = () => {
-    const deptIdList = dept.value.join(',');
-    getScoreChartData(deptIdList).then((res) => {
+    // const deptIdList = dept.value.join(',');
+    getScoreChartData(dept.value).then((res) => {
       chartData.value = {
       chartData.value = {
         label: res.map((item) => (item.scoreSection[0] + item.scoreSection[1]) / 2),
         label: res.map((item) => (item.scoreSection[0] + item.scoreSection[1]) / 2),
         val: res.map((item) => item.num),
         val: res.map((item) => item.num),