1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672 |
- <!--新版布局管理-->
- <template>
- <div class="app-container building">
- <div class="buildingManagement" v-if="pageType == 1">
- <div class="max-left-box">
- <div class="tree-box scrollbar-box" v-if="treeList[0]">
- <div class="terr-max-box" v-for="(item,index) in treeList" :key="index">
- <div class="max-name-box">
- <p class="max-name" :class="checkTreeId==item.id?'check-color':''" @click="clickCheckTree(item,1)">
- {{item.name}}</p>
- </div>
- <div class="terr-big-box" v-for="(itemOne,indexOne) in item.buildFloorVoList" :key="indexOne">
- <div class="big-name-box">
- <p v-if="!itemOne.buildFloorVoList[0]" style="width:16px;"></p>
- <img v-if="!itemOne.onType&&itemOne.buildFloorVoList[0]"
- src="@/assets/ZDimages/integratedManagement/icon_bjgl_jt.png" @click="terrClick(itemOne)">
- <img v-if="itemOne.onType&&itemOne.buildFloorVoList[0]"
- src="@/assets/ZDimages/integratedManagement/icon_bjgl_xjt.png" @click="terrClick(itemOne)">
- <p class="name-p" :class="checkTreeId==itemOne.id?'check-color':''" @click="clickCheckTree(itemOne,2)">
- {{itemOne.name}}</p>
- </div>
- <div v-if="itemOne.onType" class="terr-min-box" v-for="(itemTwo,indexTwo) in itemOne.buildFloorVoList"
- :key="indexTwo">
- <p class="min-name" :class="checkTreeId==itemTwo.id?'check-color':''"
- @click="clickCheckTree(itemTwo,3,itemOne)">{{itemTwo.name}}</p>
- </div>
- </div>
- </div>
- </div>
- <p class="tree-null-p" v-if="!treeList[0]">暂无数据</p>
- </div>
- <div class="max-right-box">
- <div class="school-box" v-if="checkTreeType == 1">
- <div class="max-right-button-box">
- <p class="null-p"></p>
- </div>
- <div class="right-big-list-box scrollbar-box">
- <div class="for-max-box" v-for="(item,index) in buildingList" :key="index">
- <div class="for-big-box">
- <div class="for-big-box-left">
- <p class="for-text-one">{{item.name}}</p>
- <img src="@/assets/ZDimages/integratedManagement/icon_bjgl_lcs.png" class="for-img-two">
- <div class="for-text-box-one">
- <p>{{item.floorNum}}</p>
- <p>楼层数</p>
- </div>
- <img src="@/assets/ZDimages/integratedManagement/icon_bjgl_fj.png" class="for-img-three">
- <div class="for-text-box-two">
- <p>{{item.roomNum}}</p>
- <p>房间数</p>
- </div>
- </div>
- </div>
- </div>
- <img class="null-img" v-if="!buildingList[0]" src="@/assets/ZDimages/basicsModules/null-data-1.png">
- </div>
- </div>
- <div class="building-box" v-if="checkTreeType == 2">
- <div class="max-right-button-box">
- <p class="null-p"></p>
- <p class="max-right-big-button" @click="floorZK(1)" v-if="buildingList[0]">{{floorZkType==1?'一键收起':'一键展开'}}</p>
- </div>
- <div class="right-big-list-box scrollbar-box">
- <div class="for-max-box" v-for="(item,index) in buildingList" :key="index">
- <div class="for-big-box">
- <div class="for-big-box-left">
- <p class="for-text-one">{{item.name}}</p>
- </div>
- <img src="@/assets/ZDimages/integratedManagement/icon_bjgl_fj.png" class="for-img-three">
- <div class="for-text-box-two" style="margin-right:40px;">
- <p>{{item.roomNum}}</p>
- <p>房间数</p>
- </div>
- <div class="for-button-min-box">
- <div @click="floorZK(2,index)">
- <img src="@/assets/ZDimages/integratedManagement/icon_bjgl_zk.png">
- <p>{{item.onType?'收起':'展开'}}</p>
- </div>
- </div>
- </div>
- <div v-if="item.onType">
- <div class="layout-data-max-big-box"
- v-if="item.layoutData">
- <div class="layout-data-max-big-min-box"
- :style="'width:'+item.width+'px;height:'+item.height+'px;transform: scale('+item.zoomData+');margin-top:-'+item.height/2+'px;margin-left:-'+item.width/2+'px;'">
- <div class="layout-data-max-min-box"
- :style="'width:'+item.width+'px;height:'+item.height+'px;'">
- <div class="map-max-for-box"
- v-for="(bigItem,index) in item.mapList" :key="index"
- :class="bigItem.type == 2?'for-map-box-one':''"
- :style="'top:'+bigItem.y+'px;left:'+bigItem.x+'px;width:'+bigItem.w+'px;height:'+bigItem.h+'px;'">
- <div class="map-max-for-left-box"></div>
- <div class="map-max-for-center-box">
- <div class="map-max-for-center-min-left"></div>
- <div class="map-max-for-center-min-center"
- :class="bigItem.type == 2?'for-map-box-one':(bigItem.type == 1?'for-map-box':(bigItem.type == 3?'for-map-box-two':''))">
- <div class="min-text-box"
- :style="'line-height:'+(bigItem.h-4)+'px;height:'+(bigItem.h-4)+'px;'"
- v-if="bigItem.type==1">{{bigItem.roomNum}}</div>
- <div v-if="bigItem.type == 1"
- :class="minItem.toward=='top'?'center-move-door-p-t':(minItem.toward=='bottom'?'center-move-door-p-b':(minItem.toward=='left'?'center-move-door-p-l':(minItem.toward=='right'?'center-move-door-p-r':'')))"
- v-for="(minItem,minIndex) in bigItem.doorList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- <div v-if="bigItem.type == 3"
- :class="minItem.toward=='top'?'center-move-door-p-t-ss':(minItem.toward=='bottom'?'center-move-door-p-b-ss':(minItem.toward=='left'?'center-move-door-p-l-ss':(minItem.toward=='right'?'center-move-door-p-r-ss':'')))"
- v-for="(minItem,minIndex) in bigItem.doorList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- <div @click="lighButton(minItem)"
- :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
- v-for="(minItem,minIndex) in bigItem.lightList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- </div>
- <div class="map-max-for-center-min-right"></div>
- </div>
- <div class="map-max-for-right-box"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="layout-data-max-big-null-box" v-else>
- <img src="@/assets/ZDimages/integratedManagement/icon_wsctp.png">
- <div>
- <p></p>
- <p>暂未设置房间布局</p>
- <p @click="clickPage(2,item)">设置布局</p>
- <p></p>
- </div>
- </div>
- </div>
- </div>
- <img class="null-img" v-if="!buildingList[0]" src="@/assets/ZDimages/basicsModules/null-data-1.png">
- </div>
- </div>
- <div class="floor-box" v-if="checkTreeType == 3">
- <div class="map-max-big-box">
- <div class="layout-data-max-big-box" v-if="buildingList.layoutData">
- <div class="layout-data-max-big-min-box"
- :style="'width:'+buildingList.width+'px;height:'+buildingList.height+'px;transform: scale('+buildingList.zoomData+');margin-top:-'+buildingList.height/2+'px;margin-left:-'+buildingList.width/2+'px;'">
- <div class="layout-data-max-min-box"
- :style="'width:'+buildingList.width+'px;height:'+buildingList.height+'px;'">
- <div class="map-max-for-box"
- v-for="(item,index) in buildingList.mapList" :key="index"
- :class="item.type == 2?'for-map-box-one':''"
- :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
- <div class="map-max-for-left-box"></div>
- <div class="map-max-for-center-box">
- <div class="map-max-for-center-min-left"></div>
- <div class="map-max-for-center-min-center"
- :class="item.type == 2?'for-map-box-one':(item.type == 1?'for-map-box':(item.type == 3?'for-map-box-two':''))">
- <div class="min-text-box"
- :style="'line-height:'+(item.h-4)+'px;height:'+(item.h-4)+'px;'"
- v-if="item.type==1">{{item.roomNum}}</div>
- <div v-if="item.type == 1"
- :class="minItem.toward=='top'?'center-move-door-p-t':(minItem.toward=='bottom'?'center-move-door-p-b':(minItem.toward=='left'?'center-move-door-p-l':(minItem.toward=='right'?'center-move-door-p-r':'')))"
- v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- <div v-if="item.type == 3"
- :class="minItem.toward=='top'?'center-move-door-p-t-ss':(minItem.toward=='bottom'?'center-move-door-p-b-ss':(minItem.toward=='left'?'center-move-door-p-l-ss':(minItem.toward=='right'?'center-move-door-p-r-ss':'')))"
- v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- <div @click="lighButton(minItem)"
- :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
- v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- </div>
- <div class="map-max-for-center-min-right"></div>
- </div>
- <div class="map-max-for-right-box"></div>
- </div>
- </div>
- </div>
- </div>
- <div class="layout-data-max-big-null-box" v-else>
- <img src="@/assets/ZDimages/integratedManagement/icon_wsctp.png">
- <div>
- <p></p>
- <p>暂未设置房间布局</p>
- <p @click="clickPage(2,buildingList)">设置布局</p>
- <p></p>
- </div>
- </div>
- <p class="position-button-p" @click="clickPage(2,buildingList)" v-if="buildingList.layoutData">设置布局</p>
- </div>
- <div class="table-list-box">
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
- <el-form-item label="关键字" prop="searchValue" style="margin:10px 20px 10px 0;">
- <el-input
- v-model="queryParams.searchValue"
- placeholder="房间号/房间名称"
- clearable
- size="small"
- />
- </el-form-item>
- <el-form-item label="房间类型" prop="roomType" style="margin:10px 20px 0 0;">
- <el-select v-model="queryParams.roomType" placeholder="请选择房间类型">
- <el-option
- v-for="dict in roomTypeOptions"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item style="margin:10px 0 0 0;">
- <p class="page-inquire-common-style-button" @click="handleQuery" style="margin-right:20px;">查询</p>
- <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" border :data="dataList">
- <el-table-column label="房间号" align="left" prop="roomNum" width="200" show-overflow-tooltip/>
- <el-table-column label="房间名称" align="left" prop="roomName" show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{scope.row.roomName}}</span>
- <!--<span>{{scope.row.roomType}}</span>-->
- </template>
- </el-table-column>
- <el-table-column label="房间类型" align="left" prop="roomType" width="100" show-overflow-tooltip>
- <template slot-scope="scope">
- <span v-for="(item,index) in roomTypeOptions" :key="index" v-if="item.value == scope.row.roomType">{{item.label}}</span>
- </template>
- </el-table-column>
- <el-table-column label="绑定实验室" align="left" prop="roomType" width="200" show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{scope.row.binding?scope.row.subName:'未绑定'}}</span>
- </template>
- </el-table-column>
- <el-table-column label="创建人" align="left" prop="createName" width="200" show-overflow-tooltip/>
- <el-table-column label="创建时间" align="left" prop="createTime" width="200" show-overflow-tooltip>
- <template slot-scope="scope">
- <span>{{ parseTime(scope.row.createTime,"{y}-{m}-{d} {h}:{i}") }}</span>
- </template>
- </el-table-column>
- </el-table>
- <pagination
- style="padding-top:10px!important;"
- v-show="total>0"
- :total="total"
- :page.sync="queryParams.page"
- :limit.sync="queryParams.pageSize"
- @pagination="laboratoryBuildLayoutList"
- />
- </div>
- </div>
- </div>
- <el-dialog title="房间配置" v-if="dialogOpenRoom" :visible.sync="dialogOpenRoom" width="800px" append-to-body class="building-dialog-box">
- <el-form ref="roomDialogForm" :model="roomDialogForm" :rules="rules" label-width="110px">
- <el-form-item label="楼栋名称:" prop="buildName">
- <el-input v-model="roomDialogForm.buildName" maxlength="10" placeholder="请输入楼栋名称" disabled style="width:575px;"/>
- </el-form-item>
- <el-form-item label="楼层名称:" prop="floorName">
- <el-input v-model="roomDialogForm.floorName" maxlength="10" placeholder="请输入楼层名称" disabled style="width:575px;"/>
- </el-form-item>
- <el-form-item label="房间类型:" prop="roomType">
- <el-select v-model="roomDialogForm.roomType" placeholder="请选择房间类型" style="width:575px;">
- <el-option
- v-for="dict in roomTypeOptions"
- :key="dict.dictValue"
- :label="dict.dictLabel"
- :value="dict.dictValue">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="房间号:" prop="roomNum">
- <el-input v-model="roomDialogForm.roomNum" maxlength="10" placeholder="请输入房间号" style="width:575px;"/>
- </el-form-item>
- <el-form-item label="房间名称:" prop="roomName" v-if="roomDialogForm.roomType == '-99'">
- <el-input v-model="roomDialogForm.roomName" maxlength="10" placeholder="请输入房间名称" style="width:575px;"/>
- </el-form-item>
- <el-form-item label="房间选择:" prop="subId" v-if="roomDialogForm.roomType != '-99'">
- <el-select
- style="width:575px;"
- v-model="roomDialogForm.subId"
- filterable
- remote
- reserve-keyword
- @focus="selectFocus"
- placeholder="请选择房间"
- :remote-method="userSelectList"
- :loading="loading">
- <el-option
- v-for="item in subjectOptions"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="房间位置:">
- <div class="map-max-big-box">
- <div class="layout-data-max-big-box">
- <div class="layout-data-max-big-min-box"
- :style="'width:'+dialogBuildingData.width+'px;height:'+dialogBuildingData.height+'px;transform: scale('+minZoomData+');margin-top:-'+dialogBuildingData.height/2+'px;margin-left:-'+dialogBuildingData.width/2+'px;'">
- <div class="layout-data-max-min-box"
- :style="'width:'+dialogBuildingData.width+'px;height:'+dialogBuildingData.height+'px;'">
- <div class="map-max-for-box"
- v-for="(item,index) in dialogBuildingData.mapList" :key="index"
- :class="item.type == 2?'for-map-box-one':''"
- :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
- <div class="map-max-for-left-box"></div>
- <div class="map-max-for-center-box">
- <div class="map-max-for-center-min-left"></div>
- <div class="map-max-for-center-min-center"
- :class="item.type == 2?'for-map-box-one':(item.type == 1 &&item.checkType?'for-map-box-three':(item.type == 3?'for-map-box-two':(item.type == 1?'for-map-box':'')))">
- <div class="min-text-box"
- :style="'line-height:'+(item.h-4)+'px;height:'+(item.h-4)+'px;'"
- v-if="item.type==1">{{item.roomNum}}</div>
- <div v-if="item.type == 1"
- :class="minItem.toward=='top'?'center-move-door-p-t':(minItem.toward=='bottom'?'center-move-door-p-b':(minItem.toward=='left'?'center-move-door-p-l':(minItem.toward=='right'?'center-move-door-p-r':'')))"
- v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- <div v-if="item.type == 3"
- :class="minItem.toward=='top'?'center-move-door-p-t-ss':(minItem.toward=='bottom'?'center-move-door-p-b-ss':(minItem.toward=='left'?'center-move-door-p-l-ss':(minItem.toward=='right'?'center-move-door-p-r-ss':'')))"
- v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- <div @click="lighButton(minItem)"
- :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
- v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
- :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
- </div>
- <div class="map-max-for-center-min-right"></div>
- </div>
- <div class="map-max-for-right-box"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer dialog-footer-box">
- <p class="dialog-footer-button-null"></p>
- <p class="dialog-footer-button-info" @click="roomCancel">取消</p>
- <p class="dialog-footer-button-primary" @click="roomSubmitForm">提交</p>
- <p class="dialog-footer-button-null"></p>
- </div>
- </el-dialog>
- </div>
- <building-details :propsData="propsData" v-if="pageType == 2"></building-details>
- </div>
- </template>
- <script>
- import { getBuildFloorLayout, putBuildFloorLayout, subjectList
- } from '@/apiDemo/evacuation3_2/index'
- import buildingManagement from './buildingManagement.vue'
- import buildingDetails from './buildingDetails.vue'
- //v3
- import { getDicts,} from "@/api/commonality/noPermission";
- import { systemBuildingGetTreeList,} from "@/api/commonality/permission";
- import { laboratoryBuildLayoutGetTreeSonList,laboratoryBuildLayoutList } from "@/api/integratedManagement/index";
- export default {
- name: 'newIndex',
- components: {
- buildingManagement,
- buildingDetails
- },
- data() {
- return {
- pageType: 1,
- //拖拽起始Y点(用于计算朝向)
- clientY: null,
- clientId: null,
- //学校/楼栋/楼层
- treeList: [],
- //选中状态
- checkTreeId: null,
- checkTreeType: 1,
- buildingList: [],
- //楼层展开/关闭状态
- floorZkType: null, //1.全部展开 2.全部关闭 3.有关有开
- //编辑弹窗开关
- dialogOpen: false,
- dialogType: null,
- dialogTitle: '',
- // 表单参数
- dialogForm: {},
- roomDialogForm: {},
- //院校名称
- yxName: null,
- ldName: null,
- lcName: null,
- parentId: null,
- // 表单校验
- rules: {
- nameOne: [
- { required: true, message: '请输入院校名称', trigger: 'blur' },
- { required: true, message: '请输入院校名称', validator: this.spaceJudgment, trigger: 'blur' }
- ],
- nameTwo: [
- { required: true, message: '请输入楼栋名称', trigger: 'blur' },
- { required: true, message: '请输入楼栋名称', validator: this.spaceJudgment, trigger: 'blur' }
- ],
- nameThree: [
- { required: true, message: '请输入楼层名称', trigger: 'blur' },
- { required: true, message: '请输入楼层名称', validator: this.spaceJudgment, trigger: 'blur' }
- ],
- sortNo: [
- { required: true, message: '请输入排序序号', trigger: 'blur' },
- { required: true, message: '请输入排序序号', validator: this.spaceJudgment, trigger: 'blur' }
- ]
- },
- // 显示搜索条件
- showSearch: true,
- loading: false,
- //楼层查询数据
- queryParams: {
- floorId:'',
- page:1,
- pageSize:10,
- roomType:"",
- searchValue:"",
- },
- //楼层表单数据
- dataList: [],
- total: 10,
- //房间配置相关
- dialogOpenRoom: false,
- //房间类型列表
- roomTypeOptions: [],
- //实验室选择列表
- subjectOptions: [],
- //传参数据
- propsData: {},
- //缩放比例
- zoomData: null,
- minZoomData: null,
- dialogBuildingData:[],
- }
- },
- created() {
- },
- mounted() {
- this.systemBuildingGetTreeList()
- this.getDicts('layout_room_type').then(response => {
- this.roomTypeOptions = response.data
- this.roomTypeOptions.push({ label: '其他', value: '-99' })
- })
- },
- methods: {
- roomCancel() {
- this.$set(this, 'dialogOpenRoom', false)
- },
- roomSubmitForm() {
- this.$refs['roomDialogForm'].validate(valid => {
- if (valid) {
- let obj = {
- id: this.roomDialogForm.id,
- roomNum: this.roomDialogForm.roomNum,
- roomType: this.roomDialogForm.roomType
- }
- if (this.roomDialogForm.roomType == '-99') {
- obj.roomName = this.roomDialogForm.roomName
- } else {
- obj.subId = this.roomDialogForm.subId
- }
- putBuildFloorLayout(obj).then(response => {
- this.$set(this, 'dialogOpenRoom', false)
- this.msgSuccess(response.msg)
- let obj = {
- id: this.checkTreeId ,
- type: this.checkTreeType,
- parentId: this.parentId
- }
- this.laboratoryBuildLayoutGetTreeSonList(obj)
- })
- }
- })
- },
- // 取消按钮
- cancel() {
- this.$set(this, 'dialogOpen', false)
- this.$set(this, 'dialogForm', {})
- this.$set(this, 'dialogType', null)
- },
- //获取学校/楼栋/楼层数据
- systemBuildingGetTreeList() {
- systemBuildingGetTreeList({}).then(response => {
- if (response.data[0]) {
- for (let i = 0; i < response.data.length; i++) {
- for (let o = 0; o < response.data[i].buildFloorVoList.length; o++) {
- response.data[i].buildFloorVoList[o].onType = true
- }
- }
- this.$set(this, 'treeList', response.data)
- if (!this.checkTreeId) {
- this.$set(this, 'checkTreeId', response.data[0].id)
- this.$set(this, 'yxName', response.data[0].name)
- this.$set(this, 'parentId', response.data[0].parentId)
- }
- let obj = {
- id: this.checkTreeId ,
- type: this.checkTreeType,
- parentId: this.parentId
- }
- this.laboratoryBuildLayoutGetTreeSonList(obj)
- }
- })
- },
- //获取校区/楼栋/楼层详情数据
- laboratoryBuildLayoutGetTreeSonList(data) {
- laboratoryBuildLayoutGetTreeSonList(data).then(response => {
- if (this.checkTreeType == 1) {
- this.$set(this, 'buildingList', response.data.labBuildList)
- } else if (this.checkTreeType == 2) {
- for (let i = 0; i < response.data.labBuildList.length; i++) {
- response.data.labBuildList[i].onType = false
- if (response.data.labBuildList[i].layoutData) {
- response.data.labBuildList[i].mapList = JSON.parse(response.data.labBuildList[i].layoutData)
- let obj = this.calculateMapMax(response.data.labBuildList[i].mapList,380,1180)
- response.data.labBuildList[i].width = obj.maxWidth
- response.data.labBuildList[i].height = obj.maxHeight
- response.data.labBuildList[i].zoomData = obj.zoomData
- }
- }
- this.$set(this, 'buildingList', response.data.labBuildList)
- this.floorZkFor()
- } else if (this.checkTreeType == 3) {
- if (response.data.labBuildList[0].layoutData) {
- response.data.labBuildList[0].mapList = JSON.parse(response.data.labBuildList[0].layoutData)
- let obj = this.calculateMapMax(response.data.labBuildList[0].mapList,380,1180)
- response.data.labBuildList[0].width = obj.maxWidth
- response.data.labBuildList[0].height = obj.maxHeight
- response.data.labBuildList[0].zoomData = obj.zoomData
- }
- this.$set(this, 'buildingList', response.data.labBuildList[0])
- }
- })
- },
- //获取楼层房间数据
- laboratoryBuildLayoutList(){
- laboratoryBuildLayoutList(this.queryParams).then(response => {
- this.$set(this,'dataList',response.data.records);
- this.$set(this,'total',response.data.total);
- })
- },
- //页面切换
- clickPage(type, item) {
- if (type == 1) {
- this.$set(this, 'pageType', type)
- } else if (type == 2) {
- this.$set(this, 'propsData', item)
- if(item.name){
- this.$set(this.propsData, 'buildId', item.parentId)
- this.$set(this.propsData, 'floorId', item.id)
- this.$set(this.propsData, 'buildName', item.buildName)
- this.$set(this.propsData, 'floorName', item.name)
- }else if(item.floorName){
- this.$set(this.propsData, 'buildId', item.buildId)
- this.$set(this.propsData, 'floorId', item.floorId)
- this.$set(this.propsData, 'buildName', item.buildName)
- this.$set(this.propsData, 'floorName', item.floorName)
- }
- this.$set(this, 'pageType', type)
- }else if(type == 3){
- this.$set(this, 'pageType', 1)
- let obj = {
- id: this.checkTreeId ,
- type: this.checkTreeType,
- parentId: this.parentId
- }
- this.laboratoryBuildLayoutGetTreeSonList(obj)
- }
- },
- //懒加载实验室
- userSelectList(e) {
- subjectList({ name: e }).then(response => {
- this.subjectOptions = response.data
- this.subjectOptions.push({ id: this.roomDialogForm.subId, name: this.roomDialogForm.subName })
- })
- },
- selectFocus() {
- },
- //树状结构选中
- clickCheckTree(item, type, itemOne) {
- if (item.id != this.checkTreeId) {
- this.$set(this, 'checkTreeId', item.id)
- this.$set(this, 'checkTreeType', type)
- if (type == 1) {
- this.$set(this, 'yxName', item.name)
- this.$set(this, 'buildingList', [])
- } else if (type == 2) {
- this.$set(this, 'ldName', item.name)
- this.$set(this, 'buildingList', [])
- } else if (type == 3) {
- this.$set(this, 'buildingList', {})
- this.$set(this,'queryParams', {
- floorId:item.id,
- page:1,
- pageSize:10,
- roomType:"",
- searchValue:"",
- })
- this.laboratoryBuildLayoutList();
- }
- let obj = {
- id: item.id,
- type: type,
- parentId: item.parentId
- }
- this.$set(this,'parentId',item.parentId);
- this.laboratoryBuildLayoutGetTreeSonList(obj)
- }
- },
- //树状结构展开收回
- terrClick(itemOne) {
- itemOne.onType = !itemOne.onType
- },
- //展开/收起开关
- floorZK(type, index) {
- let self = this
- //type等于1时全部开关功能 等于2时单个开关
- if (type == 1) {
- let list = JSON.parse(JSON.stringify(self.buildingList))
- for (let i = 0; i < list.length; i++) {
- if (self.floorZkType == 1) {
- list[i].onType = false
- } else if (self.floorZkType == 2) {
- list[i].onType = true
- } else if (self.floorZkType == 3) {
- list[i].onType = true
- }
- }
- this.$set(this, 'buildingList', list)
- this.floorZkFor()
- } else if (type == 2) {
- this.$set(this.buildingList[index], 'onType', this.buildingList[index].onType ? false : true)
- this.floorZkFor()
- }
- },
- //层展开关闭判断
- floorZkFor() {
- let self = this
- let numOne = 0
- let numTwo = 0
- for (let i = 0; i < self.buildingList.length; i++) {
- if (self.buildingList[i].onType) {
- numOne++
- } else {
- numTwo++
- }
- }
- if (numOne == self.buildingList.length) {
- this.$set(this, 'floorZkType', 1)
- } else if (numTwo == self.buildingList.length) {
- this.$set(this, 'floorZkType', 2)
- } else {
- this.$set(this, 'floorZkType', 3)
- }
- },
- /** 搜索按钮操作 */
- handleQuery() {
- this.$set(this.queryParams, 'page', 1)
- this.laboratoryBuildLayoutList()
- },
- /** 重置按钮操作 */
- resetQuery() {
- this.$set(this.queryParams, 'page', 1)
- this.$set(this.queryParams, 'roomType', "")
- this.$set(this.queryParams, 'searchValue', "")
- this.handleQuery()
- },
- //计算布局最大尺寸
- calculateMapMax(list, height,width,type) {
- //基础参数
- let maxWidth = 0
- let maxHeight = 0
- let zoomData = 1;
- //参数处理
- for (let i = 0; i < list.length; i++) {
- if ((list[i].x + list[i].w) > maxWidth) {
- maxWidth = list[i].x + list[i].w
- }
- if ((list[i].y + list[i].h) > maxHeight) {
- maxHeight = list[i].y + list[i].h
- }
- }
- //处理等值数据
- if(maxHeight == height){
- maxHeight++
- }
- if(maxWidth == width){
- maxWidth++
- }
- //缩放判断
- let zoomNumOne = height / maxHeight;
- if(parseInt(this.accMul(zoomNumOne,maxHeight)) <= height && parseInt(this.accMul(zoomNumOne,maxWidth)) <= width){
- zoomData = zoomNumOne;
- this.$set(this,'zoomData',zoomNumOne);
- this.$set(this,'minZoomData',zoomNumOne);
- }
- let zoomNumTwo = width / maxWidth;
- if(parseInt(this.accMul(zoomNumTwo,maxHeight)) <= height && parseInt(this.accMul(zoomNumTwo,maxWidth)) <= width){
- zoomData = zoomNumTwo;
- this.$set(this,'zoomData',zoomNumTwo);
- this.$set(this,'minZoomData',zoomNumTwo);
- }
- return { maxWidth: maxWidth, maxHeight: maxHeight,zoomData:zoomData }
- },
- accMul(arg1,arg2){
- var m=0,s1=arg1.toString(),s2=arg2.toString();
- try{m+=s1.split(".")[1].length}catch(e){}
- try{m+=s2.split(".")[1].length}catch(e){}
- return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m)
- },
- }
- }
- </script>
- <style scoped lang="scss">
- .building {
- flex: 1;
- display: flex !important;
- flex-direction: column;
- overflow: hidden;
- * {
- margin: 0;
- font-weight: 500;
- }
- .buildingManagement {
- flex: 1;
- display: flex !important;
- overflow: hidden;
- padding: 22px 28px 22px 32px;
- .max-left-box {
- width: 281px;
- border-right: 1px dashed #A2A2A2;
- display: flex;
- flex-direction: column;
- .tree-null-p {
- text-align: center;
- line-height: 100px;
- flex: 1;
- color: #999;
- }
- .tree-box {
- flex: 1;
- .terr-max-box {
- margin-top: 20px;
- .max-name-box {
- display: flex;
- margin-right: 20px;
- margin-bottom: 10px;
- color: #D8D8D8;
- font-size: 20px;
- .max-name {
- flex: 1;
- margin-right: 19px;
- color: #333;
- font-size: 16px;
- line-height: 16px;
- margin-top: 3px;
- cursor: pointer;
- }
- }
- .terr-big-box {
- margin-left: 30px;
- .big-name-box {
- cursor: pointer;
- height: 40px;
- line-height: 40px;
- display: flex;
- font-size: 16px;
- color: #333;
- img {
- width: 16px;
- height: 16px;
- margin-top: 12px;
- margin-right: 4px;
- }
- .name-p {
- flex: 1;
- }
- }
- .terr-min-box {
- margin-left: 30px;
- .min-name {
- cursor: pointer;
- height: 40px;
- line-height: 40px;
- display: flex;
- font-size: 16px;
- color: #333;
- }
- }
- }
- .check-color {
- color: #0183FA !important;
- }
- }
- }
- .max-left-big-button {
- color: #0183FA;
- border: 1px dashed #0183FA;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- width: 180px;
- line-height: 40px;
- margin: 20px 0 20px 40px;
- text-align: center;
- font-size: 14px;
- cursor: pointer;
- }
- .max-left-big-button:hover {
- color: #fff;
- background: #0183FA;
- border: 1px solid #0183FA;
- }
- }
- .max-right-box {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- .school-box {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- .max-right-button-box {
- height: 40px;
- display: flex;
- margin-bottom: 22px;
- .null-p {
- flex: 1;
- }
- .max-right-big-button {
- color: #fff;
- background: #0045AF;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- width: 130px;
- line-height: 40px;
- text-align: center;
- font-size: 14px;
- cursor: pointer;
- }
- .max-right-big-button:hover {
- color: #fff;
- background: #0183FA;
- }
- }
- .right-big-list-box {
- flex: 1;
- position: relative;
- .for-max-box {
- .for-big-box {
- display: flex;
- border: 1px solid #dedede;
- height: 100px;
- box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
- margin-bottom: 30px;
- margin-left: 36px;
- border-radius: 6px;
- .for-big-box-left {
- flex: 1;
- display: flex;
- .for-img-one {
- cursor: pointer;
- height: 30px;
- width: 30px;
- margin: 35px 0 0 30px;
- }
- .for-text-one {
- font-size: 16px;
- line-height: 100px;
- margin-left: 95px;
- width: 230px;
- font-weight: 500;
- }
- .for-img-two {
- height: 48px;
- width: 48px;
- margin: 26px 23px 0 30px;
- }
- .for-text-box-one {
- width: 88px;
- margin-right: 73px;
- p {
- text-align: center;
- }
- p:nth-child(1) {
- margin-top: 20px;
- font-size: 24px;
- line-height: 30px;
- color: #0183FA;
- }
- p:nth-child(2) {
- margin-top: 10px;
- font-size: 16px;
- line-height: 16px;
- color: #333;
- }
- }
- .for-img-three {
- height: 48px;
- width: 48px;
- margin: 26px 23px 0 0;
- }
- .for-text-box-two {
- width: 88px;
- p {
- text-align: center;
- }
- p:nth-child(1) {
- margin-top: 20px;
- font-size: 24px;
- line-height: 30px;
- color: #0183FA;
- }
- p:nth-child(2) {
- margin-top: 10px;
- font-size: 16px;
- line-height: 16px;
- color: #333;
- }
- }
- }
- .for-button-min-box {
- width: 220px;
- margin-top: 9px;
- height: 82px;
- border-left: 1px dashed rgba(0, 0, 0, 0.3);
- display: flex;
- line-height: 82px;
- div {
- margin-left: 34px;
- display: flex;
- width: 60px;
- cursor: pointer;
- img {
- width: 16px;
- height: 16px;
- margin-right: 8px;
- margin-top: 33px;
- }
- p {
- font-size: 14px;
- color: #333;
- }
- }
- }
- }
- }
- .null-img {
- position: absolute;
- top: 40%;
- left: 50%;
- width: 276px;
- height: 321px;
- margin-top: -160px;
- margin-left: -138px;
- }
- }
- }
- .building-box {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- .max-right-button-box {
- height: 40px;
- display: flex;
- margin-bottom: 22px;
- .null-p {
- flex: 1;
- }
- .max-right-big-button {
- color: #fff;
- background: #0045AF;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- width: 130px;
- line-height: 40px;
- text-align: center;
- font-size: 14px;
- cursor: pointer;
- }
- .max-right-big-button:hover {
- color: #fff;
- background: #0183FA;
- }
- }
- .right-big-list-box {
- flex: 1;
- position: relative;
- .for-max-box {
- margin-bottom: 30px;
- .for-big-box {
- display: flex;
- border: 1px solid #dedede;
- height: 100px;
- box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
- margin-left: 36px;
- border-radius: 6px;
- .for-big-box-left {
- flex: 1;
- display: flex;
- .for-img-one {
- cursor: pointer;
- height: 30px;
- width: 30px;
- margin: 35px 0 0 30px;
- }
- .for-text-one {
- font-size: 16px;
- line-height: 100px;
- margin-left: 95px;
- width: 230px;
- font-weight: 500;
- }
- .for-img-two {
- height: 48px;
- width: 48px;
- margin: 26px 23px 0 30px;
- }
- .for-text-box-one {
- width: 88px;
- margin-right: 73px;
- p {
- text-align: center;
- }
- p:nth-child(1) {
- margin-top: 20px;
- font-size: 24px;
- line-height: 30px;
- color: #0183FA;
- }
- p:nth-child(2) {
- margin-top: 10px;
- font-size: 16px;
- line-height: 16px;
- color: #333;
- }
- }
- .for-img-three {
- height: 48px;
- width: 48px;
- margin: 26px 23px 0 0;
- }
- .for-text-box-two {
- width: 88px;
- p {
- text-align: center;
- }
- p:nth-child(1) {
- margin-top: 20px;
- font-size: 24px;
- line-height: 30px;
- color: #0183FA;
- }
- p:nth-child(2) {
- margin-top: 10px;
- font-size: 16px;
- line-height: 16px;
- color: #333;
- }
- }
- }
- .for-img-three {
- height: 48px;
- width: 48px;
- margin: 26px 23px 0 0;
- }
- .for-text-box-two {
- width: 88px;
- p {
- text-align: center;
- }
- p:nth-child(1) {
- margin-top: 20px;
- font-size: 24px;
- line-height: 30px;
- color: #0183FA;
- }
- p:nth-child(2) {
- margin-top: 10px;
- font-size: 16px;
- line-height: 16px;
- color: #333;
- }
- }
- .for-button-min-box {
- width: 130px;
- margin-top: 9px;
- height: 82px;
- border-left: 1px dashed rgba(0, 0, 0, 0.3);
- display: flex;
- line-height: 82px;
- div {
- margin-left: 34px;
- display: flex;
- width: 60px;
- cursor: pointer;
- img {
- width: 16px;
- height: 16px;
- margin-right: 8px;
- margin-top: 33px;
- }
- p {
- font-size: 14px;
- color: #333;
- }
- }
- }
- }
- .layout-data-max-big-box {
- width: 1195px;
- height: 400px;
- margin-left: 36px;
- border-left: 1px solid #e0e0e0;
- border-right: 1px solid #e0e0e0;
- border-bottom: 1px solid #e0e0e0;
- position: relative;
- .layout-data-max-big-min-box {
- position: absolute;
- top: 50%;
- left: 50%;
- .layout-data-max-min-box {
- position: relative;
- /*border:1px solid #e0e0e0;*/
- .map-max-for-box {
- position: absolute;
- display: flex;
- flex-direction: column;
- .map-max-for-left-box {
- height: 2px;
- }
- .map-max-for-center-box {
- flex: 1;
- display: flex;
- .map-max-for-center-min-left {
- width: 2px;
- }
- .map-max-for-center-min-center {
- flex: 1;
- position: relative;
- .min-text-box{
- width:100%;
- text-align: center;
- color:#333;
- word-wrap:break-word;
- word-break:break-all;
- overflow: hidden;
- z-index:999;
- font-size:14px;
- line-height:20px;
- }
- div {
- position: absolute
- }
- .center-move-door-p-t {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotate(180deg);
- }
- .center-move-door-p-b {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- }
- .center-move-door-p-l {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotate(90deg);
- }
- .center-move-door-p-r {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotateZ(270deg);
- }
- .center-move-door-p-t-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotate(180deg);
- }
- .center-move-door-p-b-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- }
- .center-move-door-p-l-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotate(90deg);
- }
- .center-move-door-p-r-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotateZ(270deg);
- }
- .lightTop {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sjt.png");
- background-size: 100%;
- }
- .lightBottom {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_xjt.png");
- background-size: 100%;
- }
- .lightLeft {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_zuo.png");
- background-size: 100%;
- }
- .lightRight {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_yuo.png");
- background-size: 100%;
- }
- }
- .map-max-for-center-min-right {
- width: 2px;
- }
- }
- .map-max-for-right-box {
- height: 2px;
- }
- .map-max-for-min-box {
- position: relative;
- div {
- position: absolute
- }
- }
- }
- .for-map-box {
- background: #CEF2FD;
- }
- .for-map-box-one {
- background: #CEFDD5;
- }
- .for-map-box-two {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_yjtd.png") center center no-repeat #39AE36;
- background-size: 60px 60px;
- }
- }
- }
- }
- .layout-data-max-big-null-box {
- height: 400px;
- margin-left: 36px;
- border-left: 1px solid #e0e0e0;
- border-right: 1px solid #e0e0e0;
- border-bottom: 1px solid #e0e0e0;
- position: relative;
- overflow: hidden;
- img {
- position: absolute;
- top: 50%;
- left: 50%;
- margin-left: -71px;
- margin-top: -71px;
- width: 142px;
- height: 142px;
- }
- div {
- margin-top: 300px;
- height: 30px;
- display: flex;
- p:nth-child(1) {
- flex: 1;
- }
- p:nth-child(2) {
- margin-right: 20px;
- color: #333;
- font-size: 14px;
- }
- p:nth-child(3) {
- color: #0183FA;
- font-size: 14px;
- cursor: pointer;
- }
- p:nth-child(4) {
- flex: 1;
- }
- }
- }
- }
- .null-img {
- position: absolute;
- top: 40%;
- left: 50%;
- width: 276px;
- height: 321px;
- margin-top: -160px;
- margin-left: -138px;
- }
- }
- }
- .floor-box {
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- .map-max-big-box {
- height: 400px;
- position: relative;
- border: 1px solid #E0E0E0;
- margin-bottom: 20px;
- margin-left: 36px;
- .layout-data-max-big-box {
- width: 1195px;
- height: 400px;
- position: relative;
- .layout-data-max-big-min-box {
- position: absolute;
- top: 50%;
- left: 50%;
- .layout-data-max-min-box {
- position: relative;
- /*border:1px solid #e0e0e0;*/
- .map-max-for-box {
- position: absolute;
- display: flex;
- flex-direction: column;
- .map-max-for-left-box {
- height: 2px;
- }
- .map-max-for-center-box {
- flex: 1;
- display: flex;
- .map-max-for-center-min-left {
- width: 2px;
- }
- .map-max-for-center-min-center {
- flex: 1;
- position: relative;
- .min-text-box{
- width:100%;
- text-align: center;
- color:#333;
- word-wrap:break-word;
- word-break:break-all;
- overflow: hidden;
- z-index:999;
- font-size:14px;
- line-height:20px;
- }
- div {
- position: absolute
- }
- .center-move-door-p-t {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotate(180deg);
- }
- .center-move-door-p-b {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- }
- .center-move-door-p-l {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotate(90deg);
- }
- .center-move-door-p-r {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotateZ(270deg);
- }
- .center-move-door-p-t-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotate(180deg);
- }
- .center-move-door-p-b-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- }
- .center-move-door-p-l-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotate(90deg);
- }
- .center-move-door-p-r-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotateZ(270deg);
- }
- .lightTop {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sjt.png");
- background-size: 100%;
- }
- .lightBottom {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_xjt.png");
- background-size: 100%;
- }
- .lightLeft {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_zuo.png");
- background-size: 100%;
- }
- .lightRight {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_yuo.png");
- background-size: 100%;
- }
- }
- .map-max-for-center-min-right {
- width: 2px;
- }
- }
- .map-max-for-right-box {
- height: 2px;
- }
- .map-max-for-min-box {
- position: relative;
- div {
- position: absolute
- }
- }
- }
- .for-map-box {
- background: #CEF2FD;
- }
- .for-map-box-one {
- background: #CEFDD5;
- }
- .for-map-box-two {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_yjtd.png") center center no-repeat #39AE36;
- background-size: 60px 60px;
- }
- }
- }
- }
- .layout-data-max-big-null-box {
- height: 400px;
- position: relative;
- overflow: hidden;
- img {
- position: absolute;
- top: 50%;
- left: 50%;
- margin-left: -71px;
- margin-top: -71px;
- width: 142px;
- height: 142px;
- }
- div {
- margin-top: 300px;
- height: 30px;
- display: flex;
- p:nth-child(1) {
- flex: 1;
- }
- p:nth-child(2) {
- margin-right: 20px;
- color: #333;
- font-size: 14px;
- }
- p:nth-child(3) {
- color: #0183FA;
- font-size: 14px;
- cursor: pointer;
- }
- p:nth-child(4) {
- flex: 1;
- }
- }
- }
- .position-button-p {
- position: absolute;
- right: 12px;
- top: 13px;
- width: 100px;
- line-height: 40px;
- font-size: 14px;
- color: #fff;
- background: #0045AF;
- border-radius: 6px;
- text-align: center;
- cursor: pointer;
- }
- }
- .table-list-box {
- padding-bottom:10px;
- margin-left: 36px;
- flex: 1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- }
- }
- }
- }
- </style>
- <style lang="scss">
- .dialog-sort-no-form-item-box input {
- text-align: left !important;
- }
- .building-dialog-box{
- .map-max-big-box {
- width: 575px;
- height: 286px;
- position: relative;
- border: 1px solid #E0E0E0;
- overflow: hidden;
- .layout-data-max-big-box {
- width: 575px;
- height: 286px;
- position: relative;
- .layout-data-max-big-min-box {
- position: absolute;
- top: 50%;
- left: 50%;
- .layout-data-max-min-box {
- position: relative;
- .map-max-for-box {
- position: absolute;
- display: flex;
- flex-direction: column;
- .map-max-for-left-box {
- height: 2px;
- }
- .map-max-for-center-box {
- flex: 1;
- display: flex;
- .map-max-for-center-min-left {
- width: 2px;
- }
- .map-max-for-center-min-center {
- flex: 1;
- position: relative;
- .min-text-box{
- width:100%;
- text-align: center;
- color:#333;
- word-wrap:break-word;
- word-break:break-all;
- overflow: hidden;
- z-index:999;
- font-size:14px;
- line-height:20px;
- }
- div {
- position: absolute
- }
- .center-move-door-p-t {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotate(180deg);
- }
- .center-move-door-p-b {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- }
- .center-move-door-p-l {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotate(90deg);
- }
- .center-move-door-p-r {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sysbjt_m.png") !important;
- background-size: 100% !important;
- transform: rotateZ(270deg);
- }
- .center-move-door-p-t-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotate(180deg);
- }
- .center-move-door-p-b-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- }
- .center-move-door-p-l-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotate(90deg);
- }
- .center-move-door-p-r-ss {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_aqtd_m.png") !important;
- background-size: 100% !important;
- transform: rotateZ(270deg);
- }
- .lightTop {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_sjt.png");
- background-size: 100%;
- }
- .lightBottom {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_xjt.png");
- background-size: 100%;
- }
- .lightLeft {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_zuo.png");
- background-size: 100%;
- }
- .lightRight {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_yuo.png");
- background-size: 100%;
- }
- }
- .map-max-for-center-min-right {
- width: 2px;
- }
- }
- .map-max-for-right-box {
- height: 2px;
- }
- .map-max-for-min-box {
- position: relative;
- div {
- position: absolute
- }
- }
- }
- .for-map-box {
- background: #CEF2FD;
- }
- .for-map-box-one {
- background: #CEFDD5;
- }
- .for-map-box-two {
- background: url("../../../../assets/ZDimages/integratedManagement/icon_yjtd.png") center center no-repeat #39AE36;
- background-size: 60px 60px;
- }
- .for-map-box-three {
- background: #FFBBBB!important;
- }
- }
- }
- }
- .layout-data-max-big-null-box {
- height: 400px;
- position: relative;
- overflow: hidden;
- img {
- position: absolute;
- top: 50%;
- left: 50%;
- margin-left: -71px;
- margin-top: -71px;
- width: 142px;
- height: 142px;
- }
- div {
- margin-top: 300px;
- height: 30px;
- display: flex;
- p:nth-child(1) {
- flex: 1;
- }
- p:nth-child(2) {
- margin-right: 20px;
- color: #333;
- font-size: 14px;
- }
- p:nth-child(3) {
- color: #0183FA;
- font-size: 14px;
- cursor: pointer;
- }
- p:nth-child(4) {
- flex: 1;
- }
- }
- }
- .position-button-p {
- position: absolute;
- right: 12px;
- top: 13px;
- width: 100px;
- line-height: 40px;
- font-size: 14px;
- color: #fff;
- background: #0045AF;
- border-radius: 6px;
- text-align: center;
- cursor: pointer;
- }
- }
- }
- </style>
|