buildingDetails.vue 84 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113
  1. <template>
  2. <div class="buildingDetails">
  3. <div class="buildingDetails-page">
  4. <div class="max-left-box">
  5. <div class="max-left-box-one" v-if="!mapSrc">
  6. <div class="max-button-big-position-box">
  7. <img src="@/assets/ZDimages/evacuation3_2/img_xgbj_syl.png">
  8. <el-upload
  9. class="up-img-button-box"
  10. style="height:40px;width:300px;"
  11. :action="uploadImgUrl"
  12. :show-file-list="false"
  13. accept="image/png"
  14. :on-success="(res, file)=>handleAvatarSuccess(res, file,1)"
  15. :headers="headers"
  16. :before-upload="beforeAvatarUpload">
  17. <p class="up-img-button">+ 上传图片</p>
  18. </el-upload>
  19. <p class="up-img-text">请点击上传图片按钮上传实验室楼层布局参考图</p>
  20. </div>
  21. </div>
  22. <div class="max-left-button-box" v-show="mapSrc">
  23. <p class="null-p"></p>
  24. <el-upload
  25. class="up-img-p"
  26. :action="uploadImgUrl"
  27. :show-file-list="false"
  28. accept="image/png"
  29. :on-success="(res, file)=>handleAvatarSuccess(res, file,2)"
  30. :headers="headers"
  31. :before-upload="beforeAvatarUpload">
  32. <p style="margin:0;">更换图纸</p>
  33. </el-upload>
  34. <div class="opacity-button-box">
  35. <p @click="opacityClick(1)">-</p>
  36. <p>透明度:{{mapOpacityText}}%</p>
  37. <p @click="opacityClick(2)">+</p>
  38. </div>
  39. </div>
  40. <div class="max-left-map-big-box scrollbar-box" ref="maxBigBox" v-show="mapSrc">
  41. <div class="left-map-box" ref="maxBox" :style="'width:'+layerWidth+'px;height:'+layerHeight+'px;'">
  42. <!--循环房间数据-->
  43. <div :class="item.type == 2?'for-map-box-one':(item.type == 1?'for-map-box':(item.type == 3?'for-map-box-two':''))" v-for="(item,index) in mapList" :key="index"
  44. ref="moveBox"
  45. :style="'top:'+item.y+'px;left:'+item.x+'px;width:'+item.w+'px;height:'+item.h+'px;'">
  46. <div class="top-big-box">
  47. <p class="top-left-p"
  48. @mousedown.stop="(MouseEvent)=>zoomDownXY(MouseEvent,index,4)"></p>
  49. <p class="top-center-p"
  50. @mousedown.stop="(MouseEvent)=>zoomDownY(MouseEvent,index,1)"></p>
  51. <p class="top-right-p"
  52. @mousedown.stop="(MouseEvent)=>zoomDownXY(MouseEvent,index,1)"></p>
  53. </div>
  54. <div class="center-big-box">
  55. <p class="center-left-p"
  56. @mousedown.stop="(MouseEvent)=>zoomDownX(MouseEvent,index,4)"></p>
  57. <div class="center-move-box"
  58. :style="'line-height:'+(item.w>item.h?item.h-4:item.w-4)+'px;'"
  59. @contextmenu="(contextmenu)=>boxRightClick(contextmenu,item,index)"
  60. @mousedown.stop="(MouseEvent)=>dragDown(MouseEvent,index)">
  61. {{item.roomNum&&item.type == 1?item.roomNum:(!item.roomNum&&item.type == 1?'右键配置':'')}}
  62. </div>
  63. <!--这里要改找志蔚-->
  64. <p class="center-right-p"
  65. @mousedown.stop="(MouseEvent)=>zoomDownX(MouseEvent,index,2)"></p>
  66. </div>
  67. <div class="bottom-big-box">
  68. <p class="bottom-left-p"
  69. @mousedown.stop="(MouseEvent)=>zoomDownXY(MouseEvent,index,3)"></p>
  70. <p class="bottom-center-p"
  71. @mousedown.stop="(MouseEvent)=>zoomDownY(MouseEvent,index,3)"></p>
  72. <p class="bottom-right-p"
  73. @mousedown.stop="(MouseEvent)=>zoomDownXY(MouseEvent,index,2)"></p>
  74. </div>
  75. <p class="center-move-door-p" v-if="item.type == 1"
  76. :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':'')))"
  77. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  78. @contextmenu.stop="(contextmenu)=>boxRightClick(contextmenu,minItem,index,minIndex)"
  79. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"
  80. @mousedown.stop="(MouseEvent)=>doorDragDown(MouseEvent,index,minIndex)"
  81. ></p>
  82. <p class="center-move-door-p" v-if="item.type == 3"
  83. :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':'')))"
  84. v-for="(minItem,minIndex) in item.doorList" :key="minIndex"
  85. @contextmenu.stop="(contextmenu)=>boxRightClick(contextmenu,minItem,index,minIndex)"
  86. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"
  87. @mousedown.stop="(MouseEvent)=>doorDragDown(MouseEvent,index,minIndex)"
  88. ></p>
  89. <p class="center-move-light-p" v-if="minItem.type != 'light'&&!minItem.openType"
  90. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  91. :class="minItem.type == 'lab'?'colorDoor':(minItem.type == 'traffic'?'colorTraffic':(minItem.type == 'connect'?'colorConnect':''))"
  92. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"
  93. ><span v-for="(optionsItem,optionsIndex) in dialogOptions" v-if="minItem.state == optionsItem.value">{{optionsItem.label}}</span>{{minItem.name}}</p>
  94. <p class="center-move-light-p" v-if="minItem.type == 'light'&&!minItem.openType"
  95. v-for="(minItem,minIndex) in item.lightList" :key="minIndex"
  96. @contextmenu.stop="(contextmenu)=>boxRightClick(contextmenu,minItem,index,minIndex)"
  97. :class="minItem.state=='1'?'lightTop':(minItem.state=='2'?'lightBottom':(minItem.state=='3'?'lightLeft':(minItem.state=='4'?'lightRight':'lightNone')))"
  98. :style="'top:'+minItem.y+'px;left:'+minItem.x+'px;width:'+minItem.w+'px;height:'+minItem.h+'px;'"
  99. @mousedown.stop="(MouseEvent)=>lightDragDown(MouseEvent,index,minIndex)"
  100. ></p>
  101. </div>
  102. </div>
  103. <img class="left-map-img" :src="mapSrc" :style="'opacity:'+mapOpacity+';width:'+layerWidth+'px;height:'+layerHeight+'px;'">
  104. </div>
  105. </div>
  106. <div class="max-right-box">
  107. <div class="right-title-box">
  108. <el-tooltip class="item" effect="dark" :content="buildName+'楼'+floorName+'层'" placement="top-start">
  109. <p class="right-title-p">{{buildName}}楼{{floorName}}层</p>
  110. </el-tooltip>
  111. <div @click="buttonShadeClick">
  112. <p class="el-icon-question"></p>
  113. <p>使用帮助</p>
  114. </div>
  115. </div>
  116. <div class="right-bottom-max-box scrollbar-box">
  117. <div class="right-for-max-box">
  118. <p class="right-for-title">结构</p>
  119. <div class="right-for-box" v-for="(item,index) in roomList" :key="index">
  120. <img
  121. draggable="true"
  122. @dragstart="(DragEvent)=>externalAddDragStart(DragEvent,item.type)"
  123. @dragend="(DragEvent)=>externalAddDragEnd(DragEvent,'2')"
  124. :src="item.url">
  125. <p>{{item.name}}</p>
  126. </div>
  127. </div>
  128. <div class="right-for-max-box">
  129. <p class="right-for-title">房间</p>
  130. <div class="right-for-box" v-for="(item,index) in accessoriesList" :key="index">
  131. <img
  132. draggable="true"
  133. @dragstart="(DragEvent)=>internalAddDragStart(DragEvent,item.type)"
  134. @dragend="(DragEvent)=>internalAddDragEnd(DragEvent,'2')"
  135. :src="item.url">
  136. <p>{{item.name}}</p>
  137. </div>
  138. </div>
  139. <div class="right-button-box">
  140. <p></p>
  141. <p @click="clickBack">返回</p>
  142. <p @click="setDataButton">保存</p>
  143. <p></p>
  144. </div>
  145. </div>
  146. </div>
  147. </div>
  148. <!--右键-->
  149. <div class="map-shade-max-big-box" v-if="mouseType != 0" @click="offMapShade">
  150. <div class="map-shade-big-box" :style="'top:'+mouseY+'px;left:'+mouseX+'px;'">
  151. <p class="shade-button-p" v-if="dialogOpenType == 1 || dialogOpenType == 6" @click="clickShadeButton(1)">编辑</p>
  152. <p class="shade-border-p" v-if="dialogOpenType == 1 || dialogOpenType == 6"></p>
  153. <p class="shade-button-p" @click="clickShadeButton(2)">删除</p>
  154. </div>
  155. </div>
  156. <!--房间/灯设置-->
  157. <el-dialog :title="dialogOpenType==1?'编辑房间':(dialogOpenType==6?'编辑指示灯':'')" :visible.sync="dialogOpen" v-if="dialogOpen" width="600px" append-to-body>
  158. <el-form ref="dialogForm" :model="dialogForm" :rules="rules" label-width="120px">
  159. <div v-if="dialogOpenType == 1">
  160. <el-form-item label="房间类型:" prop="roomType">
  161. <el-select v-model="dialogForm.roomType" placeholder="请选择房间类型" style="width:300px;">
  162. <el-option
  163. v-for="item in roomOptions"
  164. :key="item.dictValue"
  165. :label="item.dictLabel"
  166. :value="item.dictValue">
  167. </el-option>
  168. </el-select>
  169. </el-form-item>
  170. <el-form-item label="房间编号:" prop="roomNum" v-if="dialogForm.roomType == '-99'">
  171. <el-input v-model="dialogForm.roomNum" placeholder="请输入房间编号" maxlength="20" style="width:300px;"/>
  172. </el-form-item>
  173. <el-form-item label="房间名称:" prop="roomName" v-if="dialogForm.roomType == '-99'">
  174. <el-input v-model="dialogForm.roomName" placeholder="请输入房间名称" maxlength="20" style="width:300px;"/>
  175. </el-form-item>
  176. <el-form-item label="房间选择:" prop="subId" v-if="dialogForm.roomType != '-99'">
  177. <el-select
  178. style="width:300px;"
  179. v-model="dialogForm.subId"
  180. filterable
  181. remote
  182. reserve-keyword
  183. @focus="selectFocus"
  184. @change="selectClick"
  185. placeholder="请选择房间"
  186. :remote-method="userSelectList"
  187. :loading="loading">
  188. <el-option
  189. v-for="item in subjectOptions"
  190. :key="item.id"
  191. :label="item.name"
  192. :value="item.id">
  193. </el-option>
  194. </el-select>
  195. </el-form-item>
  196. </div>
  197. <div v-if="dialogOpenType == 6">
  198. <el-form-item label="继电器类型:" prop="relayType">
  199. <el-radio-group v-model="dialogForm.relayType" style="margin-top:4px;">
  200. <el-radio :label="2">新版继电器</el-radio>
  201. <el-radio :label="1">老版继电器</el-radio>
  202. </el-radio-group>
  203. </el-form-item>
  204. <el-form-item label="继电器参数:" prop="configName" v-if="dialogForm.relayType == 2">
  205. <el-input v-model="dialogForm.configName" placeholder="请输入继电器参数" maxlength="20" style="width:300px;"/>
  206. </el-form-item>
  207. <el-form-item label="状态参数:" prop="configStatus" style="width:398px;" v-if="dialogForm.relayType == 2">
  208. <el-input v-model="dialogForm.configStatus" placeholder="请输入状态参数" maxlength="20" style="width:300px;"/>
  209. </el-form-item>
  210. <el-form-item label="继电器编号:" prop="relayCode" v-if="dialogForm.relayType == 1">
  211. <el-input v-model="dialogForm.relayCode" placeholder="请输入继电器参数" maxlength="20" style="width:300px;"/>
  212. </el-form-item>
  213. <el-form-item label="继电器路数:" prop="relayBit" style="width:398px;" v-if="dialogForm.relayType == 1" class="dialog-relay-bit-form-item-box">
  214. <el-input-number v-model="dialogForm.relayBit" :min="1" :max="12" placeholder="请输入状态参数" :controls="false" style="width:300px;"></el-input-number>
  215. </el-form-item>
  216. <el-form-item label="指示灯类型:" prop="state">
  217. <el-radio-group v-model="dialogForm.state" style="margin-top:4px;">
  218. <el-radio :label="item.value" v-for="item in dialogOptions">{{item.label}}</el-radio>
  219. </el-radio-group>
  220. </el-form-item>
  221. </div>
  222. </el-form>
  223. <div slot="footer" class="dialog-footer">
  224. <div style="display: flex">
  225. <p style="flex:1;"></p>
  226. <p style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;margin-right:17px;color:#999999;background:#E0E0E0;" @click="buttonSetButton(1)">取消</p>
  227. <p style="cursor:pointer;border-radius:6px;width:70px;line-height:30px;font-size:12px;text-align:center;color:#fff;background:#0045AF;" @click="buttonSetButton(2)">确定</p>
  228. <p style="flex:1;"></p>
  229. </div>
  230. </div>
  231. </el-dialog>
  232. <!--引导遮罩层-->
  233. <div class="shade-max-big-box" v-if="shadeBoxType != 0">
  234. <div v-if="shadeBoxType == 1" class="shade-max-box-1">
  235. <img class="shade-big-img" src="@/assets/ZDimages/evacuation3_2/img_znwl_jt.png">
  236. <p class="shade-big-1-text-1">更换图纸</p>
  237. <div class="shade-big-1-text-2">
  238. <p>-</p>
  239. <p>透明度:{{mapOpacityText}}%</p>
  240. <p>+</p>
  241. </div>
  242. <p class="shade-big-1-text-3">请先行上传图纸,根据图纸进行楼层布局的临摹,能够让绘制的图形更加精准</p>
  243. <p class="shade-big-1-text-4">上传图纸的可以修改透明度,如图纸会对绘制产生干扰,则能够将透明度降低方便绘制和临摹。</p>
  244. <p class="shade-big-1-text-5" @click="shadeClick(2)">下一步</p>
  245. </div>
  246. <div v-if="shadeBoxType == 2" class="shade-max-box-2">
  247. <img class="shade-big-img" src="@/assets/ZDimages/evacuation3_2/img_znwl_jt.png">
  248. <div class="shade-big-1-text-1">
  249. <img src="@/assets/ZDimages/evacuation3_2/img_xgbj_gd.png">
  250. <p>楼道</p>
  251. </div>
  252. <div class="shade-big-1-text-2">
  253. <img src="@/assets/ZDimages/evacuation3_2/img_xgbj_yjck.png">
  254. <p>应急出口</p>
  255. </div>
  256. <div class="shade-big-1-text-3">
  257. <img src="@/assets/ZDimages/evacuation3_2/img_xgbj_fj.png">
  258. <p>房间</p>
  259. </div>
  260. <p class="shade-big-1-text-4">楼道绘制方法为点击拖拽至绘制区域,鼠标左键选中楼道可以调整楼道的位置和尺寸。楼道支持与其他楼道衔接,衔接办法为选择矩形楼道中线上的点位与另外一个矩形过的中线进行结合即可。</p>
  261. <p class="shade-big-1-text-5">应急出口为固定尺寸,点击拖拽至绘制区域即可。</p>
  262. <p class="shade-big-1-text-6">房间可直接拖拽至绘制区域,鼠标左键选中房间可以调整楼道的位置和尺寸。</p>
  263. <p class="shade-big-1-text-7" @click="shadeClick(3)">下一步</p>
  264. </div>
  265. <div v-if="shadeBoxType == 3" class="shade-max-box-3">
  266. <img class="shade-big-img" src="@/assets/ZDimages/evacuation3_2/img_znwl_jtt.png">
  267. <p class="shade-big-1-text-1">房门为固定尺寸,点击拖拽至绘制区域的房间内即可。</p>
  268. <p class="shade-big-1-text-2">疏散灯需要拖拽至绘制区域的走道中,请您确认疏散灯位置尽可能与实际安装位置一致。</p>
  269. <p class="shade-big-1-text-3" @click="shadeClick(4)">下一步</p>
  270. <div class="shade-big-1-text-4">
  271. <img src="@/assets/ZDimages/evacuation3_2/img_xgbj_fj.png">
  272. <p>房间</p>
  273. </div>
  274. <div class="shade-big-1-text-5">
  275. <img src="@/assets/ZDimages/evacuation3_2/img_xgbj_fj.png">
  276. <p>房间</p>
  277. </div>
  278. </div>
  279. <div v-if="shadeBoxType == 4 || shadeBoxType == 5" class="shade-max-box-4">
  280. <div>
  281. <p>{{shadeBoxType == 4?'最后提示:':''}}</p>
  282. <p>左键选中组件可以调整大小和位置,右键选中组件可以删除组件或编辑组件属性,马上开始绘制布局吧。</p>
  283. <p @click="shadeClick(0)">开始绘制</p>
  284. </div>
  285. </div>
  286. </div>
  287. </div>
  288. </template>
  289. <script>
  290. import { Loading } from 'element-ui'
  291. import { getToken } from "@/utils/auth";
  292. import { checkDoorTo,checkLightDirection,checkRoom,calculateTrafficPoint,addDoorPoint,
  293. doorMoveJudge,lightMoveJudge,roomMove,roomAdd,lightAdd,addDoor,fourCornersZoom,
  294. fourEdgeZoom,setJsData,checkInstall} from "@/utils/evacuationLayout";
  295. import { subjectList,lineVertex} from "@/api/evacuation3_2/index";
  296. export default {
  297. name: "builDingDetails",
  298. props:{
  299. propsData:{},
  300. },
  301. data() {
  302. return {
  303. loading:false,
  304. loadingInstance:{},
  305. uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
  306. headers: {
  307. Authorization: "Bearer " + getToken(),
  308. },
  309. //背景图透明度
  310. mapOpacity:0.5,
  311. mapOpacityText:50,
  312. //背景图地址
  313. // mapSrc:'https://img0.baidu.com/it/u=3368678403,249914024&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
  314. mapSrc:'',
  315. /*********************布局设置参数*********************/
  316. //边界位置
  317. borderLeft:null,
  318. borderTop:null,
  319. //画布/楼层尺寸
  320. layerWidth:null,
  321. layerHeight:null,
  322. //房间尺寸限制
  323. minHeight:100,
  324. maxHeight:600,
  325. minWidth:100,
  326. maxWidth:800,
  327. //门尺寸数据
  328. doorHeight:34,
  329. doorWidth:34,
  330. //灯尺寸数据
  331. minLightNum:40,
  332. maxLightNum:40,
  333. //交通点检测时触手范围
  334. tentaclesLength:10,
  335. //房间数据
  336. newMapList:[],
  337. mapList: [],
  338. //当前坐标
  339. clientX: "",
  340. clientY: "",
  341. boxIndex: "",
  342. //房间边框/角方向状态 1.上/右上 2.右/右下 3.下/左下 4.左/左上
  343. moveType:null,
  344. //抓取类型 1.房间 2.楼道 3.应急出口 4.房门 6.疏散灯
  345. grab:null,
  346. //子类抓取下标
  347. minIndex:null,
  348. //***********************模拟数据列表*************************//
  349. // 可选房间列表 //1.房间 2.楼道 3.应急出口
  350. roomList:[
  351. {
  352. name:"楼道",
  353. type: '2',
  354. url:require('@/assets/ZDimages/evacuation3_2/img_xgbj_gd.png'),
  355. },
  356. {
  357. name:"应急出口",
  358. type: '3',
  359. url:require('@/assets/ZDimages/evacuation3_2/img_xgbj_yjck.png'),
  360. },
  361. {
  362. name:"房间",
  363. type: '1',
  364. url:require('@/assets/ZDimages/evacuation3_2/img_xgbj_fj.png'),
  365. },
  366. ],
  367. // 房间内配件列表 //4.房间 6.疏散灯
  368. accessoriesList:[
  369. {
  370. name:"房门",
  371. type: '4',
  372. url:require('@/assets/ZDimages/evacuation3_2/img_xgbj_fjm.png'),
  373. },
  374. {
  375. name:"疏散灯",
  376. type: '6',
  377. url:require('@/assets/ZDimages/evacuation3_2/icon_bjt_ssd.png'),
  378. },
  379. ],
  380. //************************弹层开关*******************************//
  381. shadeBoxType:0,
  382. //************************灯设置数据*******************************//
  383. dialogOpen:0,
  384. dialogOpenType:0,
  385. dialogIndex:null,
  386. dialogMinIndex:null,
  387. dialogForm:{},
  388. dialogOptions: [
  389. {
  390. value: '1',
  391. label: '上指示灯'
  392. }, {
  393. value: '2',
  394. label: '下指示灯'
  395. }, {
  396. value: '3',
  397. label: '左指示灯'
  398. }, {
  399. value: '4',
  400. label: '右指示灯'
  401. },
  402. ],
  403. //鼠标右键抓取坐标
  404. mouseX:null,
  405. mouseY:null,
  406. mouseType:0,
  407. //房间类型列表
  408. roomOptions:[],
  409. rules:{
  410. roomType:[
  411. {required: true, message: '请选择房间类型', trigger: 'blur'},
  412. { required: true, message: "请选择房间类型", validator: this.spaceJudgment, trigger: "blur" }
  413. ],
  414. roomNum:[
  415. {required: true, message: '请输入房间编号', trigger: 'blur'},
  416. { required: true, message: "请输入房间编号", validator: this.spaceJudgment, trigger: "blur" }
  417. ],
  418. roomName:[
  419. {required: true, message: '请输入房间名称', trigger: 'blur'},
  420. { required: true, message: "请输入房间名称", validator: this.spaceJudgment, trigger: "blur" }
  421. ],
  422. subId:[
  423. {required: true, message: '请选择房间', trigger: 'blur'},
  424. { required: true, message: "请选择房间", validator: this.spaceJudgment, trigger: "blur" }
  425. ],
  426. name1:[
  427. {required: true, message: '请选择继电器类型', trigger: 'blur'},
  428. { required: true, message: "请选择继电器类型", validator: this.spaceJudgment, trigger: "blur" }
  429. ],
  430. name2:[
  431. {required: true, message: '请输入继电器参数', trigger: 'blur'},
  432. { required: true, message: "请输入继电器参数", validator: this.spaceJudgment, trigger: "blur" }
  433. ],
  434. name3:[
  435. {required: true, message: '请输入状态参数', trigger: 'blur'},
  436. { required: true, message: "请输入状态参数", validator: this.spaceJudgment, trigger: "blur" }
  437. ],
  438. state:[
  439. {required: true, message: '请选择指示灯类型', trigger: 'blur'},
  440. { required: true, message: "请选择指示灯类型", validator: this.spaceJudgment, trigger: "blur" }
  441. ],
  442. },
  443. //拖拽时显示的图片
  444. roomImg_1:null,
  445. roomImg_2:null,
  446. roomImg_3:null,
  447. doorImg:null,
  448. lightImg:null,
  449. //选择实验室 下拉列表
  450. roomSelectList:[],
  451. roomSelectValue:'',
  452. //懒加载实验室列表
  453. subjectOptions:[],
  454. buildName:'',
  455. floorName:'',
  456. }
  457. },
  458. created() {
  459. },
  460. mounted(){
  461. console.log(this.propsData)
  462. this.buildName=this.propsData.buildName
  463. this.floorName=this.propsData.floorName
  464. this.initialization();
  465. this.getDicts("layout_room_type").then(response => {
  466. this.roomOptions = response.data;
  467. this.roomOptions.push({dictLabel:'其他',dictValue:'-99'})
  468. });
  469. // this.$set(this,'mapList',[{"name":"q01","y":401,"x":1,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":29.5}]},{"name":"z01","y":98,"x":801,"w":100,"h":100,"type":"3","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":39.5}]},{"name":"l01","y":101,"x":101,"w":100,"h":498,"type":"2","direction":"1","lightList":[{"type":"light","state":"1","w":20,"h":20,"x":40,"y":10},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":90},{"type":"light","state":"1","w":20,"h":20,"x":40,"y":295},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":367},{"type":"light","state":"1","w":20,"h":20,"x":40,"y":400},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":464}]},{"name":"l02","y":301,"x":201,"w":500,"h":100,"type":"2","direction":"1","lightList":[{"type":"light","state":"3","w":20,"h":20,"x":41,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":121,"y":40},{"type":"light","state":"3","w":20,"h":20,"x":348,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":448,"y":40},{"type":"light","state":"3","w":20,"h":20,"x":194,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":277,"y":40}]},{"name":"l03","y":101,"x":701,"w":100,"h":498,"type":"2","direction":"1","lightList":[{"type":"light","state":"1","w":20,"h":20,"x":40,"y":12},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":167},{"type":"light","state":"1","w":20,"h":20,"x":40,"y":321},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":449}]},{"name":"l04","y":101,"x":401,"w":100,"h":200,"type":"2","direction":"1","lightList":[{"type":"light","state":"1","w":20,"h":20,"x":40,"y":46},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":158}]},{"name":"l05","y":401,"x":401,"w":100,"h":198,"type":"2","direction":"1","lightList":[{"type":"light","state":"1","w":20,"h":20,"x":40,"y":23},{"type":"light","state":"2","w":20,"h":20,"x":40,"y":155}]},{"x":301,"y":201,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":20.5}]},{"x":1,"y":501,"w":100,"h":100,"type":"3","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":30.5}]},{"x":801,"y":498,"w":100,"h":100,"type":"3","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":18.5}]},{"x":301,"y":101,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"top","w":25,"h":25,"x":35.5,"y":2}]},{"x":201,"y":201,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":23.5}]},{"x":201,"y":101,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":44.5}]},{"x":1,"y":301,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":30.5}]},{"x":1,"y":201,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":40.5}]},{"x":1,"y":101,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":49.5}]},{"x":801,"y":398,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":36.5}]},{"x":801,"y":298,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":34.5}]},{"x":801,"y":198,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":22.5}]},{"x":201,"y":401,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":26.5}]},{"x":301,"y":401,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":43.5}]},{"x":201,"y":501,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"left","w":25,"h":25,"x":2,"y":29.5}]},{"x":301,"y":501,"w":100,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":27.5}]},{"x":501,"y":201,"w":200,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":173,"y":30.5}]},{"x":501,"y":101,"w":200,"h":100,"type":"1","direction":"1","doorList":[{"type":"door","toward":"top","w":25,"h":25,"x":136.5,"y":2}]},{"x":501,"y":401,"w":100,"h":198,"type":"1","direction":"1","doorList":[{"type":"door","toward":"bottom","w":25,"h":25,"x":35.5,"y":171}]},{"x":601,"y":401,"w":100,"h":198,"type":"1","direction":"1","doorList":[{"type":"door","toward":"bottom","w":25,"h":25,"x":33.5,"y":171}]},{"x":101,"y":1,"w":700,"h":100,"type":"2","direction":"1","lightList":[{"type":"light","state":"3","w":20,"h":20,"x":160,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":274,"y":40},{"type":"light","state":"3","w":20,"h":20,"x":495,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":580,"y":40}]},{"x":401,"y":599,"w":400,"h":100,"type":"2","direction":"1","lightList":[{"type":"light","state":"3","w":20,"h":20,"x":87,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":171,"y":40},{"type":"light","state":"3","w":20,"h":20,"x":207,"y":40},{"type":"light","state":"4","w":20,"h":20,"x":272,"y":40}]},{"x":1,"y":1,"w":100,"h":100,"type":"3","direction":"1","doorList":[{"type":"door","toward":"right","w":25,"h":25,"x":73,"y":36.5}]}])
  470. // this.$set(this,'mapSrc','1');
  471. },
  472. methods:{
  473. //提交
  474. setDataButton(){
  475. let self = this;
  476. if(checkRoom(this.mapList)&&
  477. checkDoorTo(this.mapList)&&
  478. checkInstall(this.mapList)){
  479. let newMapList = JSON.parse(JSON.stringify(this.mapList))
  480. let obj = addDoorPoint(newMapList)
  481. console.log('obj',obj);
  482. //提交数据处理
  483. let roomList = [];
  484. let lightList = [];
  485. for(let i=0;i<obj.mapList.length;i++){
  486. if(obj.mapList[i].type == 1){
  487. let minObj = {
  488. roomType:obj.mapList[i].roomType,
  489. roomNum:obj.mapList[i].roomNum,
  490. pointName:obj.mapList[i].key,
  491. }
  492. if(obj.mapList[i].roomType != '-99'){
  493. minObj.subId = obj.mapList[i].subId
  494. minObj.subName = obj.mapList[i].subName
  495. }else{
  496. minObj.roomName = obj.mapList[i].roomName
  497. }
  498. roomList.push(minObj);
  499. }else if(obj.mapList[i].type == 2){
  500. for(let o=0;o<obj.mapList[i].lightList.length;o++){
  501. if( obj.mapList[i].lightList[o].type == 'light'){
  502. let minObj = {
  503. pointName:obj.mapList[i].lightList[o].key,
  504. relayType:obj.mapList[i].lightList[o].relayType,
  505. state:obj.mapList[i].lightList[o].state,
  506. }
  507. if(obj.mapList[i].lightList[o].relayType == 1){
  508. minObj.relayCode = obj.mapList[i].lightList[o].relayCode
  509. minObj.relayBit = obj.mapList[i].lightList[o].relayBit
  510. }else if(obj.mapList[i].lightList[o].relayType == 2){
  511. minObj.configName = obj.mapList[i].lightList[o].configName
  512. minObj.configStatus = obj.mapList[i].lightList[o].configStatus
  513. }
  514. lightList.push(minObj);
  515. }
  516. }
  517. }
  518. }
  519. let newObj = {
  520. imgUrl: this.mapSrc,
  521. canvasWidth: this.layerWidth,
  522. canvasHeight: this.layerHeight,
  523. buildId: this.propsData.buildId,
  524. floorId: this.propsData.floorId,
  525. relationalData:obj.newList,//点数据
  526. buildFloorLayouts:roomList,//房间数据
  527. exitPointRelayList:lightList,//灯数据
  528. layoutData:JSON.stringify(this.mapList),//布局数据
  529. layoutJoinData:JSON.stringify(obj.evacuationList),//布局数据
  530. };
  531. console.log('newObj',newObj);
  532. lineVertex(newObj).then(response => {
  533. this.msgSuccess(response.msg);
  534. this.$parent.clickPage(3)
  535. });
  536. }
  537. },
  538. //返回
  539. clickBack(){
  540. this.$parent.clickPage(1)
  541. },
  542. //初始化
  543. initialization(){
  544. if(this.propsData.layoutData){
  545. this.$set(this,'mapSrc',this.propsData.imgUrl);
  546. this.$set(this,'layerWidth',this.propsData.canvasWidth);
  547. this.$set(this,'layerHeight',this.propsData.canvasHeight);
  548. this.$set(this,'maxWidth',this.propsData.canvasWidth);
  549. this.$set(this,'maxHeight',this.propsData.canvasHeight);
  550. this.$set(this,'mapList',JSON.parse(this.propsData.layoutData));
  551. this.$set(this,'shadeBoxType',5);
  552. }else{
  553. this.$set(this,'shadeBoxType',0);
  554. }
  555. },
  556. //懒加载实验室
  557. userSelectList(e){
  558. subjectList({name:e}).then(response => {
  559. this.subjectOptions = response.data;
  560. });
  561. },
  562. selectFocus(){
  563. console.log("123");
  564. },
  565. selectClick(e){
  566. let self = this;
  567. for(let i=0;i<self.subjectOptions.length;i++){
  568. if(e == self.subjectOptions[i].id){
  569. self.$set(self.dialogForm,'subName',self.subjectOptions[i].name);
  570. self.$set(self.dialogForm,'roomNum',self.subjectOptions[i].room);
  571. }
  572. }
  573. },
  574. /*********************************右键操作事件*********************************/
  575. //右键事件
  576. boxRightClick(event,item,index,minIndex){
  577. event.returnValue = false;
  578. if(item.type == 'light'){
  579. this.$set(this,'mouseX',event.clientX)
  580. this.$set(this,'mouseY',event.clientY )
  581. this.$set(this,'mouseType',6)
  582. this.$set(this,'dialogOpenType',6)
  583. this.$set(this,'dialogIndex',index)
  584. this.$set(this,'dialogMinIndex',minIndex)
  585. let obj = {
  586. relayType:item.relayType?item.relayType:2,
  587. state:item.state?item.state:"",
  588. }
  589. if(obj.relayType == 1){
  590. obj.relayCode = item.relayCode?item.relayCode:"";
  591. obj.relayBit = item.relayBit?item.relayBit:"";
  592. }else if(obj.relayType == 2){
  593. obj.configName = item.configName?item.configName:"";
  594. obj.configStatus = item.configStatus?item.configStatus:"";
  595. }
  596. this.$set(this,'dialogForm',JSON.parse(JSON.stringify(obj)));
  597. //等待写
  598. }else if(item.type == 'door'){
  599. this.$set(this,'mouseX',event.clientX )
  600. this.$set(this,'mouseY',event.clientY)
  601. this.$set(this,'mouseType',4)
  602. this.$set(this,'dialogOpenType',4)
  603. this.$set(this,'dialogIndex',index)
  604. this.$set(this,'dialogMinIndex',minIndex)
  605. this.$set(this,'dialogForm',JSON.parse(JSON.stringify(item)))
  606. }else if(item.type == '1'){
  607. this.$set(this,'mouseX',event.clientX )
  608. this.$set(this,'mouseY',event.clientY)
  609. this.$set(this,'mouseType',1)
  610. this.$set(this,'dialogOpenType',1)
  611. this.$set(this,'dialogIndex',index)
  612. let obj = {
  613. roomType:item.roomType?item.roomType:"",
  614. roomNum:item.roomNum?item.roomNum:"",
  615. roomName:item.roomName?item.roomName:"",
  616. subId:item.subId?item.subId:"",
  617. subName:item.subName?item.subName:"",
  618. }
  619. this.$set(this,'dialogForm',JSON.parse(JSON.stringify(obj)));
  620. }else if(item.type == '2'){
  621. this.$set(this,'mouseX',event.clientX )
  622. this.$set(this,'mouseY',event.clientY)
  623. this.$set(this,'mouseType',2)
  624. this.$set(this,'dialogOpenType',2)
  625. this.$set(this,'dialogIndex',index)
  626. }else if(item.type == '3'){
  627. this.$set(this,'mouseX',event.clientX )
  628. this.$set(this,'mouseY',event.clientY)
  629. this.$set(this,'mouseType',3)
  630. this.$set(this,'dialogOpenType',3)
  631. this.$set(this,'dialogIndex',index)
  632. }
  633. },
  634. //弹窗确定
  635. buttonSetButton(type){
  636. let self = this;
  637. if(type == 1){
  638. this.dialogOpen = false;
  639. }else if(type == 2){
  640. this.$refs["dialogForm"].validate(valid => {
  641. if (valid) {
  642. if(this.dialogOpenType == 1){
  643. if(self.dialogForm.roomType != '-99'){
  644. for(let i=0;i<self.mapList.length;i++){
  645. if(self.mapList[i].type == '1'){
  646. if(self.mapList[i].subId == self.dialogForm.subId){
  647. this.msgError(self.dialogForm.subName+'已被其他房间绑定')
  648. return
  649. }
  650. }
  651. }
  652. }
  653. this.$set(this.mapList[this.dialogIndex],'roomType',this.dialogForm.roomType);
  654. this.$set(this.mapList[this.dialogIndex],'roomNum',this.dialogForm.roomNum);
  655. this.$set(this.mapList[this.dialogIndex],'roomName',self.dialogForm.roomType == '-99'?this.dialogForm.roomName:"");
  656. this.$set(this.mapList[this.dialogIndex],'subId',self.dialogForm.roomType != '-99'?this.dialogForm.subId:"");
  657. this.$set(this.mapList[this.dialogIndex],'subName',self.dialogForm.roomType != '-99'?this.dialogForm.subName:"");
  658. this.dialogOpen = false;
  659. }else if(this.dialogOpenType == 6){
  660. this.$set(this.mapList[this.dialogIndex].lightList[this.dialogMinIndex],'relayType',this.dialogForm.relayType);
  661. this.$set(this.mapList[this.dialogIndex].lightList[this.dialogMinIndex],'state',this.dialogForm.state);
  662. if(this.dialogForm.relayType == 1){
  663. this.$set(this.mapList[this.dialogIndex].lightList[this.dialogMinIndex],'relayCode',this.dialogForm.relayCode);
  664. this.$set(this.mapList[this.dialogIndex].lightList[this.dialogMinIndex],'relayBit',this.dialogForm.relayBit);
  665. }else if(this.dialogForm.relayType == 2){
  666. this.$set(this.mapList[this.dialogIndex].lightList[this.dialogMinIndex],'configName',this.dialogForm.configName);
  667. this.$set(this.mapList[this.dialogIndex].lightList[this.dialogMinIndex],'configStatus',this.dialogForm.configStatus);
  668. }
  669. this.dialogOpen = false;
  670. }
  671. }
  672. })
  673. }
  674. },
  675. //遮罩菜单选中事件
  676. clickShadeButton(type){
  677. if(type == 1){
  678. if(this.dialogForm.roomType != '-99'){
  679. this.$set(this,'subjectOptions',[{id:this.dialogForm.subId,name:this.dialogForm.subName}]);
  680. }
  681. this.$set(this,'dialogOpen',true)
  682. }else if (type == 2){
  683. if(this.dialogOpenType == 1 || this.dialogOpenType == 2 || this.dialogOpenType == 3){
  684. this.mapList.splice(this.dialogIndex,1)
  685. }else if(this.dialogOpenType == 4){
  686. this.mapList[this.dialogIndex].doorList.splice(this.dialogMinIndex,1)
  687. }else if(this.dialogOpenType == 6){
  688. this.mapList[this.dialogIndex].lightList.splice(this.dialogMinIndex,1)
  689. }
  690. this.$forceUpdate();
  691. }
  692. },
  693. //关闭下啦遮罩层
  694. offMapShade(){
  695. this.$set(this,'mouseType',0)
  696. },
  697. /*********************************房间内部移动事件*********************************/
  698. //门按下时绑定事件
  699. doorDragDown(e, index, minIndex){
  700. if (e.button === 0) { //0鼠标左键 1中键 2右键
  701. this.$set(this, 'clientX', e.clientX);
  702. this.$set(this, 'clientY', e.clientY);
  703. this.$set(this, 'boxIndex', index);
  704. this.$set(this, 'minIndex', minIndex);
  705. this.$refs.maxBox.addEventListener('mousemove', this.doorDragMove, false)
  706. this.$refs.maxBox.addEventListener('mouseup', this.doorDragUp, false)
  707. }
  708. },
  709. //门弹起时绑定事件
  710. doorDragUp(e){
  711. if (e.button === 0) { //0鼠标左键 1中键 2右键
  712. this.$refs.maxBox.removeEventListener('mousemove', this.doorDragMove, false)
  713. this.$refs.maxBox.removeEventListener('mouseup', this.doorDragUp, false)
  714. }
  715. },
  716. //门移动事件
  717. doorDragMove(event){
  718. let obj = doorMoveJudge(this.mapList,this.boxIndex,this.minIndex,event,this.$refs.maxBigBox.scrollLeft,this.$refs.maxBigBox.scrollTop);
  719. if(obj){
  720. let newObj = JSON.parse(JSON.stringify(this.mapList[this.boxIndex].doorList));
  721. newObj[this.minIndex] = { type:'door', toward:obj.toward, w:this.doorWidth, h:this.doorHeight, x:obj.x, y:obj.y, }
  722. this.$set(this.mapList[this.boxIndex],'doorList',newObj);
  723. }
  724. //到达边界删除事件
  725. if(event.clientX<=(this.borderLeft)||event.clientX>=(this.borderLeft+this.layerWidth-1)||event.clientY<=(this.borderTop)||event.clientY>=(this.borderTop+this.layerHeight-1)){
  726. this.$refs.maxBox.removeEventListener('mousemove', this.doorDragMove, false)
  727. this.$refs.maxBox.removeEventListener('mouseup', this.doorDragUp, false)
  728. }
  729. },
  730. //灯按下时绑定事件
  731. lightDragDown(e, index,minIndex){
  732. if (e.button === 0) { //0鼠标左键 1中键 2右键
  733. this.$set(this, 'clientX', e.clientX);
  734. this.$set(this, 'clientY', e.clientY);
  735. this.$set(this, 'boxIndex', index);
  736. this.$set(this, 'minIndex', minIndex);
  737. this.$refs.maxBox.addEventListener('mousemove', this.lightDragMove, false)
  738. this.$refs.maxBox.addEventListener('mouseup', this.lightDragUp, false)
  739. }
  740. },
  741. //灯弹起时绑定事件
  742. lightDragUp(e){
  743. if (e.button === 0) { //0鼠标左键 1中键 2右键
  744. this.$refs.maxBox.removeEventListener('mousemove', this.lightDragMove, false)
  745. this.$refs.maxBox.removeEventListener('mouseup', this.lightDragUp, false)
  746. }
  747. },
  748. //灯移动事件
  749. lightDragMove(event){
  750. let obj = lightMoveJudge(this.mapList,this.boxIndex,this.minIndex,event,this.$refs.maxBigBox.scrollLeft,this.$refs.maxBigBox.scrollTop);
  751. if(obj){
  752. this.$set(this.mapList[this.boxIndex].lightList[this.minIndex],'x',obj.x?obj.x:this.mapList[this.boxIndex].lightList[this.minIndex].x);
  753. this.$set(this.mapList[this.boxIndex].lightList[this.minIndex],'y',obj.y?obj.y:this.mapList[this.boxIndex].lightList[this.minIndex].y);
  754. }
  755. //到达边界删除事件
  756. if(event.clientX<=(this.borderLeft)||event.clientX>=(this.borderLeft+this.layerWidth-1)||event.clientY<=(this.borderTop)||event.clientY>=(this.borderTop+this.layerHeight-1)){
  757. this.$refs.maxBox.removeEventListener('mousemove', this.lightDragMove, false)
  758. this.$refs.maxBox.removeEventListener('mouseup', this.lightDragUp, false)
  759. }
  760. },
  761. /*********************************房间移动事件*********************************/
  762. //按下时绑定事件
  763. dragDown(e, index) {
  764. if (e.button === 0) { //0鼠标左键 1中键 2右键
  765. this.$set(this, 'clientX', e.clientX);
  766. this.$set(this, 'clientY', e.clientY);
  767. this.$set(this, 'boxIndex', index);
  768. this.$refs.maxBox.addEventListener('mousemove', this.dragMove, false)
  769. this.$refs.maxBox.addEventListener('mouseup', this.dragUp, false)
  770. }
  771. },
  772. //弹起时删除事件
  773. dragUp(e) {
  774. if (e.button === 0) { //0鼠标左键 1中键 2右键
  775. this.$refs.maxBox.removeEventListener('mousemove', this.dragMove, false)
  776. this.$refs.maxBox.removeEventListener('mouseup', this.dragUp, false)
  777. }
  778. },
  779. //移动事件
  780. dragMove(event) {
  781. if (event.button === 0) { //0鼠标左键 1中键 2右键
  782. let obj = roomMove(this.mapList,this.boxIndex,this.clientX,this.clientY,event)
  783. if(obj.x){
  784. this.$set(this.mapList[this.boxIndex], 'x', obj.x)
  785. }
  786. if (obj.y){
  787. this.$set(this.mapList[this.boxIndex], 'y', obj.y)
  788. }
  789. if(event.clientX<=(this.borderLeft+10)||event.clientX>=(this.borderLeft+this.layerWidth-10)||event.clientY<=(this.borderTop+10)||event.clientY>=(this.borderTop+this.layerHeight-10)){
  790. this.$refs.maxBox.removeEventListener('mousemove', this.dragMove, false)
  791. this.$refs.maxBox.removeEventListener('mouseup', this.dragUp, false)
  792. }
  793. this.$set(this, 'clientX', event.clientX);
  794. this.$set(this, 'clientY', event.clientY);
  795. }
  796. },
  797. /*********************************尺寸调整事件X,Y*********************************/
  798. //四角-按下时绑定事件
  799. zoomDownXY(e, index, type){
  800. if (e.button === 0) { //0鼠标左键 1中键 2右键
  801. this.$set(this, 'clientX', e.clientX);
  802. this.$set(this, 'clientY', e.clientY);
  803. this.$set(this, 'boxIndex', index);
  804. this.$set(this, 'moveType', type);
  805. this.$refs.maxBox.addEventListener('mousemove', this.zoomMoverXY, false)
  806. this.$refs.maxBox.addEventListener('mouseup', this.zoomUpXY, false)
  807. }
  808. },
  809. //四角-弹起时删除事件
  810. zoomUpXY(e){
  811. if (e.button === 0) { //0鼠标左键 1中键 2右键
  812. this.$refs.maxBox.removeEventListener('mousemove', this.zoomMoverXY, false)
  813. this.$refs.maxBox.removeEventListener('mouseup', this.zoomMoverXY, false)
  814. }
  815. },
  816. //四角-拖拽事件
  817. zoomMoverXY(event){
  818. // moveType 1.上/右上 2.右/右下 3.下/左下 4.左/左上
  819. if(event.button === 0){
  820. let obj = fourCornersZoom(this.mapList,this.boxIndex,event,this.clientX,this.clientY,this.moveType);
  821. if(obj){
  822. this.$set(this.mapList[this.boxIndex],'x',obj.x?obj.x:this.mapList[this.boxIndex].x);
  823. this.$set(this.mapList[this.boxIndex],'y',obj.y?obj.y:this.mapList[this.boxIndex].y);
  824. this.$set(this.mapList[this.boxIndex],'w',obj.w?obj.w:this.mapList[this.boxIndex].w);
  825. this.$set(this.mapList[this.boxIndex],'h',obj.h?obj.h:this.mapList[this.boxIndex].h);
  826. if(this.mapList[this.boxIndex].type == '1' || this.mapList[this.boxIndex].type == '3'){
  827. this.$set(this.mapList[this.boxIndex],'doorList',obj.doorList?obj.doorList:this.mapList[this.boxIndex].doorList);
  828. }if(this.mapList[this.boxIndex].type == '2'){
  829. this.$set(this.mapList[this.boxIndex],'lightList',obj.lightList?obj.lightList:this.mapList[this.boxIndex].lightList);
  830. }
  831. //到达边界删除事件
  832. if(event.clientX<=(this.borderLeft)||event.clientX>=(this.borderLeft+this.layerWidth-1)||event.clientY<=(this.borderTop)||event.clientY>=(this.borderTop+this.layerHeight-1)){
  833. this.$refs.maxBox.removeEventListener('mousemove', this.zoomMoverXY, false)
  834. this.$refs.maxBox.removeEventListener('mouseup', this.zoomMoverXY, false)
  835. }
  836. this.$set(this, 'clientX', event.clientX);
  837. this.$set(this, 'clientY', event.clientY);
  838. }
  839. }
  840. },
  841. /*********************************尺寸调整事件X*********************************/
  842. //左右边框-按下时绑定事件
  843. zoomDownX(e, index, type){
  844. if (e.button === 0) { //0鼠标左键 1中键 2右键
  845. this.$set(this, 'clientX', e.clientX);
  846. this.$set(this, 'clientY', e.clientY);
  847. this.$set(this, 'boxIndex', index);
  848. this.$set(this, 'moveType', type);
  849. this.$refs.maxBox.addEventListener('mousemove', this.zoomMoverX, false)
  850. this.$refs.maxBox.addEventListener('mouseup', this.zoomUpX, false)
  851. }
  852. },
  853. //左右边框-弹起时删除事件
  854. zoomUpX(e){
  855. if (e.button === 0) { //0鼠标左键 1中键 2右键
  856. this.$refs.maxBox.removeEventListener('mousemove', this.zoomMoverX, false)
  857. this.$refs.maxBox.removeEventListener('mouseup', this.zoomMoverX, false)
  858. }
  859. },
  860. //左右边框-拖拽事件
  861. zoomMoverX(e){
  862. if (e.button === 0) { //0鼠标左键 1中键 2右键
  863. let obj = fourEdgeZoom(this.mapList,this.boxIndex,e,this.clientX,this.clientY,this.moveType);
  864. if(obj){
  865. this.$set(this.mapList[this.boxIndex],'x',obj.x?obj.x:this.mapList[this.boxIndex].x);
  866. this.$set(this.mapList[this.boxIndex],'w',obj.w?obj.w:this.mapList[this.boxIndex].w);
  867. if(this.mapList[this.boxIndex].type == '1' || this.mapList[this.boxIndex].type == '3'){
  868. this.$set(this.mapList[this.boxIndex],'doorList',obj.doorList?obj.doorList:this.mapList[this.boxIndex].doorList);
  869. }if(this.mapList[this.boxIndex].type == '2'){
  870. this.$set(this.mapList[this.boxIndex],'lightList',obj.lightList?obj.lightList:this.mapList[this.boxIndex].lightList);
  871. }
  872. //到达边界删除事件
  873. if(e.clientX<=(this.borderLeft)||e.clientX>=(this.borderLeft+this.layerWidth-1)||e.clientY<=(this.borderTop)||e.clientY>=(this.borderTop+this.layerHeight-1)){
  874. this.$refs.maxBox.removeEventListener('mousemove', this.zoomMoverX, false)
  875. this.$refs.maxBox.removeEventListener('mouseup', this.zoomMoverX, false)
  876. }
  877. this.$set(this, 'clientX', e.clientX);
  878. }
  879. }
  880. },
  881. /*********************************尺寸调整事件Y*********************************/
  882. //上下边框-按下时绑定事件
  883. zoomDownY(e, index, type){
  884. if (e.button === 0) { //0鼠标左键 1中键 2右键
  885. this.$set(this, 'clientX', e.clientX);
  886. this.$set(this, 'clientY', e.clientY);
  887. this.$set(this, 'boxIndex', index);
  888. this.$set(this, 'moveType', type);
  889. this.$refs.maxBox.addEventListener('mousemove', this.zoomMoverY, false)
  890. this.$refs.maxBox.addEventListener('mouseup', this.zoomUpY, false)
  891. }
  892. },
  893. //上下边框-弹起时删除事件
  894. zoomUpY(e){
  895. if (e.button === 0) { //0鼠标左键 1中键 2右键
  896. this.$refs.maxBox.removeEventListener('mousemove', this.zoomMoverY, false)
  897. this.$refs.maxBox.removeEventListener('mouseup', this.zoomMoverY, false)
  898. }
  899. },
  900. //上下边框-拖拽事件
  901. zoomMoverY(e){
  902. if (e.button === 0) { //0鼠标左键 1中键 2右键
  903. let obj = fourEdgeZoom(this.mapList,this.boxIndex,e,this.clientX,this.clientY,this.moveType);
  904. if(obj){
  905. this.$set(this.mapList[this.boxIndex],'y',obj.y?obj.y:this.mapList[this.boxIndex].y);
  906. this.$set(this.mapList[this.boxIndex],'h',obj.h?obj.h:this.mapList[this.boxIndex].h);
  907. if(this.mapList[this.boxIndex].type == '1' || this.mapList[this.boxIndex].type == '3'){
  908. this.$set(this.mapList[this.boxIndex],'doorList',obj.doorList?obj.doorList:this.mapList[this.boxIndex].doorList);
  909. }if(this.mapList[this.boxIndex].type == '2'){
  910. this.$set(this.mapList[this.boxIndex],'lightList',obj.lightList?obj.lightList:this.mapList[this.boxIndex].lightList);
  911. }
  912. //到达边界删除事件
  913. if(e.clientX<=(this.borderLeft)||e.clientX>=(this.borderLeft+this.layerWidth-1)||e.clientY<=(this.borderTop)||e.clientY>=(this.borderTop+this.layerHeight-1)){
  914. this.$refs.maxBox.removeEventListener('mousemove', this.zoomMoverY, false)
  915. this.$refs.maxBox.removeEventListener('mouseup', this.zoomMoverY, false)
  916. }
  917. this.$set(this, 'clientY', e.clientY);
  918. }
  919. }
  920. },
  921. /*********************************添加拖拽逻辑*********************************/
  922. externalAddDragStart(e,type){
  923. if(this.mapSrc){
  924. e.dataTransfer.setDragImage(type == 1?this.roomImg_1:(type == 2?this.roomImg_2:(type == 3?this.roomImg_3:'')), 48, 48);
  925. this.$set(this,'grab',type);
  926. }
  927. },
  928. //添加房间
  929. externalAddDragEnd(e){
  930. if(this.mapSrc){
  931. let obj = roomAdd(e,this.mapList,this.grab,this.$refs.maxBigBox.scrollLeft,this.$refs.maxBigBox.scrollTop);
  932. if(obj){
  933. this.mapList.push(obj);
  934. }
  935. }
  936. },
  937. internalAddDragStart(e,type){
  938. e.dataTransfer.setDragImage(type == 4?this.doorImg:(type == 6?this.lightImg:''),
  939. type == 4?17:(type == 6?20:''),
  940. type == 4?17:(type == 6?20:''));
  941. this.$set(this,'grab',type);
  942. },
  943. //添加门/灯
  944. internalAddDragEnd(event){
  945. if(this.grab == 4){
  946. let obj = addDoor(event,this.mapList,this.$refs.maxBigBox.scrollLeft,this.$refs.maxBigBox.scrollTop,this.grab);
  947. if (obj){
  948. //暂时限制只能添加一个
  949. if(this.mapList[obj.index].doorList[0]){
  950. this.msgError('一个房间只能添加一个门')
  951. }else{
  952. this.mapList[obj.index].doorList.push({
  953. type:obj.type,
  954. toward:obj.toward,
  955. w:obj.w,
  956. h:obj.h,
  957. x:obj.x,
  958. y:obj.y,
  959. });
  960. }
  961. }
  962. }else if(this.grab == 6){
  963. let obj = lightAdd(event,this.$refs.maxBigBox.scrollLeft,this.$refs.maxBigBox.scrollTop,this.mapList,this.grab);
  964. if (obj){
  965. this.mapList[obj.index].lightList.push({
  966. type:obj.type,
  967. state:obj.state,
  968. w:obj.w,
  969. h:obj.h,
  970. x:obj.x,
  971. y:obj.y,
  972. });
  973. }
  974. }
  975. },
  976. /*********************************画布坐标矫正相关******************************/
  977. //矫正边界坐标
  978. shadeClick(type){
  979. //初始化抓取图样
  980. this.roomImg_1 = new Image();
  981. this.roomImg_1.src = require('@/assets/ZDimages/evacuation3_2/romm_1.png');
  982. this.roomImg_2 = new Image();
  983. this.roomImg_2.src = require('@/assets/ZDimages/evacuation3_2/romm_2.png');
  984. this.roomImg_3 = new Image();
  985. this.roomImg_3.src = require('@/assets/ZDimages/evacuation3_2/romm_3.png');
  986. this.doorImg = new Image();
  987. this.doorImg.src = require('@/assets/ZDimages/evacuation3_2/icon_sysbjt_m.png');
  988. this.lightImg = new Image();
  989. this.lightImg.src = require('@/assets/ZDimages/evacuation3_2/icon_fxyj_wszys.png');
  990. this.$set(this,'borderLeft', Math.round(this.$refs.maxBigBox.getBoundingClientRect().left));
  991. this.$set(this,'borderTop', Math.round(this.$refs.maxBigBox.getBoundingClientRect().top));
  992. let data = {
  993. borderLeft : this.borderLeft,
  994. borderTop : this.borderTop,
  995. layerWidth : this.layerWidth,
  996. layerHeight : this.layerHeight,
  997. minHeight : this.minHeight,
  998. maxHeight : this.maxHeight,
  999. minWidth : this.minWidth,
  1000. maxWidth : this.maxWidth,
  1001. doorHeight : this.doorHeight,
  1002. doorWidth : this.doorWidth,
  1003. minLightNum : this.minLightNum,
  1004. maxLightNum : this.maxLightNum,
  1005. tentaclesLength : this.tentaclesLength,
  1006. }
  1007. setJsData(data);
  1008. this.$set(this, 'shadeBoxType', type);
  1009. },
  1010. //透明度调整
  1011. opacityClick(type){
  1012. if(type == 1){
  1013. if(this.mapOpacityText>10){
  1014. this.$set(this,'mapOpacityText',this.mapOpacityText - 10);
  1015. this.$set(this,'mapOpacity',this.mapOpacityText/100);
  1016. }
  1017. }else if (type == 2){
  1018. if(this.mapOpacityText<100){
  1019. this.$set(this,'mapOpacityText',this.mapOpacityText + 10);
  1020. this.$set(this,'mapOpacity',this.mapOpacityText/100);
  1021. }
  1022. }
  1023. },
  1024. //上传
  1025. handleAvatarSuccess(res, file, type) {
  1026. console.log('上传图片')
  1027. // console.log('res',res);
  1028. // console.log('file',file);
  1029. // console.log('type',type);
  1030. if (type == 1){
  1031. if(res){
  1032. this.loadingInstance.close();
  1033. if(res.data){
  1034. if(res.data.url){
  1035. this.$set(this,'mapSrc',res.data.url)
  1036. this.$set(this, 'shadeBoxType', 1);
  1037. }
  1038. }
  1039. }
  1040. }else if(type == 2){
  1041. if(res){
  1042. this.loadingInstance.close();
  1043. if(res.data){
  1044. if(res.data.url){
  1045. this.$set(this,'mapSrc',res.data.url)
  1046. this.$set(this, 'shadeBoxType', 1);
  1047. }
  1048. }
  1049. }
  1050. }
  1051. },
  1052. beforeAvatarUpload(file) {
  1053. console.log('校验图片')
  1054. if (file.type == 'image/png' || file.type == 'image/jpeg' || file.type == 'image/gif') {
  1055. this.asyncImgChecked(file).then(data => {
  1056. if (data.code == 200) {
  1057. // console.log('data',data);
  1058. this.loadingInstance = Loading.service({ spinner:"", background: 'rgba(255, 255, 255, 0.1)' })
  1059. return true;
  1060. } else if(data.code == 201){
  1061. this.$message.error('图片尺寸不能大于于1500 X 1000')
  1062. return false;
  1063. } else if(data.code == 202){
  1064. this.$message.error('图片尺寸小于当前布局尺寸')
  1065. return false;
  1066. }
  1067. })
  1068. }else{
  1069. this.$message.error('只能上传png/gif/jpg格式');
  1070. return false;
  1071. }
  1072. },
  1073. // 计算图片尺寸
  1074. asyncImgChecked (file) {
  1075. let self = this;
  1076. return new Promise((resolve) => {
  1077. let reader = new FileReader()
  1078. reader.readAsDataURL(file) // 必须用file.raw
  1079. reader.onload = e => { // 让页面中的img标签的src指向读取的路径
  1080. let img = e.target.result;
  1081. const image = new Image()
  1082. image.src=img
  1083. image.onload = _=>{
  1084. let width = image.width
  1085. let height= image.height
  1086. let maxWidth = 0
  1087. let maxHeight = 0
  1088. let upImgType = false
  1089. for(let i=0;i<self.mapList.length;i++){
  1090. if ((self.mapList[i].x + self.mapList[i].w) > maxWidth) {
  1091. maxWidth = self.mapList[i].x + self.mapList[i].w
  1092. }
  1093. if ((self.mapList[i].y + self.mapList[i].h) > maxHeight) {
  1094. maxHeight = self.mapList[i].y + self.mapList[i].h
  1095. }
  1096. }
  1097. if(maxWidth>width||maxHeight>height){
  1098. upImgType = true;
  1099. }
  1100. if(width >1500 || height > 1000){
  1101. //超出限制
  1102. resolve({code:201})
  1103. }else if(upImgType){
  1104. //超出当前布局尺寸
  1105. resolve({code:202})
  1106. }else{
  1107. self.$set(self,'layerWidth',width);
  1108. self.$set(self,'layerHeight',height);
  1109. self.$set(self,'maxWidth',width);
  1110. self.$set(self,'maxHeight',height);
  1111. resolve({code:200})
  1112. }
  1113. }
  1114. }
  1115. })
  1116. },
  1117. buttonShadeClick(){
  1118. this.shadeBoxType = 1;
  1119. },
  1120. }
  1121. }
  1122. </script>
  1123. <style scoped lang="scss">
  1124. .buildingDetails{
  1125. flex:1;
  1126. display: flex!important;
  1127. flex-direction: column;
  1128. overflow: hidden;
  1129. position: relative;
  1130. *{
  1131. margin:0;
  1132. font-weight:500;
  1133. }
  1134. .buildingDetails-page{
  1135. flex:1;
  1136. display: flex;
  1137. overflow: hidden;
  1138. .max-left-box{
  1139. flex:1;
  1140. display: flex;
  1141. flex-direction: column;
  1142. overflow: hidden;
  1143. .max-left-box-one{
  1144. top:0;
  1145. left:0;
  1146. flex:1;
  1147. display: flex;
  1148. flex-direction: column;
  1149. overflow: hidden;
  1150. border:1px solid #e0e0e0;
  1151. margin:22px 0 24px 28px;
  1152. position: relative;
  1153. .max-button-big-position-box{
  1154. position: absolute;
  1155. top:50%;
  1156. left:50%;
  1157. width:332px;
  1158. height:370px;
  1159. margin-left:-166px;
  1160. margin-top:-185px;
  1161. img{
  1162. width:332px;
  1163. height:248px;
  1164. -webkit-user-drag:none
  1165. }
  1166. .up-img-button-box{
  1167. height:40px;
  1168. padding:0;
  1169. margin:34px 16px 19px 16px;
  1170. .up-img-button{
  1171. width:300px;
  1172. line-height:40px;
  1173. color:#0183FA;
  1174. text-align: center;
  1175. border:1px dashed #0183FA;
  1176. border-radius:6px;
  1177. }
  1178. }
  1179. .up-img-text{
  1180. line-height:24px;
  1181. font-size:15px;
  1182. color:#333;
  1183. text-align: center;
  1184. }
  1185. }
  1186. }
  1187. .max-left-button-box{
  1188. display: flex;
  1189. .null-p{
  1190. flex:1;
  1191. }
  1192. .up-img-p{
  1193. width:120px;
  1194. line-height:40px;
  1195. text-align: center;
  1196. font-size:16px;
  1197. color:#333;
  1198. border-radius:6px;
  1199. border: 1px solid #E0E0E0;
  1200. margin:22px 0 0 0;
  1201. }
  1202. .opacity-button-box{
  1203. display: flex;
  1204. border: 1px solid #E0E0E0;
  1205. border-radius:6px;
  1206. width:210px;
  1207. margin:22px 20px 0 26px;
  1208. p{
  1209. font-size:16px;
  1210. text-align: center;
  1211. line-height:40px;
  1212. }
  1213. p:nth-child(1){
  1214. width:40px;
  1215. cursor: pointer;
  1216. }
  1217. p:nth-child(2){
  1218. width:130px;
  1219. border-left:1px solid #e0e0e0;
  1220. border-right:1px solid #e0e0e0;
  1221. }
  1222. p:nth-child(3){
  1223. width:40px;
  1224. cursor: pointer;
  1225. }
  1226. }
  1227. }
  1228. .max-left-map-big-box{
  1229. flex:1;
  1230. margin:22px 0 24px 28px;
  1231. border:1px solid #e0e0e0;
  1232. position: relative;
  1233. .left-map-box{
  1234. z-index:10;
  1235. color:#fff;
  1236. border: 1px solid #dedede;
  1237. position: relative;
  1238. .for-map-box:hover{
  1239. .top-big-box{
  1240. background: #CEF2FD!important;
  1241. }
  1242. .center-left-p{
  1243. background: #CEF2FD!important;
  1244. }
  1245. .center-right-p{
  1246. background: #CEF2FD!important;
  1247. }
  1248. .bottom-big-box{
  1249. background: #CEF2FD!important;
  1250. }
  1251. }
  1252. .for-map-box {
  1253. user-select: none;//解决偶发性拖拽时鼠标变成禁止符号导致拖拽回弹失效
  1254. position: absolute;
  1255. display: flex;
  1256. flex-direction: column;
  1257. background: #CEF2FD;
  1258. .top-big-box{
  1259. display: flex;
  1260. height:2px;
  1261. background: #fff;
  1262. .top-left-p{
  1263. width:2px;
  1264. cursor: se-resize;
  1265. }
  1266. .top-center-p{
  1267. flex:1;
  1268. cursor: n-resize;
  1269. }
  1270. .top-right-p{
  1271. width:2px;
  1272. cursor: ne-resize;
  1273. }
  1274. }
  1275. .center-big-box{
  1276. overflow: hidden;
  1277. flex:1;
  1278. display: flex;
  1279. .center-left-p{
  1280. width:2px;
  1281. background: #fff;
  1282. cursor: w-resize;
  1283. }
  1284. .center-move-box{
  1285. flex:1;
  1286. /*cursor: move;*/
  1287. cursor: pointer;
  1288. text-align: center;
  1289. color:#333;
  1290. overflow: hidden;
  1291. }
  1292. .center-right-p{
  1293. width:2px;
  1294. background: #fff;
  1295. cursor: w-resize;
  1296. }
  1297. }
  1298. .bottom-big-box{
  1299. display: flex;
  1300. height:2px;
  1301. background: #fff;
  1302. .bottom-left-p{
  1303. width:2px;
  1304. cursor: ne-resize;
  1305. }
  1306. .bottom-center-p{
  1307. flex:1;
  1308. cursor: n-resize;
  1309. }
  1310. .bottom-right-p{
  1311. width:2px;
  1312. cursor: se-resize;
  1313. }
  1314. }
  1315. .center-move-door-p{
  1316. position: absolute;
  1317. }
  1318. .center-move-light-p{
  1319. position: absolute;
  1320. background: #00ff00;
  1321. font-size:12px;
  1322. font-weight:500;
  1323. }
  1324. .lightNone{
  1325. background: url("../../../../assets/ZDimages/evacuation3_2/icon_fxyj_wszys.png");
  1326. background-size: 100%;
  1327. }
  1328. .lightTop{
  1329. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1330. background-size: 100%;
  1331. }
  1332. .lightBottom{
  1333. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1334. background-size: 100%;
  1335. }
  1336. .lightLeft{
  1337. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1338. background-size: 100%;
  1339. }
  1340. .lightRight{
  1341. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1342. background-size: 100%;
  1343. }
  1344. .colorDoor{
  1345. background: red!important;
  1346. }
  1347. .colorTraffic{
  1348. background: #0183fa!important;
  1349. }
  1350. .colorConnect{
  1351. background: #A11DDF!important;
  1352. }
  1353. }
  1354. .for-map-box-one {
  1355. user-select: none;//解决偶发性拖拽时鼠标变成禁止符号导致拖拽回弹失效
  1356. position: absolute;
  1357. display: flex;
  1358. flex-direction: column;
  1359. background: #CEFDD5;
  1360. .top-big-box{
  1361. display: flex;
  1362. height:2px;
  1363. /*background: #0183fa;*/
  1364. .top-left-p{
  1365. width:2px;
  1366. cursor: se-resize;
  1367. }
  1368. .top-center-p{
  1369. flex:1;
  1370. cursor: n-resize;
  1371. }
  1372. .top-right-p{
  1373. width:2px;
  1374. cursor: ne-resize;
  1375. }
  1376. }
  1377. .center-big-box{
  1378. overflow: hidden;
  1379. flex:1;
  1380. display: flex;
  1381. .center-left-p{
  1382. width:2px;
  1383. /*background: #0183fa;*/
  1384. cursor: w-resize;
  1385. }
  1386. .center-move-box{
  1387. flex:1;
  1388. /*cursor: move;*/
  1389. cursor: pointer;
  1390. text-align: center;
  1391. color:#333;
  1392. overflow: hidden;
  1393. }
  1394. .center-right-p{
  1395. width:2px;
  1396. /*background: #0183fa;*/
  1397. cursor: w-resize;
  1398. }
  1399. }
  1400. .bottom-big-box{
  1401. display: flex;
  1402. height:2px;
  1403. /*background: #0183fa;*/
  1404. .bottom-left-p{
  1405. width:2px;
  1406. cursor: ne-resize;
  1407. }
  1408. .bottom-center-p{
  1409. flex:1;
  1410. cursor: n-resize;
  1411. }
  1412. .bottom-right-p{
  1413. width:2px;
  1414. cursor: se-resize;
  1415. }
  1416. }
  1417. .center-move-door-p{
  1418. position: absolute;
  1419. background: #0183fa;
  1420. }
  1421. .center-move-light-p{
  1422. position: absolute;
  1423. background: #00ff00;
  1424. font-size:12px;
  1425. font-weight:500;
  1426. }
  1427. .lightNone{
  1428. background: url("../../../../assets/ZDimages/evacuation3_2/icon_fxyj_wszys.png");
  1429. background-size: 100%;
  1430. }
  1431. .lightTop{
  1432. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1433. background-size: 100%;
  1434. }
  1435. .lightBottom{
  1436. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1437. background-size: 100%;
  1438. }
  1439. .lightLeft{
  1440. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1441. background-size: 100%;
  1442. }
  1443. .lightRight{
  1444. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1445. background-size: 100%;
  1446. }
  1447. .colorDoor{
  1448. background: red!important;
  1449. }
  1450. .colorTraffic{
  1451. background: #0183fa!important;
  1452. }
  1453. .colorConnect{
  1454. background: #A11DDF!important;
  1455. }
  1456. }
  1457. .for-map-box-two {
  1458. user-select: none;//解决偶发性拖拽时鼠标变成禁止符号导致拖拽回弹失效
  1459. position: absolute;
  1460. display: flex;
  1461. flex-direction: column;
  1462. background:url("../../../../assets/ZDimages/evacuation3_2/icon_yjtd.png") center center no-repeat #39AE36;
  1463. background-size: 60px 60px;
  1464. .top-big-box{
  1465. display: flex;
  1466. height:2px;
  1467. /*background: #0183fa;*/
  1468. background: #fff;
  1469. .top-left-p{
  1470. width:2px;
  1471. cursor: se-resize;
  1472. }
  1473. .top-center-p{
  1474. flex:1;
  1475. cursor: n-resize;
  1476. }
  1477. .top-right-p{
  1478. width:2px;
  1479. cursor: ne-resize;
  1480. }
  1481. }
  1482. .center-big-box{
  1483. overflow: hidden;
  1484. flex:1;
  1485. display: flex;
  1486. .center-left-p{
  1487. width:2px;
  1488. /*background: #0183fa;*/
  1489. background: #fff;
  1490. cursor: w-resize;
  1491. }
  1492. .center-move-box{
  1493. flex:1;
  1494. /*cursor: move;*/
  1495. cursor: pointer;
  1496. text-align: center;
  1497. color:#333;
  1498. overflow: hidden;
  1499. }
  1500. .center-right-p{
  1501. width:2px;
  1502. /*background: #0183fa;*/
  1503. background: #fff;
  1504. cursor: w-resize;
  1505. }
  1506. }
  1507. .bottom-big-box{
  1508. display: flex;
  1509. height:2px;
  1510. /*background: #0183fa;*/
  1511. background: #fff;
  1512. .bottom-left-p{
  1513. width:2px;
  1514. cursor: ne-resize;
  1515. }
  1516. .bottom-center-p{
  1517. flex:1;
  1518. cursor: n-resize;
  1519. }
  1520. .bottom-right-p{
  1521. width:2px;
  1522. cursor: se-resize;
  1523. }
  1524. }
  1525. .center-move-door-p{
  1526. position: absolute;
  1527. background: #0183fa;
  1528. }
  1529. .center-move-light-p{
  1530. position: absolute;
  1531. background: #00ff00;
  1532. font-size:12px;
  1533. font-weight:500;
  1534. }
  1535. .lightNone{
  1536. background: url("../../../../assets/ZDimages/evacuation3_2/icon_fxyj_wszys.png");
  1537. background-size: 100%;
  1538. }
  1539. .lightTop{
  1540. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sjt.png");
  1541. background-size: 100%;
  1542. }
  1543. .lightBottom{
  1544. background: url("../../../../assets/ZDimages/evacuation3_2/icon_xjt.png");
  1545. background-size: 100%;
  1546. }
  1547. .lightLeft{
  1548. background: url("../../../../assets/ZDimages/evacuation3_2/icon_zuo.png");
  1549. background-size: 100%;
  1550. }
  1551. .lightRight{
  1552. background: url("../../../../assets/ZDimages/evacuation3_2/icon_yuo.png");
  1553. background-size: 100%;
  1554. }
  1555. .colorDoor{
  1556. background: red!important;
  1557. }
  1558. .colorTraffic{
  1559. background: #0183fa!important;
  1560. }
  1561. .colorConnect{
  1562. background: #A11DDF!important;
  1563. }
  1564. .for-map-box-two-img{
  1565. position: absolute;
  1566. top:50%;
  1567. left:50%;
  1568. margin-left:-30px;
  1569. margin-top:-30px;
  1570. width:60px;
  1571. height:60px;
  1572. }
  1573. }
  1574. .for-map-box-two:hover{
  1575. .top-big-box{
  1576. background: #39AE36!important;
  1577. }
  1578. .center-left-p{
  1579. background: #39AE36!important;
  1580. }
  1581. .center-right-p{
  1582. background: #39AE36!important;
  1583. }
  1584. .bottom-big-box{
  1585. background: #39AE36!important;
  1586. }
  1587. }
  1588. .center-move-door-p-t{
  1589. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png")!important;
  1590. background-size: 100%!important;
  1591. transform: rotate(180deg);
  1592. }
  1593. .center-move-door-p-b{
  1594. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png")!important;
  1595. background-size: 100%!important;
  1596. }
  1597. .center-move-door-p-l{
  1598. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png")!important;
  1599. background-size: 100%!important;
  1600. transform: rotate(90deg);
  1601. }
  1602. .center-move-door-p-r{
  1603. background: url("../../../../assets/ZDimages/evacuation3_2/icon_sysbjt_m.png")!important;
  1604. background-size: 100%!important;
  1605. transform: rotateZ(270deg);
  1606. }
  1607. .center-move-door-p-t-ss{
  1608. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png")!important;
  1609. background-size: 100%!important;
  1610. transform: rotate(180deg);
  1611. }
  1612. .center-move-door-p-b-ss{
  1613. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png")!important;
  1614. background-size: 100%!important;
  1615. }
  1616. .center-move-door-p-l-ss{
  1617. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png")!important;
  1618. background-size: 100%!important;
  1619. transform: rotate(90deg);
  1620. }
  1621. .center-move-door-p-r-ss{
  1622. background: url("../../../../assets/ZDimages/evacuation3_2/icon_aqtd_m.png")!important;
  1623. background-size: 100%!important;
  1624. transform: rotateZ(270deg);
  1625. }
  1626. }
  1627. .left-map-img{
  1628. position: absolute;
  1629. left:0;
  1630. top:0;
  1631. z-index:5;
  1632. -webkit-user-drag: none;
  1633. }
  1634. }
  1635. }
  1636. .max-right-box{
  1637. width:376px;
  1638. display: flex;
  1639. flex-direction: column;
  1640. overflow: hidden;
  1641. .right-title-box{
  1642. margin:0 28px;
  1643. display: flex;
  1644. line-height:70px;
  1645. border-bottom:1px solid #D8D8D8;
  1646. .right-title-p{
  1647. flex:1;
  1648. font-size:16px;
  1649. color:#333;
  1650. overflow:hidden;
  1651. text-overflow:ellipsis;
  1652. white-space:nowrap;
  1653. }
  1654. div{
  1655. cursor: pointer;
  1656. display: flex;
  1657. font-size:16px;
  1658. color:#333;
  1659. p:nth-child(1){
  1660. color:rgb(234,149,24);
  1661. line-height: 70px;
  1662. margin-right:4px;
  1663. }
  1664. p:nth-child(2){
  1665. font-size:16px;
  1666. color:#333;
  1667. }
  1668. }
  1669. }
  1670. .right-bottom-max-box{
  1671. .right-for-max-box{
  1672. margin-left:28px;
  1673. .right-for-title{
  1674. line-height:60px;
  1675. font-size:16px;
  1676. }
  1677. .right-for-box{
  1678. display: inline-block;
  1679. width:150px;
  1680. height:160px;
  1681. margin-right:20px;
  1682. margin-bottom:20px;
  1683. border:1px solid #e0e0e0;
  1684. border-radius:6px;
  1685. overflow: hidden;
  1686. img{
  1687. display: block;
  1688. width:150px;
  1689. height:120px;
  1690. cursor: pointer;
  1691. }
  1692. p{
  1693. line-height:40px;
  1694. border-top:1px solid #e0e0e0;
  1695. text-align: center;
  1696. font-size:14px;
  1697. }
  1698. }
  1699. }
  1700. .right-button-box{
  1701. display: flex;
  1702. p:nth-child(1){
  1703. flex:1;
  1704. }
  1705. p:nth-child(2){
  1706. width:70px;
  1707. line-height: 30px;
  1708. font-size:12px;
  1709. text-align: center;
  1710. background: #E0E0E0;
  1711. color: #999999;
  1712. margin-right:17px;
  1713. border-radius:6px;
  1714. cursor: pointer;
  1715. }
  1716. p:nth-child(3){
  1717. width:70px;
  1718. line-height: 30px;
  1719. font-size:12px;
  1720. text-align: center;
  1721. background: #0045AF;
  1722. color: #fff;
  1723. border-radius:6px;
  1724. cursor: pointer;
  1725. }
  1726. p:nth-child(4){
  1727. flex:1;
  1728. }
  1729. }
  1730. }
  1731. }
  1732. }
  1733. .map-shade-max-big-box{
  1734. z-index:10000;
  1735. position: fixed;
  1736. top: 0;
  1737. left: 0;
  1738. height:100%;
  1739. width:100%;
  1740. .map-shade-big-box{
  1741. width:80px;
  1742. position: absolute;
  1743. border-radius:8px;
  1744. background: #fff;
  1745. font-size:12px;
  1746. font-weight:500;
  1747. box-shadow: 0 4px 10px 0 rgba(0,0,0,0.302);
  1748. overflow: hidden;
  1749. .shade-button-p{
  1750. height:30px;
  1751. line-height:30px;
  1752. text-align: center;
  1753. }
  1754. .shade-button-p:hover{
  1755. color: #fff;
  1756. background: #00a0e9;
  1757. cursor: pointer;
  1758. }
  1759. .shade-border-p{
  1760. height:1px;
  1761. margin:0 10px;
  1762. background:#E0E0E0;
  1763. }
  1764. }
  1765. }
  1766. .shade-max-big-box{
  1767. z-index:10000;
  1768. width:100%;
  1769. height:100%;
  1770. position: fixed;
  1771. top:0;
  1772. left:0;
  1773. background: rgba(0,0,0,0.6);
  1774. .shade-max-box-1{
  1775. width:100%;
  1776. height:100%;
  1777. position: relative;
  1778. .shade-big-img{
  1779. width:126px;
  1780. height:124px;
  1781. position: absolute;
  1782. top:120px;
  1783. left:1010px;
  1784. }
  1785. .shade-big-1-text-1{
  1786. position: absolute;
  1787. top:177px;
  1788. left:1144px;
  1789. background:#fff;
  1790. width:120px;
  1791. line-height:40px;
  1792. text-align: center;
  1793. border:1px solid #e0e0e0;
  1794. border-radius:6px;
  1795. color:#333;
  1796. font-size:16px;
  1797. }
  1798. .shade-big-1-text-2{
  1799. display: flex;
  1800. position: absolute;
  1801. top:177px;
  1802. left:1290px;
  1803. background:#fff;
  1804. width:210px;
  1805. line-height:40px;
  1806. text-align: center;
  1807. border:1px solid #e0e0e0;
  1808. border-radius:6px;
  1809. color:#333;
  1810. font-size:16px;
  1811. p:nth-child(1){
  1812. width:40px;
  1813. }
  1814. p:nth-child(2){
  1815. flex:1;
  1816. border-left:1px solid #e0e0e0;
  1817. border-right:1px solid #e0e0e0;
  1818. }
  1819. p:nth-child(3){
  1820. width:40px;
  1821. }
  1822. }
  1823. .shade-big-1-text-3{
  1824. position: absolute;
  1825. top:230px;
  1826. left:780px;
  1827. color:#fff;
  1828. width:298px;
  1829. }
  1830. .shade-big-1-text-4{
  1831. position: absolute;
  1832. top:300px;
  1833. left:780px;
  1834. color:#fff;
  1835. width:298px;
  1836. }
  1837. .shade-big-1-text-5{
  1838. position: absolute;
  1839. top:395px;
  1840. left:835px;
  1841. background:#fff;
  1842. width:182px;
  1843. line-height:40px;
  1844. text-align: center;
  1845. border:1px solid #e0e0e0;
  1846. border-radius:6px;
  1847. color:#333;
  1848. font-size:16px;
  1849. cursor: pointer;
  1850. }
  1851. }
  1852. .shade-max-box-2{
  1853. width:100%;
  1854. height:100%;
  1855. position: relative;
  1856. .shade-big-img{
  1857. width:126px;
  1858. height:124px;
  1859. position: absolute;
  1860. top:220px;
  1861. right:370px;
  1862. }
  1863. .shade-big-1-text-1{
  1864. background:#fff;
  1865. position: absolute;
  1866. top:286px;
  1867. right:222px;
  1868. width:150px;
  1869. height:160px;
  1870. border:1px solid #e0e0e0;
  1871. border-radius:6px;
  1872. overflow: hidden;
  1873. img{
  1874. display: block;
  1875. width:150px;
  1876. height:120px;
  1877. }
  1878. p{
  1879. line-height:40px;
  1880. border-top:1px solid #e0e0e0;
  1881. text-align: center;
  1882. font-size:14px;
  1883. }
  1884. }
  1885. .shade-big-1-text-1{
  1886. background:#fff;
  1887. position: absolute;
  1888. top:286px;
  1889. right:222px;
  1890. width:150px;
  1891. height:160px;
  1892. border:1px solid #e0e0e0;
  1893. border-radius:6px;
  1894. overflow: hidden;
  1895. img{
  1896. display: block;
  1897. width:150px;
  1898. height:120px;
  1899. }
  1900. p{
  1901. line-height:40px;
  1902. border-top:1px solid #e0e0e0;
  1903. text-align: center;
  1904. font-size:14px;
  1905. }
  1906. }
  1907. .shade-big-1-text-2{
  1908. background:#fff;
  1909. position: absolute;
  1910. top:286px;
  1911. right:52px;
  1912. width:150px;
  1913. height:160px;
  1914. border:1px solid #e0e0e0;
  1915. border-radius:6px;
  1916. overflow: hidden;
  1917. img{
  1918. display: block;
  1919. width:150px;
  1920. height:120px;
  1921. }
  1922. p{
  1923. line-height:40px;
  1924. border-top:1px solid #e0e0e0;
  1925. text-align: center;
  1926. font-size:14px;
  1927. }
  1928. }
  1929. .shade-big-1-text-3{
  1930. background:#fff;
  1931. position: absolute;
  1932. top:470px;
  1933. right:222px;
  1934. width:150px;
  1935. height:160px;
  1936. border:1px solid #e0e0e0;
  1937. border-radius:6px;
  1938. overflow: hidden;
  1939. img{
  1940. display: block;
  1941. width:150px;
  1942. height:120px;
  1943. }
  1944. p{
  1945. line-height:40px;
  1946. border-top:1px solid #e0e0e0;
  1947. text-align: center;
  1948. font-size:14px;
  1949. }
  1950. }
  1951. .shade-big-1-text-4{
  1952. position: absolute;
  1953. top:330px;
  1954. right:440px;
  1955. color:#fff;
  1956. width:298px;
  1957. }
  1958. .shade-big-1-text-5{
  1959. position: absolute;
  1960. top:460px;
  1961. right:440px;
  1962. color:#fff;
  1963. width:298px;
  1964. }
  1965. .shade-big-1-text-6{
  1966. position: absolute;
  1967. top:530px;
  1968. right:440px;
  1969. color:#fff;
  1970. width:298px;
  1971. }
  1972. .shade-big-1-text-7{
  1973. position: absolute;
  1974. top:610px;
  1975. right:500px;
  1976. background:#fff;
  1977. width:182px;
  1978. line-height:40px;
  1979. text-align: center;
  1980. border:1px solid #e0e0e0;
  1981. border-radius:6px;
  1982. color:#333;
  1983. font-size:16px;
  1984. cursor: pointer;
  1985. }
  1986. }
  1987. .shade-max-box-3{
  1988. .shade-big-img{
  1989. width:126px;
  1990. height:124px;
  1991. position: absolute;
  1992. top:670px;
  1993. right:390px;
  1994. }
  1995. .shade-big-1-text-1{
  1996. position: absolute;
  1997. top:460px;
  1998. right:420px;
  1999. color:#fff;
  2000. width:298px;
  2001. }
  2002. .shade-big-1-text-2{
  2003. position: absolute;
  2004. top:540px;
  2005. right:420px;
  2006. color:#fff;
  2007. width:298px;
  2008. }
  2009. .shade-big-1-text-3{
  2010. position: absolute;
  2011. top:630px;
  2012. right:480px;
  2013. background:#fff;
  2014. width:182px;
  2015. line-height:40px;
  2016. text-align: center;
  2017. border:1px solid #e0e0e0;
  2018. border-radius:6px;
  2019. color:#333;
  2020. font-size:16px;
  2021. cursor: pointer;
  2022. }
  2023. .shade-big-1-text-4{
  2024. background:#fff;
  2025. position: absolute;
  2026. top:286px;
  2027. right:222px;
  2028. width:150px;
  2029. height:160px;
  2030. border:1px solid #e0e0e0;
  2031. border-radius:6px;
  2032. overflow: hidden;
  2033. img{
  2034. display: block;
  2035. width:150px;
  2036. height:120px;
  2037. }
  2038. p{
  2039. line-height:40px;
  2040. border-top:1px solid #e0e0e0;
  2041. text-align: center;
  2042. font-size:14px;
  2043. }
  2044. }
  2045. .shade-big-1-text-5{
  2046. background:#fff;
  2047. position: absolute;
  2048. top:286px;
  2049. right:222px;
  2050. width:150px;
  2051. height:160px;
  2052. border:1px solid #e0e0e0;
  2053. border-radius:6px;
  2054. overflow: hidden;
  2055. img{
  2056. display: block;
  2057. width:150px;
  2058. height:120px;
  2059. }
  2060. p{
  2061. line-height:40px;
  2062. border-top:1px solid #e0e0e0;
  2063. text-align: center;
  2064. font-size:14px;
  2065. }
  2066. }
  2067. }
  2068. .shade-max-box-4{
  2069. div{
  2070. position: absolute;
  2071. top:50%;
  2072. left:50%;
  2073. width:460px;
  2074. height:200px;
  2075. margin-top:-100px;
  2076. margin-left:-230px;
  2077. background: #fff;
  2078. padding:18px 30px 0 30px;
  2079. border-radius:6px;
  2080. p:nth-child(1){
  2081. font-size:16px;
  2082. line-height:20px;
  2083. margin-bottom:20px;
  2084. }
  2085. p:nth-child(2){
  2086. font-size:16px;
  2087. line-height:20px;
  2088. }
  2089. p:nth-child(3){
  2090. font-size:16px;
  2091. line-height:20px;
  2092. color:#0183FA;
  2093. margin-left:320px;
  2094. margin-top:50px;
  2095. cursor: pointer;
  2096. }
  2097. }
  2098. }
  2099. }
  2100. }
  2101. </style>
  2102. <style lang="scss">
  2103. .dialog-relay-bit-form-item-box input{
  2104. text-align: left !important;
  2105. }
  2106. </style>