提交代码
parent
dd32355b98
commit
6d5be9402c
|
@ -218,6 +218,9 @@ export default {
|
||||||
case 6:
|
case 6:
|
||||||
this.$router.push("/greenCarbon");
|
this.$router.push("/greenCarbon");
|
||||||
break;
|
break;
|
||||||
|
case 501:
|
||||||
|
this.$router.push("/photography");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doLogout() {
|
doLogout() {
|
||||||
|
|
|
@ -73,6 +73,15 @@ const routes = [
|
||||||
/* webpackChunkName: "safetyCheck" */ "../views/safety/towerCrane.vue"
|
/* 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({
|
const router = new VueRouter({
|
||||||
mode: "hash",
|
mode: "hash",
|
||||||
|
|
|
@ -698,7 +698,7 @@ export default {
|
||||||
this.$api.detail
|
this.$api.detail
|
||||||
.photographyList(this.selProject.id)
|
.photographyList(this.selProject.id)
|
||||||
.then((d) => {
|
.then((d) => {
|
||||||
this.photographyList = d.data||[];
|
this.photographyList = d.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
loadCostOutput() {
|
loadCostOutput() {
|
||||||
|
@ -820,7 +820,52 @@ export default {
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.project-detail {
|
.project-detail {
|
||||||
color: #c2d5f6;
|
color: #c2d5f6;
|
||||||
|
.photography-list {
|
||||||
|
width: calc(100% - 4px);
|
||||||
|
height: calc(100% - 26px);
|
||||||
|
padding-left: 1px;
|
||||||
|
|
||||||
|
.el-carousel {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photography-video {
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100% - 30px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.photography-list-title {
|
||||||
|
line-height: 20px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photography-list-nodata {
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
width: 80%;
|
||||||
|
height: 80%;
|
||||||
|
margin-left: 10%;
|
||||||
|
margin-top: 6%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-flow: column;
|
||||||
|
|
||||||
|
.video-play {
|
||||||
|
width: 80px;
|
||||||
|
height: 80px;
|
||||||
|
display: inline-block;
|
||||||
|
background: rgba(0, 0, 0, 0.4);
|
||||||
|
line-height: 80px;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 40px;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.photography-list-no-title {
|
||||||
|
color: rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.dept-info-list {
|
.dept-info-list {
|
||||||
height: calc(100% - 30px);
|
height: calc(100% - 30px);
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
|
|
|
@ -0,0 +1,183 @@
|
||||||
|
<template>
|
||||||
|
<div class="project-photography main-page">
|
||||||
|
<el-col :span="6" class="h100">
|
||||||
|
<module-one-3-1 label="项目全景列表">
|
||||||
|
<div class="left-list scroll">
|
||||||
|
<template v-if="infoList && infoList.length > 0">
|
||||||
|
<div
|
||||||
|
v-for="(item, index) in infoList"
|
||||||
|
:key="index"
|
||||||
|
class="video-item"
|
||||||
|
@click.stop="playVideo(item)"
|
||||||
|
>
|
||||||
|
<span class="div-date">{{ item.videoDate }}</span>
|
||||||
|
<i
|
||||||
|
class="header-icon el-icon-camera-solid"
|
||||||
|
style="font-size: 24px; color: aqua"
|
||||||
|
></i>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<div v-else style="text-align: center" class="div-no-data">
|
||||||
|
<img src="images/nodata.png" style="width: 120px" />
|
||||||
|
<div style="text-align: center; font-size: 12px; color: #888">暂无数据</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</module-one-3-1>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="18" class="no-title">
|
||||||
|
<module-one-3-3 :notitle="true">
|
||||||
|
<template v-if="info">
|
||||||
|
<div class="right-title">
|
||||||
|
<span class="sp-title">{{ info.videoDate }}</span>
|
||||||
|
</div>
|
||||||
|
<video style="width: 98%;" controls>
|
||||||
|
<source :src="info.videoUrl" type="video/mp4" />
|
||||||
|
您的浏览器不支持Video标签。
|
||||||
|
</video>
|
||||||
|
</template>
|
||||||
|
<div v-else style="text-align: center" class="div-no-data">
|
||||||
|
<img src="images/nodata.png" style="width: 120px" />
|
||||||
|
<div style="text-align: center; font-size: 12px; color: #888">暂无数据</div>
|
||||||
|
</div>
|
||||||
|
</module-one-3-3>
|
||||||
|
</el-col>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
info: null,
|
||||||
|
activeNames: [],
|
||||||
|
infoList: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
window.photography = this;
|
||||||
|
this.$store.dispatch("ChangeNav", 501);
|
||||||
|
this.$bus.$on("projectChange", (prj) => {
|
||||||
|
this.selProject = prj;
|
||||||
|
this.init();
|
||||||
|
});
|
||||||
|
this.selProject = this.$store.getters.selProject;
|
||||||
|
this.init();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
playVideo(it) {
|
||||||
|
this.info = null;
|
||||||
|
setTimeout(() => {
|
||||||
|
this.info = it;
|
||||||
|
}, 400);
|
||||||
|
},
|
||||||
|
init() {
|
||||||
|
if (!this.selProject) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$api.detail.photographyList(this.selProject.id).then((d) => {
|
||||||
|
if (d.data.length > 0) {
|
||||||
|
this.info = d.data[0];
|
||||||
|
} else {
|
||||||
|
this.info = null;
|
||||||
|
}
|
||||||
|
this.infoList = d.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less">
|
||||||
|
.project-photography {
|
||||||
|
.div-no-data {
|
||||||
|
text-align: center;
|
||||||
|
height: 600px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.no-title {
|
||||||
|
.right-title {
|
||||||
|
height: 200px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.sp-title {
|
||||||
|
display: inline-block;
|
||||||
|
line-height: 72px;
|
||||||
|
padding: 0px 40px;
|
||||||
|
font-size: 40px;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-image: url("../../assets/images/bgphoto.png");
|
||||||
|
}
|
||||||
|
video {
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100% - 201px);
|
||||||
|
}
|
||||||
|
/deep/ .screen-one-3-3 {
|
||||||
|
background-image: none;
|
||||||
|
border: solid 1px #409eff5c;
|
||||||
|
.module-title {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.left-list {
|
||||||
|
max-height: calc(100% - 40px);
|
||||||
|
overflow-y: auto;
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 4px;
|
||||||
|
height: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/deep/ .screen-one-3-1 {
|
||||||
|
.el-collapse {
|
||||||
|
border: none;
|
||||||
|
margin-top: 4px;
|
||||||
|
|
||||||
|
.el-collapse-item {
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-collapse-item__header {
|
||||||
|
background-color: #097fca2e;
|
||||||
|
color: #089fff;
|
||||||
|
border-bottom: dotted 1px #089fff77;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-collapse-item__content {
|
||||||
|
padding-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-collapse-item__wrap {
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
.img-item {
|
||||||
|
margin-top: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
color: #fff;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.video-item {
|
||||||
|
position: relative;
|
||||||
|
line-height: 30px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-bottom: solid 1px #089fff77;
|
||||||
|
.div-date {
|
||||||
|
width: calc(90% - 24px);
|
||||||
|
text-align: left;
|
||||||
|
bottom: 0px;
|
||||||
|
color: #089fff;
|
||||||
|
padding-left: 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -73,7 +73,7 @@ public interface SysRoleMapper
|
||||||
* @param roleName 角色名称
|
* @param roleName 角色名称
|
||||||
* @return 角色信息
|
* @return 角色信息
|
||||||
*/
|
*/
|
||||||
public SysRole checkRoleNameUnique(String roleName);
|
public SysRole checkRoleNameUnique(@Param("roleName") String roleName, @Param("deptId") Long deptId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验角色权限是否唯一
|
* 校验角色权限是否唯一
|
||||||
|
|
|
@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleSysRoleDeptResult">
|
<select id="checkRoleNameUnique" parameterType="String" resultMap="SysRoleSysRoleDeptResult">
|
||||||
<include refid="selectRoleVo"/>
|
<include refid="selectRoleVo"/>
|
||||||
where r.role_name=#{roleName} and r.del_flag = '0' limit 1
|
where r.role_name=#{roleName} and rd.dept_id = #{deptId} and r.del_flag = '0' limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleSysRoleDeptResult">
|
<select id="checkRoleKeyUnique" parameterType="String" resultMap="SysRoleSysRoleDeptResult">
|
||||||
|
|
|
@ -326,7 +326,12 @@ public class ProProjectInfoSubdeptsServiceImpl implements IProProjectInfoSubdept
|
||||||
subdeptsUser.setCraftType(CraftTypeEnums.GLRY.getCode());
|
subdeptsUser.setCraftType(CraftTypeEnums.GLRY.getCode());
|
||||||
subdeptsUser.setCraftPost(CraftPostEnums.WTDL.getCode());
|
subdeptsUser.setCraftPost(CraftPostEnums.WTDL.getCode());
|
||||||
subdeptsUser.setEduStatus(ShiFouEnums.FOU.getCodeStr());
|
subdeptsUser.setEduStatus(ShiFouEnums.FOU.getCodeStr());
|
||||||
subdeptsUser.setApproveStatus(ApproveStatus.passed.getCode());
|
if(isSign){
|
||||||
|
subdeptsUser.setUseStatus(UseStateEnums.IN.getCode());
|
||||||
|
subdeptsUser.setApproveStatus(ApproveStatus.passed.getCode());
|
||||||
|
}else{
|
||||||
|
subdeptsUser.setApproveStatus(ApproveStatus.await.getCode());
|
||||||
|
}
|
||||||
if(Objects.isNull(subdeptsUser.getSubStep()) || subdeptsUser.getSubStep()<1){
|
if(Objects.isNull(subdeptsUser.getSubStep()) || subdeptsUser.getSubStep()<1){
|
||||||
subdeptsUser.setSubStep(1L);
|
subdeptsUser.setSubStep(1L);
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,8 @@ public class SysRoleController extends BaseController
|
||||||
}
|
}
|
||||||
else if (!roleService.checkRoleKeyUnique(role))
|
else if (!roleService.checkRoleKeyUnique(role))
|
||||||
{
|
{
|
||||||
return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
|
role.setRoleKey(role.getRoleKey()+"_"+role.getDeptId());
|
||||||
|
//return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
|
||||||
}
|
}
|
||||||
role.setUpdateBy(SecurityUtils.getUsername());
|
role.setUpdateBy(SecurityUtils.getUsername());
|
||||||
return toAjax(roleService.updateRole(role));
|
return toAjax(roleService.updateRole(role));
|
||||||
|
|
|
@ -166,10 +166,12 @@ public class SysRoleServiceImpl implements ISysRoleService
|
||||||
public boolean checkRoleNameUnique(SysRole role)
|
public boolean checkRoleNameUnique(SysRole role)
|
||||||
{
|
{
|
||||||
Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId();
|
Long roleId = StringUtils.isNull(role.getRoleId()) ? -1L : role.getRoleId();
|
||||||
SysRole info = roleMapper.checkRoleNameUnique(role.getRoleName());
|
SysRole info = roleMapper.checkRoleNameUnique(role.getRoleName(),role.getDeptId());
|
||||||
if (StringUtils.isNotNull(info) && info.getRoleId().longValue() != roleId.longValue())
|
if (StringUtils.isNotNull(info))
|
||||||
{
|
{
|
||||||
return UserConstants.NOT_UNIQUE;
|
if(info.getRoleId().longValue() != roleId.longValue()){
|
||||||
|
return UserConstants.NOT_UNIQUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return UserConstants.UNIQUE;
|
return UserConstants.UNIQUE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,8 @@ function initDatas(){
|
||||||
}
|
}
|
||||||
|
|
||||||
initDatas();
|
initDatas();
|
||||||
console.log("bpmnFormData.proId==1>",bpmnFormData.value.proId);
|
if(!bpmnFormData.value.proId){
|
||||||
bpmnFormData.value.proId = userStore.currentPrjId+'';
|
bpmnFormData.value.proId = userStore.currentPrjId+'';
|
||||||
console.log("bpmnFormData.proId==2>",bpmnFormData.value.proId);
|
updateElementPro();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue