index.vue 67 KB

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