forest.vue 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808
  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">
  10. <!-- 1 基本情况 -->
  11. <div class="forthis">
  12. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  13. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  14. <div class="this-title">
  15. <span>基本情况</span>
  16. <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;" />
  17. </div>
  18. <div class="i-list-con h-14">
  19. <div class="d-l-con no_hover">
  20. <div class="d-l-l-text w-100p no-weight">
  21. <h4 class="line-h-1 w-100p" v-html="forestInfo">{{ forestInfo }}</h4>
  22. </div>
  23. </div>
  24. </div>
  25. </dv-border-box-13>
  26. </div>
  27. <!-- 2 事件统计-->
  28. <div class="forthis">
  29. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  30. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  31. <div class="i-list-con h-29-5">
  32. <div class="d-l-con no_hover">
  33. <div class="event-count">
  34. <div class="count-number">{{ totalStr.charAt(0) }}</div>
  35. <div class="count-number">{{ totalStr.charAt(1) }}</div>
  36. <div class="count-number">{{ totalStr.charAt(2) }}</div>
  37. <div class="count-number">{{ totalStr.charAt(3) }}</div>
  38. <div class="count-number">{{ totalStr.charAt(4) }}</div>
  39. <div class="count-number">{{ totalStr.charAt(5) }}</div>
  40. <dv-decoration-5 style="width:81%;height:15px;position: absolute; top:4.2rem;z-index: 0; " />
  41. </div>
  42. </div>
  43. <div class="d-l-con-icon no_hover">
  44. <div class="icon-con w-33 flex-d t-a-center">
  45. <dv-decoration-9
  46. style="width: 5.5rem;height: 5.5rem; color:#16e29e;font-size: 1rem;font-weight: bolder;">
  47. {{ newReport_pre }}%
  48. </dv-decoration-9>
  49. <div class="e-state"
  50. :style="{ 'background-image': `url(${require('@/assets/images/integrated/state-bg.png')})` }">
  51. <span>新上报</span> <span>{{ newReport }}</span>
  52. </div>
  53. </div>
  54. <div class="icon-con w-33 flex-d t-a-center">
  55. <dv-decoration-9
  56. style="width: 5.5rem;height: 5.5rem; color:#f18425;font-size: 1rem;font-weight: bolder;">
  57. {{ readySure_pre }}%
  58. </dv-decoration-9>
  59. <div class="e-state"
  60. :style="{ 'background-image': `url(${require('@/assets/images/integrated/state-bg.png')})` }">
  61. <span>处理中</span> <span>{{ readySure }}</span>
  62. </div>
  63. </div>
  64. <div class="icon-con w-33 flex-d t-a-center">
  65. <dv-decoration-9
  66. style="width: 5.5rem;height: 5.5rem; color:#9179f1;font-size: 1rem;font-weight: bolder;">
  67. {{ readyFinish_pre }}%
  68. </dv-decoration-9>
  69. <div class="e-state"
  70. :style="{ 'background-image': `url(${require('@/assets/images/integrated/state-bg.png')})` }">
  71. <span>已完成</span> <span>{{ readyFinish }}</span>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="d-l-con no_hover">
  76. <div id="chart-event-ai" style="width: 100%;height:6vh;"></div>
  77. </div>
  78. </div>
  79. </dv-border-box-13>
  80. </div>
  81. <!-- 3 组织机构 -->
  82. <div class="forthis">
  83. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  84. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  85. <div class="i-list-con h-27" style="padding-left: 1rem;">
  86. <div class="d-l-con-icon">
  87. <div class="icon-con" :class="{on:iconCurrentIndex==item.type}"
  88. v-for="(item,index) in resourcesList" v-on:click="indentleftSetMarkers(item.type, item.searchName)">
  89. <!--v-on:click="indentleftSetMarkers(item.resourceTable)">-->
  90. <div class="iconfont icon icon-normal" :class="item.icon"></div>
  91. <div class="icon-text">
  92. <h6>{{ item.num }}</h6>
  93. <!--<h6>{{ item.count }}</h6>-->
  94. <h5>{{ item.name }}</h5>
  95. <!--<h5>{{ item.resourceName }}</h5>-->
  96. </div>
  97. </div>
  98. </div>
  99. <!-- <el-collapse accordion>
  100. <el-collapse-item v-for="(item, index) in forestFarm" :key="index">
  101. <template slot="title">
  102. <div class="d-l-con sj-collapse" :class="{ on: listCurrentIndex1 == item.deptId }"
  103. v-on:click="selectCameraByDeptId(item.deptId)">
  104. <div class="d-l-l-text">
  105. <h4 class="collapse-title">{{ item.deptName }}</h4>
  106. </div>
  107. <div class="d-l-l-count">{{ item.eventCount }}</div>
  108. </div>
  109. </template>
  110. </el-collapse-item>
  111. </el-collapse> -->
  112. </div>
  113. </dv-border-box-13>
  114. </div>
  115. </div>
  116. <!-- 地图 -->
  117. <!-- <supermap ref="supermap" style="width: 100%;height: 100vh;" class="indexSupermapClass" :mapDiv="'forestMap'"-->
  118. <!-- :dynamicPlotting="false" :mapSite="{ doubleClickZoom: false }" :codes="['9fa5']" :isSideBySide="false"-->
  119. <!-- @showEventDialog="showEventDialog"></supermap>-->
  120. <supermap ref="supermap" style="width: 100%;height: 100vh;" @showEventDialog="showEventDialog" :showLayer="true" @fatherMethod="fatherMethod"></supermap>
  121. <!-- 右侧 -->
  122. <div class="rightbar rightbar-index" ref="right">
  123. <div class="right-item1">
  124. <!-- 天气 -->
  125. <div class="forthis">
  126. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)">
  127. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  128. <div class="i-list-con small-bottom-margin h-18">
  129. <el-row :gutter="20" v-if="todatWeather">
  130. <el-col :span="9">
  131. <div class="weather-img">
  132. <img v-if="weatherinformationWeather == 1" src="../assets/images/integrated/weather/qing-1.png">
  133. <img v-if="weatherinformationWeather == 2" src="../assets/images/integrated/weather/duoyun-2.png">
  134. <img v-if="weatherinformationWeather == 3" src="../assets/images/integrated/weather/yin-3.png">
  135. <img v-if="weatherinformationWeather == 4" src="../assets/images/integrated/weather/zhenyu-4.png">
  136. <img v-if="weatherinformationWeather == 5"
  137. src="../assets/images/integrated/weather/leizhenyu-5.png">
  138. <img v-if="weatherinformationWeather == 6"
  139. src="../assets/images/integrated/weather/leizhenyubingbao-6.png">
  140. <img v-if="weatherinformationWeather == 7"
  141. src="../assets/images/integrated/weather/yujiaxue-7.png">
  142. <img v-if="weatherinformationWeather == 8" src="../assets/images/integrated/weather/xiaoyu-8.png">
  143. <img v-if="weatherinformationWeather == 9 || weatherinformationWeather == 22"
  144. src="../assets/images/integrated/weather/zhongyu-9.png">
  145. <img v-if="weatherinformationWeather == 10 || weatherinformationWeather == 23"
  146. src="../assets/images/integrated/weather/dayu-10.png">
  147. <img v-if="weatherinformationWeather == 11 || weatherinformationWeather == 24"
  148. src="../assets/images/integrated/weather/baoyu-11.png">
  149. <img v-if="weatherinformationWeather == 12 || weatherinformationWeather == 25"
  150. src="../assets/images/integrated/weather/dabaoyu-12.png">
  151. <img v-if="weatherinformationWeather == 13 || weatherinformationWeather == 26"
  152. src="../assets/images/integrated/weather/tedabaoyu-13.png">
  153. <img v-if="weatherinformationWeather == 14"
  154. src="../assets/images/integrated/weather/zhenxue-14.png">
  155. <img v-if="weatherinformationWeather == 15"
  156. src="../assets/images/integrated/weather/xiaoxue-15.png">
  157. <img v-if="weatherinformationWeather == 16 || weatherinformationWeather == 27"
  158. src="../assets/images/integrated/weather/zhongxue-16.png">
  159. <img v-if="weatherinformationWeather == 17 || weatherinformationWeather == 28"
  160. src="../assets/images/integrated/weather/daxue-17.png">
  161. <img v-if="weatherinformationWeather == 18 || weatherinformationWeather == 29"
  162. src="../assets/images/integrated/weather/baoxue-18.png">
  163. <img v-if="weatherinformationWeather == 19" src="../assets/images/integrated/weather/wu-19.png">
  164. <img v-if="weatherinformationWeather == 20"
  165. src="../assets/images/integrated/weather/dongyu-20.png">
  166. <img v-if="weatherinformationWeather == 21"
  167. src="../assets/images/integrated/weather/shachenbao-21.png">
  168. <img v-if="weatherinformationWeather == 30"
  169. src="../assets/images/integrated/weather/fuchen-30.png">
  170. <img v-if="weatherinformationWeather == 31"
  171. src="../assets/images/integrated/weather/yangsha-31.png">
  172. <img v-if="weatherinformationWeather == 32"
  173. src="../assets/images/integrated/weather/qiangshachenbao-32.png">
  174. <span v-if="weatherinformationWeather == 1">晴</span>
  175. <span v-if="weatherinformationWeather == 2">多云</span>
  176. <span v-if="weatherinformationWeather == 3">阴</span>
  177. <span v-if="weatherinformationWeather == 4">阵雨</span>
  178. <span v-if="weatherinformationWeather == 5">雷阵雨</span>
  179. <span v-if="weatherinformationWeather == 6">雷阵雨伴有冰雹</span>
  180. <span v-if="weatherinformationWeather == 7">雨夹雪</span>
  181. <span v-if="weatherinformationWeather == 8">小雨</span>
  182. <span v-if="weatherinformationWeather == 9">中雨</span>
  183. <span v-if="weatherinformationWeather == 10">大雨</span>
  184. <span v-if="weatherinformationWeather == 11">暴雨</span>
  185. <span v-if="weatherinformationWeather == 12">大暴雨</span>
  186. <span v-if="weatherinformationWeather == 13">特大暴雨</span>
  187. <span v-if="weatherinformationWeather == 14">阵雪</span>
  188. <span v-if="weatherinformationWeather == 15">小雪</span>
  189. <span v-if="weatherinformationWeather == 16">中雪</span>
  190. <span v-if="weatherinformationWeather == 17">大雪</span>
  191. <span v-if="weatherinformationWeather == 18">暴雪</span>
  192. <span v-if="weatherinformationWeather == 19">雾</span>
  193. <span v-if="weatherinformationWeather == 20">冻雨</span>
  194. <span v-if="weatherinformationWeather == 21">沙尘暴</span>
  195. <span v-if="weatherinformationWeather == 22">小雨—中雨</span>
  196. <span v-if="weatherinformationWeather == 23">中雨—大雨</span>
  197. <span v-if="weatherinformationWeather == 24">大雨—暴雨</span>
  198. <span v-if="weatherinformationWeather == 25">暴雨—大暴雨</span>
  199. <span v-if="weatherinformationWeather == 26">大暴雨—特大暴雨</span>
  200. <span v-if="weatherinformationWeather == 27">小雪—中雪</span>
  201. <span v-if="weatherinformationWeather == 28">中雪—大雪</span>
  202. <span v-if="weatherinformationWeather == 29">大雪—暴雪</span>
  203. <span v-if="weatherinformationWeather == 30">浮尘</span>
  204. <span v-if="weatherinformationWeather == 31">扬沙</span>
  205. <span v-if="weatherinformationWeather == 32">强沙尘暴</span>
  206. </div>
  207. </el-col>
  208. <el-col :span="15">
  209. <div class="weather-info">
  210. <ul>
  211. <li>风力:{{ weatherinformationPower }}级</li>
  212. <li>低温:{{ weatherinformationLow }}℃</li>
  213. <li v-if="weatherinformationDirection == 1">风向:东风</li>
  214. <li v-if="weatherinformationDirection == 2">风向:东南风</li>
  215. <li v-if="weatherinformationDirection == 3">风向:南风</li>
  216. <li v-if="weatherinformationDirection == 4">风向:西南风</li>
  217. <li v-if="weatherinformationDirection == 5">风向:西风</li>
  218. <li v-if="weatherinformationDirection == 6">风向:西北风</li>
  219. <li v-if="weatherinformationDirection == 7">风向:北风</li>
  220. <li v-if="weatherinformationDirection == 8">风向:东北风</li>
  221. <li>高温:{{ weatherinformationHigh }}℃</li>
  222. <li>火险:{{ weatherinformationLevelValue }}
  223. </li>
  224. <li>湿度:{{ weatherinformationTemperature }}</li>
  225. </ul>
  226. </div>
  227. </el-col>
  228. </el-row>
  229. <el-row :gutter="20" v-else>
  230. <el-col :span="24">
  231. <div class="weather-img">
  232. 暂无天气信息!
  233. </div>
  234. </el-col>
  235. </el-row>
  236. <div class="firestate" v-if="todatWeather">
  237. <div
  238. :class="weatherinformationLevel == 'forest_weatherinformation_level_1' ? 'state-block1 state-on' : 'state-block1'">
  239. </div>
  240. <div
  241. :class="weatherinformationLevel == 'forest_weatherinformation_level_2' ? 'state-block2 state-on' : 'state-block2'">
  242. </div>
  243. <div
  244. :class="weatherinformationLevel == 'forest_weatherinformation_level_3' ? 'state-block3 state-on' : 'state-block3'">
  245. </div>
  246. <div
  247. :class="weatherinformationLevel == 'forest_weatherinformation_level_4' ? 'state-block4 state-on' : 'state-block4'">
  248. </div>
  249. <div
  250. :class="weatherinformationLevel == 'forest_weatherinformation_level_5' ? 'state-block5 state-on' : 'state-block5'">
  251. </div>
  252. </div>
  253. </div>
  254. </dv-border-box-13>
  255. </div>
  256. <!-- 曝光台 -->
  257. <div class="forthis">
  258. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  259. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  260. <div class="this-title">
  261. <span>超期事件</span>
  262. <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;" />
  263. </div>
  264. <div class="i-list-con small-bottom-margin h-18">
  265. <div class="d-l-con padding-box nowrap" v-for="(item, index) in exposureStageList">
  266. <div class="bgt-state">
  267. <div class="bgt-state-frequency">{{ item.urgeCount }}</div>
  268. <div class="bgt-state-minute">{{ item.timeDiff }}分钟</div>
  269. </div>
  270. <div class="bgt-info">
  271. <div class="bgt-info-name">{{ item.eventName }}</div>
  272. <div class="bgt-info-place">
  273. <ul>
  274. <li>{{ item.deptNames }}</li>
  275. </ul>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </dv-border-box-13>
  281. </div>
  282. <!-- 事件列表 -->
  283. <div class="forthis">
  284. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  285. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  286. <div class="this-title">
  287. <span>事件列表</span>
  288. <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;" />
  289. </div>
  290. <div class="sj-search">
  291. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="eventSearch"
  292. @change="getEventList(calendarDay, 10, 1, eventSearch)">
  293. </el-input>
  294. </div>
  295. <div class="i-list-con small-bottom-margin" style="height: 24vh;">
  296. <div class="d-l-con padding-box nowrap" v-for="(item, index) in eventList"
  297. @click="dropLocation(item.latitude, item.longitude,item.eventCode)" data-html2canvas-ignore>
  298. <div class="bgt-img">
  299. <img v-if="item.picturePath != null && item.picturePath != '' && item.pictureType == 'image'"
  300. :src="item.picturePath" style="width: 93px;height: 64px" loading="lazy" />
  301. <img v-else src="../assets/images/integrated/event-img-sub.png" style="width: 93px;height: 64px" />
  302. </div>
  303. <div class="bgt-info">
  304. <div v-if="item.eventStatusValue == 'forest_event_status_1' && item.urgeCount == 0"
  305. class="event-state-sb">
  306. <i class="el-icon-caret-left"></i>
  307. <div class="event-list-state-sb">
  308. 新上报
  309. </div>
  310. </div>
  311. <div v-if="item.eventStatusValue == 'forest_event_status_1' && item.urgeCount > 0"
  312. class="event-state-cb">
  313. <i class="el-icon-caret-left"></i>
  314. <div class="event-list-state-cb">
  315. 催办
  316. </div>
  317. </div>
  318. <div v-if="item.eventStatusValue == 'forest_event_status_2'" class="event-state-qs">
  319. <i class="el-icon-caret-left"></i>
  320. <div class="event-list-state-qs">
  321. 签收
  322. </div>
  323. </div>
  324. <div v-if="item.eventStatusValue == 'forest_event_status_3'" class="event-state-wb">
  325. <i class="el-icon-caret-left"></i>
  326. <div class="event-list-state-wb">
  327. 误报
  328. </div>
  329. </div>
  330. <div v-if="item.eventStatusValue == 'forest_event_status_4'" class="event-state-cf">
  331. <i class="el-icon-caret-left"></i>
  332. <div class="event-list-state-cf">
  333. 重复
  334. </div>
  335. </div>
  336. <div v-if="item.eventStatusValue == 'forest_event_status_5'" class="event-state-bj">
  337. <i class="el-icon-caret-left"></i>
  338. <div class="event-list-state-bj">
  339. 办结
  340. </div>
  341. </div>
  342. <div v-if="item.eventStatusValue == 'forest_event_status_6'" class="event-state-gd">
  343. <i class="el-icon-caret-left"></i>
  344. <div class="event-list-state-gd">
  345. 归档
  346. </div>
  347. </div>
  348. <div v-if="item.eventStatusValue == 'forest_event_status_7'" class="event-state-qr">
  349. <i class="el-icon-caret-left"></i>
  350. <div class="event-list-state-qr">
  351. 确认
  352. </div>
  353. </div>
  354. <div class="bgt-info-name">{{ item.reportor }} {{ item.eventName }}</div>
  355. <div class="bgt-info-place">
  356. <ul>
  357. <li>{{ item.createTime }}</li>
  358. </ul>
  359. </div>
  360. </div>
  361. </div>
  362. </div>
  363. <!--分页-->
  364. <div class="paging">
  365. <el-button type="button" @click="getEventList(calendarDay, 10, pageNum - 1)">上一页
  366. </el-button>
  367. <!-- <span>第0页</span> -->
  368. <el-button type="button" @click="getEventList(calendarDay, 10, pageNum + 1)">下一页
  369. </el-button>
  370. </div>
  371. </dv-border-box-13>
  372. </div>
  373. </div>
  374. <div class="right-item2">
  375. <!-- 日历 -->
  376. <div class="forthis">
  377. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  378. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  379. <div class="i-list-con small-bottom-margin h-30">
  380. <dateChoose @selectDay="selectDay"></dateChoose>
  381. </div>
  382. </dv-border-box-13>
  383. </div>
  384. <!-- 事件分类 -->
  385. <div class="forthis">
  386. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  387. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  388. <div class="this-title" style="cursor: pointer"
  389. @click="setEventTypeId({ eventTypeIdDl: [], eventTypeId: [] })">
  390. <span>事件分类</span>
  391. <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;" />
  392. </div>
  393. <div class="i-list-con small-bottom-margin h-19">
  394. <chart v-if="showEventKind" :config="eventKind" @setEventTypeId="setEventTypeId"
  395. style="width: 90%;height: 18vh; padding:.5rem 1rem" />
  396. </div>
  397. </dv-border-box-13>
  398. </div>
  399. <!-- 上报排行 -->
  400. <div class="forthis">
  401. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
  402. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  403. <div class="this-title">
  404. <span>上报排行</span>
  405. <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;" />
  406. </div>
  407. <div class="i-list-con small-bottom-margin h-19">
  408. <dv-scroll-ranking-board :config="reportList" style="width: 100%;height: 300px; padding:.5rem 1rem" />
  409. </div>
  410. </dv-border-box-13>
  411. </div>
  412. </div>
  413. </div>
  414. <vBottomMenu ref="bottomMenu" @stopAudio="stopAudio"></vBottomMenu>
  415. </div>
  416. <audio id="resource" ref="up" :src="audioSrc" controls style="display: none;"></audio>
  417. <eventdetailsdialog ref="eventdetailsdialog" :calendarDay="calendarDay" @getEventList="getEventList"
  418. @getTodayEvents="getTodayEvents" @getFirespread="getFirespread" @getSupermap="getSupermap"></eventdetailsdialog>
  419. <firespread ref="firespread" :calendarDay="calendarDay" @getEventList="getEventList"
  420. @getTodayEvents="getTodayEvents" @showEventDialog="showEventDialog" @getSupermap="getSupermap"
  421. @showDialog="showDialog"></firespread>
  422. <eventLocation ref="eventLocation"></eventLocation>
  423. <TVWall ref="TVWall"></TVWall>
  424. <TVWalls ref="TVWalls"></TVWalls>
  425. </div>
  426. </template>
  427. <script>
  428. import dateChoose from '@/views/date.vue' //日历
  429. /** ----------------------------------weosocket开始------------------------------------- */
  430. import Cookies from 'js-cookie'
  431. /** ----------------------------------weosocket结束------------------------------------- */
  432. import {
  433. getMenuEventType,
  434. getEventPush,
  435. getBaseInfo,
  436. getTodayEvents,
  437. getDeptEventCount,
  438. getWeather,
  439. getEventList,
  440. getEventByEventType,
  441. getEventByReportorOrder,
  442. getExposureStage
  443. } from '@/api/forest'
  444. import {
  445. getNearEvent
  446. } from '@/api/event'
  447. import supermap from '@/components/supermap-2.5d' //超图
  448. // import supermapNotProcessed from '@/components/supermap' //超图
  449. // import supermapProcessed from '@/components/supermap' //超图
  450. import vheader from '@/components/v-header.vue' //一体化共用头部
  451. import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
  452. import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
  453. import TVWall from '@/components/TVWall.vue' //电视墙弹窗
  454. import TVWalls from '@/components/TVWalls.vue' //电视墙弹窗
  455. import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
  456. import firespread from '@/views/firespread.vue' //事件详情弹窗
  457. import chart from "./from/dvCapsuleChart.vue";
  458. import {
  459. getResource,
  460. getResourcePoint
  461. } from '@/api/datacenter'
  462. /** ----------------------------------摄像头预览开始------------------------------------- */
  463. import {
  464. getDahuaVideoServer
  465. } from '@/api/dahua/dahua'
  466. // import DHWs from '@/dahua/lib/DHWs'
  467. import Firespread from "./firespread";
  468. /** ----------------------------------摄像头预览结束------------------------------------- */
  469. import {
  470. selectConfigKey
  471. } from "@/api/system/config";
  472. let echarts = require('echarts')
  473. export default {
  474. components: {
  475. Firespread,
  476. supermap,
  477. chart,
  478. // supermapNotProcessed,
  479. // supermapProcessed,
  480. vheader,
  481. vBottomMenu,
  482. eventLocation,
  483. TVWall,
  484. TVWalls,
  485. dateChoose,
  486. eventdetailsdialog,
  487. firespread
  488. },
  489. created() {
  490. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  491. window.showDialog = this.showDialog
  492. window.choseLayerSwitching = this.choseLayerSwitching
  493. window.choseLayerSwitchingList = this.choseLayerSwitchingList
  494. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  495. },
  496. mounted() {
  497. this.getBaseInfo()
  498. this.getTodayEvents(this.getCurrentDataStr())
  499. this.getDeptEventCount(this.getCurrentDataStr())
  500. this.getWeather(this.getCurrentDataStr())
  501. this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
  502. this.getEventByEventType(this.getCurrentDataStr())
  503. this.getEventByReportorOrder(this.getCurrentDataStr())
  504. this.getExposureStage(this.getCurrentDataStr())
  505. this.getSupermap(this.getCurrentDataStr())
  506. this.getMenuEventType()
  507. this.getResource()
  508. /** ----------------------------------weosocket开始------------------------------------- */
  509. // this.initWebSocket()
  510. /** ----------------------------------weosocket结束------------------------------------- */
  511. this.bottomMenuList() //获取底部公共组件消息和任务
  512. },
  513. data() {
  514. return {
  515. //左侧资源
  516. resourcesList: [],
  517. iconCurrentIndex:"",
  518. markersList: [],
  519. source: [],
  520. //警报MP3文件
  521. audioSrc: require('@/assets/jingbao.mp3'),
  522. calendarDay: this.getCurrentDataStr(),
  523. //基本情况
  524. forestInfo: '', //基本情况
  525. //左侧获取事件信息统计
  526. totalStr: '000000',
  527. totalAllEvent: 0,
  528. aiTotal: '',
  529. newReport: '',
  530. otherTotal: '',
  531. readyFinish: '',
  532. readySure: '',
  533. total: '',
  534. aiTotal_pre: '',
  535. newReport_pre: '',
  536. otherTotal_pre: '',
  537. readyFinish_pre: '',
  538. readySure_pre: '',
  539. //左侧部门事件数量
  540. forestFarm: [],
  541. //右侧天气
  542. todatWeather: false,
  543. weatherinformationDirection: '',
  544. weatherinformationHigh: '',
  545. weatherinformationLevel: '',
  546. weatherinformationLevelValue: '', //火险登记中文
  547. weatherinformationLow: '',
  548. weatherinformationPower: '',
  549. weatherinformationTemperature: '',
  550. weatherinformationTime: '',
  551. weatherinformationWeather: '',
  552. //右侧曝光台
  553. exposureStageList: [],
  554. //右侧事件列表
  555. eventList: [],
  556. pageSize: 10,
  557. pageNum: 1,
  558. eventListnew: [],
  559. eventListAll: [],
  560. eventSearch: '', //事件列表搜索
  561. listCurrentIndex1: '',
  562. // ----------------------------------事件分类柱状----------------------------------------
  563. eventKind: {},
  564. showEventKind: false,
  565. // ----------------------------------上报排行----------------------------------------
  566. reportList: {
  567. data: []
  568. },
  569. /** ----------------------------------weosocket开始------------------------------------- */
  570. weosocket: false,
  571. websock: '',
  572. setIntervalWesocketPush: null,
  573. websockSid: {
  574. userId: '',
  575. eventTypeDl: '',
  576. eventType: '',
  577. },
  578. /** ----------------------------------weosocket结束------------------------------------- */
  579. /** ----------------------------------摄像头预览开始------------------------------------- */
  580. activePanel: 'key1',
  581. isLogin: false,
  582. cameraParams: [],
  583. ws: null,
  584. /** ----------------------------------摄像头预览结束------------------------------------- */
  585. markersList: [], //点位列表
  586. cameraList: [], //摄像头列表
  587. eventTypeIdDl: [],
  588. eventTypeId: []
  589. }
  590. },
  591. /** ----------------------------------weosocket开始------------------------------------- */
  592. destroyed() { //离开页面关闭Socket连接
  593. if (this.websock) {
  594. clearInterval(this.setIntervalWesocketPush)
  595. this.websock.close()
  596. this.websock = null
  597. }
  598. },
  599. /** ----------------------------------weosocket结束------------------------------------- */
  600. methods: {
  601. getResource() {
  602. let that = this
  603. //获取左侧菜单列表
  604. getResource().then(res => {
  605. that.resourcesList = res.data
  606. console.log("数据中心", that.resourcesList)
  607. //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
  608. res.data.forEach(function(data, index) {
  609. let icon = 'sj' + '-' + 'icon' + '-' + data.type.replaceAll("_", "-").replaceAll("@", "-");
  610. console.log("icon_" + (index + 1) + "=", icon);
  611. that.$set(that.resourcesList[index], 'icon', icon);
  612. })
  613. //数据自动落点开始
  614. let maxCount = 100; //落点数超过这个数的资源不落点
  615. let list = res.data;
  616. let counts = [];
  617. let points = [];
  618. let types = [];
  619. for (let i = 0; i < list.length; i++) { //获取符合要求的类型及数量
  620. if (list[i].num <= maxCount) {
  621. counts.push(list[i].num);
  622. points.push({
  623. "type": list[i].type,
  624. "count": list[i].num
  625. });
  626. types.push(list[i].type);
  627. }
  628. }
  629. for (let i = 0; i < types.length; i++) {
  630. that.indentleftSetMarkers(types[i], '所有');
  631. }
  632. //数据自动落点结束
  633. })
  634. },
  635. indentleftSetMarkers(resourceTable, name) {
  636. let that = this
  637. // 搜索框
  638. if (name == '所有') {
  639. name = undefined;
  640. } else {
  641. that.$refs.supermap.clearM()
  642. this.iconCurrentIndex = resourceTable
  643. }
  644. // 搜索类型
  645. // this.searchType = resourceTable;
  646. // that.resourceTable = resourceTable
  647. that.markersList = []
  648. that.source = []
  649. //点击左侧地图落点
  650. getResourcePoint(resourceTable, name).then(res => {
  651. that.deptGroupList = res.data.deptGroupList
  652. if (res.data.deptGroupList != null && res.data.deptGroupList.length > 0) {
  653. for (let i = 0; i < res.data.deptGroupList.length; i++) {
  654. let aa = [res.data.deptGroupList[i].deptName, res.data.deptGroupList[i].count]
  655. that.source.push(aa)
  656. }
  657. }
  658. if (res.data.resourceList != null && res.data.resourceList.length > 0) {
  659. for (let i = 0; i < res.data.resourceList.length; i++) {
  660. let markersMap = {
  661. lng: 124.59,
  662. lat: 43.02,
  663. icon: 'marker',
  664. bindPopupHtml: '',
  665. click: '',
  666. keepBindPopup: false,
  667. isAggregation: false
  668. }
  669. that.markersList.push(this.getMarkersMap(resourceTable, markersMap, res.data.resourceList[i]));
  670. // that.markersList.push(markersMap)
  671. }
  672. }
  673. if (this.showSearch == true) {
  674. this.dataChat();
  675. }
  676. that.$refs.supermap.setMarkers(that.markersList)
  677. })
  678. },
  679. getMarkersMap(resourceTable, markersMap, item) {
  680. if (resourceTable == 'centerdata_t_resources_illegal_construction') { //违建信息
  681. markersMap.icon = 'sj-icon-map-centerdata-t-resources-illegal-constructionon'
  682. markersMap.lng = (item.longitude ? item.longitude : "")
  683. markersMap.lat = (item.latitude ? item.latitude : "")
  684. markersMap.bindPopupHtml = '<div class="map-tip">' +
  685. '<span>' +
  686. ' <div class="d-l-con">' +
  687. ' <div class="d-l-l-text">' +
  688. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  689. .latitude : "") + '</h4>' +
  690. ' </div>' +
  691. ' </div>' +
  692. ' </span>' +
  693. '<span>' +
  694. ' <div class="d-l-con">' +
  695. ' <div class="d-l-l-text">' +
  696. ' <h4>名称:' + (item.name ? item.name : "") +
  697. '</h4>' +
  698. ' </div>' +
  699. ' </div>' +
  700. ' </span>' +
  701. '<span>' +
  702. ' <div class="d-l-con">' +
  703. ' <div class="d-l-l-text">' +
  704. ' <h4>违建处理负责人:' + (item.person ? item.person : "") +
  705. '</h4>' +
  706. ' </div>' +
  707. ' </div>' +
  708. ' </span>' +
  709. '<span>' +
  710. ' <div class="d-l-con">' +
  711. ' <div class="d-l-l-text">' +
  712. ' <h4>联系方式:' + (item.phone ? item.phone : "") +
  713. '</h4>' +
  714. ' </div>' +
  715. ' </div>' +
  716. ' </span></div>'
  717. } else if (resourceTable == 'centerdata_t_resources_deposit') { //矿产资源
  718. markersMap.icon = 'sj-icon-map-centerdata-t-resources-deposit'
  719. markersMap.lng = (item.longitude ? item.longitude : "")
  720. markersMap.lat = (item.latitude ? item.latitude : "")
  721. markersMap.bindPopupHtml = '<div class="map-tip">' +
  722. '<span>' +
  723. ' <div class="d-l-con">' +
  724. ' <div class="d-l-l-text">' +
  725. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  726. .latitude : "") + '</h4>' +
  727. ' </div>' +
  728. ' </div>' +
  729. ' </span>' +
  730. '<span>' +
  731. ' <div class="d-l-con">' +
  732. ' <div class="d-l-l-text">' +
  733. ' <h4>名称:' + (item.name ? item.name : "") + '</h4>' +
  734. ' </div>' +
  735. ' </div>' +
  736. ' </span>' +
  737. '<span>' +
  738. ' <div class="d-l-con">' +
  739. ' <div class="d-l-l-text">' +
  740. ' <h4>联系人:' + (item.person ? item.person : "") + '</h4>' +
  741. ' </div>' +
  742. ' </div>' +
  743. ' </span>' +
  744. '<span>' +
  745. ' <div class="d-l-con">' +
  746. ' <div class="d-l-l-text">' +
  747. ' <h4>电话:' + (item.phone ? item.phone : "") + '</h4>' +
  748. ' </div>' +
  749. ' </div>' +
  750. ' </span></div>'
  751. } else if (resourceTable == 'centerdata_t_resources_forest') { //森林资源管理信息
  752. markersMap.icon = 'sj-icon-map-centerdata-t-forest-landing'
  753. markersMap.lng = (item.longitude ? item.longitude : "")
  754. markersMap.lat = (item.latitude ? item.latitude : "")
  755. markersMap.bindPopupHtml = '<div class="map-tip">' +
  756. '<span>' +
  757. ' <div class="d-l-con">' +
  758. ' <div class="d-l-l-text">' +
  759. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  760. .latitude : "") + '</h4>' +
  761. ' </div>' +
  762. ' </div>' +
  763. ' </span>' +
  764. '<span>' +
  765. ' <div class="d-l-con">' +
  766. ' <div class="d-l-l-text">' +
  767. ' <h4>名称:' + (item.name ? item.name : "") +
  768. '</h4>' +
  769. ' </div>' +
  770. ' </div>' +
  771. ' </span>' +
  772. '<span>' +
  773. ' <div class="d-l-con">' +
  774. ' <div class="d-l-l-text">' +
  775. ' <h4>占地范围:' + (item.zdfw ? item.zdfw : "") +
  776. '</h4>' +
  777. ' </div>' +
  778. ' </div>' +
  779. ' </span>' +
  780. '<span>' +
  781. ' <div class="d-l-con">' +
  782. ' <div class="d-l-l-text">' +
  783. ' <h4>占地面积(万公顷):' + (item.landArea ? item.landArea : "") + '</h4>' +
  784. ' </div>' +
  785. ' </div>' +
  786. ' </span></div>'
  787. } else if (resourceTable == 'centerdata_t_resources_geologic_hazard') { //地质灾害易发区
  788. markersMap.icon = 'sj-icon-map-centerdata-t-resources-geologic-hazard'
  789. markersMap.lng = (item.longitude ? item.longitude : "")
  790. markersMap.lat = (item.latitude ? item.latitude : "")
  791. markersMap.bindPopupHtml = '<div class="map-tip">' +
  792. '<span>' +
  793. ' <div class="d-l-con">' +
  794. ' <div class="d-l-l-text">' +
  795. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  796. .latitude : "") + '</h4>' +
  797. ' </div>' +
  798. ' </div>' +
  799. ' </span>' +
  800. '<span>' +
  801. ' <div class="d-l-con">' +
  802. ' <div class="d-l-l-text">' +
  803. ' <h4>名称:' + (item.name ? item.name : "") +
  804. '</h4>' +
  805. ' </div>' +
  806. ' </div>' +
  807. ' </span>' +
  808. '<span>' +
  809. ' <div class="d-l-con">' +
  810. ' <div class="d-l-l-text">' +
  811. ' <h4>联系人:' + (item.person ? item.person : "") +
  812. '</h4>' +
  813. ' </div>' +
  814. ' </div>' +
  815. ' </span>' +
  816. '<span>' +
  817. ' <div class="d-l-con">' +
  818. ' <div class="d-l-l-text">' +
  819. ' <h4>电话:' + (item.phone ? item.phone : "") + '</h4>' +
  820. ' </div>' +
  821. ' </div>' +
  822. ' </span></div>'
  823. } else if (resourceTable == 'centerdata_t_resources_hydroenergy') { //水能资源
  824. markersMap.icon = 'sj-icon-map-centerdata-t-forest-checkpoint'
  825. markersMap.lng = (item.longitude ? item.longitude : "")
  826. markersMap.lat = (item.latitude ? item.latitude : "")
  827. markersMap.bindPopupHtml = '<div class="map-tip">' +
  828. '<span>' +
  829. ' <div class="d-l-con">' +
  830. ' <div class="d-l-l-text">' +
  831. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  832. .latitude : "") + '</h4>' +
  833. ' </div>' +
  834. ' </div>' +
  835. ' </span>' +
  836. '<span>' +
  837. ' <div class="d-l-con">' +
  838. ' <div class="d-l-l-text">' +
  839. ' <h4>名称:' + (item.name ? item.name : "") +
  840. '</h4>' +
  841. ' </div>' +
  842. ' </div>' +
  843. ' </span>' +
  844. '<span>' +
  845. ' <div class="d-l-con">' +
  846. ' <div class="d-l-l-text">' +
  847. ' <h4>联系人:' + (item.person ? item.person : "") +
  848. '</h4>' +
  849. ' </div>' +
  850. ' </div>' +
  851. ' </span>' +
  852. '<span>' +
  853. ' <div class="d-l-con">' +
  854. ' <div class="d-l-l-text">' +
  855. ' <h4>位置:' + (item.address ? item.address : "") +
  856. '</h4>' +
  857. ' </div>' +
  858. ' </div>' +
  859. ' </span>' +
  860. '<span>' +
  861. ' <div class="d-l-con">' +
  862. ' <div class="d-l-l-text">' +
  863. ' <h4>电话:' + (item.phone ? item.phone : "") +
  864. '</h4>' +
  865. ' </div>' +
  866. ' </div>' +
  867. ' </span></div>'
  868. } else if (resourceTable == 'centerdata_t_resources_land') { //土地资源管理信息
  869. markersMap.icon = 'sj-icon-map-centerdata-t-forest-waterintake'
  870. markersMap.lng = (item.longitude ? item.longitude : "")
  871. markersMap.lat = (item.latitude ? item.latitude : "")
  872. markersMap.bindPopupHtml = '<div class="map-tip">' +
  873. '<span>' +
  874. ' <div class="d-l-con">' +
  875. ' <div class="d-l-l-text">' +
  876. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  877. .latitude : "") + '</h4>' +
  878. ' </div>' +
  879. ' </div>' +
  880. ' </span>' +
  881. '<span>' +
  882. ' <div class="d-l-con">' +
  883. ' <div class="d-l-l-text">' +
  884. ' <h4>名称:' + (item.name ? item.name : "") +
  885. '</h4>'
  886. ' </div>' +
  887. ' </div>' +
  888. ' </span>' +
  889. '<span>' +
  890. ' <div class="d-l-con">' +
  891. ' <div class="d-l-l-text">' +
  892. ' <h4>占地面积(万公顷):' + (item.landArea ? item.landArea : "") +
  893. '</h4>' +
  894. ' </div>' +
  895. ' </div>' +
  896. ' </span></div>'
  897. }
  898. return markersMap;
  899. },
  900. getMenuEventType() {
  901. let that = this
  902. getMenuEventType().then(res => {
  903. that.websockSid.userId = Cookies.get('userId')
  904. that.websockSid.eventTypeDl = res.data.eventTypeDl
  905. that.websockSid.eventType = res.data.eventType
  906. that.initWebSocket(that.websockSid.userId, that.websockSid.eventTypeDl, that.websockSid.eventType)
  907. console.log(that.websockSid)
  908. })
  909. },
  910. setEventTypeId(data) {
  911. // let data = {eventTypeIdDl: [], eventTypeId: []}
  912. // let data = {eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId}
  913. let that = this
  914. that.eventTypeIdDl = data.eventTypeIdDl
  915. that.eventTypeId = data.eventTypeId
  916. that.getSupermap(that.calendarDay, false)
  917. that.getTodayEvents(that.calendarDay, false)
  918. that.getEventByEventType(that.calendarDay, false)
  919. that.getExposureStage(that.calendarDay, false)
  920. that.getEventByReportorOrder(that.calendarDay, false)
  921. that.getDeptEventCount(that.calendarDay, false)
  922. that.getEventList(that.calendarDay, that.pageSize, that.pageNum, '', false)
  923. },
  924. // searchEvent(pageSize,pageNum,eventSearch) {
  925. // this.pageSize = pageSize;
  926. // this.pageNum = pageNum;
  927. // let that = this
  928. // //事件列表搜索
  929. // this.eventList = []
  930. // //右侧获取事件列表
  931. // getEventList({ day: that.calendarDay,pageSize:pageSize,pageNum: pageNum ,eventName:eventSearch}).then(res => {
  932. // this.eventList = res.data
  933. // if (this.eventList != null && this.eventList.length > 0) {
  934. // if(this.eventList[0].eventStatusValue == 'forest_event_status_1'){
  935. // that.$refs.bottomMenu.updateAlert();
  936. // that.$refs.up.play();
  937. // }
  938. // }
  939. // })
  940. // },
  941. dropLocation(lat, lng, eventCode) {
  942. this.$refs.supermap.dropLocation(lat, lng, 18)
  943. this.showEventDialog(eventCode)
  944. },
  945. showEventDialog(eventCode) {
  946. //事件信息弹出
  947. this.$refs.eventdetailsdialog.showEventDialog(eventCode)
  948. },
  949. getFirespread(eventCode) {
  950. this.$refs.firespread.showEventDialog(eventCode);
  951. this.$refs.firespread.fireControlViewList()
  952. },
  953. getCurrentDataStr() {
  954. let date = new Date()
  955. let y = date.getFullYear()
  956. let m = date.getMonth() + 1
  957. m = m < 10 ? '0' + m : m
  958. let d = date.getDate()
  959. d = d < 10 ? '0' + d : d
  960. return y + '-' + m + '-' + d
  961. },
  962. selectDay(day) { //日历点击
  963. this.getTodayEvents(day)
  964. this.getDeptEventCount(day)
  965. this.getWeather(day)
  966. this.getEventList(day, 10, 1)
  967. this.getEventByEventType(day)
  968. this.getEventByReportorOrder(day)
  969. this.getExposureStage(day)
  970. this.getSupermap(day);
  971. this.calendarDay = day
  972. },
  973. //事件数量统计chart 样例地址http://192.144.199.210:8080/editor/index.html?chart_id=jTXf0Rv4A3oiBONB
  974. eventChartAi(aiTotal_pre, otherTotal_pre) {
  975. // 基于准备好的dom,初始化echarts实例
  976. let myChart = echarts.init(document.getElementById('chart-event-ai'))
  977. myChart.setOption({
  978. tooltip: {
  979. trigger: 'none'
  980. },
  981. grid: {
  982. top: '65%',
  983. left: '5%',
  984. right: '5%'
  985. },
  986. yAxis: {
  987. data: ['百分比'],
  988. axisTick: {
  989. show: false
  990. },
  991. axisLine: {
  992. show: false
  993. },
  994. axisLabel: {
  995. show: false
  996. }
  997. },
  998. xAxis: {
  999. splitLine: {
  1000. show: false
  1001. },
  1002. axisTick: {
  1003. show: false
  1004. },
  1005. axisLine: {
  1006. show: false
  1007. },
  1008. axisLabel: {
  1009. show: false
  1010. }
  1011. },
  1012. legend: {
  1013. data: ['AI', '其他'],
  1014. bottom: '5%',
  1015. textStyle: {
  1016. color: '#1FC3CE',
  1017. fontSize: 14
  1018. }
  1019. },
  1020. series: [{
  1021. // name: '最上层立体圆',
  1022. type: 'pictorialBar',
  1023. symbolSize: [10, 20],
  1024. symbolOffset: [2, 0],
  1025. z: 12,
  1026. itemStyle: {
  1027. normal: {
  1028. color: '#293CA0'
  1029. }
  1030. },
  1031. data: [{
  1032. value: 100,
  1033. symbolPosition: 'end'
  1034. }]
  1035. }, {
  1036. // name: '中间立体圆',
  1037. type: 'pictorialBar',
  1038. symbolSize: [10, 20],
  1039. symbolOffset: [2, 0],
  1040. z: 12,
  1041. itemStyle: {
  1042. normal: {
  1043. color: '#45ac8d'
  1044. }
  1045. },
  1046. data: [{
  1047. value: aiTotal_pre,
  1048. symbolPosition: 'end'
  1049. }]
  1050. }, {
  1051. // name: '最底部立体圆',
  1052. type: 'pictorialBar',
  1053. symbolSize: [10, 20],
  1054. symbolOffset: [-4, 0],
  1055. z: 12,
  1056. itemStyle: {
  1057. normal: {
  1058. color: '#196d59'
  1059. }
  1060. },
  1061. data: [otherTotal_pre]
  1062. }, {
  1063. name: 'AI',
  1064. //底部立体柱
  1065. stack: '1',
  1066. type: 'bar',
  1067. itemStyle: {
  1068. normal: {
  1069. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  1070. offset: 0,
  1071. color: '#29ac8f'
  1072. }, {
  1073. offset: 1,
  1074. color: '#0a3f3f'
  1075. }])
  1076. }
  1077. },
  1078. label: {
  1079. normal: {
  1080. show: true,
  1081. position: 'inside',
  1082. offset: [0, 1],
  1083. formatter: function(obj) {
  1084. return (obj.value).toLocaleString() + '%'
  1085. },
  1086. textStyle: {
  1087. align: 'center',
  1088. baseline: 'middle',
  1089. fontSize: 14,
  1090. fontWeight: '400',
  1091. color: '#fff',
  1092. textShadowColor: '#000',
  1093. textShadowBlur: '0',
  1094. textShadowOffsetX: 1,
  1095. textShadowOffsetY: 1
  1096. }
  1097. }
  1098. },
  1099. silent: true,
  1100. barWidth: 20,
  1101. barGap: '-100%', // Make series be overlap
  1102. data: [aiTotal_pre]
  1103. }, {
  1104. name: '其他',
  1105. //上部立体柱
  1106. stack: '1',
  1107. type: 'bar',
  1108. itemStyle: {
  1109. normal: {
  1110. color: '#14257B',
  1111. opacity: .7
  1112. }
  1113. },
  1114. silent: true,
  1115. barWidth: 20,
  1116. barGap: '-100%', // Make series be overlap
  1117. data: [otherTotal_pre],
  1118. // itemStyle: {
  1119. // normal: {
  1120. // color: 'rgba(29,67,243,1)',
  1121. // }
  1122. // },
  1123. label: {
  1124. normal: {
  1125. show: true,
  1126. position: 'inside',
  1127. offset: [0, 1],
  1128. formatter: function(obj) {
  1129. return (obj.value).toLocaleString() + '%'
  1130. },
  1131. textStyle: {
  1132. align: 'center',
  1133. baseline: 'middle',
  1134. fontSize: 14,
  1135. fontWeight: '400',
  1136. color: '#fff',
  1137. textShadowColor: '#000',
  1138. textShadowBlur: '0',
  1139. textShadowOffsetX: 1,
  1140. textShadowOffsetY: 1
  1141. }
  1142. }
  1143. }
  1144. }]
  1145. })
  1146. },
  1147. fatherMethod(dianshiqiang, longitude, latitude, item) {
  1148. this.$refs.TVWalls.showTVWall(
  1149. dianshiqiang, {
  1150. longitude: longitude,
  1151. latitude: latitude,
  1152. },
  1153. item
  1154. );
  1155. },
  1156. getBaseInfo() {
  1157. //左侧获取部门信息
  1158. getBaseInfo().then(res => {
  1159. if (res.code == 200) {
  1160. if (res.msg == '暂无特色信息') {
  1161. this.forestInfo = '暂无特色信息!'
  1162. } else {
  1163. this.forestInfo = res.data.baseinfo //基本情况
  1164. }
  1165. }
  1166. })
  1167. },
  1168. getTodayEvents(day, loading) {
  1169. let that = this
  1170. //左侧获取事件信息统计
  1171. getTodayEvents({
  1172. eventTypeIdDl: that.eventTypeIdDl,
  1173. eventTypeId: that.eventTypeId,
  1174. day: day
  1175. }, loading).then(res => {
  1176. this.aiTotal = res.data.aiTotal
  1177. this.aiTotal_pre = res.data.aiTotal_pre
  1178. this.newReport = res.data.newReport
  1179. this.newReport_pre = res.data.newReport_pre
  1180. this.otherTotal = res.data.otherTotal
  1181. this.otherTotal_pre = res.data.otherTotal_pre
  1182. this.readyFinish = res.data.readyFinish
  1183. this.readyFinish_pre = res.data.readyFinish_pre
  1184. this.readySure = res.data.readySure
  1185. this.readySure_pre = res.data.readySure_pre
  1186. this.totalStr = res.data.totalStr
  1187. this.totalAllEvent = +res.data.totalStr
  1188. this.total = res.data.total
  1189. this.eventChartAi(this.aiTotal_pre, this.otherTotal_pre)
  1190. })
  1191. },
  1192. getDeptEventCount(day, loading) {
  1193. let that = this
  1194. //左侧获取事件部门数量
  1195. getDeptEventCount({
  1196. eventTypeIdDl: that.eventTypeIdDl,
  1197. eventTypeId: that.eventTypeId,
  1198. day: day
  1199. }, loading).then(res => {
  1200. this.forestFarm = res.data
  1201. })
  1202. },
  1203. getWeather(day) {
  1204. let that = this
  1205. //右侧获取天气信息
  1206. getWeather({
  1207. day: day
  1208. }).then(res => {
  1209. if (res.code == 200) {
  1210. if (res.msg == '天气未添加') {
  1211. this.todatWeather = false
  1212. } else {
  1213. this.todatWeather = true
  1214. this.weatherinformationDirection = res.data.weatherinformationDirection
  1215. this.weatherinformationHigh = res.data.weatherinformationHigh
  1216. this.weatherinformationLevel = res.data.weatherinformationLevel
  1217. this.weatherinformationLevelValue = res.data.weatherinformationLevelValue
  1218. this.weatherinformationLow = res.data.weatherinformationLow
  1219. this.weatherinformationPower = res.data.weatherinformationPower
  1220. this.weatherinformationTemperature = res.data.weatherinformationTemperature
  1221. this.weatherinformationTime = res.data.weatherinformationTime
  1222. this.weatherinformationWeather = res.data.weatherinformationWeather
  1223. }
  1224. } else {
  1225. this.todatWeather = false
  1226. }
  1227. })
  1228. },
  1229. getSupermap(day, loading) {
  1230. let that = this
  1231. getNearEvent('', '', day, loading, that.eventTypeIdDl, that.eventTypeId).then(res => {
  1232. that.markersList = [];
  1233. if (res.data != null && res.data.length > 0) {
  1234. for (let i = 0; i < res.data.length; i++) {
  1235. let markersMap = {
  1236. lng: 124.59,
  1237. lat: 43.02,
  1238. icon: 'marker',
  1239. bindPopupHtml: '',
  1240. click: '',
  1241. parameter: '',
  1242. keepBindPopup: false,
  1243. isAggregation: false
  1244. }
  1245. if (res.data.length > 200) {
  1246. markersMap.isAggregation = true
  1247. }
  1248. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount == 0) {
  1249. markersMap.click = 'showEventDialog'
  1250. markersMap.icon = 'sj-icon-map-xinshangbao'
  1251. }
  1252. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount > 0) {
  1253. markersMap.click = 'showEventDialog'
  1254. markersMap.icon = 'sj-icon-map-cuiban'
  1255. } else if (res.data[i].eventStatusValue == 'forest_event_status_2') {
  1256. markersMap.click = 'showEventDialog'
  1257. markersMap.icon = 'sj-icon-map-qianshou'
  1258. markersMap.isAggregation = false
  1259. } else if (res.data[i].eventStatusValue == 'forest_event_status_5') {
  1260. markersMap.click = 'showEventDialog'
  1261. markersMap.icon = 'sj-icon-map-banjie'
  1262. markersMap.isAggregation = false
  1263. } else if (res.data[i].eventStatusValue == 'forest_event_status_6') {
  1264. markersMap.click = 'showEventDialog'
  1265. markersMap.icon = 'sj-icon-map-guidang'
  1266. } else if (res.data[i].eventStatusValue == 'forest_event_status_7') {
  1267. markersMap.click = 'showEventDialog'
  1268. markersMap.icon = 'sj-icon-map-queren'
  1269. }
  1270. markersMap.parameter = res.data[i].eventCode
  1271. markersMap.lng = res.data[i].longitude
  1272. markersMap.lat = res.data[i].latitude
  1273. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1274. '<span>' +
  1275. ' <div class="d-l-con">' +
  1276. ' <div class="d-l-l-text">' +
  1277. ' <h4>经纬度:' + res.data[i].longitude + ',' + res.data[i].latitude + '</h4>' +
  1278. ' </div>' +
  1279. ' </div>' +
  1280. ' </span>' +
  1281. '<span>' +
  1282. ' <div class="d-l-con">' +
  1283. ' <div class="d-l-l-text">' +
  1284. ' <h4>事件名称:' + res.data[i].eventName + '</h4>' +
  1285. ' </div>' +
  1286. ' </div>' +
  1287. ' </span>' +
  1288. '<span>' +
  1289. ' <div class="d-l-con">' +
  1290. ' <div class="d-l-l-text">' +
  1291. ' <h4>事件时间:' + res.data[i].createTime + '</h4>' +
  1292. ' </div>' +
  1293. ' </div>' +
  1294. ' </span>';
  1295. if (res.data[i].pictureType == 'image' && res.data[i].picturePath != null && res.data[i]
  1296. .picturePath != '') {
  1297. markersMap.bindPopupHtml += '<span>' +
  1298. ' <div class="d-l-con">' +
  1299. ' <div class="d-l-l-text">' +
  1300. '<img src="' + res.data[i].picturePath + '" style="width: 150px;height: 100px"/>' +
  1301. ' </div>' +
  1302. ' </div>' +
  1303. ' </span>'
  1304. }
  1305. markersMap.bindPopupHtml += '</div>'
  1306. that.markersList.push(markersMap)
  1307. }
  1308. setTimeout(() => {
  1309. that.$refs.supermap.clearM()
  1310. that.$refs.supermap.setMarkers(that.markersList)
  1311. }, 2000)
  1312. } else {
  1313. setTimeout(() => {
  1314. that.$refs.supermap.clearM()
  1315. }, 2000)
  1316. }
  1317. })
  1318. },
  1319. getEventList(day, pageSize, pageNum, eventSearch, loading) {
  1320. let num=this.eventList.length/pageSize+1
  1321. if (pageNum < 1) {
  1322. this.$modal.msg('当前已是第一页')
  1323. return
  1324. } else if(pageNum>this.totalAllEvent/10+1)
  1325. {
  1326. this.$modal.msg('当前已是最后一页')
  1327. return;
  1328. }
  1329. this.pageSize = pageSize;
  1330. this.pageNum = pageNum;
  1331. let that = this
  1332. this.eventList = []
  1333. //右侧获取事件列表
  1334. getEventList({
  1335. eventTypeIdDl: that.eventTypeIdDl,
  1336. eventTypeId: that.eventTypeId,
  1337. day: day,
  1338. pageSize: pageSize,
  1339. pageNum: pageNum,
  1340. eventName: eventSearch
  1341. }, loading).then(res => {
  1342. this.eventList = res.data
  1343. if (this.eventList != null && this.eventList.length > 0) {
  1344. if (this.eventList[0].eventStatusValue == 'forest_event_status_1') {
  1345. that.$refs.bottomMenu.updateAlert();
  1346. that.$refs.up.play();
  1347. } else {
  1348. that.$refs.bottomMenu.updateAlertFalse();
  1349. }
  1350. }
  1351. })
  1352. },
  1353. getEventByEventType(day, loading) {
  1354. let that = this
  1355. //右侧获取事件分类
  1356. getEventByEventType({
  1357. eventTypeIdDl: that.eventTypeIdDl,
  1358. eventTypeId: that.eventTypeId,
  1359. day: day
  1360. }, loading).then(res => {
  1361. if (res.data != null && res.data.length > 0) {
  1362. this.showEventKind = true
  1363. this.eventKind.data = res.data
  1364. this.eventKind.colors = ['#1ce0a9', '#d6333b', '#e68d3f', '#32c5e9', '#2abc65']
  1365. this.eventKind.showValue = true
  1366. this.eventKind = {
  1367. ...this.eventKind
  1368. }
  1369. } else {
  1370. this.showEventKind = false
  1371. this.eventKind = {}
  1372. this.eventKind = {
  1373. ...this.eventKind
  1374. }
  1375. }
  1376. })
  1377. },
  1378. getEventByReportorOrder(day, loading) {
  1379. let that = this
  1380. //右侧获取上报排名
  1381. getEventByReportorOrder({
  1382. eventTypeIdDl: that.eventTypeIdDl,
  1383. eventTypeId: that.eventTypeId,
  1384. day: day
  1385. }, loading).then(res => {
  1386. if (res.data != null && res.data.length > 0) {
  1387. this.reportList.data = res.data
  1388. this.reportList = {
  1389. ...this.reportList
  1390. }
  1391. } else {
  1392. this.reportList.data = []
  1393. this.reportList = {
  1394. ...this.reportList
  1395. }
  1396. }
  1397. })
  1398. },
  1399. getEventListNew() {
  1400. this.eventList = []
  1401. this.eventListAll = []
  1402. //右侧获取事件列表
  1403. getEventList({
  1404. day: this.getCurrentDataStr()
  1405. }).then(res => {
  1406. this.eventList = res.data
  1407. this.eventListAll = res.data
  1408. })
  1409. },
  1410. getWebSocketEvent(data) {
  1411. let that = this
  1412. const event = data
  1413. //右侧获取事件列表
  1414. that.markersList = []
  1415. let markersMap = {
  1416. lng: 124.59,
  1417. lat: 43.02,
  1418. icon: 'marker',
  1419. bindPopupHtml: '',
  1420. click: '',
  1421. parameter: '',
  1422. keepBindPopup: false,
  1423. isAggregation: false
  1424. }
  1425. if (event.eventStatusValue == 'forest_event_status_1' && event.urgeCount == 0) {
  1426. markersMap.click = 'showEventDialog'
  1427. markersMap.icon = 'sj-icon-map-xinshangbao'
  1428. }
  1429. if (event.eventStatusValue == 'forest_event_status_1' && event.urgeCount > 0) {
  1430. markersMap.click = 'showEventDialog'
  1431. markersMap.icon = 'sj-icon-map-cuiban'
  1432. } else if (event.eventStatusValue == 'forest_event_status_2') {
  1433. markersMap.click = 'showEventDialog'
  1434. markersMap.icon = 'sj-icon-map-qianshou'
  1435. markersMap.isAggregation = false
  1436. } else if (event.eventStatusValue == 'forest_event_status_5') {
  1437. markersMap.click = 'showEventDialog'
  1438. markersMap.icon = 'sj-icon-map-banjie'
  1439. markersMap.isAggregation = false
  1440. } else if (event.eventStatusValue == 'forest_event_status_6') {
  1441. markersMap.click = 'showEventDialog'
  1442. markersMap.icon = 'sj-icon-map-guidang'
  1443. } else if (event.eventStatusValue == 'forest_event_status_7') {
  1444. markersMap.click = 'showEventDialog'
  1445. markersMap.icon = 'sj-icon-map-queren'
  1446. }
  1447. markersMap.parameter = event.eventCode
  1448. markersMap.lng = event.longitude
  1449. markersMap.lat = event.latitude
  1450. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1451. '<span>' +
  1452. ' <div class="d-l-con">' +
  1453. ' <div class="d-l-l-text">' +
  1454. ' <h4>经纬度:' + event.longitude + ',' + event.latitude + '</h4>' +
  1455. ' </div>' +
  1456. ' </div>' +
  1457. ' </span>' +
  1458. '<span>' +
  1459. ' <div class="d-l-con">' +
  1460. ' <div class="d-l-l-text">' +
  1461. ' <h4>事件名称:' + event.eventName + '</h4>' +
  1462. ' </div>' +
  1463. ' </div>' +
  1464. ' </span>' +
  1465. '<span>' +
  1466. ' <div class="d-l-con">' +
  1467. ' <div class="d-l-l-text">' +
  1468. ' <h4>事件时间:' + event.createTime + '</h4>' +
  1469. ' </div>' +
  1470. ' </div>' +
  1471. ' </span>';
  1472. if (event.pictureType == 'image' && event.picturePath != null && event.picturePath != '') {
  1473. markersMap.bindPopupHtml += '<span>' +
  1474. ' <div class="d-l-con">' +
  1475. ' <div class="d-l-l-text">' +
  1476. '<img src="' + event.picturePath + '" style="width: 150px;height: 100px"/>' +
  1477. ' </div>' +
  1478. ' </div>' +
  1479. ' </span>'
  1480. }
  1481. markersMap.bindPopupHtml += '</div>'
  1482. that.markersList.push(markersMap)
  1483. setTimeout(() => {
  1484. that.$refs.supermap.clearM()
  1485. that.$refs.supermap.setMarkers(that.markersList)
  1486. }, 1000)
  1487. },
  1488. getExposureStage(day, loading) {
  1489. let that = this
  1490. //右侧获取曝光台
  1491. getExposureStage({
  1492. eventTypeIdDl: that.eventTypeIdDl,
  1493. eventTypeId: that.eventTypeId,
  1494. day: day
  1495. }, loading).then(res => {
  1496. this.exposureStageList = res.data
  1497. })
  1498. },
  1499. /** ----------------------------------weosocket开始------------------------------------- */
  1500. initWebSocket(userId, eventTypeDl, eventType) { //初始化weosocket
  1501. selectConfigKey('KSH_SOCKET').then(res => {
  1502. const wsuri = res.data + userId + '/' + eventTypeDl + '/' + eventType
  1503. this.websock = new WebSocket(wsuri)
  1504. console.log('建立websocket连接')
  1505. this.websock.onopen = this.websocketonopen
  1506. this.websock.onmessage = this.websocketonmessage
  1507. this.websock.onerror = this.websocketonerror
  1508. })
  1509. },
  1510. // 处理WebSocket事件
  1511. handleWebSoceketEvent(val) {
  1512. let that = this
  1513. let data = JSON.parse(val)
  1514. /**
  1515. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  1516. * eventPush: 事件列表消息
  1517. * */
  1518. if (data.tag == "eventPush" && that.markersList.filter(item => data.eventCode == item.parameter).length == 0) {
  1519. getEventPush({
  1520. eventCode: data.eventCode
  1521. }).then((res) => {
  1522. if (res.data != undefined) {
  1523. //插入到第一条
  1524. this.eventList.unshift(res.data)
  1525. // 插入后删除最后一条 保证列表中为10条数据
  1526. if (this.eventList.length > 9)
  1527. this.eventList.splice(10, 1)
  1528. // 将收到的数据在地图上添加
  1529. this.getWebSocketEvent(res.data)
  1530. }
  1531. })
  1532. }
  1533. console.log(that.eventList[0])
  1534. },
  1535. websocketonopen() { //连接建立之后执行send方法发送数据
  1536. console.log('websocket连接成功')
  1537. this.weosocket = true
  1538. this.sendPing()
  1539. },
  1540. websocketonerror() { //连接建立失败重连
  1541. this.initWebSocket(this.websockSid.userId, this.websockSid.eventTypeDl, this.websockSid.eventType, )
  1542. },
  1543. websocketonmessage(e) { //数据接收
  1544. console.log('接收数据', e.data)
  1545. // let data = "{\"fromId\":\"forest\",\"fromUserId\":\""+Cookies.get('username')+"\",\"toUserId\":\""+Cookies.get('username')+"\"}";
  1546. let data = "{\"fromId\":\"resources\"}";
  1547. if (this.calendarDay == this.getCurrentDataStr() && data != e.data) {
  1548. // 处理收到的消息
  1549. this.handleWebSoceketEvent(e.data)
  1550. this.getTodayEvents(this.getCurrentDataStr(), true);
  1551. this.getDeptEventCount(this.getCurrentDataStr(), true);
  1552. this.getEventByEventType(this.getCurrentDataStr(), true);
  1553. this.getEventByReportorOrder(this.getCurrentDataStr(), true);
  1554. this.getExposureStage(this.getCurrentDataStr(), true);
  1555. this.$refs.bottomMenu.updateAlert();
  1556. this.$refs.up.play();
  1557. // thes.$refs.up.pause();//停止播放音乐
  1558. }
  1559. },
  1560. websocketsend(Data) { //数据发送
  1561. this.websock.send(Data)
  1562. },
  1563. websocketclose(e) { //关闭
  1564. console.log('断开连接', e)
  1565. // clearInterval(this.setIntervalWesocketPush)
  1566. this.weosocket = false
  1567. },
  1568. /**发送心跳
  1569. * @param {number} time 心跳间隔毫秒 默认5000
  1570. * @param {string} ping 心跳名称 默认字符串ping
  1571. */
  1572. sendPing(time = 60000, ping = {
  1573. 'fromId': 'resources'
  1574. }) {
  1575. clearInterval(this.setIntervalWesocketPush)
  1576. this.setIntervalWesocketPush = setInterval(() => {
  1577. if (this.weosocket) {
  1578. this.websock.send(JSON.stringify(ping))
  1579. } else {
  1580. // this.initWebSocket()
  1581. }
  1582. }, time)
  1583. },
  1584. stopAudio() {
  1585. this.$refs.up.pause(); //停止播放音乐
  1586. this.$refs.up.currentTime = 0;
  1587. },
  1588. /** ----------------------------------weosocket结束------------------------------------- */
  1589. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  1590. bottomMenuList() {
  1591. this.$refs.bottomMenu.selectTaskList() //获取任务列表
  1592. this.$refs.bottomMenu.selectMessageList() //获取消息列表
  1593. },
  1594. showDialog(click) {
  1595. if (click == 'eventLocation') {
  1596. this.$refs.eventLocation.showEventLocation()
  1597. this.$refs.bottomMenu.showMeasure = false
  1598. this.$refs.bottomMenu.showChild = false
  1599. this.$refs.bottomMenu.showBanChild = false
  1600. this.$refs.bottomMenu.showChangChild = false
  1601. } else if (click == 'editableLayers') {
  1602. this.$refs.bottomMenu.showChild = false
  1603. this.$refs.bottomMenu.showBanChild = false
  1604. this.$refs.bottomMenu.showChangChild = false
  1605. if (!this.$refs.bottomMenu.showMeasure) {
  1606. this.$refs.bottomMenu.showMeasure = true
  1607. } else {
  1608. this.$refs.bottomMenu.showMeasure = false
  1609. }
  1610. } else if (click == 'layerSwitching') {
  1611. this.$refs.bottomMenu.showMeasure = false
  1612. this.$refs.bottomMenu.showBanChild = false
  1613. this.$refs.bottomMenu.showChangChild = false
  1614. if (!this.$refs.bottomMenu.showChild) {
  1615. this.$refs.bottomMenu.showChild = true
  1616. } else {
  1617. this.$refs.bottomMenu.showChild = false
  1618. }
  1619. } else if (click == 'TVWall') {
  1620. this.$refs.TVWall.showTVWall()
  1621. this.$refs.bottomMenu.showMeasure = false
  1622. this.$refs.bottomMenu.showChild = false
  1623. this.$refs.bottomMenu.showBanChild = false
  1624. this.$refs.bottomMenu.showChangChild = false
  1625. } else if (click == 'forestban') {
  1626. this.$refs.bottomMenu.showMeasure = false
  1627. this.$refs.bottomMenu.showChild = false
  1628. this.$refs.bottomMenu.showChangChild = false
  1629. if (!this.$refs.bottomMenu.showBanChild) {
  1630. this.$refs.bottomMenu.showBanChild = true
  1631. } else {
  1632. this.$refs.bottomMenu.showBanChild = false
  1633. }
  1634. } else if (click == 'forestchang') {
  1635. this.$refs.bottomMenu.showMeasure = false
  1636. this.$refs.bottomMenu.showBanChild = false
  1637. this.$refs.bottomMenu.showChild = false
  1638. if (!this.$refs.bottomMenu.showChangChild) {
  1639. this.$refs.bottomMenu.showChangChild = true
  1640. } else {
  1641. this.$refs.bottomMenu.showChangChild = false
  1642. }
  1643. }
  1644. },
  1645. //选择图层
  1646. choseLayerSwitching(url, isClear) {
  1647. this.$refs.supermap.layerSwitching(url, isClear)
  1648. },
  1649. //选择图层(传递数组)
  1650. choseLayerSwitchingList(urlList) {
  1651. this.$refs.supermap.layerSwitchingList(urlList)
  1652. },
  1653. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  1654. }
  1655. }
  1656. </script>
  1657. <style rel="stylesheet/scss" lang="scss" scoped>
  1658. @import '@/assets/styles/base.scss';
  1659. .paging {
  1660. padding: .5rem .3rem;
  1661. display: flex;
  1662. justify-content: center;
  1663. align-content: center;
  1664. span {
  1665. color: #2bacf7;
  1666. display: flex;
  1667. align-items: center;
  1668. padding: 0 1rem;
  1669. }
  1670. button {
  1671. padding: 0 0.3rem;
  1672. height: 1.5rem;
  1673. background-color: #112543;
  1674. color: #2bacf7;
  1675. border: 1px solid #33467f;
  1676. }
  1677. button:hover {
  1678. padding: 0 0.3rem;
  1679. height: 1.5rem;
  1680. background-color: #112543;
  1681. color: #0ff7c5;
  1682. border: 1px solid #1d657f;
  1683. }
  1684. }
  1685. </style>
  1686. <style lang="scss">
  1687. @import '@/assets/styles/base.scss';
  1688. .bottomRight{
  1689. .el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
  1690. background-color: $searchBG;
  1691. }
  1692. .el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf {
  1693. border-bottom: 1px $tableBorder;
  1694. }
  1695. .el-table--border, .el-table--border::after {
  1696. border: 1px $tableBorder;
  1697. background-color: $searchBG
  1698. }
  1699. .el-table--border {
  1700. .el-table--group {
  1701. border: 1px $tableBorder;
  1702. }
  1703. .el-table__cell {
  1704. border-right: 1px $tableBorder;;
  1705. }
  1706. }
  1707. .el-table::before {
  1708. background: $searchBG;
  1709. }
  1710. .el-table {
  1711. background: $searchBG;
  1712. color: $inBlue;
  1713. thead {
  1714. }
  1715. tr {
  1716. background: $searchBG;
  1717. }
  1718. td {
  1719. text-align: center;
  1720. }
  1721. .el-table__header-wrapper {
  1722. th {
  1723. color: $inBlue;
  1724. font-size: .8rem;
  1725. }
  1726. }
  1727. thead.is-group {
  1728. .el-table__cell {
  1729. text-align: center;
  1730. background: $searchBG;
  1731. border-bottom: 1px $tableBorder;
  1732. border-right: 1px $tableBorder;
  1733. padding: 0;
  1734. font-weight: normal;
  1735. }
  1736. }
  1737. }
  1738. .el-table__empty-block {
  1739. min-height: auto;
  1740. }
  1741. .el-table__empty-text {
  1742. line-height: 30px;
  1743. }
  1744. .el-table__header {
  1745. width: auto !important
  1746. }
  1747. .el-table__empty-block {
  1748. width: auto !important
  1749. }
  1750. .el-table__body-wrapper {
  1751. .el-table__body {
  1752. width: auto !important
  1753. }
  1754. }
  1755. .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  1756. background-color: #0f3655;
  1757. }
  1758. }
  1759. </style>