大屏增加BIM交底

dev_xd
lj7788@126.com 2025-06-18 11:50:49 +08:00
parent 3ecc6f1edd
commit dad2c9f335
4 changed files with 43 additions and 6 deletions

View File

@ -143,7 +143,7 @@ export default {
isFullScreen: false,
showMenus: [],
showMenusNavIds: [],
notDetail:false,
notDetail: false,
};
},
computed: {
@ -176,7 +176,7 @@ export default {
const prjId = urlParams.get("prjId");
localStorage.setItem("selProj", prjId);
setTimeout(() => {
if(this.notDetail == false){
if (this.notDetail == false) {
location.hash = "#/detail";
}
}, 800);
@ -238,13 +238,13 @@ export default {
if (!tmps.includes(2)) {
let nav = tmps[0];
nav = tmps[0];
tmps = this.showMenusNavIds.filter((item) => String(item).startsWith(nav+""));
tmps = this.showMenusNavIds.filter((item) => String(item).startsWith(nav + ""));
if (tmps.length > 1) {
nav= tmps[1];
nav = tmps[1];
}
this.$store.dispatch("ChangeNav", nav);
this.doNav(+nav);
this.notDetail=true;
this.notDetail = true;
}
console.log(this.showMenusNavIds);
});
@ -294,6 +294,9 @@ export default {
case 702:
this.$router.push("/bimRoaming");
break;
case 704:
this.$router.push("/bimBriefing");
break;
case 701:
this.$router.push("/bimManage");
break;

View File

@ -72,6 +72,13 @@ const routes = [
component: () =>
import(/* webpackChunkName: "bimRoaming" */ "../views/bimRoaming.vue"),
},
{
path: "/bimBriefing",
name: "bimBriefing",
meta: { nav: 704 },
component: () =>
import(/* webpackChunkName: "bimBriefing" */ "../views/bimBriefing.vue"),
},
{
path: "/videoMonitor",
name: "videoMonitor",

View File

@ -0,0 +1,25 @@
<template>
<div class="bim-briefing main-page">
111
</div>
</template>
<script>
export default {
name: 'BimBriefing',
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="less">
.bim-briefing{
}
</style>

View File

@ -16,6 +16,7 @@ import com.yanzhu.manage.domain.GreenCarbonData;
import com.yanzhu.manage.domain.GreenCarbonItem;
import com.yanzhu.manage.service.IGreenCarbonDataService;
import com.yanzhu.manage.service.IGreenCarbonItemService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@ -188,7 +189,8 @@ public class GreenCarbonItemController extends BaseController
List<GreenCarbonItem> list = greenCarbonItemService.selectGreenCarbonItemList(where);
if(list.size()>0){
for(GreenCarbonItem it : list){
if(!it.getId().equals(greenCarbonItem.getId())){
if(!it.getId().equals(greenCarbonItem.getId())
&& StringUtils.equals(it.getCarbonName(),greenCarbonItem.getCarbonName())){
return AjaxResult.error("当前项目已存在相同数据!");
}
}