修改认证目录权限
This commit is contained in:
+10
-10
@@ -138,16 +138,16 @@ public class ProjectCertificationDirectoryEOServiceImpl extends ServiceImpl<Proj
|
|||||||
* 法规工程师:(只要是该项目里,其中一条法规清单的法规工程师) , 可以查看当前项目的所有认证目录,不能添加、编辑、删除。
|
* 法规工程师:(只要是该项目里,其中一条法规清单的法规工程师) , 可以查看当前项目的所有认证目录,不能添加、编辑、删除。
|
||||||
* 认证工程师:(只要是该项目里,其中一条法规清单的认证工程师) , 可以查看当前项目的所有认证目录,能添加、编辑、删除。 (添加、编辑、删除,只针对于自己创建的数据)
|
* 认证工程师:(只要是该项目里,其中一条法规清单的认证工程师) , 可以查看当前项目的所有认证目录,能添加、编辑、删除。 (添加、编辑、删除,只针对于自己创建的数据)
|
||||||
*/
|
*/
|
||||||
int roleCode = checkUserRole(projectCertificationDirectoryEO.getProjectLibraryId());
|
// int roleCode = checkUserRole(projectCertificationDirectoryEO.getProjectLibraryId());
|
||||||
if(roleCode == -1){
|
// if(roleCode == -1){
|
||||||
String message = "";
|
// String message = "";
|
||||||
if(StringUtils.equals(projectCertificationDirectoryEO.getCut(), CutEnum.CN.getValue())){
|
// if(StringUtils.equals(projectCertificationDirectoryEO.getCut(), CutEnum.CN.getValue())){
|
||||||
message = "当前用户没有权限查看。";
|
// message = "当前用户没有权限查看。";
|
||||||
}else if(StringUtils.equals(projectCertificationDirectoryEO.getCut(), CutEnum.EN.getValue())){
|
// }else if(StringUtils.equals(projectCertificationDirectoryEO.getCut(), CutEnum.EN.getValue())){
|
||||||
message = "The current user does not have permission to view it.";
|
// message = "The current user does not have permission to view it.";
|
||||||
}
|
// }
|
||||||
throw new JeroBootException(message);
|
// throw new JeroBootException(message);
|
||||||
}
|
// }
|
||||||
|
|
||||||
QueryWrapper<ProjectCertificationDirectoryEO> queryWrapper = QueryGenerator.initQueryWrapper(projectCertificationDirectoryEO, req.getParameterMap());
|
QueryWrapper<ProjectCertificationDirectoryEO> queryWrapper = QueryGenerator.initQueryWrapper(projectCertificationDirectoryEO, req.getParameterMap());
|
||||||
queryWrapper.orderByDesc("create_time");
|
queryWrapper.orderByDesc("create_time");
|
||||||
|
|||||||
@@ -130,8 +130,9 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 认证目录-->
|
<!-- 认证目录-->
|
||||||
<div @click="certificationClick" v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||
|
<!-- v-if="roleSwitchingCode == 0 || roleSwitchingCode == 1 ||-->
|
||||||
roleSwitchingCode == 2" class="operator-text">
|
<!-- roleSwitchingCode == 2"-->
|
||||||
|
<div @click="certificationClick" v-has="'rzqd:homologationatalogue'" class="operator-text">
|
||||||
<a-icon type="profile"/>
|
<a-icon type="profile"/>
|
||||||
{{ $t('CertificationDirectory') }}
|
{{ $t('CertificationDirectory') }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user