diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 63ed95de..ae02d4b5 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -218,6 +218,9 @@ export default { case 6: this.$router.push("/greenCarbon"); break; + case 501: + this.$router.push("/photography"); + break; } }, doLogout() { diff --git a/yanzhu-bigscreen/src/router/index.js b/yanzhu-bigscreen/src/router/index.js index 4f27cf84..2c0a8255 100644 --- a/yanzhu-bigscreen/src/router/index.js +++ b/yanzhu-bigscreen/src/router/index.js @@ -73,6 +73,15 @@ const routes = [ /* webpackChunkName: "safetyCheck" */ "../views/safety/towerCrane.vue" ), }, + { + path: "/photography", + name: "photography", + meta: { nav: 501 }, + component: () => + import( + /* webpackChunkName: "safetyCheck" */ "../views/schedule/photography.vue" + ), + }, ]; const router = new VueRouter({ mode: "hash", diff --git a/yanzhu-bigscreen/src/views/projectDetail.vue b/yanzhu-bigscreen/src/views/projectDetail.vue index 1c6a4f10..e7bf5aea 100644 --- a/yanzhu-bigscreen/src/views/projectDetail.vue +++ b/yanzhu-bigscreen/src/views/projectDetail.vue @@ -698,7 +698,7 @@ export default { this.$api.detail .photographyList(this.selProject.id) .then((d) => { - this.photographyList = d.data||[]; + this.photographyList = d.data; }); }, loadCostOutput() { @@ -820,7 +820,52 @@ export default { diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java index 2bc488dc..1e987715 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java +++ b/yanzhu-common/yanzhu-common-mapper/src/main/java/com/yanzhu/system/mapper/SysRoleMapper.java @@ -73,7 +73,7 @@ public interface SysRoleMapper * @param roleName 角色名称 * @return 角色信息 */ - public SysRole checkRoleNameUnique(String roleName); + public SysRole checkRoleNameUnique(@Param("roleName") String roleName, @Param("deptId") Long deptId); /** * 校验角色权限是否唯一 diff --git a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml index 4b811740..891e8a80 100644 --- a/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/yanzhu-common/yanzhu-common-mapper/src/main/resources/mapper/system/SysRoleMapper.xml @@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"