forest.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454
  1. <!--可视化公共模板 林业-->
  2. <template>
  3. <div class="visual-con">
  4. <!--头部-->
  5. <vheader></vheader>
  6. <!--主体-->
  7. <div class="visual-body">
  8. <!-- 左侧 -->
  9. <div class="leftbar" ref="left" style="height: 82%;">
  10. <!-- 通知公告 -->
  11. <Notification></Notification>
  12. <!-- 公司列表 -->
  13. <dv-border-box-13
  14. backgroundColor="rgba(12, 19, 38, .90)"
  15. style="padding-bottom: 1rem"
  16. >
  17. <div class="third_contain">
  18. <!-- 三级搜索框 -->
  19. <el-input v-model="queryParams.enterpriseName" class="thirdInputModel" placeholder="按企业名称搜索 " style="color:white" @change="enterpriseList">
  20. </el-input>
  21. <div style="height: 4%;"></div>
  22. <div class="sp_sbg">
  23. <div
  24. style="width: 100%;height: 9%;display: flex;"
  25. v-for="(e,index) in companyList"
  26. :key="index"
  27. class="sp_sbg_div"
  28. :class=" deviceBtn == index ? 'on': 'onno'"
  29. >
  30. <el-button
  31. style="width: 100%;"
  32. :style="deviceBtn == index ? 'color:#38CCEA' : 'color:#fff'"
  33. :class=" deviceBtn == index ? 'highlightedBtn': 'notHighlightedBtn'"
  34. @click="getDeviceList(e,index)">
  35. <el-tooltip :content="e.enterpriseName" placement="top" v-if="(e.enterpriseName!=null||e.enterpriseName!='')&&e.enterpriseName.length>8">
  36. <span style="position: relative;left: -18%;">
  37. {{ e.enterpriseName.substring(0,8) }}...
  38. </span>
  39. </el-tooltip>
  40. <span style="position: relative;left: -18%;" v-else>
  41. {{ e.enterpriseName }}
  42. </span>
  43. </el-button>
  44. <div
  45. class="thirdDevice_icon thirdHighlightedBtn"
  46. @click="thirdDeviceHashighLighted(e,index)"
  47. >
  48. </div>
  49. </div>
  50. </div>
  51. <!--分页-->
  52. <div class="paging">
  53. <el-button type="button" @click="enterpriseList(10,queryParams.pageNum-1)">上一页
  54. </el-button>
  55. <span>第{{ queryParams.pageNum }}页</span>
  56. <el-button type="button" :disabled="nextbutton"
  57. @click="enterpriseList(10,queryParams.pageNum+1)">下一页
  58. </el-button>
  59. </div>
  60. </div>
  61. </dv-border-box-13>
  62. </div>
  63. <!-- 地图 -->
  64. <!--<supermap ref="supermap" style="width: 100%;height: 100vh;" class="indexSupermapClass" :mapDiv="'forestMap'"-->
  65. <!--:dynamicPlotting="false"-->
  66. <!--:mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"-->
  67. <!--@showEventDialog="showEventDialog"></supermap>-->
  68. <supermap ref="supermap" @previewBefore="previewBefore" @preview="preview" @jump="jump"
  69. @fatherMethod="fatherMethod" :showLayer="true">
  70. </supermap>
  71. <div class="sj-layer-switch">
  72. <div style="position: relative;left:23%; display: flex;">
  73. <el-popover placement="bottom" v-model="visible_dw" title="定位" trigger="manual" popper-class="sj-layer-pop">
  74. <span class="tk-close el-icon-close" style="right: 0.5rem;top: 0.5rem;" @click="getLocation(1)"></span>
  75. <el-button type="primary" size="mini"
  76. style="width:100%; float: right;cursor: pointer;padding: 7px 15px;font-size: 12px;border-radius: 3px"
  77. @click="lonAndLatQueryCamera">查询附近摄像头
  78. </el-button>
  79. <a class="leader-tcqh" slot="reference" @click="getLocation(1)">
  80. <img src="../assets/images/leader-tcbg7.png"/>
  81. <p style="color:#fff">定位</p>
  82. </a>
  83. </el-popover>
  84. </div>
  85. </div>
  86. <!-- 右侧 -->
  87. <div class="rightbar rightbar-index" ref="right" style="height: 81%;">
  88. <div class="right-item1">
  89. <!-- 天气 -->
  90. <div class="forthis">
  91. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)">
  92. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  93. <div class="i-list-con small-bottom-margin h-18">
  94. <el-row :gutter="20" v-if="todatWeather">
  95. <el-col :span="9">
  96. <div class="weather-img">
  97. <img v-if="weatherinformationWeather==1" src="../assets/images/integrated/weather/qing-1.png">
  98. <img v-if="weatherinformationWeather==2" src="../assets/images/integrated/weather/duoyun-2.png">
  99. <img v-if="weatherinformationWeather==3" src="../assets/images/integrated/weather/yin-3.png">
  100. <img v-if="weatherinformationWeather==4" src="../assets/images/integrated/weather/zhenyu-4.png">
  101. <img v-if="weatherinformationWeather==5"
  102. src="../assets/images/integrated/weather/leizhenyu-5.png">
  103. <img v-if="weatherinformationWeather==6"
  104. src="../assets/images/integrated/weather/leizhenyubingbao-6.png">
  105. <img v-if="weatherinformationWeather==7" src="../assets/images/integrated/weather/yujiaxue-7.png">
  106. <img v-if="weatherinformationWeather==8" src="../assets/images/integrated/weather/xiaoyu-8.png">
  107. <img v-if="weatherinformationWeather==9||weatherinformationWeather==22"
  108. src="../assets/images/integrated/weather/zhongyu-9.png">
  109. <img v-if="weatherinformationWeather==10||weatherinformationWeather==23"
  110. src="../assets/images/integrated/weather/dayu-10.png">
  111. <img v-if="weatherinformationWeather==11||weatherinformationWeather==24"
  112. src="../assets/images/integrated/weather/baoyu-11.png">
  113. <img v-if="weatherinformationWeather==12||weatherinformationWeather==25"
  114. src="../assets/images/integrated/weather/dabaoyu-12.png">
  115. <img v-if="weatherinformationWeather==13||weatherinformationWeather==26"
  116. src="../assets/images/integrated/weather/tedabaoyu-13.png">
  117. <img v-if="weatherinformationWeather==14"
  118. src="../assets/images/integrated/weather/zhenxue-14.png">
  119. <img v-if="weatherinformationWeather==15"
  120. src="../assets/images/integrated/weather/xiaoxue-15.png">
  121. <img v-if="weatherinformationWeather==16||weatherinformationWeather==27"
  122. src="../assets/images/integrated/weather/zhongxue-16.png">
  123. <img v-if="weatherinformationWeather==17||weatherinformationWeather==28"
  124. src="../assets/images/integrated/weather/daxue-17.png">
  125. <img v-if="weatherinformationWeather==18||weatherinformationWeather==29"
  126. src="../assets/images/integrated/weather/baoxue-18.png">
  127. <img v-if="weatherinformationWeather==19" src="../assets/images/integrated/weather/wu-19.png">
  128. <img v-if="weatherinformationWeather==20" src="../assets/images/integrated/weather/dongyu-20.png">
  129. <img v-if="weatherinformationWeather==21"
  130. src="../assets/images/integrated/weather/shachenbao-21.png">
  131. <img v-if="weatherinformationWeather==30" src="../assets/images/integrated/weather/fuchen-30.png">
  132. <img v-if="weatherinformationWeather==31"
  133. src="../assets/images/integrated/weather/yangsha-31.png">
  134. <img v-if="weatherinformationWeather==32"
  135. src="../assets/images/integrated/weather/qiangshachenbao-32.png">
  136. <span v-if="weatherinformationWeather==1">晴</span>
  137. <span v-if="weatherinformationWeather==2">多云</span>
  138. <span v-if="weatherinformationWeather==3">阴</span>
  139. <span v-if="weatherinformationWeather==4">阵雨</span>
  140. <span v-if="weatherinformationWeather==5">雷阵雨</span>
  141. <span v-if="weatherinformationWeather==6">雷阵雨伴有冰雹</span>
  142. <span v-if="weatherinformationWeather==7">雨夹雪</span>
  143. <span v-if="weatherinformationWeather==8">小雨</span>
  144. <span v-if="weatherinformationWeather==9">中雨</span>
  145. <span v-if="weatherinformationWeather==10">大雨</span>
  146. <span v-if="weatherinformationWeather==11">暴雨</span>
  147. <span v-if="weatherinformationWeather==12">大暴雨</span>
  148. <span v-if="weatherinformationWeather==13">特大暴雨</span>
  149. <span v-if="weatherinformationWeather==14">阵雪</span>
  150. <span v-if="weatherinformationWeather==15">小雪</span>
  151. <span v-if="weatherinformationWeather==16">中雪</span>
  152. <span v-if="weatherinformationWeather==17">大雪</span>
  153. <span v-if="weatherinformationWeather==18">暴雪</span>
  154. <span v-if="weatherinformationWeather==19">雾</span>
  155. <span v-if="weatherinformationWeather==20">冻雨</span>
  156. <span v-if="weatherinformationWeather==21">沙尘暴</span>
  157. <span v-if="weatherinformationWeather==22">小雨—中雨</span>
  158. <span v-if="weatherinformationWeather==23">中雨—大雨</span>
  159. <span v-if="weatherinformationWeather==24">大雨—暴雨</span>
  160. <span v-if="weatherinformationWeather==25">暴雨—大暴雨</span>
  161. <span v-if="weatherinformationWeather==26">大暴雨—特大暴雨</span>
  162. <span v-if="weatherinformationWeather==27">小雪—中雪</span>
  163. <span v-if="weatherinformationWeather==28">中雪—大雪</span>
  164. <span v-if="weatherinformationWeather==29">大雪—暴雪</span>
  165. <span v-if="weatherinformationWeather==30">浮尘</span>
  166. <span v-if="weatherinformationWeather==31">扬沙</span>
  167. <span v-if="weatherinformationWeather==32">强沙尘暴</span>
  168. </div>
  169. </el-col>
  170. <el-col :span="15">
  171. <div class="weather-info">
  172. <ul>
  173. <li>风力:{{ weatherinformationPower }}级</li>
  174. <li>低温:{{ weatherinformationLow }}℃</li>
  175. <li v-if="weatherinformationDirection==1">风向:东风</li>
  176. <li v-if="weatherinformationDirection==2">风向:东南风</li>
  177. <li v-if="weatherinformationDirection==3">风向:南风</li>
  178. <li v-if="weatherinformationDirection==4">风向:西南风</li>
  179. <li v-if="weatherinformationDirection==5">风向:西风</li>
  180. <li v-if="weatherinformationDirection==6">风向:西北风</li>
  181. <li v-if="weatherinformationDirection==7">风向:北风</li>
  182. <li v-if="weatherinformationDirection==8">风向:东北风</li>
  183. <li>高温:{{ weatherinformationHigh }}℃</li>
  184. <li>火险:{{ weatherinformationLevelValue }}
  185. </li>
  186. <li>湿度:{{ weatherinformationTemperature }}</li>
  187. </ul>
  188. </div>
  189. </el-col>
  190. </el-row>
  191. <el-row :gutter="20" v-else>
  192. <el-col :span="24">
  193. <div class="weather-img">
  194. 暂无天气信息!
  195. </div>
  196. </el-col>
  197. </el-row>
  198. <div class="firestate" v-if="todatWeather">
  199. <div
  200. :class="weatherinformationLevel=='forest_weatherinformation_level_1'? 'state-block1 state-on':'state-block1'">
  201. </div>
  202. <div
  203. :class="weatherinformationLevel=='forest_weatherinformation_level_2'? 'state-block2 state-on':'state-block2'">
  204. </div>
  205. <div
  206. :class="weatherinformationLevel=='forest_weatherinformation_level_3'? 'state-block3 state-on':'state-block3'">
  207. </div>
  208. <div
  209. :class="weatherinformationLevel=='forest_weatherinformation_level_4'? 'state-block4 state-on':'state-block4'">
  210. </div>
  211. <div
  212. :class="weatherinformationLevel=='forest_weatherinformation_level_5'? 'state-block5 state-on':'state-block5'">
  213. </div>
  214. </div>
  215. </div>
  216. </dv-border-box-13>
  217. </div>
  218. <!-- 设备列表 -->
  219. <div class="container">
  220. <div class="topBar">设备列表</div>
  221. <!-- 输入框 -->
  222. <el-input v-model="cameraListName" class="inputModel" placeholder="请输入要查询的设备名称 " clearable style="color:white" @change="search" >
  223. </el-input>
  224. <!-- 菜单 -->
  225. <div class="mainContainer">
  226. <!-- 列表 -->
  227. <div class="listItem" v-for="(e,idx) in cameraListSearch" :key="idx" @click="deviceShow(e)">
  228. <img class="itemPic"
  229. v-bind:src="e.cameraImg == null ? require('@/assets/images/video-plaza/shiLianWangImg/no-camera.png'):e.cameraImg" >
  230. <div class="itemArea" >
  231. <h4>{{ e.cameraName }}</h4>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <!-- 企业信息列表 -->
  238. <div class="container1">
  239. <div class="topBar">企业上报信息</div>
  240. <!-- 输入框 -->
  241. <el-input v-model="regulatoryinformationQueryParams.infoTitle" class="inputModel" placeholder="请输入要查询的企业上报信息 " clearable style="color:white" @change="search" >
  242. </el-input>
  243. <!-- 菜单 -->
  244. <div class="mainContainer">
  245. <!-- 列表 -->
  246. <div class="listItem" v-for="(e,idx) in regulatoryinformation" :key="idx" @click="showCompanyDialog(e)">
  247. <div class="itemArea">
  248. <h4>{{ e.infoTitle }}</h4>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. <!--分页-->
  254. <div class="paging comPaging">
  255. <el-button type="button" @click="getSelectRegulatoryinformationByEnterpriseId(10,regulatoryinformationQueryParams.pageNum-1)">上一页
  256. </el-button>
  257. <span style="position: relative;bottom: 10%;">第{{ regulatoryinformationQueryParams.pageNum }}页</span>
  258. <el-button type="button" :disabled="companyInfoNextbutton"
  259. @click="getSelectRegulatoryinformationByEnterpriseId(10,regulatoryinformationQueryParams.pageNum+1)">下一页
  260. </el-button>
  261. </div>
  262. </div>
  263. <vBottomMenu ref="bottomMenu" @stopAudio="stopAudio"></vBottomMenu>
  264. </div>
  265. <audio id="resource" ref="up" :src="audioSrc" controls style="display: none;"></audio>
  266. <eventLocation ref="eventLocation"></eventLocation>
  267. <TVWall ref="TVWall"></TVWall>
  268. <TVWalls ref="TVWalls"></TVWalls>
  269. <wrj ref="wrj"></wrj>
  270. <CompanyProjectDialog ref="companyProjectDialog"></CompanyProjectDialog>
  271. <DeviceDialog
  272. :localMark="localMark"
  273. @toTvWall='toTvWall'
  274. @toTvWall_cgq='toTvWall_cgq'
  275. @jump='jump'
  276. ref="deviceDialog"
  277. />
  278. </div>
  279. </template>
  280. <script>
  281. import dateChoose from '@/views/date.vue' //日历
  282. /** ----------------------------------weosocket开始------------------------------------- */
  283. import Cookies from 'js-cookie'
  284. /** ----------------------------------weosocket结束------------------------------------- */
  285. import {
  286. getTodayEvents,
  287. getEventPush,
  288. getDeptEventCount,
  289. getWeather,
  290. getEventList,
  291. getEventByEventType,
  292. getEventByReportorOrder,
  293. getExposureStage,
  294. selectByMenuId,
  295. initByCameras,
  296. enterpriseList,
  297. enterpriseById,
  298. selectRegulatoryinformationByEnterpriseId,
  299. getRegulatoryinformation
  300. } from '@/api/forest';
  301. import {
  302. getMonitorDeviceAndDataList,
  303. selectDeviceType,
  304. selectCameraByDeptId,
  305. getSensorListByDeptId,
  306. getDlblistBydeptId,
  307. selectKeyAreaList,
  308. getRegionalFlag,
  309. getCamerasByDeptId,
  310. selectByCameraId,
  311. selectByDeviceId,
  312. selectByBroadcastId, selectRecorderByDeptId
  313. } from "@/api/monitor";
  314. import {
  315. getNearEvent
  316. } from '@/api/event'
  317. import Notification from '@/components/CloudPic_Notification' //通知
  318. // import ExceedEvent from '@/components/CloudPic_ExceedEvent' //超期事件
  319. import EventList from '@/components/CloudPic_EventList' //事件列表
  320. import ReportRanking from '@/components/CloudPic_ReportRanking' //上报排行
  321. import supermap from '@/components/supermap-2.5d' //超图
  322. // import supermapNotProcessed from '@/components/supermap' //超图
  323. // import supermapProcessed from '@/components/supermap' //超图
  324. import vheader from '@/components/v-header.vue' //一体化共用头部
  325. import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
  326. import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
  327. import TVWall from '@/components/TVWall.vue' //电视墙弹窗
  328. import TVWalls from "@/components/TVWalls.vue"; //电视墙弹窗
  329. import wrj from '@/components/wrj.vue' //无人机
  330. import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
  331. import firespread from '@/views/firespread.vue' //事件详情弹窗
  332. import DeviceDialog from '@/components/DeviceDialog';
  333. import chart from './from/dvCapsuleChart.vue'
  334. import {getUserProfile} from "@/api/system/user";
  335. import CompanyProjectDialog from '@/components/companyProjectDialog'
  336. /** ----------------------------------摄像头预览开始------------------------------------- */
  337. import {
  338. getDahuaVideoServer
  339. } from '@/api/dahua/dahua'
  340. import DHWs from '@/dahua/lib/DHWs'
  341. import Firespread from "./firespread";
  342. /** ----------------------------------摄像头预览结束------------------------------------- */
  343. import {
  344. selectConfigKey
  345. } from "@/api/system/config";
  346. let echarts = require('echarts')
  347. export default {
  348. components: {
  349. Firespread,
  350. chart,
  351. supermap,
  352. // supermapNotProcessed,
  353. // supermapProcessed,
  354. vheader,
  355. vBottomMenu,
  356. eventLocation,
  357. TVWall,
  358. TVWalls,
  359. wrj,
  360. dateChoose,
  361. eventdetailsdialog,
  362. firespread,
  363. Notification, // 左侧通知公告栏
  364. // ExceedEvent, // 超期事件栏
  365. EventList, // 事件列表
  366. ReportRanking, // 上报排行
  367. CompanyProjectDialog,
  368. DeviceDialog
  369. },
  370. created() {
  371. this.selectByMenuId()
  372. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  373. window.showDialog = this.showDialog
  374. window.choseLayerSwitching = this.choseLayerSwitching
  375. window.choseLayerSwitchingList = this.choseLayerSwitchingList
  376. window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
  377. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  378. const DHWsInstance = DHWs.getInstance();
  379. this.ws = DHWsInstance;
  380. },
  381. mounted() {
  382. // 初始化地图数据
  383. this.getSuperMapUrl();
  384. setTimeout(() => {
  385. this.enterpriseList(10,1);
  386. this.getWeather(this.getCurrentDataStr())
  387. }, 2000)
  388. this.bottomMenuList() //获取底部公共组件消息和任务
  389. setTimeout(() => {
  390. this.title = '四平市态势感知平台'
  391. }, 1000)
  392. },
  393. data() {
  394. return {
  395. canSelectDate:true,//日历点击是否可用
  396. nextbutton:false,
  397. //警报MP3文件
  398. audioSrc: require('@/assets/jingbao.mp3'),
  399. calendarDay: this.getCurrentDataStr(),
  400. noticeContent: '', //通知公告
  401. //左侧获取事件信息统计
  402. totalStr: '000000',
  403. totalAllEvent: 0,
  404. aiTotal: '',
  405. newReport: '',
  406. otherTotal: '',
  407. readyFinish: '',
  408. readySure: '',
  409. total: '',
  410. aiTotalPre: '',
  411. newReportPre: '',
  412. otherTotalPre: '',
  413. readyFinishPre: '',
  414. readySurePre: '',
  415. currentPageNum:true,
  416. //左侧部门事件数量
  417. forestFarm: [],
  418. //右侧天气
  419. todatWeather: false,
  420. weatherinformationDirection: '',
  421. weatherinformationHigh: '',
  422. weatherinformationLevel: '',
  423. weatherinformationLevelValue: '', //火险登记中文
  424. weatherinformationLow: '',
  425. weatherinformationPower: '',
  426. weatherinformationTemperature: '',
  427. weatherinformationTime: '',
  428. weatherinformationWeather: '',
  429. //右侧曝光台
  430. exposureStageList: [],
  431. //右侧事件列表
  432. eventList: [],
  433. pageSize: 10,
  434. pageNum: 1,
  435. eventTypeIdDl: [],
  436. eventTypeId: [],
  437. eventListnew: [],
  438. eventListAll: [],
  439. eventSearch: '', //事件列表搜索
  440. listCurrentIndex1: '',
  441. // ----------------------------------事件分类柱状----------------------------------------
  442. eventKind: {},
  443. showEventKind: false,
  444. // ----------------------------------上报排行----------------------------------------
  445. reportList: {
  446. data: []
  447. },
  448. /** ----------------------------------weosocket开始------------------------------------- */
  449. weosocket: false,
  450. websock: '',
  451. setIntervalWesocketPush: null,
  452. websockSid: {
  453. userId: '',
  454. eventTypeDl: '',
  455. eventType: '',
  456. },
  457. /** ----------------------------------weosocket结束------------------------------------- */
  458. /** ----------------------------------摄像头预览开始------------------------------------- */
  459. activePanel: 'key1',
  460. isLogin: false,
  461. cameraParams: [],
  462. ws: null,
  463. /** ----------------------------------摄像头预览结束------------------------------------- */
  464. markersList: [], //点位列表
  465. cameraList: [] ,//摄像头列表
  466. title:'',
  467. eventDlType:[],
  468. eventXlType:[],
  469. /** ----------------------------------定位功能-----------------------------------------*/
  470. visible_dw: false,
  471. positioning: {
  472. lon: "",
  473. lat: ""
  474. },
  475. /** ----------------------------------定位功能-----------------------------------------*/
  476. thirdInput:'', // 输入框label(三级)
  477. cameraMarkersList:[],
  478. queryParams: {
  479. pageNum: 1,
  480. pageSize: 10,
  481. enterpriseName: null
  482. },
  483. cameraListName:"",
  484. totalAllCompany:0,
  485. companyList:[], // 企业列表
  486. cameraListSearch:[],
  487. cameraListSearchAll:[],
  488. regulatoryinformation:[],
  489. totalAllregulatoryinformation:0,
  490. deviceBtn:null,
  491. localMark: "She",
  492. regulatoryinformationQueryParams: {
  493. pageNum: 1,
  494. pageSize: 10,
  495. infoTitle: null,
  496. enterpriseId: null,
  497. },
  498. companyInfoNextbutton:false
  499. }
  500. },
  501. watch:{
  502. cameraListName(val) {
  503. this.cameraListSearch = [];
  504. for(let i=0;i<this.cameraListSearchAll.length;i++){
  505. if(this.cameraListSearchAll[i].cameraName.indexOf(val) !== -1){
  506. this.cameraListSearch.push(this.cameraListSearchAll[i])
  507. }
  508. }
  509. },
  510. 'queryParams.enterpriseName':function(val){
  511. this.enterpriseList(this.queryParams.pageSize, this.queryParams.pageNum, val)
  512. },
  513. 'regulatoryinformationQueryParams.infoTitle':function(val){
  514. this.getSelectRegulatoryinformationByEnterpriseId(this.regulatoryinformationQueryParams.pageSize, this.regulatoryinformationQueryParams.pageNum, val)
  515. },
  516. },
  517. /** ----------------------------------weosocket开始------------------------------------- */
  518. metaInfo () {
  519. return {
  520. title:this.title,
  521. meta:[{
  522. charset: "utf-8"
  523. },
  524. {
  525. name: "viewport",
  526. content: "width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
  527. }]
  528. }
  529. },
  530. /** ----------------------------------weosocket结束------------------------------------- */
  531. methods: {
  532. // 获取企业信息列表
  533. getSelectRegulatoryinformationByEnterpriseId(pageSize, pageNum) {
  534. if (pageNum < 1) {
  535. this.$modal.msg('当前已是第一页')
  536. return
  537. } else if (pageNum > this.totalAllregulatoryinformation / 10 + 1) {
  538. this.$modal.msg('当前已是最后一页')
  539. return
  540. }
  541. this.regulatoryinformationQueryParams.pageSize = pageSize
  542. this.regulatoryinformationQueryParams.pageNum = pageNum
  543. selectRegulatoryinformationByEnterpriseId(this.regulatoryinformationQueryParams).then(res => {
  544. this.regulatoryinformation = res.rows
  545. this.totalAllregulatoryinformation = res.total
  546. })
  547. },
  548. showCompanyDialog(e){
  549. getRegulatoryinformation(e.id).then(res => {
  550. // 处理图片路径
  551. let attachPaths
  552. if(res.data.attachPaths){
  553. attachPaths = res.data.attachPaths.split(",")
  554. }
  555. // 处理附件路径
  556. let fileUrl
  557. if(res.data.fileUrl){
  558. fileUrl = res.data.fileUrl.split(",")
  559. fileUrl.forEach((e,idx) => {
  560. fileUrl[idx] = e.split("+")
  561. })
  562. }
  563. console.log('fileUrl',fileUrl)
  564. let detailInfo = {
  565. title:res.data.infoTitle || '',
  566. deptName:res.data.deptName || '',
  567. content:res.data.infoContent || '',
  568. attachPaths,
  569. fileUrl,
  570. videos:[],
  571. others:[]
  572. }
  573. this.$refs.companyProjectDialog.open(detailInfo)
  574. })
  575. },
  576. /**
  577. * 企业列表接口
  578. */
  579. enterpriseList(pageSize, pageNum=1){
  580. if (pageNum < 1) {
  581. this.$modal.msg('当前已是第一页')
  582. return
  583. } else if(pageNum > this.totalAllCompany/10+1){
  584. this.$modal.msg('当前已是最后一页')
  585. return;
  586. }
  587. this.queryParams.pageSize = pageSize;
  588. this.queryParams.pageNum = pageNum;
  589. enterpriseList(this.queryParams).then(res => {
  590. this.companyList = res.rows
  591. this.totalAllCompany = res.total
  592. })
  593. },
  594. toTvWall(cameraParam) {
  595. this.preview(cameraParam)
  596. },
  597. preview(cameraParam) {
  598. this.showTVWall(cameraParam.code, cameraParam.name, cameraParam.type);
  599. },
  600. deviceShow(e) {
  601. this.showTVWall(e.cameraCode, e.cameraName, e.cameraType);
  602. },
  603. showTVWall(channelCode, channelName, type) {
  604. let tvListJson = [
  605. {
  606. switchTab: "2",
  607. treeLabels: [
  608. {
  609. id: null,
  610. labelCode: "999",
  611. labelName: "电视墙",
  612. cameraType: null,
  613. parentLabelCode: "",
  614. },
  615. {
  616. id: "spcamera00010",
  617. labelCode: channelCode,
  618. labelName: channelName,
  619. cameraType: type,
  620. parentLabelCode: "999",
  621. },
  622. ],
  623. labelChannels: [
  624. {
  625. labelCode: channelCode,
  626. channelDates: [
  627. {
  628. channelCode: channelCode,
  629. channelName: channelName,
  630. channelSn: null,
  631. cameraType: type,
  632. online: "1",
  633. cameraCode: "1",
  634. },
  635. ],
  636. },
  637. ],
  638. },
  639. ];
  640. this.$refs.TVWall.showTVWall(tvListJson, [
  641. {
  642. channelId: channelCode,
  643. },
  644. ]);
  645. this.$refs.bottomMenu.showMeasure = false;
  646. this.$refs.bottomMenu.showChild = false;
  647. this.$refs.bottomMenu.showBanChild = false;
  648. this.$refs.bottomMenu.showChangChild = false;
  649. },
  650. // 查询收藏列表
  651. getCompanyList(pageSize, pageNum) {
  652. },
  653. //三级列表选择(获取列表)
  654. getDeviceList(e,idx){
  655. this.deviceBtn=idx
  656. let that = this;
  657. let cameraMarkersList = [];
  658. let markersMap = {
  659. lng: 124.59,
  660. lat: 43.02,
  661. icon: "enterprise",
  662. bindPopupHtml: "",
  663. click: "previewBefore",
  664. parameter: "",
  665. name: e.id,
  666. keepBindPopup: false,
  667. isAggregation: false,
  668. };
  669. markersMap.parameter = {
  670. id: e.id,
  671. name: e.enterpriseName,
  672. }
  673. markersMap.lng = e.longitude;
  674. markersMap.lat = e.latitude;
  675. markersMap.icon = "enterprise";
  676. markersMap.click = 'previewBefore'
  677. markersMap.bindPopupHtml = "";
  678. cameraMarkersList.push(markersMap);
  679. setTimeout(() => {
  680. that.$refs.supermap.clearM();
  681. that.$refs.supermap.clearMRadius();
  682. that.$refs.supermap.setMarkers(cameraMarkersList);
  683. }, 3000);
  684. enterpriseById(e.id).then(res => {
  685. that.cameraListSearch = res.data.cameras
  686. that.cameraListSearchAll = res.data.cameras
  687. })
  688. that.regulatoryinformationQueryParams = {
  689. pageNum: 1,
  690. pageSize: 10,
  691. infoTitle: null,
  692. enterpriseId: e.id,
  693. },
  694. selectRegulatoryinformationByEnterpriseId(that.regulatoryinformationQueryParams).then(res => {
  695. that.regulatoryinformation = res.rows
  696. that.totalAllregulatoryinformation = res.total
  697. })
  698. },
  699. thirdDeviceHashighLighted(e){
  700. let that = this;
  701. enterpriseById(e.id).then(res => {
  702. that.toTvWall_cgq(res.data);
  703. })
  704. },
  705. toTvWall_cgq(cameraParam) {
  706. const treeLabels = [
  707. {
  708. id: null,
  709. labelCode: '999',
  710. labelName: '电视墙',
  711. cameraType: null,
  712. parentLabelCode: ''
  713. }
  714. ]
  715. const labelChannels = []
  716. for (let i in cameraParam.cameras) {
  717. treeLabels.push({
  718. id: null,
  719. labelCode: cameraParam.cameras[i].cameraCode,
  720. labelName: cameraParam.cameras[i].cameraName,
  721. cameraType: cameraParam.cameras[i].cameraType,
  722. parentLabelCode: '999'
  723. })
  724. labelChannels.push({
  725. labelCode: cameraParam.cameras[i].cameraCode,
  726. channelDates: [
  727. {
  728. channelCode: cameraParam.cameras[i].cameraCode,
  729. channelName: cameraParam.cameras[i].cameraName,
  730. channelSn: null,
  731. cameraType: cameraParam.cameras[i].cameraType,
  732. online: '1',
  733. cameraCode: '1'
  734. }
  735. ]
  736. })
  737. }
  738. const dianshiqiang = [
  739. {
  740. switchTab: '2',
  741. treeLabels: treeLabels,
  742. labelChannels: labelChannels
  743. }
  744. ]
  745. if (cameraParam.cameras.length != null) {
  746. this.$refs.TVWall.showTVWall1(
  747. cameraParam.longitude,
  748. cameraParam.latitude,
  749. dianshiqiang
  750. );
  751. }
  752. },
  753. previewBefore(company) {
  754. this.$refs.deviceDialog.open([
  755. {
  756. key:"名称",
  757. value:company.name
  758. },
  759. ])
  760. },
  761. getLocation(event) {
  762. this.visible_dw = !this.visible_dw
  763. if (!this.visible_dw) {
  764. this.positioning.lon = ''
  765. this.positioning.lat = ''
  766. this.$refs.supermap.clearDW()
  767. }
  768. this.$refs.supermap.setIsObtainLaAndLon(this.visible_dw)
  769. },
  770. lonAndLatQueryCamera() {
  771. if (this.positioning.lon == '' || this.positioning.lon * 1 < -180 || this.positioning.lon * 1 > 180) {
  772. this.$message.warning('经度整数部分为大于-180小于180范围,小数部分为0到15位!')
  773. return
  774. }
  775. if (this.positioning.lat == '' || this.positioning.lat * 1 < -90 || this.positioning.lat * 1 > 90) {
  776. this.$message.warning('纬度整数部分为大于-90小于90范围,小数部分为0到15位!')
  777. return
  778. }
  779. this.$refs.supermap.lonAndLatPlacement(this.positioning.lon, this.positioning.lat)
  780. const params = Object.assign({})
  781. params.longitude = this.positioning.lon;
  782. params.latitude = this.positioning.lat;
  783. params.type = '21'
  784. initByCameras(params).then(res => {
  785. if (res.data != null && res.data.length != 0) {
  786. this.$refs.TVWall.showTVWall1(this.positioning.lon, this.positioning.lat, res.data);
  787. } else {
  788. this.$message.warning('周边无摄像头信息!')
  789. }
  790. })
  791. },
  792. setPositioning(longitude, latitude) {
  793. let that = this
  794. that.positioning.lon = longitude
  795. that.positioning.lat = latitude
  796. },
  797. showDefaultImg(){
  798. let img = event.srcElement;
  799. img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAABACAYAAAB4OXuGAAAE2UlEQVR4nO2b2XbaSBCGS2hhByEwCXaSizxArucJ5v1fYG5mJnbGrGIVYlHO30RYYkmM7e4Sk/7O0YVt3JL+Lv1dVS2ML3/8GZFGKTktt3q06Axo0RnQojOgRWdAi86AFp0BLToDWnQGLLmnNLJ5179EbpEuRXTDMKjV+UxG7nofpGA+ofHgm5SxpaiSy5lXLTgolKrSxpajjHGttqIGyZ6+Y+r3aLvdZOF+f0qhWCWnUJJ+HiWiLxdT2qxXKk71Kiw7Tw7JF12njAxkQnRkO6blUM5U8uCxw3qXtlOgcq1JTqG4z+m3mw0F8zHNJgOKttssaPTmsIlerLhUdW+Ofp8zTSpVG5QvVmjU+6p0LUieS+aEs9iLUyifFDyJadnktm6F9agimPm0mPm0Wi6kFUbEFemHgq9XS1EBwtOL5RoZxi4W4PN4IuaToZLriqKIJsNH6edRLjp8HFEcEwZzGvXu9/2OYDamRvvjPsKRO6sSXRXKRUf0JtkJ+tRgQtSHwUx4uvi87ZwbSsK12VRv3pJl2zQbD8QhA/WefmDR0YmOHh5z1aBXtBPcEReJrEoWykXfrNLZSKnipn5GtOWL5afPr0Ml11X3Oj8El49ye1mFC9pu1vtCCDbitu5ouZiQkTOpVGnsF1L60UKQDRZ2FT2XGJbsBQ2wmvd+/zNu+NRNY3Lm05HUaylW6iJDUglLno708FeLFLqSyGpkFimY6Krbljb+Odgq0tm4T+swoHK9Kbp7MVhEl/MJTcd9EemygH/Dx5Pg3CqKMdbeyzKYiQP+bpo2RdFWLJyH2QsWVnj9ehXSdNx7dfRjZwuZSnJ3C2sNxi+W668a+zlkoq2HiD4X1fDc2ALsfFEcfv/+xT0ZRHK92UkVaBjL7z1Qqea98A4uI9P99HLNO/Jc2AIqVoj/EqqNd6n/xVODSVS5s5VZ0SvuzdkCBfbQaN1dbAWlqne04ewPHoStqCSTote8d0dFE1oDKQsyDKo22mJyngPqgUo9PYmTUVf0flSTqa0a+G3N66QqUoB2K7p/WHDdZocsp7D/GybHshwRsecWWMvJp+oCMebUp4XkGuAcmYl00fto3R0JjoZY3G5FpA+7/4o8Pwnyba/9MbU4xuwmKt2XR3RPRvJbuOfIhOg7j/5AzsHiiMoVRxKkk9hgQJ6fBN1Lr/2JnPxTZQuhsRGS3HuFf+Op4IRddAjSaH8QFpBkPPzvp310VLR+/yGV0+NpcW9uRZpJYm14nyq8kKEgU+Hee2X1dERn4+Yu/RZAFJE/+PasRhc+M3z8h+qtWzL3YxgizURmkxRcjNt/yMT7N2yRjsUQEZ4UHBUp+i2XdBax6TF8/JtWYZAe3z5+crD3mQVYREdxgjwbXh4jGlzdrxQuL0/h8NrG6MQCGzOfDM7+jQMW0WuNdqrvgawEoh1G6yXEC+zhwounZur3XzyuDJg8/Sl9g8dC8M0bdRSx+CJDQf6+Xoc0O5iELMAiOiISLV3YwnTUffO+B6pXHFmFRXTYCPz7d0W/tcuAFp0BLToDSjwdbdVr+PqLZf2P3nup1FsqTnM1yLEXhtfirgkposNKrv1bFDLbBlLsBSV59/4v/TX1M0j2dG0zp9ApIwNadAa06Axo0RnQojOgRWdAi86AFp0BLbpqiOg74YbqU8Iw/dEAAAAASUVORK5CYII=";
  800. },
  801. //初始化地图数据
  802. getSuperMapUrl(){
  803. getUserProfile().then(response => {
  804. let mapDeptId=response.mapDeptId
  805. let num = 0;
  806. if (mapDeptId == "365") {
  807. num = 0;
  808. } else if (mapDeptId == "369") {
  809. num = 1;
  810. } else if (mapDeptId == "371") {
  811. num = 2;
  812. } else if (mapDeptId == "373") {
  813. num = 3;
  814. } else if (mapDeptId == "372") {
  815. num = 4;
  816. } else if (mapDeptId == "370") {
  817. num = 5;
  818. }
  819. this.$refs.supermap.removeAllviewer(mapDeptId, -1);
  820. });
  821. },
  822. dropLocation(lat, lng, eventCode) {
  823. this.$refs.supermap.dropLocation(lat, lng)
  824. },
  825. getFirespread(eventCode) {
  826. this.$refs.eventdetailsdialog.showEventDialog(eventCode);
  827. this.$refs.eventdetailsdialog.fireControlViewList()
  828. },
  829. getCurrentDataStr() {
  830. let date = new Date()
  831. let y = date.getFullYear()
  832. let m = date.getMonth() + 1
  833. m = m < 10 ? '0' + m : m
  834. let d = date.getDate()
  835. d = d < 10 ? '0' + d : d
  836. return y + '-' + m + '-' + d
  837. },
  838. fatherMethod(dianshiqiang, longitude, latitude, item) {
  839. this.$refs.TVWalls.showTVWall(
  840. dianshiqiang, {
  841. longitude: longitude,
  842. latitude: latitude,
  843. },
  844. item
  845. );
  846. },
  847. getWeather(day) {
  848. let that = this
  849. //右侧获取天气信息
  850. getWeather({
  851. day: day
  852. }).then(res => {
  853. if (res.code == 200) {
  854. if (0==res.data.length) {
  855. this.todatWeather = false
  856. } else {
  857. this.todatWeather = true
  858. this.weatherinformationDirection = res.data[0].weatherinformationDirection
  859. this.weatherinformationHigh = res.data[0].weatherinformationHigh
  860. this.weatherinformationLevel = res.data[0].weatherinformationLevel
  861. this.weatherinformationLevelValue = res.data[0].weatherinformationLevelValue
  862. this.weatherinformationLow = res.data[0].weatherinformationLow
  863. this.weatherinformationPower = res.data[0].weatherinformationPower
  864. this.weatherinformationTemperature = res.data[0].weatherinformationTemperature
  865. this.weatherinformationTime = res.data[0].weatherinformationTime
  866. this.weatherinformationWeather = res.data[0].weatherinformationWeather
  867. }
  868. } else {
  869. this.todatWeather = false
  870. }
  871. })
  872. },
  873. getSupermap(day, loading) {
  874. let that = this
  875. getNearEvent('', '', day, loading, that.eventTypeIdDl, that.eventTypeId).then(res => {
  876. that.markersList = [];
  877. if (res.data != null && res.data.length > 0) {
  878. for (let i = 0; i < res.data.length; i++) {
  879. let markersMap = {
  880. lng: 124.59,
  881. lat: 43.02,
  882. icon: 'marker',
  883. bindPopupHtml: '',
  884. click: '',
  885. parameter: '',
  886. keepBindPopup: false,
  887. isAggregation: true
  888. }
  889. // if (res.data.length > 200) {
  890. // markersMap.isAggregation = true
  891. // }
  892. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount == 0) {
  893. markersMap.click = 'showEventDialog'
  894. markersMap.icon = 'sj-icon-map-xinshangbao'
  895. }
  896. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount > 0) {
  897. markersMap.click = 'showEventDialog'
  898. markersMap.icon = 'sj-icon-map-cuiban'
  899. } else if (res.data[i].eventStatusValue == 'forest_event_status_2') {
  900. markersMap.click = 'showEventDialog'
  901. markersMap.icon = 'sj-icon-map-qianshou'
  902. markersMap.isAggregation = false
  903. } else if (res.data[i].eventStatusValue == 'forest_event_status_5') {
  904. markersMap.click = 'showEventDialog'
  905. markersMap.icon = 'sj-icon-map-banjie'
  906. markersMap.isAggregation = false
  907. } else if (res.data[i].eventStatusValue == 'forest_event_status_6') {
  908. markersMap.click = 'showEventDialog'
  909. markersMap.icon = 'sj-icon-map-guidang'
  910. } else if (res.data[i].eventStatusValue == 'forest_event_status_7') {
  911. markersMap.click = 'showEventDialog'
  912. markersMap.icon = 'sj-icon-map-queren'
  913. }
  914. markersMap.parameter = res.data[i].eventCode
  915. markersMap.lng = res.data[i].longitude
  916. markersMap.lat = res.data[i].latitude
  917. markersMap.bindPopupHtml = '<div class="map-tip">' +
  918. // '<span>' +
  919. // ' <div class="d-l-con">' +
  920. // ' <div class="d-l-l-text">' +
  921. // ' <h4>经纬度:' + res.data[i].longitude + ',' + res.data[i].latitude + '</h4>' +
  922. // ' </div>' +
  923. // ' </div>' +
  924. // ' </span>' +
  925. '<span>' +
  926. ' <div class="d-l-con">' +
  927. ' <div class="d-l-l-text">' +
  928. ' <h4>事件名称:' + res.data[i].eventName + '</h4>' +
  929. ' </div>' +
  930. ' </div>' +
  931. ' </span>' +
  932. '<span>' +
  933. ' <div class="d-l-con">' +
  934. ' <div class="d-l-l-text">' +
  935. ' <h4>事件时间:' + res.data[i].createTime + '</h4>' +
  936. ' </div>' +
  937. ' </div>' +
  938. ' </span>';
  939. if (res.data[i].pictureType == 'image' && res.data[i].picturePath != null && res.data[i]
  940. .picturePath != '') {
  941. markersMap.bindPopupHtml += '<span>' +
  942. ' <div class="d-l-con">' +
  943. ' <div class="d-l-l-text">' +
  944. '<img src="' + res.data[i].picturePath + '" style="width: 150px;height: 100px"/>' +
  945. ' </div>' +
  946. ' </div>' +
  947. ' </span>'
  948. }
  949. markersMap.bindPopupHtml += '</div>'
  950. that.markersList.push(markersMap)
  951. }
  952. setTimeout(() => {
  953. that.$refs.supermap.clearM()
  954. that.$refs.supermap.clearMRadius();
  955. that.$refs.supermap.setMarkers(that.markersList)
  956. }, 3000)
  957. } else {
  958. setTimeout(() => {
  959. that.$refs.supermap.clearM()
  960. that.$refs.supermap.clearMRadius();
  961. }, 3000)
  962. }
  963. this.canSelectDate = true
  964. })
  965. },
  966. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  967. bottomMenuList() {
  968. this.$refs.bottomMenu.selectTaskList() //获取任务列表
  969. this.$refs.bottomMenu.selectMessageList() //获取消息列表
  970. this.$refs.bottomMenu.linBanTreeselect() //查询林班层级树结构
  971. this.$refs.bottomMenu.deptTreeselect() //查询林场部门树结构
  972. },
  973. showDialog(click) {
  974. console.log(click)
  975. if (click == 'eventLocation') {
  976. this.$refs.eventLocation.showEventLocation()
  977. this.$refs.supermap.isEditableLayers = false
  978. this.$refs.bottomMenu.showChild = false
  979. this.$refs.bottomMenu.showBanChild = false
  980. this.$refs.bottomMenu.showMeasure = false
  981. this.$refs.bottomMenu.showChangChild = false
  982. } else if (click == 'editableLayers') {
  983. this.$refs.bottomMenu.showChild = false
  984. this.$refs.bottomMenu.showBanChild = false
  985. this.$refs.bottomMenu.showChangChild = false
  986. if (!this.$refs.bottomMenu.showMeasure) {
  987. this.$refs.bottomMenu.showMeasure = true
  988. } else {
  989. this.$refs.bottomMenu.showMeasure = false
  990. }
  991. } else if (click == 'layerSwitching') {
  992. this.$refs.supermap.isEditableLayers = false
  993. this.$refs.bottomMenu.showBanChild = false
  994. this.$refs.bottomMenu.showMeasure = false
  995. this.$refs.bottomMenu.showChangChild = false
  996. if (!this.$refs.bottomMenu.showChild) {
  997. this.$refs.bottomMenu.showChild = true
  998. } else {
  999. this.$refs.bottomMenu.showChild = false
  1000. }
  1001. } else if (click == 'TVWall') {
  1002. console.log("this.$refs.TVWall=", this.$refs.TVWall)
  1003. this.$refs.TVWall.showTVWall();
  1004. this.$refs.supermap.isEditableLayers = false
  1005. this.$refs.bottomMenu.showChild = false
  1006. this.$refs.bottomMenu.showMeasure = false
  1007. this.$refs.bottomMenu.showBanChild = false
  1008. this.$refs.bottomMenu.showChangChild = false
  1009. } else if (click == 'wrj') {
  1010. this.$refs.wrj.showWrj();
  1011. this.$refs.supermap.isEditableLayers = false
  1012. this.$refs.bottomMenu.showChild = false
  1013. this.$refs.bottomMenu.showBanChild = false
  1014. this.$refs.bottomMenu.showMeasure = false
  1015. this.$refs.bottomMenu.showChangChild = false
  1016. } else if (click == 'forestban') {
  1017. this.$refs.supermap.isEditableLayers = false
  1018. this.$refs.bottomMenu.showChild = false
  1019. this.$refs.bottomMenu.showChangChild = false
  1020. this.$refs.bottomMenu.showMeasure = false
  1021. if (!this.$refs.bottomMenu.showBanChild) {
  1022. this.$refs.bottomMenu.showBanChild = true
  1023. } else {
  1024. this.$refs.bottomMenu.showBanChild = false
  1025. }
  1026. } else if (click == 'forestchang') {
  1027. this.$refs.supermap.isEditableLayers = false
  1028. this.$refs.bottomMenu.showBanChild = false
  1029. this.$refs.bottomMenu.showMeasure = false
  1030. this.$refs.bottomMenu.showChild = false
  1031. if (!this.$refs.bottomMenu.showChangChild) {
  1032. this.$refs.bottomMenu.showChangChild = true
  1033. } else {
  1034. this.$refs.bottomMenu.showChangChild = false
  1035. }
  1036. }
  1037. },
  1038. //选择图层
  1039. choseLayerSwitching(url, isClear) {
  1040. this.$refs.supermap.layerSwitching(url, isClear)
  1041. },
  1042. //选择图层(传递数组)
  1043. choseLayerSwitchingList(urlList) {
  1044. this.$refs.supermap.layerSwitchingList(urlList)
  1045. },
  1046. //选择图层(传递数组) 带数据
  1047. choseLayerSwitchingList_Data(urlList) {
  1048. this.$refs.supermap.layerSwitchingList_Data(urlList)
  1049. },
  1050. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  1051. },
  1052. }
  1053. </script>
  1054. <style rel="stylesheet/scss" lang="scss" scoped>
  1055. @import '@/assets/styles/base.scss';
  1056. .highlightedBtn{
  1057. background: url('~@/assets/images/video-plaza/highLightBtn.png') 0 0 no-repeat; /* 高亮背景 */
  1058. background-size: cover;
  1059. }
  1060. .notHighlightedBtn{
  1061. background: none;
  1062. }
  1063. .third_contain{
  1064. overflow: hidden;
  1065. overflow-y: scroll;
  1066. width: 95%;
  1067. height: 100%;
  1068. padding-left:18px;
  1069. ::v-deep .el-button{
  1070. width: 70px;
  1071. height: 100%;
  1072. margin-left: 0 !important;
  1073. >span{
  1074. display: inline-block;
  1075. width: 100%;
  1076. text-align: center;
  1077. }
  1078. >span >span{
  1079. left: 0 !important;
  1080. display: inline-block;
  1081. width: 100%;
  1082. text-align: center;
  1083. }
  1084. }
  1085. ::v-deep .el-button:not(:nth-child(1)){
  1086. }
  1087. .thirdDevice_icon{
  1088. width: 10%;
  1089. margin: 1.7% 15px 0 2%;
  1090. height: 70%;
  1091. cursor: pointer;
  1092. }
  1093. }
  1094. .paging {
  1095. height: 4%;
  1096. padding: 0rem .3rem;
  1097. display: flex;
  1098. justify-content: center;
  1099. align-content: center;
  1100. span {
  1101. color: #2bacf7;
  1102. display: flex;
  1103. align-items: center;
  1104. padding: 0 1rem;
  1105. }
  1106. button {
  1107. width: 70px;
  1108. padding: 0 0.3rem;
  1109. height: 1.5rem;
  1110. background-color: #112543;
  1111. color: #2bacf7;
  1112. border: 1px solid #33467f;
  1113. }
  1114. button:hover {
  1115. padding: 0 0.3rem;
  1116. height: 1.5rem;
  1117. background-color: #112543;
  1118. color: #0ff7c5;
  1119. border: 1px solid #1d657f;
  1120. }
  1121. }
  1122. .comPaging{
  1123. position: absolute;
  1124. bottom: 0%;
  1125. right: 5%;
  1126. }
  1127. .thirdInputModel{
  1128. margin-top: 20px;
  1129. // margin-left: 8%;
  1130. // width: 95%;
  1131. }
  1132. .sp_sbg{
  1133. overflow: hidden;
  1134. overflow-y: scroll;
  1135. width: 100%;
  1136. height: 80%;
  1137. .sp_sbg_div{
  1138. background-color: rgb(35, 76, 172,0.2);
  1139. margin: 5px 0px;
  1140. border-radius: 5px;
  1141. .el-button{
  1142. background: none;
  1143. outline: 0px;
  1144. border: 0px;
  1145. }
  1146. }
  1147. .sp_sbg_div.on{
  1148. background-color: rgb(35, 76, 172,0.4);
  1149. .el-button{
  1150. span{
  1151. color: #01FBFE!important;
  1152. text-shadow: 0px 0px 3px #01FBFE;
  1153. }
  1154. }
  1155. }
  1156. }
  1157. .sip_img{
  1158. opacity: 0.8;
  1159. }
  1160. .sip_imgon{
  1161. opacity: 1;
  1162. box-shadow: 0px 5px 5px #0b3555;
  1163. }
  1164. .thirdHighlightedBtn{
  1165. background: url('~@/assets/images/video-plaza/camera1_on.png') 0 0 no-repeat; /* 高亮背景 */
  1166. background-size: 100% 100%;
  1167. }
  1168. .thirdDevice_icon{
  1169. width: 10%;
  1170. margin: 1.7% 15px 0 2%;
  1171. height: 70%;
  1172. cursor: pointer;
  1173. }
  1174. .container{
  1175. width:98%;
  1176. height:70%;
  1177. position: relative;
  1178. left: 1%;
  1179. z-index: 20;
  1180. background: url('~@/assets/images/video-plaza/bg-sl.png') 0 0 no-repeat; /* 高亮背景 */
  1181. border-bottom: 1px solid #1b497d;
  1182. border-right: 1px solid #1b497d;
  1183. }
  1184. .container1{
  1185. width:48%;
  1186. height:95%;
  1187. position: relative;
  1188. left: 1%;
  1189. z-index: 20;
  1190. background: url('~@/assets/images/video-plaza/bg-sl.png') 0 0 no-repeat; /* 高亮背景 */
  1191. border-bottom: 1px solid #1b497d;
  1192. border-right: 1px solid #1b497d;
  1193. .listItem{
  1194. cursor: pointer;
  1195. }
  1196. }
  1197. .topBar{
  1198. position: absolute;
  1199. top: 0;
  1200. z-index: 99;
  1201. width: 100%;
  1202. height: 4%;
  1203. text-indent: 23px;
  1204. line-height: 1.1;
  1205. color: #fff;
  1206. font-size: 18px;
  1207. font-weight: 700;
  1208. background: url('~@/assets/images/video-plaza/rightBar.png') 0 0 no-repeat
  1209. }
  1210. .mainContainer{
  1211. overflow: hidden scroll;
  1212. position: absolute;
  1213. width: 90%;
  1214. height: 80%;
  1215. margin: 7% auto auto 5%;
  1216. }
  1217. .listItem{
  1218. display: flex;
  1219. justify-content: space-around;
  1220. height: 9%;
  1221. width: 100%;
  1222. margin: 0 auto;
  1223. }
  1224. .listItem:not(:nth-child(1)){
  1225. margin-top: 6%;
  1226. }
  1227. .itemPic{
  1228. width: 24%;
  1229. height: 100%;
  1230. }
  1231. .itemArea{
  1232. font-size: 15px;
  1233. white-space: nowrap;
  1234. width: 73%;
  1235. overflow: hidden;
  1236. text-overflow: ellipsis;
  1237. margin:auto auto auto 2%;
  1238. color: #fff;
  1239. }
  1240. .itemArea:hover {
  1241. white-space: normal;
  1242. overflow: visible;
  1243. }
  1244. .itemArea >h3{
  1245. font-size: 20px;
  1246. overflow: hidden;
  1247. text-overflow: ellipsis;
  1248. white-space: nowrap;
  1249. }
  1250. .itemArea >span{
  1251. font-size: 16px;
  1252. }
  1253. .inputModel{
  1254. width: 100%;
  1255. margin-top: 14%;
  1256. padding: 0 5%;
  1257. }
  1258. ::v-deep .el-input__inner{
  1259. background-color: #0e3271ba ;
  1260. box-shadow: inset 0 0 10px 2px #1b497d;
  1261. border: 1px solid #205b8b;
  1262. color: white;
  1263. }
  1264. </style>
  1265. <style lang="scss">
  1266. @import '@/assets/styles/base.scss';
  1267. .el-table__cell{
  1268. cursor: pointer;
  1269. }
  1270. .is-leaf{
  1271. cursor: default; // 更多标题指针默认
  1272. }
  1273. .is-dark{
  1274. display: none !important;
  1275. }
  1276. .bottomRight {
  1277. .el-table .el-table__header-wrapper th,
  1278. .el-table .el-table__fixed-header-wrapper th {
  1279. background-color: $searchBG;
  1280. }
  1281. .el-table td.el-table__cell,
  1282. .el-table th.el-table__cell.is-leaf {
  1283. border-bottom: 1px $tableBorder;
  1284. }
  1285. .el-table--border,
  1286. .el-table--border::after {
  1287. border: 1px $tableBorder;
  1288. background-color: $searchBG
  1289. }
  1290. .el-table--border {
  1291. .el-table--group {
  1292. border: 1px $tableBorder;
  1293. }
  1294. .el-table__cell {
  1295. border-right: 1px $tableBorder;
  1296. ;
  1297. }
  1298. }
  1299. .el-table::before {
  1300. background: $searchBG;
  1301. }
  1302. .el-table {
  1303. background: $searchBG;
  1304. color: $inBlue;
  1305. thead {}
  1306. tr {
  1307. background: $searchBG;
  1308. }
  1309. td {
  1310. text-align: center;
  1311. }
  1312. .el-table__header-wrapper {
  1313. th {
  1314. color: $inBlue;
  1315. font-size: .8rem;
  1316. }
  1317. }
  1318. thead.is-group {
  1319. .el-table__cell {
  1320. text-align: center;
  1321. background: $searchBG;
  1322. border-bottom: 1px $tableBorder;
  1323. border-right: 1px $tableBorder;
  1324. padding: 0;
  1325. font-weight: normal;
  1326. }
  1327. }
  1328. }
  1329. .el-table__empty-block {
  1330. min-height: auto;
  1331. }
  1332. .el-table__empty-text {
  1333. line-height: 30px;
  1334. }
  1335. .el-table__header {
  1336. width: auto !important
  1337. }
  1338. .el-table__empty-block {
  1339. width: auto !important
  1340. }
  1341. .el-table__body-wrapper {
  1342. .el-table__body {
  1343. width: auto !important
  1344. }
  1345. }
  1346. .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
  1347. background-color: #0f3655;
  1348. }
  1349. }
  1350. .sj-layer-switch {
  1351. width: 100%;
  1352. position: fixed;
  1353. bottom: 4rem;
  1354. display: flex;
  1355. // left: 21%;
  1356. z-index: 10;
  1357. justify-content: space-between;
  1358. }
  1359. .leader-tcqh {
  1360. width: fit-content;
  1361. height: fit-content;
  1362. text-align: center;
  1363. color: #fff !important;
  1364. font-size: 0.6rem;
  1365. margin-right: 1rem;
  1366. display: flex;
  1367. flex-direction: column;
  1368. img {
  1369. margin-bottom: 3px;
  1370. }
  1371. p {
  1372. font-size: 16px;
  1373. }
  1374. }
  1375. .leader-tcqh img {
  1376. width: 50px;
  1377. margin: 0 auto;
  1378. }
  1379. .leader-tcqh:hover {
  1380. color: #fff !important;
  1381. }
  1382. .tk-close {
  1383. width: 1.3rem;
  1384. height: 1.3rem;
  1385. color: #346ebc;
  1386. font-size: 1.3rem;
  1387. position: absolute;
  1388. right: 0.8rem;
  1389. top: 0.8rem;
  1390. cursor: pointer;
  1391. }
  1392. </style>