forest.vue 89 KB

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