소스 검색

修改项目负责人查看工作填报

余思翰 3 달 전
부모
커밋
aae862a959
2개의 변경된 파일8개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    1
      oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeclareMapper.xml
  2. 7
    1
      oa-ui/src/views/oa/declare/index.vue

+ 1
- 1
oa-back/ruoyi-system/src/main/resources/mapper/oa/CmcDeclareMapper.xml 파일 보기

@@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
45 45
         <include refid="selectCmcDeclareVo"/>
46 46
         <where>  
47 47
             <if test="projectId != null  and projectId != ''"> and d.project_id = #{projectId}</if>
48
-            <if test="projectLeader != null"> and d.project_leader = #{projectLeader}</if>
48
+            <if test="projectLeader != null"> and p.project_leader = #{projectLeader}</if>
49 49
             <if test="userId != null"> and d.user_id = #{userId}</if>
50 50
             <if test="deptId != null"> and u.dept_id = #{deptId}</if>
51 51
             <if test="workType != null  and workType != ''"> and d.work_type = #{workType}</if>

+ 7
- 1
oa-ui/src/views/oa/declare/index.vue 파일 보기

@@ -2,7 +2,7 @@
2 2
  * @Author: wrh
3 3
  * @Date: 2024-08-14 14:24:11
4 4
  * @LastEditors: Please set LastEditors
5
- * @LastEditTime: 2024-10-21 17:31:27
5
+ * @LastEditTime: 2025-01-03 09:28:39
6 6
 -->
7 7
 <template>
8 8
   <div class="app-container">
@@ -240,6 +240,12 @@ export default {
240 240
       if (this.$store.getters.deptId > 103) {
241 241
         this.queryParams.deptId = this.$store.getters.deptId;
242 242
       }
243
+      if (this.$store.getters.roles.includes('projectLeader')) {
244
+        this.queryParams.projectLeader = this.$store.getters.userId
245
+      }
246
+      if (this.$store.getters.roles.includes('dept')) {
247
+        this.queryParams.projectLeader = null
248
+      }
243 249
       listDeclare(this.queryParams).then(response => {
244 250
         this.declareList = response.rows;
245 251
         this.total = response.total;

Loading…
취소
저장