forest.vue 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466
  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="dropLocation(e.latitude, e.longitude, e.cameraCode)">
  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. this.$refs.deviceDialog.open([
  383. {
  384. key:'名称',
  385. value:'测试名称'
  386. },
  387. {
  388. key:'地址',
  389. value:'测试地址'
  390. },
  391. ])
  392. console.log('图层对象',window.webglExampleConfig)
  393. console.log('媒体对象',navigator)
  394. // 初始化地图数据
  395. this.getSuperMapUrl();
  396. setTimeout(() => {
  397. this.enterpriseList(10,1);
  398. this.getWeather(this.getCurrentDataStr())
  399. }, 2000)
  400. this.bottomMenuList() //获取底部公共组件消息和任务
  401. setTimeout(() => {
  402. this.title = '四平市态势感知平台'
  403. }, 1000)
  404. },
  405. data() {
  406. return {
  407. canSelectDate:true,//日历点击是否可用
  408. nextbutton:false,
  409. //警报MP3文件
  410. audioSrc: require('@/assets/jingbao.mp3'),
  411. calendarDay: this.getCurrentDataStr(),
  412. noticeContent: '', //通知公告
  413. //左侧获取事件信息统计
  414. totalStr: '000000',
  415. totalAllEvent: 0,
  416. aiTotal: '',
  417. newReport: '',
  418. otherTotal: '',
  419. readyFinish: '',
  420. readySure: '',
  421. total: '',
  422. aiTotalPre: '',
  423. newReportPre: '',
  424. otherTotalPre: '',
  425. readyFinishPre: '',
  426. readySurePre: '',
  427. currentPageNum:true,
  428. //左侧部门事件数量
  429. forestFarm: [],
  430. //右侧天气
  431. todatWeather: false,
  432. weatherinformationDirection: '',
  433. weatherinformationHigh: '',
  434. weatherinformationLevel: '',
  435. weatherinformationLevelValue: '', //火险登记中文
  436. weatherinformationLow: '',
  437. weatherinformationPower: '',
  438. weatherinformationTemperature: '',
  439. weatherinformationTime: '',
  440. weatherinformationWeather: '',
  441. //右侧曝光台
  442. exposureStageList: [],
  443. //右侧事件列表
  444. eventList: [],
  445. pageSize: 10,
  446. pageNum: 1,
  447. eventTypeIdDl: [],
  448. eventTypeId: [],
  449. eventListnew: [],
  450. eventListAll: [],
  451. eventSearch: '', //事件列表搜索
  452. listCurrentIndex1: '',
  453. // ----------------------------------事件分类柱状----------------------------------------
  454. eventKind: {},
  455. showEventKind: false,
  456. // ----------------------------------上报排行----------------------------------------
  457. reportList: {
  458. data: []
  459. },
  460. /** ----------------------------------weosocket开始------------------------------------- */
  461. weosocket: false,
  462. websock: '',
  463. setIntervalWesocketPush: null,
  464. websockSid: {
  465. userId: '',
  466. eventTypeDl: '',
  467. eventType: '',
  468. },
  469. /** ----------------------------------weosocket结束------------------------------------- */
  470. /** ----------------------------------摄像头预览开始------------------------------------- */
  471. activePanel: 'key1',
  472. isLogin: false,
  473. cameraParams: [],
  474. ws: null,
  475. /** ----------------------------------摄像头预览结束------------------------------------- */
  476. markersList: [], //点位列表
  477. cameraList: [] ,//摄像头列表
  478. title:'',
  479. eventDlType:[],
  480. eventXlType:[],
  481. /** ----------------------------------定位功能-----------------------------------------*/
  482. visible_dw: false,
  483. positioning: {
  484. lon: "",
  485. lat: ""
  486. },
  487. /** ----------------------------------定位功能-----------------------------------------*/
  488. thirdInput:'', // 输入框label(三级)
  489. cameraMarkersList:[],
  490. queryParams: {
  491. pageNum: 1,
  492. pageSize: 10,
  493. enterpriseName: null
  494. },
  495. cameraListName:"",
  496. totalAllCompany:0,
  497. companyList:[], // 企业列表
  498. cameraListSearch:[],
  499. cameraListSearchAll:[],
  500. regulatoryinformation:[],
  501. totalAllregulatoryinformation:0,
  502. deviceBtn:null,
  503. localMark: "She",
  504. regulatoryinformationQueryParams: {
  505. pageNum: 1,
  506. pageSize: 10,
  507. infoTitle: null,
  508. enterpriseId: null,
  509. },
  510. companyInfoNextbutton:false
  511. }
  512. },
  513. watch:{
  514. cameraListName(val) {
  515. this.cameraListSearch = [];
  516. for(let i=0;i<this.cameraListSearchAll.length;i++){
  517. if(this.cameraListSearchAll[i].cameraName.indexOf(val) !== -1){
  518. this.cameraListSearch.push(this.cameraListSearchAll[i])
  519. }
  520. }
  521. },
  522. 'queryParams.enterpriseName':function(val){
  523. this.enterpriseList(this.queryParams.pageSize, this.queryParams.pageNum, val)
  524. },
  525. 'regulatoryinformationQueryParams.infoTitle':function(val){
  526. this.getSelectRegulatoryinformationByEnterpriseId(this.regulatoryinformationQueryParams.pageSize, this.regulatoryinformationQueryParams.pageNum, val)
  527. },
  528. },
  529. /** ----------------------------------weosocket开始------------------------------------- */
  530. metaInfo () {
  531. return {
  532. title:this.title,
  533. meta:[{
  534. charset: "utf-8"
  535. },
  536. {
  537. name: "viewport",
  538. content: "width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
  539. }]
  540. }
  541. },
  542. /** ----------------------------------weosocket结束------------------------------------- */
  543. methods: {
  544. // 获取企业信息列表
  545. getSelectRegulatoryinformationByEnterpriseId(pageSize, pageNum) {
  546. debugger
  547. if (pageNum < 1) {
  548. this.$modal.msg('当前已是第一页')
  549. return
  550. } else if (pageNum > this.totalAllregulatoryinformation / 10 + 1) {
  551. this.$modal.msg('当前已是最后一页')
  552. return
  553. }
  554. this.regulatoryinformationQueryParams.pageSize = pageSize
  555. this.regulatoryinformationQueryParams.pageNum = pageNum
  556. selectRegulatoryinformationByEnterpriseId(this.regulatoryinformationQueryParams).then(res => {
  557. this.regulatoryinformation = res.rows
  558. this.totalAllregulatoryinformation = res.total
  559. })
  560. },
  561. showCompanyDialog(e){
  562. getRegulatoryinformation(e.id).then(res => {
  563. // 处理图片路径
  564. let attachPaths
  565. if(res.data.attachPaths){
  566. attachPaths = res.data.attachPaths.split(",")
  567. }
  568. // 处理附件路径
  569. let fileUrl
  570. if(res.data.fileUrl){
  571. fileUrl = res.data.fileUrl.split(",")
  572. fileUrl.forEach((e,idx) => {
  573. fileUrl[idx] = e.split("+")
  574. })
  575. }
  576. console.log('fileUrl',fileUrl)
  577. let detailInfo = {
  578. title:res.data.infoTitle || '',
  579. deptName:res.data.deptName || '',
  580. content:res.data.infoContent || '',
  581. attachPaths,
  582. fileUrl,
  583. videos:[],
  584. others:[]
  585. }
  586. this.$refs.companyProjectDialog.open(detailInfo)
  587. })
  588. },
  589. /**
  590. * 企业列表接口
  591. */
  592. enterpriseList(pageSize, pageNum=1){
  593. if (pageNum < 1) {
  594. this.$modal.msg('当前已是第一页')
  595. return
  596. } else if(pageNum > this.totalAllCompany/10+1){
  597. this.$modal.msg('当前已是最后一页')
  598. return;
  599. }
  600. this.queryParams.pageSize = pageSize;
  601. this.queryParams.pageNum = pageNum;
  602. enterpriseList(this.queryParams).then(res => {
  603. this.companyList = res.rows
  604. this.totalAllCompany = res.total
  605. })
  606. },
  607. toTvWall(cameraParam) {
  608. this.preview(cameraParam)
  609. },
  610. preview(cameraParam) {
  611. this.showTVWall(cameraParam.code, cameraParam.name, cameraParam.type);
  612. },
  613. showTVWall(channelCode, channelName, type) {
  614. let tvListJson = [
  615. {
  616. switchTab: "2",
  617. treeLabels: [
  618. {
  619. id: null,
  620. labelCode: "999",
  621. labelName: "电视墙",
  622. cameraType: null,
  623. parentLabelCode: "",
  624. },
  625. {
  626. id: "spcamera00010",
  627. labelCode: channelCode,
  628. labelName: channelName,
  629. cameraType: type,
  630. parentLabelCode: "999",
  631. },
  632. ],
  633. labelChannels: [
  634. {
  635. labelCode: channelCode,
  636. channelDates: [
  637. {
  638. channelCode: channelCode,
  639. channelName: channelName,
  640. channelSn: null,
  641. cameraType: type,
  642. online: "1",
  643. cameraCode: "1",
  644. },
  645. ],
  646. },
  647. ],
  648. },
  649. ];
  650. this.$refs.TVWall.showTVWall(tvListJson, [
  651. {
  652. channelId: channelCode,
  653. },
  654. ]);
  655. this.$refs.bottomMenu.showMeasure = false;
  656. this.$refs.bottomMenu.showChild = false;
  657. this.$refs.bottomMenu.showBanChild = false;
  658. this.$refs.bottomMenu.showChangChild = false;
  659. },
  660. // 查询收藏列表
  661. getCompanyList(pageSize, pageNum) {
  662. },
  663. //三级列表选择(获取列表)
  664. getDeviceList(e,idx){
  665. this.deviceBtn=idx
  666. let that = this;
  667. enterpriseById(e.id).then(res => {
  668. that.cameraListSearch = res.data.cameras
  669. that.cameraListSearchAll = res.data.cameras
  670. let cameraMarkersList = [];
  671. for (let i = 0; i < res.data.cameras.length; i++) {
  672. let markersMap = {
  673. lng: 124.59,
  674. lat: 43.02,
  675. icon: "camera",
  676. bindPopupHtml: "",
  677. click: "previewBefore",
  678. parameter: "",
  679. name: i,
  680. keepBindPopup: false,
  681. isAggregation: false,
  682. };
  683. markersMap.parameter = {
  684. code: res.data.cameras[i].cameraCode,
  685. name: res.data.cameras[i].cameraName,
  686. type: res.data.cameras[i].cameraType
  687. }
  688. markersMap.lng = res.data.cameras[i].longitude;
  689. markersMap.lat = res.data.cameras[i].latitude;
  690. markersMap.icon = "camera";
  691. markersMap.click = 'previewBefore'
  692. markersMap.bindPopupHtml = "";
  693. cameraMarkersList.push(markersMap);
  694. }
  695. setTimeout(() => {
  696. that.$refs.supermap.clearM();
  697. that.$refs.supermap.clearMRadius();
  698. that.$refs.supermap.setMarkers(cameraMarkersList);
  699. }, 3000);
  700. })
  701. that.regulatoryinformationQueryParams = {
  702. pageNum: 1,
  703. pageSize: 10,
  704. infoTitle: null,
  705. enterpriseId: e.id,
  706. },
  707. selectRegulatoryinformationByEnterpriseId(that.regulatoryinformationQueryParams).then(res => {
  708. that.regulatoryinformation = res.rows
  709. that.totalAllregulatoryinformation = res.total
  710. })
  711. },
  712. thirdDeviceHashighLighted(e){
  713. let that = this;
  714. enterpriseById(e.id).then(res => {
  715. that.toTvWall_cgq(res.data);
  716. })
  717. },
  718. toTvWall_cgq(cameraParam) {
  719. const treeLabels = [
  720. {
  721. id: null,
  722. labelCode: '999',
  723. labelName: '电视墙',
  724. cameraType: null,
  725. parentLabelCode: ''
  726. }
  727. ]
  728. const labelChannels = []
  729. for (let i in cameraParam.cameras) {
  730. treeLabels.push({
  731. id: null,
  732. labelCode: cameraParam.cameras[i].cameraCode,
  733. labelName: cameraParam.cameras[i].cameraName,
  734. cameraType: cameraParam.cameras[i].cameraType,
  735. parentLabelCode: '999'
  736. })
  737. labelChannels.push({
  738. labelCode: cameraParam.cameras[i].cameraCode,
  739. channelDates: [
  740. {
  741. channelCode: cameraParam.cameras[i].cameraCode,
  742. channelName: cameraParam.cameras[i].cameraName,
  743. channelSn: null,
  744. cameraType: cameraParam.cameras[i].cameraType,
  745. online: '1',
  746. cameraCode: '1'
  747. }
  748. ]
  749. })
  750. }
  751. const dianshiqiang = [
  752. {
  753. switchTab: '2',
  754. treeLabels: treeLabels,
  755. labelChannels: labelChannels
  756. }
  757. ]
  758. if (cameraParam.cameras.length != null) {
  759. this.$refs.TVWall.showTVWall1(
  760. cameraParam.longitude,
  761. cameraParam.latitude,
  762. dianshiqiang
  763. );
  764. }
  765. },
  766. previewBefore(cameraParam) {
  767. selectByCameraId(cameraParam.code).then(res => {
  768. this.$refs.deviceDialog.update(res.data, 'SHE')
  769. })
  770. this.$refs.deviceDialog.open(cameraParam)
  771. return
  772. this.currentCameraParam = cameraParam
  773. },
  774. getLocation(event) {
  775. this.visible_dw = !this.visible_dw
  776. if (!this.visible_dw) {
  777. this.positioning.lon = ''
  778. this.positioning.lat = ''
  779. this.$refs.supermap.clearDW()
  780. }
  781. this.$refs.supermap.setIsObtainLaAndLon(this.visible_dw)
  782. },
  783. lonAndLatQueryCamera() {
  784. if (this.positioning.lon == '' || this.positioning.lon * 1 < -180 || this.positioning.lon * 1 > 180) {
  785. this.$message.warning('经度整数部分为大于-180小于180范围,小数部分为0到15位!')
  786. return
  787. }
  788. if (this.positioning.lat == '' || this.positioning.lat * 1 < -90 || this.positioning.lat * 1 > 90) {
  789. this.$message.warning('纬度整数部分为大于-90小于90范围,小数部分为0到15位!')
  790. return
  791. }
  792. this.$refs.supermap.lonAndLatPlacement(this.positioning.lon, this.positioning.lat)
  793. const params = Object.assign({})
  794. params.longitude = this.positioning.lon;
  795. params.latitude = this.positioning.lat;
  796. params.type = '21'
  797. initByCameras(params).then(res => {
  798. if (res.data != null && res.data.length != 0) {
  799. this.$refs.TVWall.showTVWall1(this.positioning.lon, this.positioning.lat, res.data);
  800. } else {
  801. this.$message.warning('周边无摄像头信息!')
  802. }
  803. })
  804. },
  805. setPositioning(longitude, latitude) {
  806. let that = this
  807. that.positioning.lon = longitude
  808. that.positioning.lat = latitude
  809. },
  810. showDefaultImg(){
  811. let img = event.srcElement;
  812. 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=";
  813. },
  814. //初始化地图数据
  815. getSuperMapUrl(){
  816. getUserProfile().then(response => {
  817. let mapDeptId=response.mapDeptId
  818. let num = 0;
  819. if (mapDeptId == "365") {
  820. num = 0;
  821. } else if (mapDeptId == "369") {
  822. num = 1;
  823. } else if (mapDeptId == "371") {
  824. num = 2;
  825. } else if (mapDeptId == "373") {
  826. num = 3;
  827. } else if (mapDeptId == "372") {
  828. num = 4;
  829. } else if (mapDeptId == "370") {
  830. num = 5;
  831. }
  832. this.$refs.supermap.removeAllviewer(mapDeptId, -1);
  833. });
  834. },
  835. dropLocation(lat, lng, eventCode) {
  836. this.$refs.supermap.dropLocation(lat, lng)
  837. },
  838. getFirespread(eventCode) {
  839. this.$refs.eventdetailsdialog.showEventDialog(eventCode);
  840. this.$refs.eventdetailsdialog.fireControlViewList()
  841. },
  842. getCurrentDataStr() {
  843. let date = new Date()
  844. let y = date.getFullYear()
  845. let m = date.getMonth() + 1
  846. m = m < 10 ? '0' + m : m
  847. let d = date.getDate()
  848. d = d < 10 ? '0' + d : d
  849. return y + '-' + m + '-' + d
  850. },
  851. fatherMethod(dianshiqiang, longitude, latitude, item) {
  852. this.$refs.TVWalls.showTVWall(
  853. dianshiqiang, {
  854. longitude: longitude,
  855. latitude: latitude,
  856. },
  857. item
  858. );
  859. },
  860. getWeather(day) {
  861. let that = this
  862. //右侧获取天气信息
  863. getWeather({
  864. day: day
  865. }).then(res => {
  866. if (res.code == 200) {
  867. if (0==res.data.length) {
  868. this.todatWeather = false
  869. } else {
  870. this.todatWeather = true
  871. this.weatherinformationDirection = res.data[0].weatherinformationDirection
  872. this.weatherinformationHigh = res.data[0].weatherinformationHigh
  873. this.weatherinformationLevel = res.data[0].weatherinformationLevel
  874. this.weatherinformationLevelValue = res.data[0].weatherinformationLevelValue
  875. this.weatherinformationLow = res.data[0].weatherinformationLow
  876. this.weatherinformationPower = res.data[0].weatherinformationPower
  877. this.weatherinformationTemperature = res.data[0].weatherinformationTemperature
  878. this.weatherinformationTime = res.data[0].weatherinformationTime
  879. this.weatherinformationWeather = res.data[0].weatherinformationWeather
  880. }
  881. } else {
  882. this.todatWeather = false
  883. }
  884. })
  885. },
  886. getSupermap(day, loading) {
  887. let that = this
  888. getNearEvent('', '', day, loading, that.eventTypeIdDl, that.eventTypeId).then(res => {
  889. that.markersList = [];
  890. if (res.data != null && res.data.length > 0) {
  891. for (let i = 0; i < res.data.length; i++) {
  892. let markersMap = {
  893. lng: 124.59,
  894. lat: 43.02,
  895. icon: 'marker',
  896. bindPopupHtml: '',
  897. click: '',
  898. parameter: '',
  899. keepBindPopup: false,
  900. isAggregation: true
  901. }
  902. // if (res.data.length > 200) {
  903. // markersMap.isAggregation = true
  904. // }
  905. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount == 0) {
  906. markersMap.click = 'showEventDialog'
  907. markersMap.icon = 'sj-icon-map-xinshangbao'
  908. }
  909. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount > 0) {
  910. markersMap.click = 'showEventDialog'
  911. markersMap.icon = 'sj-icon-map-cuiban'
  912. } else if (res.data[i].eventStatusValue == 'forest_event_status_2') {
  913. markersMap.click = 'showEventDialog'
  914. markersMap.icon = 'sj-icon-map-qianshou'
  915. markersMap.isAggregation = false
  916. } else if (res.data[i].eventStatusValue == 'forest_event_status_5') {
  917. markersMap.click = 'showEventDialog'
  918. markersMap.icon = 'sj-icon-map-banjie'
  919. markersMap.isAggregation = false
  920. } else if (res.data[i].eventStatusValue == 'forest_event_status_6') {
  921. markersMap.click = 'showEventDialog'
  922. markersMap.icon = 'sj-icon-map-guidang'
  923. } else if (res.data[i].eventStatusValue == 'forest_event_status_7') {
  924. markersMap.click = 'showEventDialog'
  925. markersMap.icon = 'sj-icon-map-queren'
  926. }
  927. markersMap.parameter = res.data[i].eventCode
  928. markersMap.lng = res.data[i].longitude
  929. markersMap.lat = res.data[i].latitude
  930. markersMap.bindPopupHtml = '<div class="map-tip">' +
  931. // '<span>' +
  932. // ' <div class="d-l-con">' +
  933. // ' <div class="d-l-l-text">' +
  934. // ' <h4>经纬度:' + res.data[i].longitude + ',' + res.data[i].latitude + '</h4>' +
  935. // ' </div>' +
  936. // ' </div>' +
  937. // ' </span>' +
  938. '<span>' +
  939. ' <div class="d-l-con">' +
  940. ' <div class="d-l-l-text">' +
  941. ' <h4>事件名称:' + res.data[i].eventName + '</h4>' +
  942. ' </div>' +
  943. ' </div>' +
  944. ' </span>' +
  945. '<span>' +
  946. ' <div class="d-l-con">' +
  947. ' <div class="d-l-l-text">' +
  948. ' <h4>事件时间:' + res.data[i].createTime + '</h4>' +
  949. ' </div>' +
  950. ' </div>' +
  951. ' </span>';
  952. if (res.data[i].pictureType == 'image' && res.data[i].picturePath != null && res.data[i]
  953. .picturePath != '') {
  954. markersMap.bindPopupHtml += '<span>' +
  955. ' <div class="d-l-con">' +
  956. ' <div class="d-l-l-text">' +
  957. '<img src="' + res.data[i].picturePath + '" style="width: 150px;height: 100px"/>' +
  958. ' </div>' +
  959. ' </div>' +
  960. ' </span>'
  961. }
  962. markersMap.bindPopupHtml += '</div>'
  963. that.markersList.push(markersMap)
  964. }
  965. setTimeout(() => {
  966. that.$refs.supermap.clearM()
  967. that.$refs.supermap.clearMRadius();
  968. that.$refs.supermap.setMarkers(that.markersList)
  969. }, 3000)
  970. } else {
  971. setTimeout(() => {
  972. that.$refs.supermap.clearM()
  973. that.$refs.supermap.clearMRadius();
  974. }, 3000)
  975. }
  976. this.canSelectDate = true
  977. })
  978. },
  979. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  980. bottomMenuList() {
  981. this.$refs.bottomMenu.selectTaskList() //获取任务列表
  982. this.$refs.bottomMenu.selectMessageList() //获取消息列表
  983. this.$refs.bottomMenu.linBanTreeselect() //查询林班层级树结构
  984. this.$refs.bottomMenu.deptTreeselect() //查询林场部门树结构
  985. },
  986. showDialog(click) {
  987. console.log(click)
  988. if (click == 'eventLocation') {
  989. this.$refs.eventLocation.showEventLocation()
  990. this.$refs.supermap.isEditableLayers = false
  991. this.$refs.bottomMenu.showChild = false
  992. this.$refs.bottomMenu.showBanChild = false
  993. this.$refs.bottomMenu.showMeasure = false
  994. this.$refs.bottomMenu.showChangChild = false
  995. } else if (click == 'editableLayers') {
  996. this.$refs.bottomMenu.showChild = false
  997. this.$refs.bottomMenu.showBanChild = false
  998. this.$refs.bottomMenu.showChangChild = false
  999. if (!this.$refs.bottomMenu.showMeasure) {
  1000. this.$refs.bottomMenu.showMeasure = true
  1001. } else {
  1002. this.$refs.bottomMenu.showMeasure = false
  1003. }
  1004. } else if (click == 'layerSwitching') {
  1005. this.$refs.supermap.isEditableLayers = false
  1006. this.$refs.bottomMenu.showBanChild = false
  1007. this.$refs.bottomMenu.showMeasure = false
  1008. this.$refs.bottomMenu.showChangChild = false
  1009. if (!this.$refs.bottomMenu.showChild) {
  1010. this.$refs.bottomMenu.showChild = true
  1011. } else {
  1012. this.$refs.bottomMenu.showChild = false
  1013. }
  1014. } else if (click == 'TVWall') {
  1015. console.log("this.$refs.TVWall=", this.$refs.TVWall)
  1016. this.$refs.TVWall.showTVWall();
  1017. this.$refs.supermap.isEditableLayers = false
  1018. this.$refs.bottomMenu.showChild = false
  1019. this.$refs.bottomMenu.showMeasure = false
  1020. this.$refs.bottomMenu.showBanChild = false
  1021. this.$refs.bottomMenu.showChangChild = false
  1022. } else if (click == 'wrj') {
  1023. this.$refs.wrj.showWrj();
  1024. this.$refs.supermap.isEditableLayers = false
  1025. this.$refs.bottomMenu.showChild = false
  1026. this.$refs.bottomMenu.showBanChild = false
  1027. this.$refs.bottomMenu.showMeasure = false
  1028. this.$refs.bottomMenu.showChangChild = false
  1029. } else if (click == 'forestban') {
  1030. this.$refs.supermap.isEditableLayers = false
  1031. this.$refs.bottomMenu.showChild = false
  1032. this.$refs.bottomMenu.showChangChild = false
  1033. this.$refs.bottomMenu.showMeasure = false
  1034. if (!this.$refs.bottomMenu.showBanChild) {
  1035. this.$refs.bottomMenu.showBanChild = true
  1036. } else {
  1037. this.$refs.bottomMenu.showBanChild = false
  1038. }
  1039. } else if (click == 'forestchang') {
  1040. this.$refs.supermap.isEditableLayers = false
  1041. this.$refs.bottomMenu.showBanChild = false
  1042. this.$refs.bottomMenu.showMeasure = false
  1043. this.$refs.bottomMenu.showChild = false
  1044. if (!this.$refs.bottomMenu.showChangChild) {
  1045. this.$refs.bottomMenu.showChangChild = true
  1046. } else {
  1047. this.$refs.bottomMenu.showChangChild = false
  1048. }
  1049. }
  1050. },
  1051. //选择图层
  1052. choseLayerSwitching(url, isClear) {
  1053. this.$refs.supermap.layerSwitching(url, isClear)
  1054. },
  1055. //选择图层(传递数组)
  1056. choseLayerSwitchingList(urlList) {
  1057. this.$refs.supermap.layerSwitchingList(urlList)
  1058. },
  1059. //选择图层(传递数组) 带数据
  1060. choseLayerSwitchingList_Data(urlList) {
  1061. this.$refs.supermap.layerSwitchingList_Data(urlList)
  1062. },
  1063. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  1064. },
  1065. }
  1066. </script>
  1067. <style rel="stylesheet/scss" lang="scss" scoped>
  1068. @import '@/assets/styles/base.scss';
  1069. .highlightedBtn{
  1070. background: url('~@/assets/images/video-plaza/highLightBtn.png') 0 0 no-repeat; /* 高亮背景 */
  1071. background-size: cover;
  1072. }
  1073. .notHighlightedBtn{
  1074. background: none;
  1075. }
  1076. .third_contain{
  1077. overflow: hidden;
  1078. overflow-y: scroll;
  1079. width: 95%;
  1080. height: 100%;
  1081. padding-left:18px;
  1082. ::v-deep .el-button{
  1083. width: 70px;
  1084. height: 100%;
  1085. margin-left: 0 !important;
  1086. >span{
  1087. display: inline-block;
  1088. width: 100%;
  1089. text-align: center;
  1090. }
  1091. >span >span{
  1092. left: 0 !important;
  1093. display: inline-block;
  1094. width: 100%;
  1095. text-align: center;
  1096. }
  1097. }
  1098. ::v-deep .el-button:not(:nth-child(1)){
  1099. }
  1100. .thirdDevice_icon{
  1101. width: 10%;
  1102. margin: 1.7% 15px 0 2%;
  1103. height: 70%;
  1104. cursor: pointer;
  1105. }
  1106. }
  1107. .paging {
  1108. height: 4%;
  1109. padding: 0rem .3rem;
  1110. display: flex;
  1111. justify-content: center;
  1112. align-content: center;
  1113. span {
  1114. color: #2bacf7;
  1115. display: flex;
  1116. align-items: center;
  1117. padding: 0 1rem;
  1118. }
  1119. button {
  1120. width: 70px;
  1121. padding: 0 0.3rem;
  1122. height: 1.5rem;
  1123. background-color: #112543;
  1124. color: #2bacf7;
  1125. border: 1px solid #33467f;
  1126. }
  1127. button:hover {
  1128. padding: 0 0.3rem;
  1129. height: 1.5rem;
  1130. background-color: #112543;
  1131. color: #0ff7c5;
  1132. border: 1px solid #1d657f;
  1133. }
  1134. }
  1135. .comPaging{
  1136. position: absolute;
  1137. bottom: 0%;
  1138. right: 5%;
  1139. }
  1140. .thirdInputModel{
  1141. margin-top: 20px;
  1142. // margin-left: 8%;
  1143. // width: 95%;
  1144. }
  1145. .sp_sbg{
  1146. overflow: hidden;
  1147. overflow-y: scroll;
  1148. width: 100%;
  1149. height: 80%;
  1150. .sp_sbg_div{
  1151. background-color: rgb(35, 76, 172,0.2);
  1152. margin: 5px 0px;
  1153. border-radius: 5px;
  1154. .el-button{
  1155. background: none;
  1156. outline: 0px;
  1157. border: 0px;
  1158. }
  1159. }
  1160. .sp_sbg_div.on{
  1161. background-color: rgb(35, 76, 172,0.4);
  1162. .el-button{
  1163. span{
  1164. color: #01FBFE!important;
  1165. text-shadow: 0px 0px 3px #01FBFE;
  1166. }
  1167. }
  1168. }
  1169. }
  1170. .sip_img{
  1171. opacity: 0.8;
  1172. }
  1173. .sip_imgon{
  1174. opacity: 1;
  1175. box-shadow: 0px 5px 5px #0b3555;
  1176. }
  1177. .thirdHighlightedBtn{
  1178. background: url('~@/assets/images/video-plaza/camera1_on.png') 0 0 no-repeat; /* 高亮背景 */
  1179. background-size: 100% 100%;
  1180. }
  1181. .thirdDevice_icon{
  1182. width: 10%;
  1183. margin: 1.7% 15px 0 2%;
  1184. height: 70%;
  1185. cursor: pointer;
  1186. }
  1187. .container{
  1188. width:98%;
  1189. height:70%;
  1190. position: relative;
  1191. left: 1%;
  1192. z-index: 20;
  1193. background: url('~@/assets/images/video-plaza/bg-sl.png') 0 0 no-repeat; /* 高亮背景 */
  1194. border-bottom: 1px solid #1b497d;
  1195. border-right: 1px solid #1b497d;
  1196. }
  1197. .container1{
  1198. width:48%;
  1199. height:95%;
  1200. position: relative;
  1201. left: 1%;
  1202. z-index: 20;
  1203. background: url('~@/assets/images/video-plaza/bg-sl.png') 0 0 no-repeat; /* 高亮背景 */
  1204. border-bottom: 1px solid #1b497d;
  1205. border-right: 1px solid #1b497d;
  1206. .listItem{
  1207. cursor: pointer;
  1208. }
  1209. }
  1210. .topBar{
  1211. position: absolute;
  1212. top: 0;
  1213. z-index: 99;
  1214. width: 100%;
  1215. height: 4%;
  1216. text-indent: 23px;
  1217. line-height: 1.1;
  1218. color: #fff;
  1219. font-size: 18px;
  1220. font-weight: 700;
  1221. background: url('~@/assets/images/video-plaza/rightBar.png') 0 0 no-repeat
  1222. }
  1223. .mainContainer{
  1224. overflow: hidden scroll;
  1225. position: absolute;
  1226. width: 90%;
  1227. height: 80%;
  1228. margin: 7% auto auto 5%;
  1229. }
  1230. .listItem{
  1231. display: flex;
  1232. justify-content: space-around;
  1233. height: 9%;
  1234. width: 100%;
  1235. margin: 0 auto;
  1236. }
  1237. .listItem:not(:nth-child(1)){
  1238. margin-top: 6%;
  1239. }
  1240. .itemPic{
  1241. width: 24%;
  1242. height: 100%;
  1243. }
  1244. .itemArea{
  1245. font-size: 15px;
  1246. white-space: nowrap;
  1247. width: 73%;
  1248. overflow: hidden;
  1249. text-overflow: ellipsis;
  1250. margin:auto auto auto 2%;
  1251. color: #fff;
  1252. }
  1253. .itemArea:hover {
  1254. white-space: normal;
  1255. overflow: visible;
  1256. }
  1257. .itemArea >h3{
  1258. font-size: 20px;
  1259. overflow: hidden;
  1260. text-overflow: ellipsis;
  1261. white-space: nowrap;
  1262. }
  1263. .itemArea >span{
  1264. font-size: 16px;
  1265. }
  1266. .inputModel{
  1267. width: 100%;
  1268. margin-top: 14%;
  1269. padding: 0 5%;
  1270. }
  1271. ::v-deep .el-input__inner{
  1272. background-color: #0e3271ba ;
  1273. box-shadow: inset 0 0 10px 2px #1b497d;
  1274. border: 1px solid #205b8b;
  1275. color: white;
  1276. }
  1277. </style>
  1278. <style lang="scss">
  1279. @import '@/assets/styles/base.scss';
  1280. .el-table__cell{
  1281. cursor: pointer;
  1282. }
  1283. .is-leaf{
  1284. cursor: default; // 更多标题指针默认
  1285. }
  1286. .is-dark{
  1287. display: none !important;
  1288. }
  1289. .bottomRight {
  1290. .el-table .el-table__header-wrapper th,
  1291. .el-table .el-table__fixed-header-wrapper th {
  1292. background-color: $searchBG;
  1293. }
  1294. .el-table td.el-table__cell,
  1295. .el-table th.el-table__cell.is-leaf {
  1296. border-bottom: 1px $tableBorder;
  1297. }
  1298. .el-table--border,
  1299. .el-table--border::after {
  1300. border: 1px $tableBorder;
  1301. background-color: $searchBG
  1302. }
  1303. .el-table--border {
  1304. .el-table--group {
  1305. border: 1px $tableBorder;
  1306. }
  1307. .el-table__cell {
  1308. border-right: 1px $tableBorder;
  1309. ;
  1310. }
  1311. }
  1312. .el-table::before {
  1313. background: $searchBG;
  1314. }
  1315. .el-table {
  1316. background: $searchBG;
  1317. color: $inBlue;
  1318. thead {}
  1319. tr {
  1320. background: $searchBG;
  1321. }
  1322. td {
  1323. text-align: center;
  1324. }
  1325. .el-table__header-wrapper {
  1326. th {
  1327. color: $inBlue;
  1328. font-size: .8rem;
  1329. }
  1330. }
  1331. thead.is-group {
  1332. .el-table__cell {
  1333. text-align: center;
  1334. background: $searchBG;
  1335. border-bottom: 1px $tableBorder;
  1336. border-right: 1px $tableBorder;
  1337. padding: 0;
  1338. font-weight: normal;
  1339. }
  1340. }
  1341. }
  1342. .el-table__empty-block {
  1343. min-height: auto;
  1344. }
  1345. .el-table__empty-text {
  1346. line-height: 30px;
  1347. }
  1348. .el-table__header {
  1349. width: auto !important
  1350. }
  1351. .el-table__empty-block {
  1352. width: auto !important
  1353. }
  1354. .el-table__body-wrapper {
  1355. .el-table__body {
  1356. width: auto !important
  1357. }
  1358. }
  1359. .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
  1360. background-color: #0f3655;
  1361. }
  1362. }
  1363. .sj-layer-switch {
  1364. width: 100%;
  1365. position: fixed;
  1366. bottom: 4rem;
  1367. display: flex;
  1368. // left: 21%;
  1369. z-index: 10;
  1370. justify-content: space-between;
  1371. }
  1372. .leader-tcqh {
  1373. width: fit-content;
  1374. height: fit-content;
  1375. text-align: center;
  1376. color: #fff !important;
  1377. font-size: 0.6rem;
  1378. margin-right: 1rem;
  1379. display: flex;
  1380. flex-direction: column;
  1381. img {
  1382. margin-bottom: 3px;
  1383. }
  1384. p {
  1385. font-size: 16px;
  1386. }
  1387. }
  1388. .leader-tcqh img {
  1389. width: 50px;
  1390. margin: 0 auto;
  1391. }
  1392. .leader-tcqh:hover {
  1393. color: #fff !important;
  1394. }
  1395. .tk-close {
  1396. width: 1.3rem;
  1397. height: 1.3rem;
  1398. color: #346ebc;
  1399. font-size: 1.3rem;
  1400. position: absolute;
  1401. right: 0.8rem;
  1402. top: 0.8rem;
  1403. cursor: pointer;
  1404. }
  1405. </style>