|
@@ -11,23 +11,25 @@
|
|
:value="item.value">
|
|
:value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
-
|
|
|
|
<!--<i class="el-icon-arrow-down"></i>-->
|
|
<!--<i class="el-icon-arrow-down"></i>-->
|
|
</div>
|
|
</div>
|
|
<div class="for-button-box">
|
|
<div class="for-button-box">
|
|
<div class="for-button-min-box">
|
|
<div class="for-button-min-box">
|
|
|
|
+ <!--楼层选择器-->
|
|
<div :class="buttonId == item.id ?'button-one':'button-two'"
|
|
<div :class="buttonId == item.id ?'button-one':'button-two'"
|
|
- @click="buttonListClick(item.id)"
|
|
|
|
- v-for="(item,index) in floorList" :key="index">{{item.name}}</div>
|
|
|
|
|
|
+ @click="buttonListClick(item.id,index)"
|
|
|
|
+ v-for="(item,index) in floorList" :key="index">{{item.name}}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="for-button-right-box button-one" @click="pageTypeClick(2)" v-hasPermi="['laboratory:line:add']">新增疏散路线</div>
|
|
<div class="for-button-right-box button-one" @click="pageTypeClick(2)" v-hasPermi="['laboratory:line:add']">新增疏散路线</div>
|
|
</div>
|
|
</div>
|
|
<div class="map-big-box">
|
|
<div class="map-big-box">
|
|
- <div class="map-min-box">
|
|
|
|
- <div class="map-min-for-box" v-for="(item,index) in fjList" :key="index">
|
|
|
|
|
|
+ <div :class="buttonId == '5'?'map-min-box-1':(buttonId == '6'?'map-min-box-2':(buttonId == '7'?'map-min-box-3':''))">
|
|
|
|
+ <div class="map-min-for-box"
|
|
|
|
+ v-for="(item,index) in fjList" :key="index">
|
|
{{item.room}}
|
|
{{item.room}}
|
|
</div>
|
|
</div>
|
|
- <img class="map-min-img" src="@/assets/ZDimages/icon_sjt.gif">
|
|
|
|
|
|
+ <img class="map-min-img" src="@/assets/ZDimages/icon_zjt.gif">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_zjt.gif">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_zjt.gif">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif">
|
|
<img class="map-min-img" src="@/assets/ZDimages/icon_yjt.gif">
|
|
@@ -76,6 +78,8 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { buildIdList,lablayout,laboratoryLine,laboratoryLineDel,getRedis } from "@/api/laboratory/emergencyEvacuation";
|
|
import { buildIdList,lablayout,laboratoryLine,laboratoryLineDel,getRedis } from "@/api/laboratory/emergencyEvacuation";
|
|
|
|
+ import { getBuilding } from "@/api/laboratory/building";
|
|
|
|
+ import { treeselectByUser } from "@/api/system/dept";
|
|
import addPage from './addPageOne.vue'
|
|
import addPage from './addPageOne.vue'
|
|
export default {
|
|
export default {
|
|
components:{
|
|
components:{
|
|
@@ -86,7 +90,6 @@
|
|
return {
|
|
return {
|
|
tableButtonType:this.hasPermiDom(['laboratory:line:query','laboratory:line:edit','laboratory:line:remove']),
|
|
tableButtonType:this.hasPermiDom(['laboratory:line:query','laboratory:line:edit','laboratory:line:remove']),
|
|
pageType:1,
|
|
pageType:1,
|
|
- fjList:[],
|
|
|
|
queryParams:{
|
|
queryParams:{
|
|
pageNum:1,
|
|
pageNum:1,
|
|
pageSize:20,
|
|
pageSize:20,
|
|
@@ -98,34 +101,54 @@
|
|
propsData:{},
|
|
propsData:{},
|
|
propsList:{},
|
|
propsList:{},
|
|
//楼栋选择数据
|
|
//楼栋选择数据
|
|
- buildingList:[
|
|
|
|
- {value:'1',label:'环境学院-祈福楼1'},
|
|
|
|
- {value:'2',label:'环境学院-祈福楼2'},
|
|
|
|
- {value:'3',label:'环境学院-祈福楼3'},
|
|
|
|
- ],
|
|
|
|
- floorList:[
|
|
|
|
- {name:"环境与气象研究所",id:'1'},
|
|
|
|
- {name:"环境与气象研究所",id:'2'},
|
|
|
|
- {name:"环境与气象研究所",id:'3'},
|
|
|
|
- {name:"环境与气象研究所",id:'4'},
|
|
|
|
- {name:"环境与气象研究所",id:'5'},
|
|
|
|
- {name:"环境与气象研究所",id:'6'},
|
|
|
|
- {name:"环境与气象研究所",id:'7'},
|
|
|
|
- ],
|
|
|
|
- buildingId:"1",
|
|
|
|
- buttonId:'1',
|
|
|
|
|
|
+ buildingList:[],
|
|
|
|
+ buildingId:null,
|
|
|
|
+ floorList:[],
|
|
|
|
+ buttonId:null,
|
|
|
|
+ fjList:[],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
- this.getList();
|
|
|
|
- this.lablayout();
|
|
|
|
|
|
+ this.treeselectByUser();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getBuilding(id){
|
|
|
|
+ getBuilding(id).then(response => {
|
|
|
|
+ this.$set(this,'floorList',response.data);
|
|
|
|
+ if(response.data[0]){
|
|
|
|
+ this.$set(this,'buttonId',response.data[0].id);
|
|
|
|
+ this.$set(this,'fjList',response.data[0].list);
|
|
|
|
+ this.getList();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ //获取院系/楼层
|
|
|
|
+ treeselectByUser(){
|
|
|
|
+ treeselectByUser().then(response => {
|
|
|
|
+ let list = [];
|
|
|
|
+ for(let i=0;i<response.data.length;i++){
|
|
|
|
+ for(let o=0;o<response.data[i].children.length;o++){
|
|
|
|
+ let obj = {
|
|
|
|
+ label:response.data[i].label+'-'+response.data[i].children[o].label,
|
|
|
|
+ value:response.data[i].children[o].id,
|
|
|
|
+ }
|
|
|
|
+ list.push(obj);
|
|
|
|
+ if(i==0&&o==0){
|
|
|
|
+ this.$set(this,'buildingId',response.data[i].children[o].id);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.$set(this,'buildingList',list);
|
|
|
|
+ this.getBuilding(this.buildingId);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 楼层点击
|
|
// 楼层点击
|
|
- buttonListClick(id){
|
|
|
|
|
|
+ buttonListClick(id,index){
|
|
this.$set(this,'buttonId',id);
|
|
this.$set(this,'buttonId',id);
|
|
|
|
+ this.$set(this,'fjList',this.floorList[index].list);
|
|
|
|
+ this.getList();
|
|
},
|
|
},
|
|
//删除按钮
|
|
//删除按钮
|
|
delButton(item){
|
|
delButton(item){
|
|
@@ -145,21 +168,9 @@
|
|
this.getList();
|
|
this.getList();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //根据学院获取层数据
|
|
|
|
- lablayout(){
|
|
|
|
- let self = this;
|
|
|
|
- let id = 137;
|
|
|
|
- lablayout(id).then(response => {
|
|
|
|
- for(let i=0;i<response.data.length;i++){
|
|
|
|
- if(response.data[i].id == 5){
|
|
|
|
- self.fjList = response.data[i].list;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
//获取层线路
|
|
//获取层线路
|
|
getList(){
|
|
getList(){
|
|
- let id = 5;
|
|
|
|
|
|
+ let id = this.buttonId;
|
|
buildIdList(id).then(response => {
|
|
buildIdList(id).then(response => {
|
|
this.routeList = response.rows;
|
|
this.routeList = response.rows;
|
|
this.total = response.total;
|
|
this.total = response.total;
|
|
@@ -269,155 +280,6 @@
|
|
margin:0;
|
|
margin:0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- .map-big-box{
|
|
|
|
- width:1410px;
|
|
|
|
- height:545px;
|
|
|
|
- margin:0 auto;
|
|
|
|
- border:1px solid #E0E0E0;
|
|
|
|
- margin-bottom:20px;
|
|
|
|
- .map-min-box{
|
|
|
|
- height:505px;
|
|
|
|
- width:1133px;
|
|
|
|
- margin:20px auto;
|
|
|
|
- background: url("../../../../assets/ZDimages/icon_bj_syspmtcy_jinan.png");
|
|
|
|
- position: relative;
|
|
|
|
- .map-min-for-box{
|
|
|
|
- overflow: hidden;
|
|
|
|
- display: inline-block;
|
|
|
|
- line-height:150px;
|
|
|
|
- text-align: center;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(1){
|
|
|
|
- margin:4px 143px 0 0;
|
|
|
|
- width:162px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(2){
|
|
|
|
- margin:4px 0 0 0;
|
|
|
|
- width:101px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(3){
|
|
|
|
- margin:4px 0 0 0;
|
|
|
|
- width:101px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(4){
|
|
|
|
- margin:4px 0 0 0;
|
|
|
|
- width:100px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(5){
|
|
|
|
- margin:4px 0 0 0;
|
|
|
|
- width:100px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(6){
|
|
|
|
- margin:4px 0 0 0;
|
|
|
|
- width:100px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(7){
|
|
|
|
- margin:4px 0 0 0;
|
|
|
|
- width:100px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(8){
|
|
|
|
- margin:4px 60px 0 0;
|
|
|
|
- width:100px;
|
|
|
|
- height:162px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(9){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 92px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(10){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 107px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(11){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 107px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(12){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(13){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(14){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(15){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(16){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(17){
|
|
|
|
- margin: 90px 0 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-for-box:nth-child(18){
|
|
|
|
- margin: 90px 60px 0 0;
|
|
|
|
- width: 100px;
|
|
|
|
- height: 240px;
|
|
|
|
- line-height:230px;
|
|
|
|
- }
|
|
|
|
- .map-min-img{
|
|
|
|
- position: absolute;
|
|
|
|
- width:40px;
|
|
|
|
- height:28px;
|
|
|
|
- }
|
|
|
|
- .map-min-img:nth-child(19){
|
|
|
|
- top: 128px;
|
|
|
|
- left: 175px;
|
|
|
|
- }
|
|
|
|
- .map-min-img:nth-child(20){
|
|
|
|
- top: 194px;
|
|
|
|
- left: 231px;
|
|
|
|
- }
|
|
|
|
- .map-min-img:nth-child(21){
|
|
|
|
- top: 194px;
|
|
|
|
- left: 540px;
|
|
|
|
- }
|
|
|
|
- .map-min-img:nth-child(22){
|
|
|
|
- top: 194px;
|
|
|
|
- left: 630px;
|
|
|
|
- }
|
|
|
|
- .map-min-img:nth-child(23){
|
|
|
|
- top: 194px;
|
|
|
|
- left: 940px;
|
|
|
|
- }
|
|
|
|
- .map-min-img:nth-child(24){
|
|
|
|
- top: 194px;
|
|
|
|
- left: 1030px;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
.table-box{
|
|
.table-box{
|
|
min-height:400px;
|
|
min-height:400px;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -445,6 +307,9 @@
|
|
.el-select .el-input .el-select__caret{
|
|
.el-select .el-input .el-select__caret{
|
|
font-size:20px;
|
|
font-size:20px;
|
|
}
|
|
}
|
|
|
|
+ .el-select{
|
|
|
|
+ display: flex;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|