Sfoglia il codice sorgente

feat(system,performance): add user leader query api and comment old performance code

1. 新增根据用户ID和角色编码列表查询直属领导的后端接口调用方法
2. 注释调原非干部月度考核汇总的旧API调用代码
huoyi 1 mese fa
parent
commit
22f8ebdb8d

+ 8 - 0
src/api/system/user.js

@@ -151,3 +151,11 @@ export function getDeptUserTree(params) {
151 151
     params: params
152 152
   })
153 153
 }
154
+//根据用户ID和角色编码列表查询各级直属领导列表
155
+export function selectUserLeaderListByCondition(data) {
156
+  return request({
157
+    url: '/system/user/selectUserLeaderListByCondition',
158
+    method: 'post',
159
+    data: data
160
+  })
161
+}

File diff suppressed because it is too large
+ 386 - 424
src/views/performanceManage/monthlyAssess/index.vue


+ 4 - 4
src/views/performanceManage/monthlyAssessSum/index.vue

@@ -185,7 +185,7 @@ import { ElMessage } from 'element-plus'
185 185
 import * as echarts from 'echarts'
186 186
 
187 187
 // API导入
188
-import { getNonCadreMonthlyScoreSum } from '@/api/performance/nonCadreMonthlyScoreSum.js'
188
+//import {  } from '@/api/performance/monthlyAssessSum.js'
189 189
 
190 190
 // 响应式数据
191 191
 const loading = ref(false)
@@ -485,9 +485,9 @@ const handleResize = () => {
485 485
 const getList = async () => {
486 486
   loading.value = true
487 487
   try {
488
-    const res = await getNonCadreMonthlyScoreSum(queryParams)
489
-    // 这里可以根据实际API返回的数据更新图表和表格数据
490
-    console.log('获取汇总数据:', res)
488
+    // const res = await getNonCadreMonthlyScoreSum(queryParams)
489
+    // // 这里可以根据实际API返回的数据更新图表和表格数据
490
+    // console.log('获取汇总数据:', res)
491 491
   } catch (error) {
492 492
     console.error('获取汇总数据失败:', error)
493 493
     ElMessage.error('获取汇总数据失败')