forest.vue 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  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. import {getUserProfile} from "@/api/system/user";
  473. let echarts = require('echarts')
  474. export default {
  475. components: {
  476. Firespread,
  477. supermap,
  478. chart,
  479. // supermapNotProcessed,
  480. // supermapProcessed,
  481. vheader,
  482. vBottomMenu,
  483. eventLocation,
  484. TVWall,
  485. TVWalls,
  486. dateChoose,
  487. eventdetailsdialog,
  488. firespread
  489. },
  490. created() {
  491. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  492. window.showDialog = this.showDialog
  493. window.choseLayerSwitching = this.choseLayerSwitching
  494. window.choseLayerSwitchingList = this.choseLayerSwitchingList
  495. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  496. },
  497. mounted() {
  498. // 初始化地图数据
  499. this.getSuperMapUrl();
  500. setTimeout(() => {
  501. this.getBaseInfo()
  502. this.getTodayEvents(this.getCurrentDataStr())
  503. this.getDeptEventCount(this.getCurrentDataStr())
  504. this.getWeather(this.getCurrentDataStr())
  505. this.getEventList(this.getCurrentDataStr(), this.pageSize, this.pageNum)
  506. this.getEventByEventType(this.getCurrentDataStr())
  507. this.getEventByReportorOrder(this.getCurrentDataStr())
  508. this.getExposureStage(this.getCurrentDataStr())
  509. this.getSupermap(this.getCurrentDataStr())
  510. this.getMenuEventType()
  511. this.getResource()
  512. }, 2000)
  513. /** ----------------------------------weosocket开始------------------------------------- */
  514. // this.initWebSocket()
  515. /** ----------------------------------weosocket结束------------------------------------- */
  516. this.bottomMenuList() //获取底部公共组件消息和任务
  517. },
  518. data() {
  519. return {
  520. //左侧资源
  521. resourcesList: [],
  522. iconCurrentIndex:"",
  523. source: [],
  524. //警报MP3文件
  525. audioSrc: require('@/assets/jingbao.mp3'),
  526. calendarDay: this.getCurrentDataStr(),
  527. //基本情况
  528. forestInfo: '', //基本情况
  529. //左侧获取事件信息统计
  530. totalStr: '000000',
  531. totalAllEvent: 0,
  532. aiTotal: '',
  533. newReport: '',
  534. otherTotal: '',
  535. readyFinish: '',
  536. readySure: '',
  537. total: '',
  538. aiTotal_pre: '',
  539. newReport_pre: '',
  540. otherTotal_pre: '',
  541. readyFinish_pre: '',
  542. readySure_pre: '',
  543. //左侧部门事件数量
  544. forestFarm: [],
  545. //右侧天气
  546. todatWeather: false,
  547. weatherinformationDirection: '',
  548. weatherinformationHigh: '',
  549. weatherinformationLevel: '',
  550. weatherinformationLevelValue: '', //火险登记中文
  551. weatherinformationLow: '',
  552. weatherinformationPower: '',
  553. weatherinformationTemperature: '',
  554. weatherinformationTime: '',
  555. weatherinformationWeather: '',
  556. //右侧曝光台
  557. exposureStageList: [],
  558. //右侧事件列表
  559. eventList: [],
  560. pageSize: 10,
  561. pageNum: 1,
  562. eventListnew: [],
  563. eventListAll: [],
  564. eventSearch: '', //事件列表搜索
  565. listCurrentIndex1: '',
  566. // ----------------------------------事件分类柱状----------------------------------------
  567. eventKind: {},
  568. showEventKind: false,
  569. // ----------------------------------上报排行----------------------------------------
  570. reportList: {
  571. data: []
  572. },
  573. /** ----------------------------------weosocket开始------------------------------------- */
  574. weosocket: false,
  575. websock: '',
  576. setIntervalWesocketPush: null,
  577. websockSid: {
  578. userId: '',
  579. eventTypeDl: '',
  580. eventType: '',
  581. },
  582. /** ----------------------------------weosocket结束------------------------------------- */
  583. /** ----------------------------------摄像头预览开始------------------------------------- */
  584. activePanel: 'key1',
  585. isLogin: false,
  586. cameraParams: [],
  587. ws: null,
  588. /** ----------------------------------摄像头预览结束------------------------------------- */
  589. markersList: [], //点位列表
  590. cameraList: [], //摄像头列表
  591. eventTypeIdDl: [],
  592. eventTypeId: []
  593. }
  594. },
  595. /** ----------------------------------weosocket开始------------------------------------- */
  596. destroyed() { //离开页面关闭Socket连接
  597. if (this.websock) {
  598. clearInterval(this.setIntervalWesocketPush)
  599. this.websock.close()
  600. this.websock = null
  601. }
  602. },
  603. /** ----------------------------------weosocket结束------------------------------------- */
  604. methods: {
  605. //初始化地图数据
  606. getSuperMapUrl(){
  607. getUserProfile().then(response => {
  608. let mapDeptId=response.mapDeptId
  609. let num = 0;
  610. if (mapDeptId == "365") {
  611. num = 0;
  612. } else if (mapDeptId == "369") {
  613. num = 1;
  614. } else if (mapDeptId == "371") {
  615. num = 2;
  616. } else if (mapDeptId == "373") {
  617. num = 3;
  618. } else if (mapDeptId == "372") {
  619. num = 4;
  620. } else if (mapDeptId == "370") {
  621. num = 5;
  622. }
  623. this.$refs.supermap.removeAllviewer(num, -1);
  624. });
  625. },
  626. getResource() {
  627. let that = this
  628. //获取左侧菜单列表
  629. getResource().then(res => {
  630. that.resourcesList = res.data
  631. console.log("数据中心", that.resourcesList)
  632. //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
  633. res.data.forEach(function(data, index) {
  634. let icon = 'sj' + '-' + 'icon' + '-' + data.type.replaceAll("_", "-").replaceAll("@", "-");
  635. console.log("icon_" + (index + 1) + "=", icon);
  636. that.$set(that.resourcesList[index], 'icon', icon);
  637. })
  638. //数据自动落点开始
  639. let maxCount = 100; //落点数超过这个数的资源不落点
  640. let list = res.data;
  641. let counts = [];
  642. let points = [];
  643. let types = [];
  644. for (let i = 0; i < list.length; i++) { //获取符合要求的类型及数量
  645. if (list[i].num <= maxCount) {
  646. counts.push(list[i].num);
  647. points.push({
  648. "type": list[i].type,
  649. "count": list[i].num
  650. });
  651. types.push(list[i].type);
  652. }
  653. }
  654. for (let i = 0; i < types.length; i++) {
  655. that.indentleftSetMarkers(types[i], '所有');
  656. }
  657. //数据自动落点结束
  658. })
  659. },
  660. indentleftSetMarkers(resourceTable, name) {
  661. let that = this
  662. // 搜索框
  663. if (name == '所有') {
  664. name = undefined;
  665. } else {
  666. that.$refs.supermap.clearM()
  667. this.iconCurrentIndex = resourceTable
  668. }
  669. // 搜索类型
  670. // this.searchType = resourceTable;
  671. // that.resourceTable = resourceTable
  672. that.markersList = []
  673. that.source = []
  674. //点击左侧地图落点
  675. getResourcePoint(resourceTable, name).then(res => {
  676. that.deptGroupList = res.data.deptGroupList
  677. if (res.data.deptGroupList != null && res.data.deptGroupList.length > 0) {
  678. for (let i = 0; i < res.data.deptGroupList.length; i++) {
  679. let aa = [res.data.deptGroupList[i].deptName, res.data.deptGroupList[i].count]
  680. that.source.push(aa)
  681. }
  682. }
  683. if (res.data.resourceList != null && res.data.resourceList.length > 0) {
  684. for (let i = 0; i < res.data.resourceList.length; i++) {
  685. let markersMap = {
  686. lng: 124.59,
  687. lat: 43.02,
  688. icon: 'marker',
  689. bindPopupHtml: '',
  690. click: '',
  691. keepBindPopup: false,
  692. isAggregation: false
  693. }
  694. that.markersList.push(this.getMarkersMap(resourceTable, markersMap, res.data.resourceList[i]));
  695. // that.markersList.push(markersMap)
  696. }
  697. }
  698. if (this.showSearch == true) {
  699. this.dataChat();
  700. }
  701. that.$refs.supermap.setMarkers(that.markersList)
  702. })
  703. },
  704. getMarkersMap(resourceTable, markersMap, item) {
  705. if (resourceTable == 'centerdata_t_resources_illegal_construction') { //违建信息
  706. markersMap.icon = 'sj-icon-map-centerdata-t-resources-illegal-constructionon'
  707. markersMap.lng = (item.longitude ? item.longitude : "")
  708. markersMap.lat = (item.latitude ? item.latitude : "")
  709. markersMap.bindPopupHtml = '<div class="map-tip">' +
  710. '<span>' +
  711. ' <div class="d-l-con">' +
  712. ' <div class="d-l-l-text">' +
  713. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  714. .latitude : "") + '</h4>' +
  715. ' </div>' +
  716. ' </div>' +
  717. ' </span>' +
  718. '<span>' +
  719. ' <div class="d-l-con">' +
  720. ' <div class="d-l-l-text">' +
  721. ' <h4>名称:' + (item.name ? item.name : "") +
  722. '</h4>' +
  723. ' </div>' +
  724. ' </div>' +
  725. ' </span>' +
  726. '<span>' +
  727. ' <div class="d-l-con">' +
  728. ' <div class="d-l-l-text">' +
  729. ' <h4>违建处理负责人:' + (item.person ? item.person : "") +
  730. '</h4>' +
  731. ' </div>' +
  732. ' </div>' +
  733. ' </span>' +
  734. '<span>' +
  735. ' <div class="d-l-con">' +
  736. ' <div class="d-l-l-text">' +
  737. ' <h4>联系方式:' + (item.phone ? item.phone : "") +
  738. '</h4>' +
  739. ' </div>' +
  740. ' </div>' +
  741. ' </span></div>'
  742. } else if (resourceTable == 'centerdata_t_resources_deposit') { //矿产资源
  743. markersMap.icon = 'sj-icon-map-centerdata-t-resources-deposit'
  744. markersMap.lng = (item.longitude ? item.longitude : "")
  745. markersMap.lat = (item.latitude ? item.latitude : "")
  746. markersMap.bindPopupHtml = '<div class="map-tip">' +
  747. '<span>' +
  748. ' <div class="d-l-con">' +
  749. ' <div class="d-l-l-text">' +
  750. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  751. .latitude : "") + '</h4>' +
  752. ' </div>' +
  753. ' </div>' +
  754. ' </span>' +
  755. '<span>' +
  756. ' <div class="d-l-con">' +
  757. ' <div class="d-l-l-text">' +
  758. ' <h4>名称:' + (item.name ? item.name : "") + '</h4>' +
  759. ' </div>' +
  760. ' </div>' +
  761. ' </span>' +
  762. '<span>' +
  763. ' <div class="d-l-con">' +
  764. ' <div class="d-l-l-text">' +
  765. ' <h4>联系人:' + (item.person ? item.person : "") + '</h4>' +
  766. ' </div>' +
  767. ' </div>' +
  768. ' </span>' +
  769. '<span>' +
  770. ' <div class="d-l-con">' +
  771. ' <div class="d-l-l-text">' +
  772. ' <h4>电话:' + (item.phone ? item.phone : "") + '</h4>' +
  773. ' </div>' +
  774. ' </div>' +
  775. ' </span></div>'
  776. } else if (resourceTable == 'centerdata_t_resources_forest') { //森林资源管理信息
  777. markersMap.icon = 'sj-icon-map-centerdata-t-forest-landing'
  778. markersMap.lng = (item.longitude ? item.longitude : "")
  779. markersMap.lat = (item.latitude ? item.latitude : "")
  780. markersMap.bindPopupHtml = '<div class="map-tip">' +
  781. '<span>' +
  782. ' <div class="d-l-con">' +
  783. ' <div class="d-l-l-text">' +
  784. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  785. .latitude : "") + '</h4>' +
  786. ' </div>' +
  787. ' </div>' +
  788. ' </span>' +
  789. '<span>' +
  790. ' <div class="d-l-con">' +
  791. ' <div class="d-l-l-text">' +
  792. ' <h4>名称:' + (item.name ? item.name : "") +
  793. '</h4>' +
  794. ' </div>' +
  795. ' </div>' +
  796. ' </span>' +
  797. '<span>' +
  798. ' <div class="d-l-con">' +
  799. ' <div class="d-l-l-text">' +
  800. ' <h4>占地范围:' + (item.zdfw ? item.zdfw : "") +
  801. '</h4>' +
  802. ' </div>' +
  803. ' </div>' +
  804. ' </span>' +
  805. '<span>' +
  806. ' <div class="d-l-con">' +
  807. ' <div class="d-l-l-text">' +
  808. ' <h4>占地面积(万公顷):' + (item.landArea ? item.landArea : "") + '</h4>' +
  809. ' </div>' +
  810. ' </div>' +
  811. ' </span></div>'
  812. } else if (resourceTable == 'centerdata_t_resources_geologic_hazard') { //地质灾害易发区
  813. markersMap.icon = 'sj-icon-map-centerdata-t-resources-geologic-hazard'
  814. markersMap.lng = (item.longitude ? item.longitude : "")
  815. markersMap.lat = (item.latitude ? item.latitude : "")
  816. markersMap.bindPopupHtml = '<div class="map-tip">' +
  817. '<span>' +
  818. ' <div class="d-l-con">' +
  819. ' <div class="d-l-l-text">' +
  820. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  821. .latitude : "") + '</h4>' +
  822. ' </div>' +
  823. ' </div>' +
  824. ' </span>' +
  825. '<span>' +
  826. ' <div class="d-l-con">' +
  827. ' <div class="d-l-l-text">' +
  828. ' <h4>名称:' + (item.name ? item.name : "") +
  829. '</h4>' +
  830. ' </div>' +
  831. ' </div>' +
  832. ' </span>' +
  833. '<span>' +
  834. ' <div class="d-l-con">' +
  835. ' <div class="d-l-l-text">' +
  836. ' <h4>联系人:' + (item.person ? item.person : "") +
  837. '</h4>' +
  838. ' </div>' +
  839. ' </div>' +
  840. ' </span>' +
  841. '<span>' +
  842. ' <div class="d-l-con">' +
  843. ' <div class="d-l-l-text">' +
  844. ' <h4>电话:' + (item.phone ? item.phone : "") + '</h4>' +
  845. ' </div>' +
  846. ' </div>' +
  847. ' </span></div>'
  848. } else if (resourceTable == 'centerdata_t_resources_hydroenergy') { //水能资源
  849. markersMap.icon = 'sj-icon-map-centerdata-t-forest-checkpoint'
  850. markersMap.lng = (item.longitude ? item.longitude : "")
  851. markersMap.lat = (item.latitude ? item.latitude : "")
  852. markersMap.bindPopupHtml = '<div class="map-tip">' +
  853. '<span>' +
  854. ' <div class="d-l-con">' +
  855. ' <div class="d-l-l-text">' +
  856. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  857. .latitude : "") + '</h4>' +
  858. ' </div>' +
  859. ' </div>' +
  860. ' </span>' +
  861. '<span>' +
  862. ' <div class="d-l-con">' +
  863. ' <div class="d-l-l-text">' +
  864. ' <h4>名称:' + (item.name ? item.name : "") +
  865. '</h4>' +
  866. ' </div>' +
  867. ' </div>' +
  868. ' </span>' +
  869. '<span>' +
  870. ' <div class="d-l-con">' +
  871. ' <div class="d-l-l-text">' +
  872. ' <h4>联系人:' + (item.person ? item.person : "") +
  873. '</h4>' +
  874. ' </div>' +
  875. ' </div>' +
  876. ' </span>' +
  877. '<span>' +
  878. ' <div class="d-l-con">' +
  879. ' <div class="d-l-l-text">' +
  880. ' <h4>位置:' + (item.address ? item.address : "") +
  881. '</h4>' +
  882. ' </div>' +
  883. ' </div>' +
  884. ' </span>' +
  885. '<span>' +
  886. ' <div class="d-l-con">' +
  887. ' <div class="d-l-l-text">' +
  888. ' <h4>电话:' + (item.phone ? item.phone : "") +
  889. '</h4>' +
  890. ' </div>' +
  891. ' </div>' +
  892. ' </span></div>'
  893. } else if (resourceTable == 'centerdata_t_resources_land') { //土地资源管理信息
  894. markersMap.icon = 'sj-icon-map-centerdata-t-forest-waterintake'
  895. markersMap.lng = (item.longitude ? item.longitude : "")
  896. markersMap.lat = (item.latitude ? item.latitude : "")
  897. markersMap.bindPopupHtml = '<div class="map-tip">' +
  898. '<span>' +
  899. ' <div class="d-l-con">' +
  900. ' <div class="d-l-l-text">' +
  901. ' <h4>经纬度:' + (item.longitude ? item.longitude : "") + ',' + (item.latitude ? item
  902. .latitude : "") + '</h4>' +
  903. ' </div>' +
  904. ' </div>' +
  905. ' </span>' +
  906. '<span>' +
  907. ' <div class="d-l-con">' +
  908. ' <div class="d-l-l-text">' +
  909. ' <h4>名称:' + (item.name ? item.name : "") +
  910. '</h4>'
  911. ' </div>' +
  912. ' </div>' +
  913. ' </span>' +
  914. '<span>' +
  915. ' <div class="d-l-con">' +
  916. ' <div class="d-l-l-text">' +
  917. ' <h4>占地面积(万公顷):' + (item.landArea ? item.landArea : "") +
  918. '</h4>' +
  919. ' </div>' +
  920. ' </div>' +
  921. ' </span></div>'
  922. }
  923. return markersMap;
  924. },
  925. getMenuEventType() {
  926. let that = this
  927. getMenuEventType().then(res => {
  928. that.websockSid.userId = Cookies.get('userId')
  929. that.websockSid.eventTypeDl = res.data.eventTypeDl
  930. that.websockSid.eventType = res.data.eventType
  931. that.initWebSocket(that.websockSid.userId, that.websockSid.eventTypeDl, that.websockSid.eventType)
  932. console.log(that.websockSid)
  933. })
  934. },
  935. setEventTypeId(data) {
  936. // let data = {eventTypeIdDl: [], eventTypeId: []}
  937. // let data = {eventTypeIdDl: that.eventTypeIdDl, eventTypeId: that.eventTypeId}
  938. let that = this
  939. that.eventTypeIdDl = data.eventTypeIdDl
  940. that.eventTypeId = data.eventTypeId
  941. that.getSupermap(that.calendarDay, false)
  942. that.getTodayEvents(that.calendarDay, false)
  943. that.getEventByEventType(that.calendarDay, false)
  944. that.getExposureStage(that.calendarDay, false)
  945. that.getEventByReportorOrder(that.calendarDay, false)
  946. that.getDeptEventCount(that.calendarDay, false)
  947. that.getEventList(that.calendarDay, that.pageSize, that.pageNum, '', false)
  948. },
  949. // searchEvent(pageSize,pageNum,eventSearch) {
  950. // this.pageSize = pageSize;
  951. // this.pageNum = pageNum;
  952. // let that = this
  953. // //事件列表搜索
  954. // this.eventList = []
  955. // //右侧获取事件列表
  956. // getEventList({ day: that.calendarDay,pageSize:pageSize,pageNum: pageNum ,eventName:eventSearch}).then(res => {
  957. // this.eventList = res.data
  958. // if (this.eventList != null && this.eventList.length > 0) {
  959. // if(this.eventList[0].eventStatusValue == 'forest_event_status_1'){
  960. // that.$refs.bottomMenu.updateAlert();
  961. // that.$refs.up.play();
  962. // }
  963. // }
  964. // })
  965. // },
  966. dropLocation(lat, lng, eventCode) {
  967. this.$refs.supermap.dropLocation(lat, lng, 18)
  968. this.showEventDialog(eventCode)
  969. },
  970. showEventDialog(eventCode) {
  971. //事件信息弹出
  972. this.$refs.eventdetailsdialog.showEventDialog(eventCode)
  973. },
  974. getFirespread(eventCode) {
  975. this.$refs.firespread.showEventDialog(eventCode);
  976. this.$refs.firespread.fireControlViewList()
  977. },
  978. getCurrentDataStr() {
  979. let date = new Date()
  980. let y = date.getFullYear()
  981. let m = date.getMonth() + 1
  982. m = m < 10 ? '0' + m : m
  983. let d = date.getDate()
  984. d = d < 10 ? '0' + d : d
  985. return y + '-' + m + '-' + d
  986. },
  987. selectDay(day) { //日历点击
  988. this.getTodayEvents(day)
  989. this.getDeptEventCount(day)
  990. this.getWeather(day)
  991. this.getEventList(day, 10, 1)
  992. this.getEventByEventType(day)
  993. this.getEventByReportorOrder(day)
  994. this.getExposureStage(day)
  995. this.getSupermap(day);
  996. this.calendarDay = day
  997. },
  998. //事件数量统计chart 样例地址http://192.144.199.210:8080/editor/index.html?chart_id=jTXf0Rv4A3oiBONB
  999. eventChartAi(aiTotal_pre, otherTotal_pre) {
  1000. // 基于准备好的dom,初始化echarts实例
  1001. let myChart = echarts.init(document.getElementById('chart-event-ai'))
  1002. myChart.setOption({
  1003. tooltip: {
  1004. trigger: 'none'
  1005. },
  1006. grid: {
  1007. top: '65%',
  1008. left: '5%',
  1009. right: '5%'
  1010. },
  1011. yAxis: {
  1012. data: ['百分比'],
  1013. axisTick: {
  1014. show: false
  1015. },
  1016. axisLine: {
  1017. show: false
  1018. },
  1019. axisLabel: {
  1020. show: false
  1021. }
  1022. },
  1023. xAxis: {
  1024. splitLine: {
  1025. show: false
  1026. },
  1027. axisTick: {
  1028. show: false
  1029. },
  1030. axisLine: {
  1031. show: false
  1032. },
  1033. axisLabel: {
  1034. show: false
  1035. }
  1036. },
  1037. legend: {
  1038. data: ['AI', '其他'],
  1039. bottom: '5%',
  1040. textStyle: {
  1041. color: '#1FC3CE',
  1042. fontSize: 14
  1043. }
  1044. },
  1045. series: [{
  1046. // name: '最上层立体圆',
  1047. type: 'pictorialBar',
  1048. symbolSize: [10, 20],
  1049. symbolOffset: [2, 0],
  1050. z: 12,
  1051. itemStyle: {
  1052. normal: {
  1053. color: '#293CA0'
  1054. }
  1055. },
  1056. data: [{
  1057. value: 100,
  1058. symbolPosition: 'end'
  1059. }]
  1060. }, {
  1061. // name: '中间立体圆',
  1062. type: 'pictorialBar',
  1063. symbolSize: [10, 20],
  1064. symbolOffset: [2, 0],
  1065. z: 12,
  1066. itemStyle: {
  1067. normal: {
  1068. color: '#45ac8d'
  1069. }
  1070. },
  1071. data: [{
  1072. value: aiTotal_pre,
  1073. symbolPosition: 'end'
  1074. }]
  1075. }, {
  1076. // name: '最底部立体圆',
  1077. type: 'pictorialBar',
  1078. symbolSize: [10, 20],
  1079. symbolOffset: [-4, 0],
  1080. z: 12,
  1081. itemStyle: {
  1082. normal: {
  1083. color: '#196d59'
  1084. }
  1085. },
  1086. data: [otherTotal_pre]
  1087. }, {
  1088. name: 'AI',
  1089. //底部立体柱
  1090. stack: '1',
  1091. type: 'bar',
  1092. itemStyle: {
  1093. normal: {
  1094. color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [{
  1095. offset: 0,
  1096. color: '#29ac8f'
  1097. }, {
  1098. offset: 1,
  1099. color: '#0a3f3f'
  1100. }])
  1101. }
  1102. },
  1103. label: {
  1104. normal: {
  1105. show: true,
  1106. position: 'inside',
  1107. offset: [0, 1],
  1108. formatter: function(obj) {
  1109. return (obj.value).toLocaleString() + '%'
  1110. },
  1111. textStyle: {
  1112. align: 'center',
  1113. baseline: 'middle',
  1114. fontSize: 14,
  1115. fontWeight: '400',
  1116. color: '#fff',
  1117. textShadowColor: '#000',
  1118. textShadowBlur: '0',
  1119. textShadowOffsetX: 1,
  1120. textShadowOffsetY: 1
  1121. }
  1122. }
  1123. },
  1124. silent: true,
  1125. barWidth: 20,
  1126. barGap: '-100%', // Make series be overlap
  1127. data: [aiTotal_pre]
  1128. }, {
  1129. name: '其他',
  1130. //上部立体柱
  1131. stack: '1',
  1132. type: 'bar',
  1133. itemStyle: {
  1134. normal: {
  1135. color: '#14257B',
  1136. opacity: .7
  1137. }
  1138. },
  1139. silent: true,
  1140. barWidth: 20,
  1141. barGap: '-100%', // Make series be overlap
  1142. data: [otherTotal_pre],
  1143. // itemStyle: {
  1144. // normal: {
  1145. // color: 'rgba(29,67,243,1)',
  1146. // }
  1147. // },
  1148. label: {
  1149. normal: {
  1150. show: true,
  1151. position: 'inside',
  1152. offset: [0, 1],
  1153. formatter: function(obj) {
  1154. return (obj.value).toLocaleString() + '%'
  1155. },
  1156. textStyle: {
  1157. align: 'center',
  1158. baseline: 'middle',
  1159. fontSize: 14,
  1160. fontWeight: '400',
  1161. color: '#fff',
  1162. textShadowColor: '#000',
  1163. textShadowBlur: '0',
  1164. textShadowOffsetX: 1,
  1165. textShadowOffsetY: 1
  1166. }
  1167. }
  1168. }
  1169. }]
  1170. })
  1171. },
  1172. fatherMethod(dianshiqiang, longitude, latitude, item) {
  1173. this.$refs.TVWalls.showTVWall(
  1174. dianshiqiang, {
  1175. longitude: longitude,
  1176. latitude: latitude,
  1177. },
  1178. item
  1179. );
  1180. },
  1181. getBaseInfo() {
  1182. //左侧获取部门信息
  1183. getBaseInfo().then(res => {
  1184. if (res.code == 200) {
  1185. if (res.msg == '暂无特色信息') {
  1186. this.forestInfo = '暂无特色信息!'
  1187. } else {
  1188. this.forestInfo = res.data.baseinfo //基本情况
  1189. }
  1190. }
  1191. })
  1192. },
  1193. getTodayEvents(day, loading) {
  1194. let that = this
  1195. //左侧获取事件信息统计
  1196. getTodayEvents({
  1197. eventTypeIdDl: that.eventTypeIdDl,
  1198. eventTypeId: that.eventTypeId,
  1199. day: day
  1200. }, loading).then(res => {
  1201. this.aiTotal = res.data.aiTotal
  1202. this.aiTotal_pre = res.data.aiTotal_pre
  1203. this.newReport = res.data.newReport
  1204. this.newReport_pre = res.data.newReport_pre
  1205. this.otherTotal = res.data.otherTotal
  1206. this.otherTotal_pre = res.data.otherTotal_pre
  1207. this.readyFinish = res.data.readyFinish
  1208. this.readyFinish_pre = res.data.readyFinish_pre
  1209. this.readySure = res.data.readySure
  1210. this.readySure_pre = res.data.readySure_pre
  1211. this.totalStr = res.data.totalStr
  1212. this.totalAllEvent = +res.data.totalStr
  1213. this.total = res.data.total
  1214. this.eventChartAi(this.aiTotal_pre, this.otherTotal_pre)
  1215. })
  1216. },
  1217. getDeptEventCount(day, loading) {
  1218. let that = this
  1219. //左侧获取事件部门数量
  1220. getDeptEventCount({
  1221. eventTypeIdDl: that.eventTypeIdDl,
  1222. eventTypeId: that.eventTypeId,
  1223. day: day
  1224. }, loading).then(res => {
  1225. this.forestFarm = res.data
  1226. })
  1227. },
  1228. getWeather(day) {
  1229. let that = this
  1230. //右侧获取天气信息
  1231. getWeather({
  1232. day: day
  1233. }).then(res => {
  1234. if (res.code == 200) {
  1235. if (res.msg == '天气未添加') {
  1236. this.todatWeather = false
  1237. } else {
  1238. this.todatWeather = true
  1239. this.weatherinformationDirection = res.data.weatherinformationDirection
  1240. this.weatherinformationHigh = res.data.weatherinformationHigh
  1241. this.weatherinformationLevel = res.data.weatherinformationLevel
  1242. this.weatherinformationLevelValue = res.data.weatherinformationLevelValue
  1243. this.weatherinformationLow = res.data.weatherinformationLow
  1244. this.weatherinformationPower = res.data.weatherinformationPower
  1245. this.weatherinformationTemperature = res.data.weatherinformationTemperature
  1246. this.weatherinformationTime = res.data.weatherinformationTime
  1247. this.weatherinformationWeather = res.data.weatherinformationWeather
  1248. }
  1249. } else {
  1250. this.todatWeather = false
  1251. }
  1252. })
  1253. },
  1254. getSupermap(day, loading) {
  1255. let that = this
  1256. getNearEvent('', '', day, loading, that.eventTypeIdDl, that.eventTypeId).then(res => {
  1257. that.markersList = [];
  1258. if (res.data != null && res.data.length > 0) {
  1259. for (let i = 0; i < res.data.length; i++) {
  1260. let markersMap = {
  1261. lng: 124.59,
  1262. lat: 43.02,
  1263. icon: 'marker',
  1264. bindPopupHtml: '',
  1265. click: '',
  1266. parameter: '',
  1267. keepBindPopup: false,
  1268. isAggregation: false
  1269. }
  1270. if (res.data.length > 200) {
  1271. markersMap.isAggregation = true
  1272. }
  1273. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount == 0) {
  1274. markersMap.click = 'showEventDialog'
  1275. markersMap.icon = 'sj-icon-map-xinshangbao'
  1276. }
  1277. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount > 0) {
  1278. markersMap.click = 'showEventDialog'
  1279. markersMap.icon = 'sj-icon-map-cuiban'
  1280. } else if (res.data[i].eventStatusValue == 'forest_event_status_2') {
  1281. markersMap.click = 'showEventDialog'
  1282. markersMap.icon = 'sj-icon-map-qianshou'
  1283. markersMap.isAggregation = false
  1284. } else if (res.data[i].eventStatusValue == 'forest_event_status_5') {
  1285. markersMap.click = 'showEventDialog'
  1286. markersMap.icon = 'sj-icon-map-banjie'
  1287. markersMap.isAggregation = false
  1288. } else if (res.data[i].eventStatusValue == 'forest_event_status_6') {
  1289. markersMap.click = 'showEventDialog'
  1290. markersMap.icon = 'sj-icon-map-guidang'
  1291. } else if (res.data[i].eventStatusValue == 'forest_event_status_7') {
  1292. markersMap.click = 'showEventDialog'
  1293. markersMap.icon = 'sj-icon-map-queren'
  1294. }
  1295. markersMap.parameter = res.data[i].eventCode
  1296. markersMap.lng = res.data[i].longitude
  1297. markersMap.lat = res.data[i].latitude
  1298. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1299. '<span>' +
  1300. ' <div class="d-l-con">' +
  1301. ' <div class="d-l-l-text">' +
  1302. ' <h4>经纬度:' + res.data[i].longitude + ',' + res.data[i].latitude + '</h4>' +
  1303. ' </div>' +
  1304. ' </div>' +
  1305. ' </span>' +
  1306. '<span>' +
  1307. ' <div class="d-l-con">' +
  1308. ' <div class="d-l-l-text">' +
  1309. ' <h4>事件名称:' + res.data[i].eventName + '</h4>' +
  1310. ' </div>' +
  1311. ' </div>' +
  1312. ' </span>' +
  1313. '<span>' +
  1314. ' <div class="d-l-con">' +
  1315. ' <div class="d-l-l-text">' +
  1316. ' <h4>事件时间:' + res.data[i].createTime + '</h4>' +
  1317. ' </div>' +
  1318. ' </div>' +
  1319. ' </span>';
  1320. if (res.data[i].pictureType == 'image' && res.data[i].picturePath != null && res.data[i]
  1321. .picturePath != '') {
  1322. markersMap.bindPopupHtml += '<span>' +
  1323. ' <div class="d-l-con">' +
  1324. ' <div class="d-l-l-text">' +
  1325. '<img src="' + res.data[i].picturePath + '" style="width: 150px;height: 100px"/>' +
  1326. ' </div>' +
  1327. ' </div>' +
  1328. ' </span>'
  1329. }
  1330. markersMap.bindPopupHtml += '</div>'
  1331. that.markersList.push(markersMap)
  1332. }
  1333. setTimeout(() => {
  1334. that.$refs.supermap.clearM()
  1335. that.$refs.supermap.setMarkers(that.markersList)
  1336. }, 2000)
  1337. } else {
  1338. setTimeout(() => {
  1339. that.$refs.supermap.clearM()
  1340. }, 2000)
  1341. }
  1342. })
  1343. },
  1344. getEventList(day, pageSize, pageNum, eventSearch, loading) {
  1345. let num=this.eventList.length/pageSize+1
  1346. if (pageNum < 1) {
  1347. this.$modal.msg('当前已是第一页')
  1348. return
  1349. } else if(pageNum>this.totalAllEvent/10+1)
  1350. {
  1351. this.$modal.msg('当前已是最后一页')
  1352. return;
  1353. }
  1354. this.pageSize = pageSize;
  1355. this.pageNum = pageNum;
  1356. let that = this
  1357. this.eventList = []
  1358. //右侧获取事件列表
  1359. getEventList({
  1360. eventTypeIdDl: that.eventTypeIdDl,
  1361. eventTypeId: that.eventTypeId,
  1362. day: day,
  1363. pageSize: pageSize,
  1364. pageNum: pageNum,
  1365. eventName: eventSearch
  1366. }, loading).then(res => {
  1367. this.eventList = res.data
  1368. if (this.eventList != null && this.eventList.length > 0) {
  1369. if (this.eventList[0].eventStatusValue == 'forest_event_status_1') {
  1370. that.$refs.bottomMenu.updateAlert();
  1371. that.$refs.up.play();
  1372. } else {
  1373. that.$refs.bottomMenu.updateAlertFalse();
  1374. }
  1375. }
  1376. })
  1377. },
  1378. getEventByEventType(day, loading) {
  1379. let that = this
  1380. //右侧获取事件分类
  1381. getEventByEventType({
  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.showEventKind = true
  1388. this.eventKind.data = res.data
  1389. this.eventKind.colors = ['#1ce0a9', '#d6333b', '#e68d3f', '#32c5e9', '#2abc65']
  1390. this.eventKind.showValue = true
  1391. this.eventKind = {
  1392. ...this.eventKind
  1393. }
  1394. } else {
  1395. this.showEventKind = false
  1396. this.eventKind = {}
  1397. this.eventKind = {
  1398. ...this.eventKind
  1399. }
  1400. }
  1401. })
  1402. },
  1403. getEventByReportorOrder(day, loading) {
  1404. let that = this
  1405. //右侧获取上报排名
  1406. getEventByReportorOrder({
  1407. eventTypeIdDl: that.eventTypeIdDl,
  1408. eventTypeId: that.eventTypeId,
  1409. day: day
  1410. }, loading).then(res => {
  1411. if (res.data != null && res.data.length > 0) {
  1412. this.reportList.data = res.data
  1413. this.reportList = {
  1414. ...this.reportList
  1415. }
  1416. } else {
  1417. this.reportList.data = []
  1418. this.reportList = {
  1419. ...this.reportList
  1420. }
  1421. }
  1422. })
  1423. },
  1424. getEventListNew() {
  1425. this.eventList = []
  1426. this.eventListAll = []
  1427. //右侧获取事件列表
  1428. getEventList({
  1429. day: this.getCurrentDataStr()
  1430. }).then(res => {
  1431. this.eventList = res.data
  1432. this.eventListAll = res.data
  1433. })
  1434. },
  1435. getWebSocketEvent(data) {
  1436. let that = this
  1437. // const event = JSON.parse(data);
  1438. let event = data
  1439. if (typeof data != 'object') {
  1440. event = JSON.parse(data);
  1441. }
  1442. //右侧获取事件列表
  1443. that.markersList = []
  1444. let markersMap = {
  1445. lng: 124.59,
  1446. lat: 43.02,
  1447. icon: 'marker',
  1448. bindPopupHtml: '',
  1449. click: '',
  1450. parameter: '',
  1451. keepBindPopup: false,
  1452. isAggregation: false
  1453. }
  1454. if (event.eventStatusValue == 'forest_event_status_1' && event.urgeCount == 0) {
  1455. markersMap.click = 'showEventDialog'
  1456. markersMap.icon = 'sj-icon-map-xinshangbao'
  1457. }
  1458. if (event.eventStatusValue == 'forest_event_status_1' && event.urgeCount > 0) {
  1459. markersMap.click = 'showEventDialog'
  1460. markersMap.icon = 'sj-icon-map-cuiban'
  1461. } else if (event.eventStatusValue == 'forest_event_status_2') {
  1462. markersMap.click = 'showEventDialog'
  1463. markersMap.icon = 'sj-icon-map-qianshou'
  1464. markersMap.isAggregation = false
  1465. } else if (event.eventStatusValue == 'forest_event_status_5') {
  1466. markersMap.click = 'showEventDialog'
  1467. markersMap.icon = 'sj-icon-map-banjie'
  1468. markersMap.isAggregation = false
  1469. } else if (event.eventStatusValue == 'forest_event_status_6') {
  1470. markersMap.click = 'showEventDialog'
  1471. markersMap.icon = 'sj-icon-map-guidang'
  1472. } else if (event.eventStatusValue == 'forest_event_status_7') {
  1473. markersMap.click = 'showEventDialog'
  1474. markersMap.icon = 'sj-icon-map-queren'
  1475. }
  1476. markersMap.parameter = event.eventCode
  1477. markersMap.lng = event.longitude
  1478. markersMap.lat = event.latitude
  1479. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1480. '<span>' +
  1481. ' <div class="d-l-con">' +
  1482. ' <div class="d-l-l-text">' +
  1483. ' <h4>经纬度:' + event.longitude + ',' + event.latitude + '</h4>' +
  1484. ' </div>' +
  1485. ' </div>' +
  1486. ' </span>' +
  1487. '<span>' +
  1488. ' <div class="d-l-con">' +
  1489. ' <div class="d-l-l-text">' +
  1490. ' <h4>事件名称:' + event.eventName + '</h4>' +
  1491. ' </div>' +
  1492. ' </div>' +
  1493. ' </span>' +
  1494. '<span>' +
  1495. ' <div class="d-l-con">' +
  1496. ' <div class="d-l-l-text">' +
  1497. ' <h4>事件时间:' + event.createTime + '</h4>' +
  1498. ' </div>' +
  1499. ' </div>' +
  1500. ' </span>';
  1501. if (event.pictureType == 'image' && event.picturePath != null && event.picturePath != '') {
  1502. markersMap.bindPopupHtml += '<span>' +
  1503. ' <div class="d-l-con">' +
  1504. ' <div class="d-l-l-text">' +
  1505. '<img src="' + event.picturePath + '" style="width: 150px;height: 100px"/>' +
  1506. ' </div>' +
  1507. ' </div>' +
  1508. ' </span>'
  1509. }
  1510. markersMap.bindPopupHtml += '</div>'
  1511. that.markersList.push(markersMap)
  1512. setTimeout(() => {
  1513. that.$refs.supermap.clearM()
  1514. that.$refs.supermap.setMarkers(that.markersList)
  1515. }, 1000)
  1516. },
  1517. getExposureStage(day, loading) {
  1518. let that = this
  1519. //右侧获取曝光台
  1520. getExposureStage({
  1521. eventTypeIdDl: that.eventTypeIdDl,
  1522. eventTypeId: that.eventTypeId,
  1523. day: day
  1524. }, loading).then(res => {
  1525. this.exposureStageList = res.data
  1526. })
  1527. },
  1528. /** ----------------------------------weosocket开始------------------------------------- */
  1529. initWebSocket(userId, eventTypeDl, eventType) { //初始化weosocket
  1530. selectConfigKey('KSH_SOCKET').then(res => {
  1531. const wsuri = res.data + userId + '/' + eventTypeDl + '/' + eventType
  1532. this.websock = new WebSocket(wsuri)
  1533. console.log('建立websocket连接')
  1534. this.websock.onopen = this.websocketonopen
  1535. this.websock.onmessage = this.websocketonmessage
  1536. this.websock.onerror = this.websocketonerror
  1537. })
  1538. },
  1539. // 处理WebSocket事件
  1540. handleWebSoceketEvent(val) {
  1541. let that = this
  1542. let data = JSON.parse(val)
  1543. /**
  1544. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  1545. * eventPush: 事件列表消息
  1546. * */
  1547. if (data.tag == "eventPush" && that.markersList.filter(item => data.eventCode == item.parameter).length == 0) {
  1548. getEventPush({
  1549. eventCode: data.eventCode
  1550. }).then((res) => {
  1551. if (res.data != undefined) {
  1552. //插入到第一条
  1553. this.eventList.unshift(res.data)
  1554. // 插入后删除最后一条 保证列表中为10条数据
  1555. if (this.eventList.length > 9)
  1556. this.eventList.splice(10, 1)
  1557. // 将收到的数据在地图上添加
  1558. this.getWebSocketEvent(res.data)
  1559. }
  1560. })
  1561. }
  1562. console.log(that.eventList[0])
  1563. },
  1564. websocketonopen() { //连接建立之后执行send方法发送数据
  1565. console.log('websocket连接成功')
  1566. this.weosocket = true
  1567. this.sendPing()
  1568. },
  1569. websocketonerror() { //连接建立失败重连
  1570. this.initWebSocket(this.websockSid.userId, this.websockSid.eventTypeDl, this.websockSid.eventType, )
  1571. },
  1572. websocketonmessage(e) { //数据接收
  1573. console.log('接收数据', e.data)
  1574. // let data = "{\"fromId\":\"forest\",\"fromUserId\":\""+Cookies.get('username')+"\",\"toUserId\":\""+Cookies.get('username')+"\"}";
  1575. let data = "{\"fromId\":\"resources\"}";
  1576. if (this.calendarDay == this.getCurrentDataStr() && data != e.data) {
  1577. // 处理收到的消息
  1578. this.handleWebSoceketEvent(e.data)
  1579. this.getTodayEvents(this.getCurrentDataStr(), true);
  1580. this.getDeptEventCount(this.getCurrentDataStr(), true);
  1581. this.getEventByEventType(this.getCurrentDataStr(), true);
  1582. this.getEventByReportorOrder(this.getCurrentDataStr(), true);
  1583. this.getExposureStage(this.getCurrentDataStr(), true);
  1584. this.$refs.bottomMenu.updateAlert();
  1585. this.$refs.up.play();
  1586. // thes.$refs.up.pause();//停止播放音乐
  1587. }
  1588. },
  1589. websocketsend(Data) { //数据发送
  1590. this.websock.send(Data)
  1591. },
  1592. websocketclose(e) { //关闭
  1593. console.log('断开连接', e)
  1594. // clearInterval(this.setIntervalWesocketPush)
  1595. this.weosocket = false
  1596. },
  1597. /**发送心跳
  1598. * @param {number} time 心跳间隔毫秒 默认5000
  1599. * @param {string} ping 心跳名称 默认字符串ping
  1600. */
  1601. sendPing(time = 60000, ping = {
  1602. 'fromId': 'resources'
  1603. }) {
  1604. clearInterval(this.setIntervalWesocketPush)
  1605. this.setIntervalWesocketPush = setInterval(() => {
  1606. if (this.weosocket) {
  1607. this.websock.send(JSON.stringify(ping))
  1608. } else {
  1609. // this.initWebSocket()
  1610. }
  1611. }, time)
  1612. },
  1613. stopAudio() {
  1614. this.$refs.up.pause(); //停止播放音乐
  1615. this.$refs.up.currentTime = 0;
  1616. },
  1617. /** ----------------------------------weosocket结束------------------------------------- */
  1618. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  1619. bottomMenuList() {
  1620. this.$refs.bottomMenu.selectTaskList() //获取任务列表
  1621. this.$refs.bottomMenu.selectMessageList() //获取消息列表
  1622. },
  1623. showDialog(click) {
  1624. if (click == 'eventLocation') {
  1625. this.$refs.eventLocation.showEventLocation()
  1626. this.$refs.bottomMenu.showMeasure = false
  1627. this.$refs.bottomMenu.showChild = false
  1628. this.$refs.bottomMenu.showBanChild = false
  1629. this.$refs.bottomMenu.showChangChild = false
  1630. } else if (click == 'editableLayers') {
  1631. this.$refs.bottomMenu.showChild = false
  1632. this.$refs.bottomMenu.showBanChild = false
  1633. this.$refs.bottomMenu.showChangChild = false
  1634. if (!this.$refs.bottomMenu.showMeasure) {
  1635. this.$refs.bottomMenu.showMeasure = true
  1636. } else {
  1637. this.$refs.bottomMenu.showMeasure = false
  1638. }
  1639. } else if (click == 'layerSwitching') {
  1640. this.$refs.bottomMenu.showMeasure = false
  1641. this.$refs.bottomMenu.showBanChild = false
  1642. this.$refs.bottomMenu.showChangChild = false
  1643. if (!this.$refs.bottomMenu.showChild) {
  1644. this.$refs.bottomMenu.showChild = true
  1645. } else {
  1646. this.$refs.bottomMenu.showChild = false
  1647. }
  1648. } else if (click == 'TVWall') {
  1649. this.$refs.TVWall.showTVWall()
  1650. this.$refs.bottomMenu.showMeasure = false
  1651. this.$refs.bottomMenu.showChild = false
  1652. this.$refs.bottomMenu.showBanChild = false
  1653. this.$refs.bottomMenu.showChangChild = false
  1654. } else if (click == 'forestban') {
  1655. this.$refs.bottomMenu.showMeasure = false
  1656. this.$refs.bottomMenu.showChild = false
  1657. this.$refs.bottomMenu.showChangChild = false
  1658. if (!this.$refs.bottomMenu.showBanChild) {
  1659. this.$refs.bottomMenu.showBanChild = true
  1660. } else {
  1661. this.$refs.bottomMenu.showBanChild = false
  1662. }
  1663. } else if (click == 'forestchang') {
  1664. this.$refs.bottomMenu.showMeasure = false
  1665. this.$refs.bottomMenu.showBanChild = false
  1666. this.$refs.bottomMenu.showChild = false
  1667. if (!this.$refs.bottomMenu.showChangChild) {
  1668. this.$refs.bottomMenu.showChangChild = true
  1669. } else {
  1670. this.$refs.bottomMenu.showChangChild = false
  1671. }
  1672. }
  1673. },
  1674. //选择图层
  1675. choseLayerSwitching(url, isClear) {
  1676. this.$refs.supermap.layerSwitching(url, isClear)
  1677. },
  1678. //选择图层(传递数组)
  1679. choseLayerSwitchingList(urlList) {
  1680. this.$refs.supermap.layerSwitchingList(urlList)
  1681. },
  1682. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  1683. }
  1684. }
  1685. </script>
  1686. <style rel="stylesheet/scss" lang="scss" scoped>
  1687. @import '@/assets/styles/base.scss';
  1688. .paging {
  1689. padding: .5rem .3rem;
  1690. display: flex;
  1691. justify-content: center;
  1692. align-content: center;
  1693. span {
  1694. color: #2bacf7;
  1695. display: flex;
  1696. align-items: center;
  1697. padding: 0 1rem;
  1698. }
  1699. button {
  1700. padding: 0 0.3rem;
  1701. height: 1.5rem;
  1702. background-color: #112543;
  1703. color: #2bacf7;
  1704. border: 1px solid #33467f;
  1705. }
  1706. button:hover {
  1707. padding: 0 0.3rem;
  1708. height: 1.5rem;
  1709. background-color: #112543;
  1710. color: #0ff7c5;
  1711. border: 1px solid #1d657f;
  1712. }
  1713. }
  1714. </style>
  1715. <style lang="scss">
  1716. @import '@/assets/styles/base.scss';
  1717. .bottomRight{
  1718. .el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
  1719. background-color: $searchBG;
  1720. }
  1721. .el-table td.el-table__cell, .el-table th.el-table__cell.is-leaf {
  1722. border-bottom: 1px $tableBorder;
  1723. }
  1724. .el-table--border, .el-table--border::after {
  1725. border: 1px $tableBorder;
  1726. background-color: $searchBG
  1727. }
  1728. .el-table--border {
  1729. .el-table--group {
  1730. border: 1px $tableBorder;
  1731. }
  1732. .el-table__cell {
  1733. border-right: 1px $tableBorder;;
  1734. }
  1735. }
  1736. .el-table::before {
  1737. background: $searchBG;
  1738. }
  1739. .el-table {
  1740. background: $searchBG;
  1741. color: $inBlue;
  1742. thead {
  1743. }
  1744. tr {
  1745. background: $searchBG;
  1746. }
  1747. td {
  1748. text-align: center;
  1749. }
  1750. .el-table__header-wrapper {
  1751. th {
  1752. color: $inBlue;
  1753. font-size: .8rem;
  1754. }
  1755. }
  1756. thead.is-group {
  1757. .el-table__cell {
  1758. text-align: center;
  1759. background: $searchBG;
  1760. border-bottom: 1px $tableBorder;
  1761. border-right: 1px $tableBorder;
  1762. padding: 0;
  1763. font-weight: normal;
  1764. }
  1765. }
  1766. }
  1767. .el-table__empty-block {
  1768. min-height: auto;
  1769. }
  1770. .el-table__empty-text {
  1771. line-height: 30px;
  1772. }
  1773. .el-table__header {
  1774. width: auto !important
  1775. }
  1776. .el-table__empty-block {
  1777. width: auto !important
  1778. }
  1779. .el-table__body-wrapper {
  1780. .el-table__body {
  1781. width: auto !important
  1782. }
  1783. }
  1784. .el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  1785. background-color: #0f3655;
  1786. }
  1787. }
  1788. </style>