newIndex.vue 79 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975
  1. <!--新版布局管理-->
  2. <template>
  3. <div class="app-container building">
  4. <div class="buildingManagement" v-if="pageType == 1">
  5. <div class="max-left-box">
  6. <div class="tree-box scrollbar-box" v-if="treeList[0]">
  7. <p style="color:#0183FA;font-size:18px;">{{schoolName}}</p>
  8. <div class="terr-max-box" v-for="(item,index) in treeList" :key="index">
  9. <div class="max-name-box">
  10. <p class="max-name" :class="checkTreeId==item.id?'check-color':''" @click="clickCheckTree(item,1)">
  11. {{item.name}}</p>
  12. <el-dropdown @command="(command)=>handleCommand(command,item)" trigger="click">
  13. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_gd.png"
  14. style="cursor:pointer;width:16px;height:4px;margin-top:7px;">
  15. <el-dropdown-menu slot="dropdown">
  16. <el-dropdown-item command="1">编辑</el-dropdown-item>
  17. <el-dropdown-item command="2">删除</el-dropdown-item>
  18. </el-dropdown-menu>
  19. </el-dropdown>
  20. </div>
  21. <div class="terr-big-box" v-for="(itemOne,indexOne) in item.buildFloorVoList" :key="indexOne">
  22. <div class="big-name-box">
  23. <p v-if="!itemOne.buildFloorVoList[0]" style="width:16px;"></p>
  24. <img v-if="!itemOne.onType&&itemOne.buildFloorVoList[0]"
  25. src="@/assets/ZDimages/evacuation3_2/icon_bjgl_jt.png" @click="terrClick(itemOne)">
  26. <img v-if="itemOne.onType&&itemOne.buildFloorVoList[0]"
  27. src="@/assets/ZDimages/evacuation3_2/icon_bjgl_xjt.png" @click="terrClick(itemOne)">
  28. <p class="name-p" :class="checkTreeId==itemOne.id?'check-color':''" @click="clickCheckTree(itemOne,2)">
  29. {{itemOne.name}}</p>
  30. </div>
  31. <div v-if="itemOne.onType" class="terr-min-box" v-for="(itemTwo,indexTwo) in itemOne.buildFloorVoList"
  32. :key="indexTwo">
  33. <p class="min-name" :class="checkTreeId==itemTwo.id?'check-color':''"
  34. @click="clickCheckTree(itemTwo,3,itemOne)">{{itemTwo.name}}</p>
  35. </div>
  36. </div>
  37. </div>
  38. </div>
  39. <p class="tree-null-p" v-if="!treeList[0]">暂无数据</p>
  40. <p class="max-left-big-button" @click="handleCommand(3)">+ 新增校区</p>
  41. </div>
  42. <div class="max-right-box">
  43. <div class="school-box" v-if="checkTreeType == 1">
  44. <div class="max-right-button-box">
  45. <p class="null-p"></p>
  46. <p class="max-right-big-button" @click="handleCommand(4)" v-hasPermi="['laboratory:buildfloor:add']">+ 新增楼栋</p>
  47. </div>
  48. <div class="right-big-list-box scrollbar-box">
  49. <div class="for-max-box" v-for="(item,index) in buildingList" :key="index"
  50. @dragover.prevent="dragoverPrevent(item)">
  51. <div class="for-big-box">
  52. <div class="for-big-box-left">
  53. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_td.png" class="for-img-one"
  54. draggable="true"
  55. @dragstart="dragstartPlay($event)"
  56. @dragend="dragEnterOver($event, item)">
  57. <p class="for-text-one">{{item.name}}</p>
  58. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_lcs.png" class="for-img-two">
  59. <div class="for-text-box-one">
  60. <p>{{item.floorNum}}</p>
  61. <p>楼层数</p>
  62. </div>
  63. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_fj.png" class="for-img-three">
  64. <div class="for-text-box-two">
  65. <p>{{item.roomNum}}</p>
  66. <p>房间数</p>
  67. </div>
  68. </div>
  69. <div class="for-button-min-box">
  70. <div @click="handleCommand(5,item)" v-hasPermi="['laboratory:buildfloor:edit']">
  71. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_bj.png">
  72. <p>编辑</p>
  73. </div>
  74. <div @click="handleCommand(6,item)" v-hasPermi="['laboratory:buildfloor:remove']">
  75. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_sc.png">
  76. <p>删除</p>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <img class="null-img" v-if="!buildingList[0]" src="@/assets/ZDimages/null-data-1.png">
  82. </div>
  83. </div>
  84. <div class="building-box" v-if="checkTreeType == 2">
  85. <div class="max-right-button-box">
  86. <p class="null-p"></p>
  87. <p class="max-right-big-button" style="margin-right:20px;" @click="handleCommand(7)">+ 新增楼层</p>
  88. <p class="max-right-big-button" @click="floorZK(1)">{{floorZkType==1?'一键收起':'一键展开'}}</p>
  89. </div>
  90. <div class="right-big-list-box scrollbar-box">
  91. <div class="for-max-box" v-for="(item,index) in buildingList" :key="index"
  92. @dragover.prevent="dragoverPrevent(item)">
  93. <div class="for-big-box">
  94. <div class="for-big-box-left">
  95. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_td.png" class="for-img-one"
  96. draggable="true"
  97. @dragstart="dragstartPlay($event)"
  98. @dragend="dragEnterOver($event, item)">
  99. <p class="for-text-one">{{item.name}}</p>
  100. </div>
  101. <div class="for-button-min-box">
  102. <div @click="handleCommand(8,item)">
  103. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_bj.png">
  104. <p>编辑</p>
  105. </div>
  106. <div @click="handleCommand(9,item)">
  107. <img src="@/assets/ZDimages/evacuation3_2/icon_znwl_sc.png">
  108. <p>删除</p>
  109. </div>
  110. <div @click="floorZK(2,index)">
  111. <img src="@/assets/ZDimages/evacuation3_2/icon_bjgl_zk.png">
  112. <p>{{item.onType?'收起':'展开'}}</p>
  113. </div>
  114. </div>
  115. </div>
  116. <div v-if="item.onType">
  117. <div class="layout-data-max-big-box"
  118. v-if="item.layoutData">
  119. <div class="layout-data-max-big-min-box"
  120. :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;'">
  121. <div class="layout-data-max-min-box"
  122. :style="'width:'+item.width+'px;height:'+item.height+'px;'">
  123. <div class="map-max-for-box"
  124. v-for="(bigItem,index) in item.mapList" :key="index"
  125. :class="bigItem.type == 2?'for-map-box-one':''"
  126. :style="'top:'+bigItem.y+'px;left:'+bigItem.x+'px;width:'+bigItem.w+'px;height:'+bigItem.h+'px;'">
  127. <div class="map-max-for-left-box"></div>
  128. <div class="map-max-for-center-box">
  129. <div class="map-max-for-center-min-left"></div>
  130. <div class="map-max-for-center-min-center"
  131. :class="bigItem.type == 2?'for-map-box-one':(bigItem.type == 1?'for-map-box':(bigItem.type == 3?'for-map-box-two':''))">
  132. <div class="min-text-box"
  133. :style="'line-height:'+(bigItem.h-4)+'px;height:'+(bigItem.h-4)+'px;'"
  134. v-if="bigItem.type==1">{{bigItem.roomNum}}</div>
  135. <div v-if="bigItem.type == 1"
  136. :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':'')))"
  137. v-for="(minItem,minIndex) in bigItem.doorList" :key="minIndex"
  138. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  139. <div v-if="bigItem.type == 3"
  140. :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':'')))"
  141. v-for="(minItem,minIndex) in bigItem.doorList" :key="minIndex"
  142. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  143. <div @click="lighButton(minItem)"
  144. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
  145. v-for="(minItem,minIndex) in bigItem.lightList" :key="minIndex"
  146. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  147. </div>
  148. <div class="map-max-for-center-min-right"></div>
  149. </div>
  150. <div class="map-max-for-right-box"></div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <div class="layout-data-max-big-null-box" v-else>
  156. <img src="@/assets/ZDimages/evacuation3_2/icon_wsctp.png">
  157. <div>
  158. <p></p>
  159. <p>暂未设置房间布局</p>
  160. <p @click="clickPage(2,item)">设置布局</p>
  161. <p></p>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <img class="null-img" v-if="!buildingList[0]" src="@/assets/ZDimages/null-data-1.png">
  167. </div>
  168. </div>
  169. <div class="floor-box" v-if="checkTreeType == 3">
  170. <div class="map-max-big-box">
  171. <div class="layout-data-max-big-box" v-if="buildingList.layoutData">
  172. <div class="layout-data-max-big-min-box"
  173. :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;'">
  174. <div class="layout-data-max-min-box"
  175. :style="'width:'+buildingList.width+'px;height:'+buildingList.height+'px;'">
  176. <div class="map-max-for-box"
  177. v-for="(item,index) in buildingList.mapList" :key="index"
  178. :class="item.type == 2?'for-map-box-one':''"
  179. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  180. <div class="map-max-for-left-box"></div>
  181. <div class="map-max-for-center-box">
  182. <div class="map-max-for-center-min-left"></div>
  183. <div class="map-max-for-center-min-center"
  184. :class="item.type == 2?'for-map-box-one':(item.type == 1?'for-map-box':(item.type == 3?'for-map-box-two':''))">
  185. <div class="min-text-box"
  186. :style="'line-height:'+(item.h-4)+'px;height:'+(item.h-4)+'px;'"
  187. v-if="item.type==1">{{item.roomNum}}</div>
  188. <div v-if="item.type == 1"
  189. :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':'')))"
  190. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  191. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  192. <div v-if="item.type == 3"
  193. :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':'')))"
  194. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  195. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  196. <div @click="lighButton(minItem)"
  197. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
  198. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  199. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  200. </div>
  201. <div class="map-max-for-center-min-right"></div>
  202. </div>
  203. <div class="map-max-for-right-box"></div>
  204. </div>
  205. </div>
  206. </div>
  207. </div>
  208. <div class="layout-data-max-big-null-box" v-else>
  209. <img src="@/assets/ZDimages/evacuation3_2/icon_wsctp.png">
  210. <div>
  211. <p></p>
  212. <p>暂未设置房间布局</p>
  213. <p @click="clickPage(2,buildingList)">设置布局</p>
  214. <p></p>
  215. </div>
  216. </div>
  217. <p class="position-button-p" @click="clickPage(2,buildingList)" v-if="buildingList.layoutData">设置布局</p>
  218. </div>
  219. <div class="table-box">
  220. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  221. <el-form-item label="关键字" prop="searchValue" style="margin-right:20px;margin-bottom:20px;">
  222. <el-input
  223. v-model="queryParams.searchValue"
  224. placeholder="房间号/房间名称"
  225. clearable
  226. size="small"
  227. />
  228. </el-form-item>
  229. <el-form-item label="房间类型" prop="roomType" style="margin-right:20px;margin-bottom:20px;">
  230. <el-select v-model="queryParams.roomType" placeholder="请选择房间类型"
  231. style="margin-right:20px;margin-bottom:20px;">
  232. <el-option
  233. v-for="dict in roomTypeOptions"
  234. :key="dict.dictValue"
  235. :label="dict.dictLabel"
  236. :value="dict.dictValue">
  237. </el-option>
  238. </el-select>
  239. </el-form-item>
  240. <el-form-item>
  241. <p class="inquire-button-one" @click="handleQuery" style="margin-right:20px;margin-bottom:20px;">查询</p>
  242. <p class="reset-button-one" @click="resetQuery">重置</p>
  243. </el-form-item>
  244. </el-form>
  245. <el-table border :data="dataList">
  246. <el-table-column label="房间号" align="left" prop="roomNum" width="100"/>
  247. <el-table-column label="房间名称" align="left" prop="roomName">
  248. <template slot-scope="scope">
  249. <span>{{scope.row.roomType!='-99'?scope.row.subName:scope.row.roomName}}</span>
  250. <!--<span>{{scope.row.roomType}}</span>-->
  251. </template>
  252. </el-table-column>
  253. <el-table-column label="房间类型" align="left" prop="roomType" width="200">
  254. <template slot-scope="scope">
  255. <span v-for="(item,index) in roomTypeOptions" :key="index" v-if="item.dictValue == scope.row.roomType">{{item.dictLabel}}</span>
  256. </template>
  257. </el-table-column>
  258. <el-table-column label="创建人" align="left" prop="createBy" width="200"/>
  259. <el-table-column label="创建时间" align="left" prop="createTime" width="200"/>
  260. <!--<el-table-column label="操作" align="left" class-name="small-padding fixed-width" width="100">-->
  261. <!--<template slot-scope="scope">-->
  262. <!--<div class="button-box" style="display: flex">-->
  263. <!--<p class="table-min-button" @click="roomClick(1,scope.row)">编辑</p>-->
  264. <!--</div>-->
  265. <!--</template>-->
  266. <!--</el-table-column>-->
  267. </el-table>
  268. <pagination
  269. style="margin-top:20px;"
  270. v-show="total>0"
  271. :total="total"
  272. :page.sync="queryParams.pageNum"
  273. :limit.sync="queryParams.pageSize"
  274. @pagination="getList"
  275. />
  276. </div>
  277. </div>
  278. </div>
  279. <!-- 新增/编辑校区 -->
  280. <el-dialog :title="dialogTitle" v-if="dialogOpen" :visible.sync="dialogOpen" width="600px" append-to-body>
  281. <el-form ref="dialogForm" :model="dialogForm" :rules="rules" label-width="110px">
  282. <el-form-item label="校区名称:" prop="nameOne">
  283. <el-input v-model="dialogForm.nameOne" maxlength="10" placeholder="请输入校区名称"
  284. :disabled="dialogType==2 || dialogType==22 || dialogType==3 || dialogType==33"/>
  285. </el-form-item>
  286. <el-form-item label="楼栋名称:" prop="nameTwo"
  287. v-if="dialogType==2 || dialogType==22 || dialogType==3 || dialogType==33">
  288. <el-input v-model="dialogForm.nameTwo" maxlength="10" placeholder="请输入楼栋名称"
  289. :disabled="dialogType==3 || dialogType==33"/>
  290. </el-form-item>
  291. <el-form-item label="楼层名称:" prop="nameThree" v-if="dialogType==3 || dialogType==33">
  292. <el-input v-model="dialogForm.nameThree" maxlength="10" placeholder="请输入楼层名称"/>
  293. </el-form-item>
  294. <el-form-item label="排序序号:" prop="sortNo" class="dialog-sort-no-form-item-box">
  295. <el-input-number v-model="dialogForm.sortNo" :min="0" :max="999" placeholder="请输入排序序号" :controls="false"
  296. style="width:450px;"></el-input-number>
  297. </el-form-item>
  298. </el-form>
  299. <div slot="footer" class="dialog-footer">
  300. <div style="display: flex">
  301. <p style="flex:1;"></p>
  302. <p
  303. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;"
  304. @click="cancel">取消</p>
  305. <p
  306. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;"
  307. @click="submitForm">确定</p>
  308. <p style="flex:1;"></p>
  309. </div>
  310. </div>
  311. </el-dialog>
  312. <el-dialog title="房间配置" v-if="dialogOpenRoom" :visible.sync="dialogOpenRoom" width="800px" append-to-body class="building-dialog-box">
  313. <el-form ref="roomDialogForm" :model="roomDialogForm" :rules="rules" label-width="110px">
  314. <el-form-item label="楼栋名称:" prop="buildName">
  315. <el-input v-model="roomDialogForm.buildName" maxlength="10" placeholder="请输入楼栋名称" disabled style="width:575px;"/>
  316. </el-form-item>
  317. <el-form-item label="楼层名称:" prop="floorName">
  318. <el-input v-model="roomDialogForm.floorName" maxlength="10" placeholder="请输入楼层名称" disabled style="width:575px;"/>
  319. </el-form-item>
  320. <el-form-item label="房间类型:" prop="roomType">
  321. <el-select v-model="roomDialogForm.roomType" placeholder="请选择房间类型" style="width:575px;">
  322. <el-option
  323. v-for="dict in roomTypeOptions"
  324. :key="dict.dictValue"
  325. :label="dict.dictLabel"
  326. :value="dict.dictValue">
  327. </el-option>
  328. </el-select>
  329. </el-form-item>
  330. <el-form-item label="房间号:" prop="roomNum">
  331. <el-input v-model="roomDialogForm.roomNum" maxlength="10" placeholder="请输入房间号" style="width:575px;"/>
  332. </el-form-item>
  333. <el-form-item label="房间名称:" prop="roomName" v-if="roomDialogForm.roomType == '-99'">
  334. <el-input v-model="roomDialogForm.roomName" maxlength="10" placeholder="请输入房间名称" style="width:575px;"/>
  335. </el-form-item>
  336. <el-form-item label="房间选择:" prop="subId" v-if="roomDialogForm.roomType != '-99'">
  337. <el-select
  338. style="width:575px;"
  339. v-model="roomDialogForm.subId"
  340. filterable
  341. remote
  342. reserve-keyword
  343. @focus="selectFocus"
  344. placeholder="请选择房间"
  345. :remote-method="userSelectList"
  346. :loading="loading">
  347. <el-option
  348. v-for="item in subjectOptions"
  349. :key="item.id"
  350. :label="item.name"
  351. :value="item.id">
  352. </el-option>
  353. </el-select>
  354. </el-form-item>
  355. <el-form-item label="房间位置:">
  356. <div class="map-max-big-box">
  357. <div class="layout-data-max-big-box">
  358. <div class="layout-data-max-big-min-box"
  359. :style="'width:'+dialogBuildingData.width+'px;height:'+dialogBuildingData.height+'px;transform: scale('+minZoomData+');margin-top:-'+dialogBuildingData.height/2+'px;margin-left:-'+dialogBuildingData.width/2+'px;'">
  360. <div class="layout-data-max-min-box"
  361. :style="'width:'+dialogBuildingData.width+'px;height:'+dialogBuildingData.height+'px;'">
  362. <div class="map-max-for-box"
  363. v-for="(item,index) in dialogBuildingData.mapList" :key="index"
  364. :class="item.type == 2?'for-map-box-one':''"
  365. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  366. <div class="map-max-for-left-box"></div>
  367. <div class="map-max-for-center-box">
  368. <div class="map-max-for-center-min-left"></div>
  369. <div class="map-max-for-center-min-center"
  370. :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':'')))">
  371. <div class="min-text-box"
  372. :style="'line-height:'+(item.h-4)+'px;height:'+(item.h-4)+'px;'"
  373. v-if="item.type==1">{{item.roomNum}}</div>
  374. <div v-if="item.type == 1"
  375. :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':'')))"
  376. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  377. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  378. <div v-if="item.type == 3"
  379. :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':'')))"
  380. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  381. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  382. <div @click="lighButton(minItem)"
  383. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'')))"
  384. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  385. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"></div>
  386. </div>
  387. <div class="map-max-for-center-min-right"></div>
  388. </div>
  389. <div class="map-max-for-right-box"></div>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. </div>
  395. </el-form-item>
  396. </el-form>
  397. <div slot="footer" class="dialog-footer">
  398. <div style="display: flex">
  399. <p style="flex:1;"></p>
  400. <p
  401. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;"
  402. @click="roomCancel">取消</p>
  403. <p
  404. style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;"
  405. @click="roomSubmitForm">确定</p>
  406. <p style="flex:1;"></p>
  407. </div>
  408. </div>
  409. </el-dialog>
  410. </div>
  411. <building-details :propsData="propsData" v-if="pageType == 2"></building-details>
  412. </div>
  413. </template>
  414. <script>
  415. import {
  416. getTreeList, getTreeSonList, addBuildFloor, putBuildFloor, delBuildFloor, editSortNum, buildFloorLayoutList,
  417. getBuildFloorLayout, putBuildFloorLayout, subjectList
  418. } from '@/api/evacuation3_2/index'
  419. import buildingManagement from './buildingManagement.vue'
  420. import buildingDetails from './buildingDetails.vue'
  421. export default {
  422. name: 'newIndex',
  423. components: {
  424. buildingManagement,
  425. buildingDetails
  426. },
  427. data() {
  428. return {
  429. schoolName:'',
  430. pageType: 1,
  431. //拖拽起始Y点(用于计算朝向)
  432. clientY: null,
  433. clientId: null,
  434. //学校/楼栋/楼层
  435. treeList: [],
  436. //选中状态
  437. checkTreeId: null,
  438. checkTreeType: 1,
  439. buildingList: [],
  440. //楼层展开/关闭状态
  441. floorZkType: null, //1.全部展开 2.全部关闭 3.有关有开
  442. //编辑弹窗开关
  443. dialogOpen: false,
  444. dialogType: null,
  445. dialogTitle: '',
  446. // 表单参数
  447. dialogForm: {},
  448. roomDialogForm: {},
  449. //校区名称
  450. yxName: null,
  451. ldName: null,
  452. lcName: null,
  453. parentId: null,
  454. // 表单校验
  455. rules: {
  456. nameOne: [
  457. { required: true, message: '请输入校区名称', trigger: 'blur' },
  458. { required: true, message: '请输入校区名称', validator: this.spaceJudgment, trigger: 'blur' }
  459. ],
  460. nameTwo: [
  461. { required: true, message: '请输入楼栋名称', trigger: 'blur' },
  462. { required: true, message: '请输入楼栋名称', validator: this.spaceJudgment, trigger: 'blur' }
  463. ],
  464. nameThree: [
  465. { required: true, message: '请输入楼层名称', trigger: 'blur' },
  466. { required: true, message: '请输入楼层名称', validator: this.spaceJudgment, trigger: 'blur' }
  467. ],
  468. sortNo: [
  469. { required: true, message: '请输入排序序号', trigger: 'blur' },
  470. { required: true, message: '请输入排序序号', validator: this.spaceJudgment, trigger: 'blur' }
  471. ]
  472. },
  473. // 显示搜索条件
  474. showSearch: true,
  475. loading: false,
  476. //楼层查询数据
  477. queryParams: {},
  478. //楼层表单数据
  479. dataList: [],
  480. total: 10,
  481. //房间配置相关
  482. dialogOpenRoom: false,
  483. //房间类型列表
  484. roomTypeOptions: [],
  485. //实验室选择列表
  486. subjectOptions: [],
  487. //传参数据
  488. propsData: {},
  489. //缩放比例
  490. zoomData: null,
  491. minZoomData: null,
  492. dialogBuildingData:[]
  493. }
  494. },
  495. created() {
  496. },
  497. mounted() {
  498. this.$set(this,'schoolName',localStorage.getItem('schoolName'));
  499. this.getTreeList()
  500. this.getDicts('layout_room_type').then(response => {
  501. this.roomTypeOptions = response.data
  502. this.roomTypeOptions.push({ dictLabel: '其他', dictValue: '-99' })
  503. })
  504. },
  505. methods: {
  506. //新增学校/楼栋/楼层数据
  507. addBuildFloor(type) {
  508. this.$refs['dialogForm'].validate(valid => {
  509. if (valid) {
  510. //1.学校 2.楼栋 3.楼层
  511. let obj = {
  512. name: type == 1 ? this.dialogForm.nameOne : (type == 2 ? this.dialogForm.nameTwo : (type == 3 ? this.dialogForm.nameThree : '')),
  513. type: type,
  514. sortNo: this.dialogForm.sortNo,
  515. parentId: type == 1 ? 0 : this.checkTreeId
  516. }
  517. addBuildFloor(obj).then(response => {
  518. this.msgSuccess(response.msg)
  519. this.cancel()
  520. this.getTreeList()
  521. })
  522. }
  523. })
  524. },
  525. //编辑学校/楼栋/楼层数据
  526. putBuildFloor(type) {
  527. this.$refs['dialogForm'].validate(valid => {
  528. if (valid) {
  529. //1.学校 2.楼栋 3.楼层
  530. let obj = {
  531. id: this.dialogForm.id,
  532. name: type == 1 ? this.dialogForm.nameOne : (type == 2 ? this.dialogForm.nameTwo : (type == 3 ? this.dialogForm.nameThree : '')),
  533. type: type,
  534. sortNo: this.dialogForm.sortNo
  535. }
  536. putBuildFloor(obj).then(response => {
  537. this.msgSuccess(response.msg)
  538. this.cancel()
  539. this.getTreeList()
  540. })
  541. }
  542. })
  543. },
  544. //删除学校/楼栋/楼层数据
  545. delBuildFloor(id) {
  546. delBuildFloor(id).then(response => {
  547. this.msgSuccess(response.msg)
  548. this.getTreeList()
  549. })
  550. },
  551. //调整排序
  552. editSortNum(data) {
  553. editSortNum(data).then(response => {
  554. this.msgSuccess(response.msg)
  555. this.getTreeList()
  556. })
  557. },
  558. roomCancel() {
  559. this.$set(this, 'dialogOpenRoom', false)
  560. },
  561. roomSubmitForm() {
  562. this.$refs['roomDialogForm'].validate(valid => {
  563. if (valid) {
  564. let obj = {
  565. id: this.roomDialogForm.id,
  566. roomNum: this.roomDialogForm.roomNum,
  567. roomType: this.roomDialogForm.roomType
  568. }
  569. if (this.roomDialogForm.roomType == '-99') {
  570. obj.roomName = this.roomDialogForm.roomName
  571. } else {
  572. obj.subId = this.roomDialogForm.subId
  573. }
  574. putBuildFloorLayout(obj).then(response => {
  575. this.$set(this, 'dialogOpenRoom', false)
  576. this.msgSuccess(response.msg)
  577. let obj = {
  578. id: this.checkTreeId ,
  579. type: this.checkTreeType,
  580. parentId: this.parentId
  581. }
  582. this.getTreeSonList(obj)
  583. })
  584. }
  585. })
  586. },
  587. // 取消按钮
  588. cancel() {
  589. this.$set(this, 'dialogOpen', false)
  590. this.$set(this, 'dialogForm', {})
  591. this.$set(this, 'dialogType', null)
  592. },
  593. //确定按钮
  594. submitForm() {
  595. if (this.dialogType == 1) {
  596. //新增
  597. this.addBuildFloor(1)
  598. } else if (this.dialogType == 11) {
  599. //编辑
  600. this.putBuildFloor(1)
  601. } else if (this.dialogType == 2) {
  602. //新增
  603. this.addBuildFloor(2)
  604. } else if (this.dialogType == 22) {
  605. //编辑
  606. this.putBuildFloor(2)
  607. } else if (this.dialogType == 3) {
  608. //新增
  609. this.addBuildFloor(3)
  610. } else if (this.dialogType == 33) {
  611. //编辑
  612. this.putBuildFloor(3)
  613. }
  614. },
  615. //楼栋弹出下啦列表选中事件
  616. handleCommand(command, item) {
  617. let self = this
  618. if (command == 1) {
  619. //编辑校区
  620. this.$set(this, 'dialogTitle', '编辑校区')
  621. this.$set(this, 'dialogForm', {
  622. id: item.id,
  623. nameOne: item.name,
  624. sortNo: item.sortNo
  625. })
  626. this.$set(this, 'dialogType', 11)
  627. this.$set(this, 'dialogOpen', true)
  628. } else if (command == 2) {
  629. //删除校区
  630. this.$confirm('确定要删除该校区吗?', '警告', {
  631. confirmButtonText: '确定',
  632. cancelButtonText: '取消',
  633. type: 'warning'
  634. }).then(function() {
  635. self.delBuildFloor(item.id)
  636. }).then(() => {
  637. }).catch(() => {
  638. })
  639. } else if (command == 3) {
  640. //新增校区
  641. this.$set(this, 'dialogForm', {})
  642. this.$set(this, 'dialogTitle', '新增校区')
  643. this.$set(this, 'dialogType', 1)
  644. this.$set(this, 'dialogOpen', true)
  645. } else if (command == 4) {
  646. //新增楼栋
  647. this.$set(this, 'dialogForm', {
  648. nameOne: this.yxName
  649. })
  650. this.$set(this, 'dialogTitle', '新增楼栋')
  651. this.$set(this, 'dialogType', 2)
  652. this.$set(this, 'dialogOpen', true)
  653. } else if (command == 5) {
  654. //编辑楼栋
  655. this.$set(this, 'dialogForm', {
  656. id: item.id,
  657. nameOne: this.yxName,
  658. nameTwo: item.name,
  659. sortNo: item.sortNo
  660. })
  661. this.$set(this, 'dialogTitle', '编辑楼栋')
  662. this.$set(this, 'dialogType', 22)
  663. this.$set(this, 'dialogOpen', true)
  664. } else if (command == 6) {
  665. //删除楼栋
  666. this.$confirm('确定要删除该楼栋吗?', '警告', {
  667. confirmButtonText: '确定',
  668. cancelButtonText: '取消',
  669. type: 'warning'
  670. }).then(function() {
  671. self.delBuildFloor(item.id)
  672. }).then(() => {
  673. }).catch(() => {
  674. })
  675. } else if (command == 7) {
  676. //新增楼层
  677. this.$set(this, 'dialogForm', {
  678. nameOne: this.yxName,
  679. nameTwo: this.ldName
  680. })
  681. this.$set(this, 'dialogTitle', '新增楼层')
  682. this.$set(this, 'dialogType', 3)
  683. this.$set(this, 'dialogOpen', true)
  684. } else if (command == 8) {
  685. //编辑楼层
  686. this.$set(this, 'dialogForm', {
  687. id: item.id,
  688. nameOne: this.yxName,
  689. nameTwo: this.ldName,
  690. nameThree: item.name,
  691. sortNo: item.sortNo
  692. })
  693. this.$set(this, 'dialogTitle', '编辑楼层')
  694. this.$set(this, 'dialogType', 33)
  695. this.$set(this, 'dialogOpen', true)
  696. } else if (command == 9) {
  697. //删除楼层
  698. this.$confirm('确定要删除该楼层吗?', '警告', {
  699. confirmButtonText: '确定',
  700. cancelButtonText: '取消',
  701. type: 'warning'
  702. }).then(function() {
  703. self.delBuildFloor(item.id)
  704. }).then(() => {
  705. }).catch(() => {
  706. })
  707. }
  708. },
  709. //获取学校/楼栋/楼层数据
  710. getTreeList() {
  711. getTreeList().then(response => {
  712. if (response.data[0]) {
  713. for (let i = 0; i < response.data.length; i++) {
  714. for (let o = 0; o < response.data[i].buildFloorVoList.length; o++) {
  715. response.data[i].buildFloorVoList[o].onType = true
  716. }
  717. }
  718. this.$set(this, 'treeList', response.data)
  719. if (!this.checkTreeId) {
  720. this.$set(this, 'checkTreeId', response.data[0].id)
  721. this.$set(this, 'yxName', response.data[0].name)
  722. this.$set(this, 'parentId', response.data[0].parentId)
  723. }
  724. let obj = {
  725. id: this.checkTreeId ? this.checkTreeId : response.data[0].id,
  726. type: 1,
  727. parentId: this.parentId ? this.parentId : 0
  728. }
  729. this.getTreeSonList(obj)
  730. }
  731. })
  732. },
  733. //获取校区/楼栋/楼层详情数据
  734. getTreeSonList(data) {
  735. getTreeSonList(data).then(response => {
  736. if (this.checkTreeType == 1) {
  737. this.$set(this, 'buildingList', response.rows)
  738. } else if (this.checkTreeType == 2) {
  739. for (let i = 0; i < response.rows.length; i++) {
  740. response.rows[i].onType = false
  741. if (response.rows[i].layoutData) {
  742. response.rows[i].mapList = JSON.parse(response.rows[i].layoutData)
  743. let obj = this.calculateMapMax(response.rows[i].mapList,380,1180)
  744. response.rows[i].width = obj.maxWidth
  745. response.rows[i].height = obj.maxHeight
  746. response.rows[i].zoomData = obj.zoomData
  747. }
  748. }
  749. this.$set(this, 'buildingList', response.rows)
  750. this.floorZkFor()
  751. } else if (this.checkTreeType == 3) {
  752. if (response.rows[0].layoutData) {
  753. response.rows[0].mapList = JSON.parse(response.rows[0].layoutData)
  754. let obj = this.calculateMapMax(response.rows[0].mapList,380,1180)
  755. response.rows[0].width = obj.maxWidth
  756. response.rows[0].height = obj.maxHeight
  757. response.rows[0].zoomData = obj.zoomData
  758. }
  759. this.$set(this, 'queryParams', {
  760. searchValue: '',
  761. roomType: '',
  762. pageNum: 1,
  763. pageSize: 10
  764. })
  765. this.getList()
  766. this.$set(this, 'buildingList', response.rows[0])
  767. }
  768. })
  769. },
  770. //获取楼层实验室数据列表
  771. getList() {
  772. this.queryParams.floorId = this.checkTreeId
  773. buildFloorLayoutList(this.queryParams).then(response => {
  774. this.dataList = response.rows
  775. this.total = response.total
  776. })
  777. },
  778. //页面切换
  779. clickPage(type, item) {
  780. if (type == 1) {
  781. this.$set(this, 'pageType', type)
  782. } else if (type == 2) {
  783. console.log('type',type)
  784. console.log('item',item)
  785. this.$set(this, 'propsData', item)
  786. if(item.name){
  787. this.$set(this.propsData, 'buildName', item.buildName)
  788. this.$set(this.propsData, 'floorName', item.name)
  789. }else{
  790. this.$set(this.propsData, 'buildName', this.ldName)
  791. this.$set(this.propsData, 'floorName', this.lcName)
  792. }
  793. this.$set(this, 'pageType', type)
  794. }else if(type == 3){
  795. this.$set(this, 'pageType', 1)
  796. let obj = {
  797. id: this.checkTreeId ,
  798. type: this.checkTreeType,
  799. parentId: this.parentId
  800. }
  801. this.getTreeSonList(obj)
  802. }
  803. },
  804. //懒加载实验室
  805. userSelectList(e) {
  806. subjectList({ name: e }).then(response => {
  807. this.subjectOptions = response.data
  808. this.subjectOptions.push({ id: this.roomDialogForm.subId, name: this.roomDialogForm.subName })
  809. })
  810. },
  811. selectFocus() {
  812. console.log('123')
  813. },
  814. //房间操作按钮
  815. roomClick(type, item) {
  816. //查询房间实验室详情
  817. getBuildFloorLayout(item.id).then(response => {
  818. let obj = {
  819. id: response.data.id,
  820. buildName: response.data.buildName,
  821. floorName: response.data.floorName,
  822. roomNum: response.data.roomNum,
  823. roomType: response.data.roomType + '',
  824. pointName: response.data.pointName
  825. }
  826. if (response.data.roomType == '-99') {
  827. obj.roomName = response.data.roomName
  828. } else {
  829. obj.subId = response.data.subId
  830. obj.subName = response.data.subName
  831. }
  832. //根据返回实验室名称查询实验室选择列表回填
  833. this.$set(this, 'roomDialogForm', obj)
  834. this.$set(this, 'subjectOptions', [{ id: response.data.subId, name: response.data.subName }])
  835. let newData = JSON.parse(JSON.stringify(this.buildingList));
  836. for(let i=0;i<newData.mapList.length;i++){
  837. if( response.data.subId == newData.mapList[i].subId || response.data.roomName == newData.mapList[i].roomName){
  838. newData.mapList[i].checkType = true;
  839. }else{
  840. newData.mapList[i].checkType = false;
  841. }
  842. }
  843. let newObj = this.calculateMapMax(newData.mapList,285,575,'min')
  844. newData.width = newObj.maxWidth
  845. newData.height = newObj.maxHeight
  846. newData.zoomData = newObj.zoomData
  847. this.$set(this,'dialogBuildingData',newData);
  848. this.dialogOpenRoom = true
  849. })
  850. },
  851. //树状结构选中
  852. clickCheckTree(item, type, itemOne) {
  853. console.log('item',item);
  854. console.log('type',type);
  855. if (item.id != this.checkTreeId) {
  856. this.$set(this, 'checkTreeId', item.id)
  857. this.$set(this, 'checkTreeType', type)
  858. if (type == 1) {
  859. this.$set(this, 'yxName', item.name)
  860. this.$set(this, 'buildingList', [])
  861. } else if (type == 2) {
  862. this.$set(this, 'ldName', item.name)
  863. this.$set(this, 'buildingList', [])
  864. } else if (type == 3) {
  865. this.$set(this, 'ldName', itemOne.name)
  866. this.$set(this, 'lcName', item.name)
  867. this.$set(this, 'buildingList', {})
  868. }
  869. let obj = {
  870. id: item.id,
  871. type: type,
  872. parentId: item.parentId
  873. }
  874. this.$set(this,'parentId',item.parentId);
  875. this.getTreeSonList(obj)
  876. }
  877. },
  878. //树状结构展开收回
  879. terrClick(itemOne) {
  880. itemOne.onType = !itemOne.onType
  881. },
  882. //展开/收起开关
  883. floorZK(type, index) {
  884. let self = this
  885. //type等于1时全部开关功能 等于2时单个开关
  886. if (type == 1) {
  887. let list = JSON.parse(JSON.stringify(self.buildingList))
  888. for (let i = 0; i < list.length; i++) {
  889. if (self.floorZkType == 1) {
  890. list[i].onType = false
  891. } else if (self.floorZkType == 2) {
  892. list[i].onType = true
  893. } else if (self.floorZkType == 3) {
  894. list[i].onType = true
  895. }
  896. }
  897. this.$set(this, 'buildingList', list)
  898. this.floorZkFor()
  899. } else if (type == 2) {
  900. this.$set(this.buildingList[index], 'onType', this.buildingList[index].onType ? false : true)
  901. this.floorZkFor()
  902. }
  903. },
  904. //层展开关闭判断
  905. floorZkFor() {
  906. let self = this
  907. let numOne = 0
  908. let numTwo = 0
  909. for (let i = 0; i < self.buildingList.length; i++) {
  910. if (self.buildingList[i].onType) {
  911. numOne++
  912. } else {
  913. numTwo++
  914. }
  915. }
  916. if (numOne == self.buildingList.length) {
  917. this.$set(this, 'floorZkType', 1)
  918. } else if (numTwo == self.buildingList.length) {
  919. this.$set(this, 'floorZkType', 2)
  920. } else {
  921. this.$set(this, 'floorZkType', 3)
  922. }
  923. },
  924. //拖拽抓取时触发
  925. dragstartPlay(event) {
  926. this.$set(this, 'clientY', event.clientY)
  927. },
  928. //拖拽途径触发
  929. dragoverPrevent(item) {
  930. this.$set(this, 'clientId', item.id)
  931. },
  932. //拖拽释放触发
  933. dragEnterOver(event, item) {
  934. let self = this
  935. let newList = []
  936. if (this.clientId && item.id != this.clientId) {
  937. let list = []
  938. let obj = null
  939. for (let i = 0; i < self.buildingList.length; i++) {
  940. if (self.buildingList[i].id == item.id) {
  941. obj = JSON.parse(JSON.stringify(self.buildingList[i]))
  942. }
  943. }
  944. if (event.clientY > this.clientY) {
  945. for (let i = 0; i < self.buildingList.length; i++) {
  946. if (self.buildingList[i].id != item.id && self.buildingList[i].id != this.clientId) {
  947. list.push(self.buildingList[i])
  948. } else if (self.buildingList[i].id == this.clientId) {
  949. list.push(self.buildingList[i])
  950. list.push(obj)
  951. }
  952. }
  953. } else if (event.clientY < this.clientY) {
  954. for (let i = 0; i < self.buildingList.length; i++) {
  955. if (self.buildingList[i].id == this.clientId) {
  956. list.push(obj)
  957. list.push(self.buildingList[i])
  958. } else if (self.buildingList[i].id != item.id && self.buildingList[i].id != this.clientId) {
  959. list.push(self.buildingList[i])
  960. }
  961. }
  962. }
  963. for (let i = 0; i < list.length; i++) {
  964. newList.push({ id: list[i].id, sortNo: i })
  965. }
  966. // this.$set(this,'buildingList',list);
  967. this.$set(this, 'clientId', null)
  968. this.editSortNum(newList)
  969. }
  970. },
  971. /** 搜索按钮操作 */
  972. handleQuery() {
  973. this.$set(this.queryParams, 'pageNum', 1)
  974. this.getList()
  975. },
  976. /** 重置按钮操作 */
  977. resetQuery() {
  978. this.$set(this, 'queryParams', {
  979. searchValue: '',
  980. roomType: '',
  981. pageNum: 1,
  982. pageSize: 10
  983. })
  984. this.handleQuery()
  985. },
  986. //计算布局最大尺寸
  987. calculateMapMax(list, height,width,type) {
  988. //基础参数
  989. let maxWidth = 0
  990. let maxHeight = 0
  991. let zoomData = 1;
  992. //参数处理
  993. for (let i = 0; i < list.length; i++) {
  994. if ((list[i].x + list[i].w) > maxWidth) {
  995. maxWidth = list[i].x + list[i].w
  996. }
  997. if ((list[i].y + list[i].h) > maxHeight) {
  998. maxHeight = list[i].y + list[i].h
  999. }
  1000. }
  1001. //处理等值数据
  1002. if(maxHeight == height){
  1003. maxHeight++
  1004. }
  1005. if(maxWidth == width){
  1006. maxWidth++
  1007. }
  1008. //缩放判断
  1009. let zoomNumOne = height / maxHeight;
  1010. if(parseInt(this.accMul(zoomNumOne,maxHeight)) <= height && parseInt(this.accMul(zoomNumOne,maxWidth)) <= width){
  1011. zoomData = zoomNumOne;
  1012. this.$set(this,'zoomData',zoomNumOne);
  1013. this.$set(this,'minZoomData',zoomNumOne);
  1014. }
  1015. let zoomNumTwo = width / maxWidth;
  1016. if(parseInt(this.accMul(zoomNumTwo,maxHeight)) <= height && parseInt(this.accMul(zoomNumTwo,maxWidth)) <= width){
  1017. zoomData = zoomNumTwo;
  1018. this.$set(this,'zoomData',zoomNumTwo);
  1019. this.$set(this,'minZoomData',zoomNumTwo);
  1020. }
  1021. return { maxWidth: maxWidth, maxHeight: maxHeight,zoomData:zoomData }
  1022. },
  1023. accMul(arg1,arg2){
  1024. var m=0,s1=arg1.toString(),s2=arg2.toString();
  1025. try{m+=s1.split(".")[1].length}catch(e){}
  1026. try{m+=s2.split(".")[1].length}catch(e){}
  1027. return Number(s1.replace(".",""))*Number(s2.replace(".",""))/Math.pow(10,m)
  1028. },
  1029. }
  1030. }
  1031. </script>
  1032. <style scoped lang="scss">
  1033. .building {
  1034. flex: 1;
  1035. display: flex !important;
  1036. flex-direction: column;
  1037. overflow: hidden;
  1038. * {
  1039. margin: 0;
  1040. font-weight: 500;
  1041. }
  1042. .buildingManagement {
  1043. flex: 1;
  1044. display: flex !important;
  1045. overflow: hidden;
  1046. padding: 22px 28px 22px 32px;
  1047. .max-left-box {
  1048. width: 281px;
  1049. border-right: 1px dashed #A2A2A2;
  1050. display: flex;
  1051. flex-direction: column;
  1052. .tree-null-p {
  1053. text-align: center;
  1054. line-height: 100px;
  1055. flex: 1;
  1056. color: #999;
  1057. }
  1058. .tree-box {
  1059. flex: 1;
  1060. .terr-max-box {
  1061. margin-top: 20px;
  1062. .max-name-box {
  1063. display: flex;
  1064. margin-right: 20px;
  1065. margin-bottom: 10px;
  1066. color: #D8D8D8;
  1067. font-size: 20px;
  1068. .max-name {
  1069. flex: 1;
  1070. margin-right: 19px;
  1071. color: #333;
  1072. font-size: 16px;
  1073. line-height: 16px;
  1074. margin-top: 3px;
  1075. cursor: pointer;
  1076. }
  1077. }
  1078. .terr-big-box {
  1079. margin-left: 30px;
  1080. .big-name-box {
  1081. cursor: pointer;
  1082. height: 40px;
  1083. line-height: 40px;
  1084. display: flex;
  1085. font-size: 16px;
  1086. color: #333;
  1087. img {
  1088. width: 16px;
  1089. height: 16px;
  1090. margin-top: 12px;
  1091. margin-right: 4px;
  1092. }
  1093. .name-p {
  1094. flex: 1;
  1095. }
  1096. }
  1097. .terr-min-box {
  1098. margin-left: 30px;
  1099. .min-name {
  1100. cursor: pointer;
  1101. height: 40px;
  1102. line-height: 40px;
  1103. display: flex;
  1104. font-size: 16px;
  1105. color: #333;
  1106. }
  1107. }
  1108. }
  1109. .check-color {
  1110. color: #0183FA !important;
  1111. }
  1112. }
  1113. }
  1114. .max-left-big-button {
  1115. color: #0183FA;
  1116. border: 1px dashed #0183FA;
  1117. -webkit-border-radius: 6px;
  1118. -moz-border-radius: 6px;
  1119. border-radius: 6px;
  1120. width: 180px;
  1121. line-height: 40px;
  1122. margin: 20px 0 20px 40px;
  1123. text-align: center;
  1124. font-size: 14px;
  1125. cursor: pointer;
  1126. }
  1127. .max-left-big-button:hover {
  1128. color: #fff;
  1129. background: #0183FA;
  1130. border: 1px solid #0183FA;
  1131. }
  1132. }
  1133. .max-right-box {
  1134. flex: 1;
  1135. display: flex;
  1136. flex-direction: column;
  1137. overflow: hidden;
  1138. .school-box {
  1139. flex: 1;
  1140. display: flex;
  1141. flex-direction: column;
  1142. overflow: hidden;
  1143. .max-right-button-box {
  1144. height: 40px;
  1145. display: flex;
  1146. margin-bottom: 22px;
  1147. .null-p {
  1148. flex: 1;
  1149. }
  1150. .max-right-big-button {
  1151. color: #fff;
  1152. background: #0045AF;
  1153. -webkit-border-radius: 6px;
  1154. -moz-border-radius: 6px;
  1155. border-radius: 6px;
  1156. width: 130px;
  1157. line-height: 40px;
  1158. text-align: center;
  1159. font-size: 14px;
  1160. cursor: pointer;
  1161. }
  1162. .max-right-big-button:hover {
  1163. color: #fff;
  1164. background: #0183FA;
  1165. }
  1166. }
  1167. .right-big-list-box {
  1168. flex: 1;
  1169. position: relative;
  1170. .for-max-box {
  1171. .for-big-box {
  1172. display: flex;
  1173. border: 1px solid #dedede;
  1174. height: 100px;
  1175. box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
  1176. margin-bottom: 30px;
  1177. margin-left: 36px;
  1178. border-radius: 6px;
  1179. .for-big-box-left {
  1180. flex: 1;
  1181. display: flex;
  1182. .for-img-one {
  1183. cursor: pointer;
  1184. height: 30px;
  1185. width: 30px;
  1186. margin: 35px 0 0 30px;
  1187. }
  1188. .for-text-one {
  1189. font-size: 16px;
  1190. line-height: 100px;
  1191. margin-left: 95px;
  1192. width: 230px;
  1193. font-weight: 500;
  1194. }
  1195. .for-img-two {
  1196. height: 48px;
  1197. width: 48px;
  1198. margin: 26px 23px 0 30px;
  1199. }
  1200. .for-text-box-one {
  1201. width: 88px;
  1202. margin-right: 73px;
  1203. p {
  1204. text-align: center;
  1205. }
  1206. p:nth-child(1) {
  1207. margin-top: 20px;
  1208. font-size: 24px;
  1209. line-height: 30px;
  1210. color: #0183FA;
  1211. }
  1212. p:nth-child(2) {
  1213. margin-top: 10px;
  1214. font-size: 16px;
  1215. line-height: 16px;
  1216. color: #333;
  1217. }
  1218. }
  1219. .for-img-three {
  1220. height: 48px;
  1221. width: 48px;
  1222. margin: 26px 23px 0 0;
  1223. }
  1224. .for-text-box-two {
  1225. width: 88px;
  1226. p {
  1227. text-align: center;
  1228. }
  1229. p:nth-child(1) {
  1230. margin-top: 20px;
  1231. font-size: 24px;
  1232. line-height: 30px;
  1233. color: #0183FA;
  1234. }
  1235. p:nth-child(2) {
  1236. margin-top: 10px;
  1237. font-size: 16px;
  1238. line-height: 16px;
  1239. color: #333;
  1240. }
  1241. }
  1242. }
  1243. .for-button-min-box {
  1244. width: 220px;
  1245. margin-top: 9px;
  1246. height: 82px;
  1247. border-left: 1px dashed rgba(0, 0, 0, 0.3);
  1248. display: flex;
  1249. line-height: 82px;
  1250. div {
  1251. margin-left: 34px;
  1252. display: flex;
  1253. width: 60px;
  1254. cursor: pointer;
  1255. img {
  1256. width: 16px;
  1257. height: 16px;
  1258. margin-right: 8px;
  1259. margin-top: 33px;
  1260. }
  1261. p {
  1262. font-size: 14px;
  1263. color: #333;
  1264. }
  1265. }
  1266. }
  1267. }
  1268. }
  1269. .null-img {
  1270. position: absolute;
  1271. top: 40%;
  1272. left: 50%;
  1273. width: 276px;
  1274. height: 321px;
  1275. margin-top: -160px;
  1276. margin-left: -138px;
  1277. }
  1278. }
  1279. }
  1280. .building-box {
  1281. flex: 1;
  1282. display: flex;
  1283. flex-direction: column;
  1284. overflow: hidden;
  1285. .max-right-button-box {
  1286. height: 40px;
  1287. display: flex;
  1288. margin-bottom: 22px;
  1289. .null-p {
  1290. flex: 1;
  1291. }
  1292. .max-right-big-button {
  1293. color: #fff;
  1294. background: #0045AF;
  1295. -webkit-border-radius: 6px;
  1296. -moz-border-radius: 6px;
  1297. border-radius: 6px;
  1298. width: 130px;
  1299. line-height: 40px;
  1300. text-align: center;
  1301. font-size: 14px;
  1302. cursor: pointer;
  1303. }
  1304. .max-right-big-button:hover {
  1305. color: #fff;
  1306. background: #0183FA;
  1307. }
  1308. }
  1309. .right-big-list-box {
  1310. flex: 1;
  1311. position: relative;
  1312. .for-max-box {
  1313. margin-bottom: 30px;
  1314. .for-big-box {
  1315. display: flex;
  1316. border: 1px solid #dedede;
  1317. height: 100px;
  1318. box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16);
  1319. margin-left: 36px;
  1320. border-radius: 6px;
  1321. .for-big-box-left {
  1322. flex: 1;
  1323. display: flex;
  1324. .for-img-one {
  1325. cursor: pointer;
  1326. height: 30px;
  1327. width: 30px;
  1328. margin: 35px 0 0 30px;
  1329. }
  1330. .for-text-one {
  1331. font-size: 16px;
  1332. line-height: 100px;
  1333. margin-left: 95px;
  1334. width: 230px;
  1335. font-weight: 500;
  1336. }
  1337. .for-img-two {
  1338. height: 48px;
  1339. width: 48px;
  1340. margin: 26px 23px 0 30px;
  1341. }
  1342. .for-text-box-one {
  1343. width: 88px;
  1344. margin-right: 73px;
  1345. p {
  1346. text-align: center;
  1347. }
  1348. p:nth-child(1) {
  1349. margin-top: 20px;
  1350. font-size: 24px;
  1351. line-height: 30px;
  1352. color: #0183FA;
  1353. }
  1354. p:nth-child(2) {
  1355. margin-top: 10px;
  1356. font-size: 16px;
  1357. line-height: 16px;
  1358. color: #333;
  1359. }
  1360. }
  1361. .for-img-three {
  1362. height: 48px;
  1363. width: 48px;
  1364. margin: 26px 23px 0 0;
  1365. }
  1366. .for-text-box-two {
  1367. width: 88px;
  1368. p {
  1369. text-align: center;
  1370. }
  1371. p:nth-child(1) {
  1372. margin-top: 20px;
  1373. font-size: 24px;
  1374. line-height: 30px;
  1375. color: #0183FA;
  1376. }
  1377. p:nth-child(2) {
  1378. margin-top: 10px;
  1379. font-size: 16px;
  1380. line-height: 16px;
  1381. color: #333;
  1382. }
  1383. }
  1384. }
  1385. .for-button-min-box {
  1386. width: 330px;
  1387. margin-top: 9px;
  1388. height: 82px;
  1389. border-left: 1px dashed rgba(0, 0, 0, 0.3);
  1390. display: flex;
  1391. line-height: 82px;
  1392. div {
  1393. margin-left: 34px;
  1394. display: flex;
  1395. width: 60px;
  1396. cursor: pointer;
  1397. img {
  1398. width: 16px;
  1399. height: 16px;
  1400. margin-right: 8px;
  1401. margin-top: 33px;
  1402. }
  1403. p {
  1404. font-size: 14px;
  1405. color: #333;
  1406. }
  1407. }
  1408. }
  1409. }
  1410. .layout-data-max-big-box {
  1411. width: 1195px;
  1412. height: 400px;
  1413. margin-left: 36px;
  1414. border-left: 1px solid #e0e0e0;
  1415. border-right: 1px solid #e0e0e0;
  1416. border-bottom: 1px solid #e0e0e0;
  1417. position: relative;
  1418. .layout-data-max-big-min-box {
  1419. position: absolute;
  1420. top: 50%;
  1421. left: 50%;
  1422. .layout-data-max-min-box {
  1423. position: relative;
  1424. /*border:1px solid #e0e0e0;*/
  1425. .map-max-for-box {
  1426. position: absolute;
  1427. display: flex;
  1428. flex-direction: column;
  1429. .map-max-for-left-box {
  1430. height: 2px;
  1431. }
  1432. .map-max-for-center-box {
  1433. flex: 1;
  1434. display: flex;
  1435. .map-max-for-center-min-left {
  1436. width: 2px;
  1437. }
  1438. .map-max-for-center-min-center {
  1439. flex: 1;
  1440. position: relative;
  1441. .min-text-box{
  1442. width:100%;
  1443. text-align: center;
  1444. color:#333;
  1445. word-wrap:break-word;
  1446. word-break:break-all;
  1447. overflow: hidden;
  1448. z-index:999;
  1449. font-size:14px;
  1450. line-height:20px;
  1451. }
  1452. div {
  1453. position: absolute
  1454. }
  1455. .center-move-door-p-t {
  1456. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1457. background-size: 100% !important;
  1458. transform: rotate(180deg);
  1459. }
  1460. .center-move-door-p-b {
  1461. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1462. background-size: 100% !important;
  1463. }
  1464. .center-move-door-p-l {
  1465. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1466. background-size: 100% !important;
  1467. transform: rotate(90deg);
  1468. }
  1469. .center-move-door-p-r {
  1470. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1471. background-size: 100% !important;
  1472. transform: rotateZ(270deg);
  1473. }
  1474. .center-move-door-p-t-ss {
  1475. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1476. background-size: 100% !important;
  1477. transform: rotate(180deg);
  1478. }
  1479. .center-move-door-p-b-ss {
  1480. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1481. background-size: 100% !important;
  1482. }
  1483. .center-move-door-p-l-ss {
  1484. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1485. background-size: 100% !important;
  1486. transform: rotate(90deg);
  1487. }
  1488. .center-move-door-p-r-ss {
  1489. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1490. background-size: 100% !important;
  1491. transform: rotateZ(270deg);
  1492. }
  1493. .lightTop {
  1494. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1495. background-size: 100%;
  1496. }
  1497. .lightBottom {
  1498. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1499. background-size: 100%;
  1500. }
  1501. .lightLeft {
  1502. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1503. background-size: 100%;
  1504. }
  1505. .lightRight {
  1506. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1507. background-size: 100%;
  1508. }
  1509. }
  1510. .map-max-for-center-min-right {
  1511. width: 2px;
  1512. }
  1513. }
  1514. .map-max-for-right-box {
  1515. height: 2px;
  1516. }
  1517. .map-max-for-min-box {
  1518. position: relative;
  1519. div {
  1520. position: absolute
  1521. }
  1522. }
  1523. }
  1524. .for-map-box {
  1525. background: #CEF2FD;
  1526. }
  1527. .for-map-box-one {
  1528. background: #CEFDD5;
  1529. }
  1530. .for-map-box-two {
  1531. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1532. background-size: 60px 60px;
  1533. }
  1534. }
  1535. }
  1536. }
  1537. .layout-data-max-big-null-box {
  1538. height: 400px;
  1539. margin-left: 36px;
  1540. border-left: 1px solid #e0e0e0;
  1541. border-right: 1px solid #e0e0e0;
  1542. border-bottom: 1px solid #e0e0e0;
  1543. position: relative;
  1544. overflow: hidden;
  1545. img {
  1546. position: absolute;
  1547. top: 50%;
  1548. left: 50%;
  1549. margin-left: -71px;
  1550. margin-top: -71px;
  1551. width: 142px;
  1552. height: 142px;
  1553. }
  1554. div {
  1555. margin-top: 300px;
  1556. height: 30px;
  1557. display: flex;
  1558. p:nth-child(1) {
  1559. flex: 1;
  1560. }
  1561. p:nth-child(2) {
  1562. margin-right: 20px;
  1563. color: #333;
  1564. font-size: 14px;
  1565. }
  1566. p:nth-child(3) {
  1567. color: #0183FA;
  1568. font-size: 14px;
  1569. cursor: pointer;
  1570. }
  1571. p:nth-child(4) {
  1572. flex: 1;
  1573. }
  1574. }
  1575. }
  1576. }
  1577. .null-img {
  1578. position: absolute;
  1579. top: 40%;
  1580. left: 50%;
  1581. width: 276px;
  1582. height: 321px;
  1583. margin-top: -160px;
  1584. margin-left: -138px;
  1585. }
  1586. }
  1587. }
  1588. .floor-box {
  1589. flex: 1;
  1590. display: flex;
  1591. flex-direction: column;
  1592. overflow: hidden;
  1593. .map-max-big-box {
  1594. height: 400px;
  1595. position: relative;
  1596. border: 1px solid #E0E0E0;
  1597. margin-bottom: 20px;
  1598. margin-left: 36px;
  1599. .layout-data-max-big-box {
  1600. width: 1195px;
  1601. height: 400px;
  1602. position: relative;
  1603. .layout-data-max-big-min-box {
  1604. position: absolute;
  1605. top: 50%;
  1606. left: 50%;
  1607. .layout-data-max-min-box {
  1608. position: relative;
  1609. /*border:1px solid #e0e0e0;*/
  1610. .map-max-for-box {
  1611. position: absolute;
  1612. display: flex;
  1613. flex-direction: column;
  1614. .map-max-for-left-box {
  1615. height: 2px;
  1616. }
  1617. .map-max-for-center-box {
  1618. flex: 1;
  1619. display: flex;
  1620. .map-max-for-center-min-left {
  1621. width: 2px;
  1622. }
  1623. .map-max-for-center-min-center {
  1624. flex: 1;
  1625. position: relative;
  1626. .min-text-box{
  1627. width:100%;
  1628. text-align: center;
  1629. color:#333;
  1630. word-wrap:break-word;
  1631. word-break:break-all;
  1632. overflow: hidden;
  1633. z-index:999;
  1634. font-size:14px;
  1635. line-height:20px;
  1636. }
  1637. div {
  1638. position: absolute
  1639. }
  1640. .center-move-door-p-t {
  1641. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1642. background-size: 100% !important;
  1643. transform: rotate(180deg);
  1644. }
  1645. .center-move-door-p-b {
  1646. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1647. background-size: 100% !important;
  1648. }
  1649. .center-move-door-p-l {
  1650. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1651. background-size: 100% !important;
  1652. transform: rotate(90deg);
  1653. }
  1654. .center-move-door-p-r {
  1655. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1656. background-size: 100% !important;
  1657. transform: rotateZ(270deg);
  1658. }
  1659. .center-move-door-p-t-ss {
  1660. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1661. background-size: 100% !important;
  1662. transform: rotate(180deg);
  1663. }
  1664. .center-move-door-p-b-ss {
  1665. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1666. background-size: 100% !important;
  1667. }
  1668. .center-move-door-p-l-ss {
  1669. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1670. background-size: 100% !important;
  1671. transform: rotate(90deg);
  1672. }
  1673. .center-move-door-p-r-ss {
  1674. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1675. background-size: 100% !important;
  1676. transform: rotateZ(270deg);
  1677. }
  1678. .lightTop {
  1679. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1680. background-size: 100%;
  1681. }
  1682. .lightBottom {
  1683. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1684. background-size: 100%;
  1685. }
  1686. .lightLeft {
  1687. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1688. background-size: 100%;
  1689. }
  1690. .lightRight {
  1691. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1692. background-size: 100%;
  1693. }
  1694. }
  1695. .map-max-for-center-min-right {
  1696. width: 2px;
  1697. }
  1698. }
  1699. .map-max-for-right-box {
  1700. height: 2px;
  1701. }
  1702. .map-max-for-min-box {
  1703. position: relative;
  1704. div {
  1705. position: absolute
  1706. }
  1707. }
  1708. }
  1709. .for-map-box {
  1710. background: #CEF2FD;
  1711. }
  1712. .for-map-box-one {
  1713. background: #CEFDD5;
  1714. }
  1715. .for-map-box-two {
  1716. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1717. background-size: 60px 60px;
  1718. }
  1719. }
  1720. }
  1721. }
  1722. .layout-data-max-big-null-box {
  1723. height: 400px;
  1724. position: relative;
  1725. overflow: hidden;
  1726. img {
  1727. position: absolute;
  1728. top: 50%;
  1729. left: 50%;
  1730. margin-left: -71px;
  1731. margin-top: -71px;
  1732. width: 142px;
  1733. height: 142px;
  1734. }
  1735. div {
  1736. margin-top: 300px;
  1737. height: 30px;
  1738. display: flex;
  1739. p:nth-child(1) {
  1740. flex: 1;
  1741. }
  1742. p:nth-child(2) {
  1743. margin-right: 20px;
  1744. color: #333;
  1745. font-size: 14px;
  1746. }
  1747. p:nth-child(3) {
  1748. color: #0183FA;
  1749. font-size: 14px;
  1750. cursor: pointer;
  1751. }
  1752. p:nth-child(4) {
  1753. flex: 1;
  1754. }
  1755. }
  1756. }
  1757. .position-button-p {
  1758. position: absolute;
  1759. right: 12px;
  1760. top: 13px;
  1761. width: 100px;
  1762. line-height: 40px;
  1763. font-size: 14px;
  1764. color: #fff;
  1765. background: #0045AF;
  1766. border-radius: 6px;
  1767. text-align: center;
  1768. cursor: pointer;
  1769. }
  1770. }
  1771. .table-box {
  1772. margin-left: 36px;
  1773. flex: 1;
  1774. display: flex;
  1775. flex-direction: column;
  1776. overflow: hidden;
  1777. }
  1778. }
  1779. }
  1780. }
  1781. }
  1782. </style>
  1783. <style lang="scss">
  1784. .dialog-sort-no-form-item-box input {
  1785. text-align: left !important;
  1786. }
  1787. .building-dialog-box{
  1788. .map-max-big-box {
  1789. width: 575px;
  1790. height: 286px;
  1791. position: relative;
  1792. border: 1px solid #E0E0E0;
  1793. overflow: hidden;
  1794. .layout-data-max-big-box {
  1795. width: 575px;
  1796. height: 286px;
  1797. position: relative;
  1798. .layout-data-max-big-min-box {
  1799. position: absolute;
  1800. top: 50%;
  1801. left: 50%;
  1802. .layout-data-max-min-box {
  1803. position: relative;
  1804. .map-max-for-box {
  1805. position: absolute;
  1806. display: flex;
  1807. flex-direction: column;
  1808. .map-max-for-left-box {
  1809. height: 2px;
  1810. }
  1811. .map-max-for-center-box {
  1812. flex: 1;
  1813. display: flex;
  1814. .map-max-for-center-min-left {
  1815. width: 2px;
  1816. }
  1817. .map-max-for-center-min-center {
  1818. flex: 1;
  1819. position: relative;
  1820. .min-text-box{
  1821. width:100%;
  1822. text-align: center;
  1823. color:#333;
  1824. word-wrap:break-word;
  1825. word-break:break-all;
  1826. overflow: hidden;
  1827. z-index:999;
  1828. font-size:14px;
  1829. line-height:20px;
  1830. }
  1831. div {
  1832. position: absolute
  1833. }
  1834. .center-move-door-p-t {
  1835. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1836. background-size: 100% !important;
  1837. transform: rotate(180deg);
  1838. }
  1839. .center-move-door-p-b {
  1840. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1841. background-size: 100% !important;
  1842. }
  1843. .center-move-door-p-l {
  1844. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1845. background-size: 100% !important;
  1846. transform: rotate(90deg);
  1847. }
  1848. .center-move-door-p-r {
  1849. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png") !important;
  1850. background-size: 100% !important;
  1851. transform: rotateZ(270deg);
  1852. }
  1853. .center-move-door-p-t-ss {
  1854. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1855. background-size: 100% !important;
  1856. transform: rotate(180deg);
  1857. }
  1858. .center-move-door-p-b-ss {
  1859. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1860. background-size: 100% !important;
  1861. }
  1862. .center-move-door-p-l-ss {
  1863. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1864. background-size: 100% !important;
  1865. transform: rotate(90deg);
  1866. }
  1867. .center-move-door-p-r-ss {
  1868. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png") !important;
  1869. background-size: 100% !important;
  1870. transform: rotateZ(270deg);
  1871. }
  1872. .lightTop {
  1873. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1874. background-size: 100%;
  1875. }
  1876. .lightBottom {
  1877. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1878. background-size: 100%;
  1879. }
  1880. .lightLeft {
  1881. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1882. background-size: 100%;
  1883. }
  1884. .lightRight {
  1885. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1886. background-size: 100%;
  1887. }
  1888. }
  1889. .map-max-for-center-min-right {
  1890. width: 2px;
  1891. }
  1892. }
  1893. .map-max-for-right-box {
  1894. height: 2px;
  1895. }
  1896. .map-max-for-min-box {
  1897. position: relative;
  1898. div {
  1899. position: absolute
  1900. }
  1901. }
  1902. }
  1903. .for-map-box {
  1904. background: #CEF2FD;
  1905. }
  1906. .for-map-box-one {
  1907. background: #CEFDD5;
  1908. }
  1909. .for-map-box-two {
  1910. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1911. background-size: 60px 60px;
  1912. }
  1913. .for-map-box-three {
  1914. background: #FFBBBB!important;
  1915. }
  1916. }
  1917. }
  1918. }
  1919. .layout-data-max-big-null-box {
  1920. height: 400px;
  1921. position: relative;
  1922. overflow: hidden;
  1923. img {
  1924. position: absolute;
  1925. top: 50%;
  1926. left: 50%;
  1927. margin-left: -71px;
  1928. margin-top: -71px;
  1929. width: 142px;
  1930. height: 142px;
  1931. }
  1932. div {
  1933. margin-top: 300px;
  1934. height: 30px;
  1935. display: flex;
  1936. p:nth-child(1) {
  1937. flex: 1;
  1938. }
  1939. p:nth-child(2) {
  1940. margin-right: 20px;
  1941. color: #333;
  1942. font-size: 14px;
  1943. }
  1944. p:nth-child(3) {
  1945. color: #0183FA;
  1946. font-size: 14px;
  1947. cursor: pointer;
  1948. }
  1949. p:nth-child(4) {
  1950. flex: 1;
  1951. }
  1952. }
  1953. }
  1954. .position-button-p {
  1955. position: absolute;
  1956. right: 12px;
  1957. top: 13px;
  1958. width: 100px;
  1959. line-height: 40px;
  1960. font-size: 14px;
  1961. color: #fff;
  1962. background: #0045AF;
  1963. border-radius: 6px;
  1964. text-align: center;
  1965. cursor: pointer;
  1966. }
  1967. }
  1968. }
  1969. </style>