forest.vue 70 KB

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