vBottomMenu.vue 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102
  1. <template>
  2. <div class="btm-box">
  3. <img class="light" src="../assets/images/integrated/btm-light.png"/>
  4. <div class="btm-left" :class="btmTipIndent">
  5. <div class="btm-left-tip">
  6. <div class="btm-left-block btm-left-state-c1"></div>
  7. 新上报
  8. </div>
  9. <div class="btm-left-tip">
  10. <div class="btm-left-block btm-left-state-c2"></div>
  11. 催办
  12. </div>
  13. <div class="btm-left-tip">
  14. <div class="btm-left-block btm-left-state-c3"></div>
  15. 已签收
  16. </div>
  17. <!-- div class="btm-left-tip">
  18. <div class="btm-left-block btm-left-state-c4"></div>
  19. 联动
  20. </div> -->
  21. <div class="btm-left-tip">
  22. <div class="btm-left-block btm-left-state-c5"></div>
  23. 办结
  24. </div>
  25. <div class="btm-left-tip">
  26. <div class="btm-left-block btm-left-state-c6"></div>
  27. 归档
  28. </div>
  29. <div class="btm-legend" @click="btmIndent">
  30. <span>图例</span>
  31. <i class="el-icon-caret-right" v-if="this.btmTipIndent !== 'btm-tip-to-right'"></i>
  32. <i class="el-icon-caret-left" v-if="this.btmTipIndent == 'btm-tip-to-right'"></i>
  33. </div>
  34. </div>
  35. <div class="bottom-menu-normal">
  36. <div v-for="(fastMenu,index) in fastMenu" :key="index" class="btm-m-con">
  37. <a><i :class="fastMenu.icon" @click.stop="showDialog(fastMenu.click)"></i><a
  38. @click.stop="showDialog(fastMenu.click)">{{ fastMenu.name }}</a>
  39. <div v-if="showChild && fastMenu.click == 'layerSwitching'" class="nav-child">
  40. <el-button type="primary"
  41. @click.stop="choseLayerSwitching(null,true)"
  42. class="nav-child-btn" plain>矢量图
  43. </el-button>
  44. <el-button type="primary"
  45. @click.stop="choseLayerSwitching('http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/baishanyingxiang',true)"
  46. class="nav-child-btn" plain>影像图
  47. </el-button>
  48. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  49. @click.stop="closeChild"></el-button> -->
  50. </div>
  51. <div v-if="showMeasure && fastMenu.click == 'editableLayers'" class="nav-child">
  52. <el-button type="primary"
  53. @click.stop="choseMeasuringDistance"
  54. class="nav-child-btn" plain>测距
  55. </el-button>
  56. <el-button type="primary"
  57. @click.stop="choseMeasuringArea"
  58. class="nav-child-btn" plain>测面
  59. </el-button>
  60. <el-button type="primary"
  61. @click.stop="choseMeasuringClear"
  62. class="nav-child-btn" plain>清除
  63. </el-button>
  64. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  65. @click.stop="closeChild"></el-button> -->
  66. </div>
  67. <!-- 林斑 -->
  68. <div v-show="showBanChild && fastMenu.click == 'forestban'" class="nav-child">
  69. <div class="forestban">
  70. <div class="forestban-con">
  71. <!-- <el-input-->
  72. <!-- placeholder="输入关键字进行过滤"-->
  73. <!-- v-model="filterbanText">-->
  74. <!-- </el-input>-->
  75. <el-tree :data="deptBanOptionsLiandong" ref="banDept" node-key="id" :check-strictly="true"
  76. :filter-node-method="filterbanNode" @node-click="handlebanNodeClick" :accordion="true"
  77. empty-text=""
  78. :props="defaultProps"></el-tree>
  79. </div>
  80. <div class="forestban-right">
  81. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterban"
  82. @change="searchFilterban(filterchang)">
  83. </el-input>
  84. <el-checkbox-group v-model="banCheckList_Data">
  85. <el-checkbox v-for="(item,index) in filterbanList" :label="item"
  86. @change="handleCheckedCitiesChangeBan_Data">
  87. {{ item.farmName }}
  88. </el-checkbox>
  89. </el-checkbox-group>
  90. </div>
  91. <el-button type="danger" icon="el-icon-close"
  92. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  93. @click.stop="closeBanChild"></el-button>
  94. </div>
  95. </div>
  96. <!-- 林场 -->
  97. <div v-show="showChangChild && fastMenu.click == 'forestchang'" class="nav-child">
  98. <div class="forestban">
  99. <div class="forestban-con">
  100. <!-- <el-input-->
  101. <!-- placeholder="输入关键字进行过滤"-->
  102. <!-- v-model="filterchangText">-->
  103. <!-- </el-input>-->
  104. <el-tree :data="deptChangOptionsLiandong" ref="changDept" node-key="id"
  105. :check-strictly="true" :filter-node-method="filterchangNode"
  106. @node-click="handlechangNodeClick" :accordion="true" empty-text="加载中,请稍候"
  107. :props="defaultProps"></el-tree>
  108. </div>
  109. <div class="forestban-right">
  110. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterchang"
  111. @change="searchFilterchang(filterchang)">
  112. </el-input>
  113. <el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
  114. <el-checkbox v-for="(item,index) in filterchangList" :label="item.farmAddress">
  115. {{ item.farmName }}
  116. </el-checkbox>
  117. </el-checkbox-group>
  118. </div>
  119. <el-button type="danger" icon="el-icon-close"
  120. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  121. @click.stop="closeChangChild"></el-button>
  122. </div>
  123. </div>
  124. </a>
  125. </div>
  126. </div>
  127. <div class="btm-right">
  128. <el-popover placement="top" trigger="click" :disabled="taskCount==0">
  129. <div class="btm-r-pop-info">
  130. <div class="btm-r-pop-info-box" v-for="(item,index) in taskList">
  131. <div class="btm-r-pop-info-tit">
  132. <h3>{{ item.taskSourceValue }}</h3>
  133. </div>
  134. <div class="btm-r-pop-info-con">
  135. <div class="btm-r-pop-info-list">
  136. <div class="btm-r-pop-info-list-name">标题</div>
  137. <div class="btm-r-pop-info-list-text">{{ item.taskTitle }}</div>
  138. </div>
  139. <div class="btm-r-pop-info-list">
  140. <div class="btm-r-pop-info-list-name">发起人</div>
  141. <div class="btm-r-pop-info-list-text">{{ item.sendPersonName }}</div>
  142. </div>
  143. <div class="btm-r-pop-info-list">
  144. <div class="btm-r-pop-info-list-name">发起时间</div>
  145. <div class="btm-r-pop-info-list-text">{{ item.taskSendTime }}</div>
  146. </div>
  147. <div class="btm-r-pop-info-list">
  148. <div class="btm-r-pop-info-list-name">关联事件</div>
  149. <div class="btm-r-pop-info-list-text">{{ item.eventName }}</div>
  150. </div>
  151. <div class="btm-r-pop-info-list">
  152. <div class="btm-r-pop-info-list-name">催办状态</div>
  153. <div class="btm-r-pop-info-list-text" style="color: red" v-if="item.isUrged==1">
  154. 任务催办中,请及时处理!!
  155. </div>
  156. <div class="btm-r-pop-info-list-text" v-else>正常</div>
  157. </div>
  158. </div>
  159. <div class="btm-r-pop-info-btm">
  160. <el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
  161. <div class="btm-r-pop-info-btm-btn">
  162. <el-button type="danger" @click="refusedTask(item.taskId,item.eventCode)">拒绝
  163. </el-button>
  164. <el-button type="primary" @click="receiveTask(item.taskId,item.eventCode)">领取
  165. </el-button>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. <el-badge :value="taskCount" slot="reference" :hidden="taskCount==0">
  171. <el-button size="small" icon="el-icon-bank-card">任务</el-button>
  172. </el-badge>
  173. </el-popover>
  174. <el-popover placement="top" trigger="click" :disabled="messageCount==0">
  175. <div class="btm-r-pop-info">
  176. <div class="btm-r-pop-info-box" v-for="(item,index) in messageList">
  177. <div class="btm-r-pop-info-con">
  178. <div class="btm-r-pop-info-list">
  179. <div class="btm-r-pop-info-list-name">标题</div>
  180. <div class="btm-r-pop-info-list-text">{{ item.title }}</div>
  181. </div>
  182. <div class="btm-r-pop-info-list">
  183. <div class="btm-r-pop-info-list-name">消息类型</div>
  184. <div class="btm-r-pop-info-list-text" v-if="item.type ==1">部门消息</div>
  185. <div class="btm-r-pop-info-list-text" v-if="item.type ==2">用户消息</div>
  186. </div>
  187. <div class="btm-r-pop-info-list">
  188. <div class="btm-r-pop-info-list-name">内容</div>
  189. <div class="btm-r-pop-info-list-text">
  190. <h4 class="line-h-1 w-100p" v-html="item.content">{{ item.content }}</h4>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="btm-r-pop-info-btm">
  195. <el-link type="success" v-if="item.eventCode!=null&&item.type ==1" @click="showEventDialog_message(item.eventCode)">
  196. 查看事件详情
  197. </el-link>
  198. <div class="btm-r-pop-info-btm-btn" v-else>
  199. <el-button type="primary" @click="selectMessageById(item.id)">标记已读
  200. </el-button>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <el-badge :value="messageCount" slot="reference" :hidden="messageCount==0">
  206. <el-button size="small" icon="el-icon-chat-line-round">消息</el-button>
  207. </el-badge>
  208. </el-popover>
  209. <!-- 警报铃 必须放在这,放在别处不好使 -->
  210. <div class="bell" v-if="eventWarn" @click="updateAlertFalse">
  211. <div class="dot"></div>
  212. <div class="pulse"></div>
  213. <div class="pulse-big"></div>
  214. </div>
  215. <!--<el-badge type="primary">-->
  216. <!--<el-button size="small" icon="el-icon-bell" @click="updateAlertFalse">警报</el-button>-->
  217. <!--</el-badge>-->
  218. <el-badge type="warning">
  219. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  220. </el-badge>
  221. </div>
  222. <!-- 事件详情弹层 -->
  223. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" customClass="customWidth" append-to-body
  224. @close="cancelEventShow()">
  225. <div class="dia-event-info">
  226. <el-row>
  227. <!-- 左侧 -->
  228. <el-col :span="18" class="dia-left">
  229. <div ref="imageTofile" style="height: 75vh;">
  230. <!-- 应急预案 -->
  231. <div class="dia-left-top">
  232. <div class="dia-left-top-tit">应急预案</div>
  233. <div class="dia-left-top-carousel">
  234. <el-carousel height="30px" direction="vertical" :interval="2000">
  235. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  236. <a
  237. :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName }}</a>
  238. </el-carousel-item>
  239. <el-carousel-item v-else>
  240. <a href="#">未选预案</a>
  241. </el-carousel-item>
  242. </el-carousel>
  243. </div>
  244. </div>
  245. <!-- 应急预案end -->
  246. <!-- 地图 -->
  247. <supermapTaskDialog ref="supermapTaskDialog" style="position: absolute; top:0;left: 0;"
  248. :mapDiv="'taskDialogSuperMap'"
  249. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  250. :codes="['9fa5']" :isSideBySide="false" :isdynamicPlotting="false"/>
  251. <!-- 地图end -->
  252. </div>
  253. </el-col>
  254. <!-- 左侧end -->
  255. <!-- 右侧 -->
  256. <el-col :span="6" class="dia-right">
  257. <div class="e-right">
  258. <div class="forthis1-1">
  259. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  260. style="padding-bottom:1rem ;">
  261. <div class="i-list-con">
  262. <div class="this-con">
  263. <div class="z-info-list" style="margin-top: 0;">
  264. <el-timeline>
  265. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  266. placement="top" v-for="(item,index) in eventLogList">
  267. <el-card style="width: 40vh">
  268. <div class="z-info-list-con">
  269. <div class="user-and-time flex-d">
  270. <span>{{ item.createName }}</span>
  271. <span
  272. v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  273. class="el-icon-location"></i>
  274. {{ address }}</span>
  275. <span v-else></span>
  276. </div>
  277. <div class="z-info">
  278. <div class="this-con-list-info">
  279. {{ item.logContent }}
  280. </div>
  281. <div>
  282. <router-link to="#"
  283. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  284. v-for="(itemfile,indexfile) in item.fileVOs">
  285. <el-image :src="itemfile.fileUrl"
  286. v-if="itemfile.fileType=='image'"
  287. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  288. style="width:3rem; height:3rem;margin: 2px;"
  289. :title="itemfile.fileName">
  290. </el-image>
  291. <img v-else-if="itemfile.fileType=='video'"
  292. style="width:3rem; height:3rem;margin: 2px;"
  293. :src="require('@/assets/fileTypeImage/mp4.png')"
  294. :title="itemfile.fileName">
  295. </img>
  296. <img v-else-if="itemfile.fileType=='word'"
  297. style="width:3rem; height:3rem;margin: 2px;"
  298. :src="require('@/assets/fileTypeImage/word.png')"
  299. :title="itemfile.fileName">
  300. </img>
  301. <img v-else-if="itemfile.fileType=='excel'"
  302. style="width:3rem; height:3rem;margin: 2px;"
  303. :src="require('@/assets/fileTypeImage/excel.png')"
  304. :title="itemfile.fileName">
  305. </img>
  306. <img v-else
  307. style="width:3rem; height:3rem;margin: 2px;"
  308. :src="require('@/assets/fileTypeImage/file.png')"
  309. :title="itemfile.fileName">
  310. </img>
  311. </router-link>
  312. </div>
  313. </div>
  314. </div>
  315. </el-card>
  316. </el-timeline-item>
  317. </el-timeline>
  318. </div>
  319. </div>
  320. </div>
  321. </dv-border-box-7>
  322. </div>
  323. <!-- <div class="forthis">-->
  324. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  325. <!-- <div class="i-list-con">-->
  326. <!-- <div class="this-con h-25 no-padding">-->
  327. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  328. <!-- <div class="z-info-btm-grp">-->
  329. <!-- <div class="z-info-btm-grp-top">-->
  330. <!-- <div class="z-info-btm-grp-left">-->
  331. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  332. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  333. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  334. <!-- </el-button>-->
  335. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  336. <!-- </el-button>-->
  337. <!-- </div>-->
  338. <!-- <div class="z-info-btm-grp-right">-->
  339. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  340. <!-- </el-button>-->
  341. <!-- </div>-->
  342. <!-- </div>-->
  343. <!-- </div>-->
  344. <!-- </div>-->
  345. <!-- </div>-->
  346. <!-- </div>-->
  347. <!-- </dv-border-box-7>-->
  348. <!-- </div>-->
  349. </div>
  350. </el-col>
  351. <!-- 左侧end -->
  352. </el-row>
  353. </div>
  354. </el-dialog>
  355. <el-dialog title="事件详情" :visible.sync="eventDialog_message" customClass="customWidth" v-if="eventDialog_message"
  356. @close="cancelEventShow()">
  357. <div class="dia-event-info">
  358. <el-row>
  359. <!-- 左侧 -->
  360. <el-col :span="18" class="dia-left">
  361. <div ref="imageTofile" style="height: 75vh;">
  362. <!-- 应急预案 -->
  363. <div class="dia-left-top">
  364. <div class="dia-left-top-tit">应急预案</div>
  365. <div class="dia-left-top-carousel">
  366. <el-carousel height="30px" direction="vertical" :interval="2000">
  367. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  368. <!-- <el-tooltip class="item" effect="dark" :content="visuForestCloudYuAnBo.reserveName" placement="top-start">
  369. <a :href="visuForestCloudYuAnBo.fileUrl" ><span><div style=" width: 50px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;word-break: keep-all;">{{ visuForestCloudYuAnBo.reserveName }}</div></span></a>
  370. </el-tooltip> -->
  371. <el-tooltip placement="top" popper-class="js-tps"
  372. :visible-arrow="visuForestCloudYuAnBo.reserveName.length>6">
  373. <div slot="content" class="leader-info-container">
  374. <div class="leader-info-list-con" v-show="visuForestCloudYuAnBo.reserveName.length>6">
  375. <h4>{{ visuForestCloudYuAnBo.reserveName }}</h4>
  376. </div>
  377. </div>
  378. <a
  379. :href="visuForestCloudYuAnBo.fileUrl">{{
  380. visuForestCloudYuAnBo.reserveName | ellipsisFont6
  381. }}</a>
  382. </el-tooltip>
  383. </el-carousel-item>
  384. <el-carousel-item v-else>
  385. <a href="#">暂未关联预案</a>
  386. </el-carousel-item>
  387. </el-carousel>
  388. </div>
  389. </div>
  390. <!-- 应急预案end -->
  391. <!-- 地图 -->
  392. <supermapDialogMessage ref="supermapDialogMessage" style="position: absolute; top:0;left: 0;"
  393. :mapDiv="'messageSuperMap'"
  394. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  395. :codes="['9fa5']"
  396. :isSideBySide="false" :isdynamicPlotting="true"/>
  397. <!-- <supermapDialog ref="supermapDialog" -->
  398. <!-- @preview="preview"/> -->
  399. <!-- 地图end -->
  400. </div>
  401. </el-col>
  402. <!-- 左侧end -->
  403. <!-- 右侧 -->
  404. <el-col :span="6" class="dia-right">
  405. <div class="e-right">
  406. <div class="forthis1">
  407. <dv-border-box-7 backgroundColor="#040b1f" style="padding-bottom:1rem ;">
  408. <div class="i-list-con">
  409. <div class="this-con">
  410. <div class="z-info-list" style="margin-top: 0;">
  411. <el-timeline>
  412. <el-timeline-item color="#2bacf7" :timestamp="item.createTime" placement="top"
  413. v-for="(item,index) in eventLogList">
  414. <el-card style="width: 40vh">
  415. <div class="z-info-list-con">
  416. <div class="user-and-time flex-d">
  417. <span>{{ item.createName }}</span>
  418. <span v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  419. class="el-icon-location"></i> {{ address }}</span>
  420. <span v-else></span>
  421. </div>
  422. <div class="z-info">
  423. <div class="this-con-list-info">
  424. {{ item.logContent }}
  425. </div>
  426. <div>
  427. <router-link to="#"
  428. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  429. v-for="(itemfile,indexfile) in item.fileVOs">
  430. <el-image :src="itemfile.fileUrl" v-if="itemfile.fileType=='image'"
  431. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  432. :z-index="10000"
  433. style="width:3rem; height:3rem;margin: 2px;" :title="itemfile.fileName">
  434. </el-image>
  435. <img v-else-if="itemfile.fileType=='video'"
  436. style="width:3rem; height:3rem;margin: 2px;"
  437. :src="require('@/assets/fileTypeImage/mp4.png')" :title="itemfile.fileName">
  438. </img>
  439. <img v-else-if="itemfile.fileType=='word'"
  440. style="width:3rem; height:3rem;margin: 2px;"
  441. :src="require('@/assets/fileTypeImage/word.png')" :title="itemfile.fileName">
  442. </img>
  443. <img v-else-if="itemfile.fileType=='excel'"
  444. style="width:3rem; height:3rem;margin: 2px;"
  445. :src="require('@/assets/fileTypeImage/excel.png')"
  446. :title="itemfile.fileName">
  447. </img>
  448. <img v-else style="width:3rem; height:3rem;margin: 2px;"
  449. :src="require('@/assets/fileTypeImage/file.png')" :title="itemfile.fileName">
  450. </img>
  451. </router-link>
  452. </div>
  453. </div>
  454. </div>
  455. </el-card>
  456. </el-timeline-item>
  457. </el-timeline>
  458. </div>
  459. </div>
  460. </div>
  461. </dv-border-box-7>
  462. </div>
  463. <div class="forthis2">
  464. <dv-border-box-7 backgroundColor="#040b1f">
  465. <div class="i-list-con">
  466. <div class="this-con h-25 no-padding">
  467. <div class="z-info-list" style="margin-top: 0;">
  468. <div class="z-info-btm-grp">
  469. <!-- <div class="z-info-btm-grp-top">-->
  470. <!-- <div class="z-info-btm-grp-left">-->
  471. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  472. <!-- </el-button>-->
  473. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传-->
  474. <!-- </el-button>-->
  475. <!-- </div>-->
  476. <!-- </div>-->
  477. <div class="z-info-btm-input">
  478. <el-input type="textarea" v-model="eventLog" :autosize="{ minRows: 7, maxRows: 7}"
  479. placeholder="请输入反馈信息">
  480. </el-input>
  481. <div class="z-info-btm-input-btn" v-if="eventStatusValue=='forest_event_status_1'">
  482. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  483. </el-button>
  484. </div>
  485. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_7'">
  486. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  487. </el-button>
  488. </div>
  489. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
  490. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  491. </el-button>
  492. </div>
  493. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'">
  494. <el-button size="small" v-if="statusFlag=='2'" icon="el-icon-success"
  495. style="text-align:left"
  496. @click="updateCentereventTEventcatalogueStatus('sh',false)">
  497. 审核
  498. </el-button>
  499. <el-button size="small" v-else-if="isExamine =='0'" icon="el-icon-loading"
  500. style="text-align:left">
  501. 请等待复核,复核通过后方可归档。
  502. </el-button>
  503. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  504. </el-button>
  505. </div>
  506. <div class="z-info-btm-input-btn" v-else>
  507. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  508. </el-button>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. </div>
  515. </dv-border-box-7>
  516. </div>
  517. </div>
  518. </el-col>
  519. <!-- 左侧end -->
  520. </el-row>
  521. </div>
  522. </el-dialog>
  523. <el-dialog :title="eventConfirmTitle" :visible.sync="showEventConfirm" v-if="showEventConfirm" width="50%"
  524. style="top: 50px" @close="cancelEventConfirm()">
  525. <el-form label-width="80px">
  526. <el-form-item label="审核意见" v-if="eventStatusButton=='sh'">
  527. <el-input type="textarea" v-model="eventDescription" :autosize="{ minRows: 7, maxRows: 7}"
  528. placeholder="请输入审核意见">
  529. </el-input>
  530. </el-form-item>
  531. <el-form-item label="附件" prop="schedulePictures" v-if="eventStatusButton=='sh'">
  532. <ImageUpload class="sj-upload" ref="ImageUpload" :limit="10" :fileType="['jpg', 'png','jpeg']" :value="uploadAttachList"
  533. @input="getUrl"></ImageUpload>
  534. </el-form-item>
  535. <el-button class="sj-icon-btn" size="mini" type="primary" v-if="eventStatusButton=='sh'"
  536. icon="el-icon-circle-check"
  537. @click="updateCentereventTEventcatalogueStatus('shtg',true)">通过
  538. </el-button>
  539. <el-button class="sj-icon-btn" size="mini" type="primary" v-if="eventStatusButton=='sh'"
  540. icon="el-icon-circle-close"
  541. @click="updateCentereventTEventcatalogueStatus('shbtg',true)">不通过
  542. </el-button>
  543. </el-form>
  544. </el-dialog>
  545. <!-- 任务选择领取部门弹层 -->
  546. <!--<el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body-->
  547. <!--@close="cancelEventConfirm()">-->
  548. <!--<el-form label-width="80px">-->
  549. <!--<el-form-item label="选择部门">-->
  550. <!--<el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">-->
  551. <!--<el-option v-for="item in deptOptions" :key="item.taskDeptId" :label="item.taskDeptName"-->
  552. <!--:value="{value:item.taskDeptId,label:item.taskDeptName}">-->
  553. <!--&lt;!&ndash;:disabled="item.eventStatus=='未处理' ? false:true"&ndash;&gt;-->
  554. <!--</el-option>-->
  555. <!--</el-select>-->
  556. <!--</el-form-item>-->
  557. <!--<el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"-->
  558. <!--@click="receiveTask(taskId,eventCode)">领取-->
  559. <!--</el-button>-->
  560. <!--<el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"-->
  561. <!--@click="refusedTask(taskId,eventCode)">拒绝-->
  562. <!--</el-button>-->
  563. <!--</el-form>-->
  564. <!--</el-dialog>-->
  565. <!-- 图片,视频预览 -->
  566. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" append-to-body>
  567. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  568. </el-dialog>
  569. </div>
  570. </template>
  571. <script>
  572. import {
  573. selectTaskBO,
  574. getEventDetail,
  575. selectTaskDtpts,
  576. receiveTask,
  577. refusedTask,
  578. selectMessageCount,
  579. selectMessageList,
  580. selectMessageById,
  581. listSJfl,
  582. listYuAn,
  583. selectByeventCode,
  584. sendTask,
  585. eventExamine,
  586. eventHandling, sendEventLog
  587. } from '@/api/forest'
  588. import {
  589. selectFarmByDeptId, linBanTreeselect, selectBanBylinBanTreesId, userDeptSelect
  590. } from '@/api/vBottomMenu'
  591. import supermapTaskDialog from '@/components/supermap' //超图
  592. import supermapDialogMessage from '@/components/supermap' //超图
  593. import TcPlayer from '@/components/TcPlayer' //视频预览
  594. import Cookies from 'js-cookie'
  595. import {selectConfigKey} from "@/api/system/config";
  596. import {getIconBg} from "@/api/components/sookaMapIcon";
  597. import {treeselectAll as deptTreeselect} from "@/api/system/dept";
  598. export default {
  599. components: {
  600. supermapTaskDialog,
  601. supermapDialogMessage,
  602. TcPlayer,
  603. },
  604. watch: {
  605. filterbanText(val) {
  606. console.log(this.$refs)
  607. this.$refs.banDept.filter(val)
  608. },
  609. filterchangText(val) {
  610. console.log(this.$refs)
  611. this.$refs.changDept.filter(val)
  612. }
  613. },
  614. data() {
  615. return {
  616. playVideo: '', //视频预览地址
  617. showTcPlayer: false, //视频预览弹窗
  618. filterbanText: '',
  619. filterchangText: '',
  620. filterbanList: [],
  621. filterbanListAll: [],
  622. filterchangList: [],
  623. filterchangListAll: [],
  624. eventId: null,
  625. eventCode: null,
  626. eventName: null,
  627. eventLog: null,
  628. longitude: null,
  629. latitude: null,
  630. eventLogList: [], //事件详情日志
  631. eventDialog: false, //事件详情弹层
  632. eventDialog_message: false, //事件详情弹层_消息
  633. taskStatusButton: null, //任务按钮
  634. visuForestCloudYuAnBo: null,
  635. address: null, //事件上报地址
  636. taskId: null, //任务ID
  637. showDeptConfirm: false, //任务领取选择部门弹窗
  638. deptOptions: [], //任务领取部门列表
  639. centerTaskTaskDepts: [], //任务领取部门
  640. deptName: [], //任务领取部门
  641. taskCount: 0, //任务数量
  642. taskList: 0, //任务列表
  643. btmTipIndent: '', //图例收起弹出
  644. eventLocationVisible: false,
  645. showChild: false,
  646. showBanChild: false, //林斑
  647. showMeasure: false, //测量工具
  648. showChangChild: false, //林场
  649. fastMenu: [
  650. {
  651. name: '事件定位',
  652. icon: 'iconfont sj-icon-sjdw',
  653. click: 'eventLocation'
  654. },
  655. // {
  656. // name: '图层切换',
  657. // icon: 'iconfont sj-icon-tcqh',
  658. // click: 'layerSwitching'
  659. // },
  660. {
  661. name: '测量工具',
  662. icon: 'iconfont sj-icon-clgj',
  663. click: 'editableLayers'
  664. },
  665. // {
  666. // name: '林班',
  667. // icon: 'iconfont sj-icon-lbzy',
  668. // click: 'forestban'
  669. // },
  670. //
  671. // {
  672. // name: '林场',
  673. // icon: 'iconfont sj-icon-lczy',
  674. // click: 'forestchang'
  675. // },
  676. {
  677. name: '电视墙',
  678. icon: 'el-icon-s-grid',
  679. click: 'TVWall'
  680. },
  681. // {
  682. // name: '无人机',
  683. // icon: 'iconfont sj-icon-landing',
  684. // click: 'wrj'
  685. // }
  686. ],
  687. deptChangOptionsLiandong: [],//查询林场部门树结构
  688. deptBanOptionsLiandong: [],//查询林班层级树结构
  689. // deptOptionsLiandong_baishan: [
  690. // {
  691. // label: '板石头国有林场',
  692. // id: 1,
  693. // children: [
  694. // ]
  695. // }, {
  696. // label: '五间房国有林场',
  697. // id: 2,
  698. // children: []
  699. // }, {
  700. // label: '三道沟国有林场',
  701. // id: 3,
  702. // children: []
  703. // }, {
  704. // label: '大镜沟国有林场',
  705. // id: 4,
  706. // children: []
  707. // }, {
  708. // label: '实验国有林场',
  709. // id: 5,
  710. // children: []
  711. // }
  712. // ],
  713. defaultProps: {
  714. children: 'children',
  715. label: 'label'
  716. },
  717. banCheckList: [], //林班
  718. banCheckList_Data: [], //林班 带数据图层
  719. changCheckList: [], //林场
  720. filterban: '', //林班搜索
  721. filterchang: '', //林场搜索
  722. btmCurrent: '',
  723. eventWarn: false, //webSocket事件问题警报标记
  724. messageCount: 0, //消息数量
  725. messageList: 0,//消息列表
  726. websock: '',
  727. wsurl: '',
  728. postName: '',
  729. postNameDept: '/messageDeptPush/',
  730. setIntervalWesocketPush: null,
  731. websockSid: {
  732. userId: '',
  733. deptId: ''
  734. },
  735. /** *****************事件流程***************************/
  736. showEventConfirm: false, //事件签收弹窗
  737. deptNameitem: '签收部门',
  738. sendDeptId: null, //签收部门/发起部门
  739. sendDeptName: null, //签收部门/发起部门
  740. sendEventType: null, //事件类型
  741. sendHuoZaiBanJing: 0, //火灾报告
  742. sendGuanLianYuAn: null, //关联预案
  743. sendUserFegin: [], //联系人
  744. sendTaskSource: null, //任务来源
  745. sendTaskTitle: null, //联动标题
  746. sendTaskContent: null, //联动内容
  747. sendLianDongDept: [], //联动部门
  748. eventTypeList: [], //事件类型列表
  749. guanLianYuAnList: [], //关联预案列表
  750. userFeginList: [], //联系人列表
  751. deptOptions: [], //签收部门
  752. deptOptionsLiandong: [], //联动部门
  753. eventStatusButton: null, //流程按钮标识
  754. eventConfirmTitle: null, //弹窗标题 ---签收 误报 重复 审核意见
  755. eventDescription: null, //审核意见
  756. uploadAttachList: [], //审核上传图片回显集合
  757. attachExamine: [], //审核图片集合
  758. /** *****************事件流程***************************/
  759. weosocket: false,
  760. }
  761. },
  762. created() {
  763. },
  764. mounted() {
  765. this.websockSid.userId = Cookies.get("userId")
  766. this.websockSid.deptId = Cookies.get("deptId")
  767. },
  768. destroyed() { //离开页面关闭Socket连接
  769. if (this.websock) {
  770. clearInterval(this.setIntervalWesocketPush)
  771. this.websock.close()
  772. this.weosocket = false
  773. this.websock = null
  774. }
  775. },
  776. methods: {
  777. deptTreeselect() {
  778. /** 查询林场部门树结构 */
  779. userDeptSelect().then(response => {
  780. this.deptChangOptionsLiandong = response.data
  781. })
  782. },
  783. initWebSocket(wsurl, postName, userId) {
  784. this.postName = postName
  785. this.wsurl = wsurl
  786. selectConfigKey(wsurl).then(res => {
  787. //初始化weosocket
  788. //const wsuri = 'ws://127.0.0.1:10003/eventPush/' + userId + '/' + eventTypeDl + '/' + eventType
  789. const wsuri = res.data + postName + userId
  790. // const wsuri = 'ws://172.28.20.82:10012/taskPush/'+userId
  791. this.websock = new WebSocket(wsuri)
  792. //console.log('建立websocket连接' + wsuri)
  793. this.websock.onopen = this.websocketonopen
  794. this.websock.onmessage = this.websocketonmessage
  795. this.websock.onerror = this.websocketonerror
  796. })
  797. },
  798. websocketonopen() { //连接建立之后执行send方法发送数据
  799. console.log('websocket连接成功')
  800. this.weosocket = true
  801. this.sendPing()
  802. },
  803. websocketonerror() { //连接建立失败重连
  804. this.initWebSocket(this.wsurl, this.postName, this.websockSid.userId)
  805. this.initWebSocket(this.wsurl, this.postNameDept, this.websockSid.deptId)
  806. },
  807. websocketonmessage(e) { //数据接收
  808. console.log('接收数据', e.data)
  809. // let data = "{\"fromId\":\"farming\"}";
  810. // 处理收到的消息
  811. this.handleWebSoceketEvent(e.data)
  812. },
  813. handleWebSoceketEvent(val) {
  814. let that = this
  815. let data = JSON.parse(val)
  816. console.log('数据数据数据数据', data)
  817. /**
  818. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  819. * eventPush: 事件列表消息
  820. * */
  821. let message = data.centermessageTPushrecord
  822. let message_dept = data.centermessageTPushrecord_dept
  823. let task = data.centertaskTTask
  824. if (null != message) {
  825. console.log(message)
  826. this.messageList.push(message)
  827. this.messageCount++
  828. }if (null != message_dept) {
  829. console.log(message_dept)
  830. this.messageList.push(message_dept)
  831. this.messageCount++
  832. } else if (null != task) {
  833. task.taskId = task.id
  834. this.taskList.push(task)
  835. this.taskCount++
  836. }
  837. // if (data.tag == "eventPush" && that.markersList.filter( item => data.eventCode == item.parameter).length == 0) {
  838. // getEventPush({eventCode: data.eventCode}).then((res) => {
  839. // if (res.data != undefined) {
  840. // //插入到第一条
  841. // this.eventList.unshift(res.data)
  842. // // 插入后删除最后一条 保证列表中为10条数据
  843. // if (this.eventList.length > 9)
  844. // this.eventList.splice(10, 1)
  845. // // 将收到的数据在地图上添加
  846. // this.getWebSocketEvent(res.data)
  847. // }
  848. // })
  849. // }
  850. console.log(data)
  851. },
  852. websocketsend(Data) { //数据发送
  853. this.websock.send(Data)
  854. },
  855. websocketclose(e) { //关闭
  856. console.log('断开连接', e)
  857. // clearInterval(this.setIntervalWesocketPush)
  858. this.weosocket = false
  859. },
  860. /**发送心跳
  861. * @param {number} time 心跳间隔毫秒 默认5000
  862. * @param {string} ping 心跳名称 默认字符串ping
  863. */
  864. sendPing(time = 60000, ping = {
  865. 'fromId': 'farming'
  866. }) {
  867. clearInterval(this.setIntervalWesocketPush)
  868. this.setIntervalWesocketPush = setInterval(() => {
  869. if (this.weosocket) {
  870. this.websock.send(JSON.stringify(ping))
  871. } else {
  872. // this.initWebSocket()
  873. }
  874. }, time)
  875. },
  876. linBanTreeselect() {
  877. /** 查询林班层级树结构 */
  878. linBanTreeselect().then(response => {
  879. this.deptBanOptionsLiandong = response.data
  880. })
  881. },
  882. selectMessageById(id) {
  883. selectMessageById(id).then(response => {
  884. /** 获取消息列表 */
  885. this.selectMessageList()
  886. })
  887. },
  888. /** 获取消息个数 */
  889. selectMessageCount() {
  890. selectMessageCount(Cookies.get('userId'),Cookies.get('deptId')).then(response => {
  891. this.messageCount = response.data
  892. })
  893. },
  894. /** 获取消息列表 */
  895. selectMessageList() {
  896. selectMessageList(Cookies.get('userId'), Cookies.get('deptId')).then(response => {
  897. this.messageList = response.data
  898. this.messageCount = response.data.length
  899. })
  900. this.initWebSocket('MESSAGE_SOCKET', '/messagePush/', this.websockSid.userId)
  901. this.initWebSocket('MESSAGE_SOCKET', '/messageDeptPush/', this.websockSid.deptId)
  902. },
  903. filterbanNode(value, data) {
  904. //树搜索
  905. if (!value) return true
  906. return data.label.indexOf(value) !== -1
  907. },
  908. filterchangNode(value, data) {
  909. //树搜索
  910. if (!value) return true
  911. return data.label.indexOf(value) !== -1
  912. },
  913. handlechangNodeClick(node, data, value) {
  914. //获取林场列表
  915. this.filterchang = ''
  916. selectFarmByDeptId({
  917. deptId: node.id
  918. }).then(res => {
  919. this.filterchangList = res.data
  920. this.filterchangListAll = res.data
  921. })
  922. },
  923. handlebanNodeClick(node, data, value) {
  924. //获取林班列表
  925. this.filterban = ''
  926. selectBanBylinBanTreesId(node.id).then(res => {
  927. this.filterbanList = res.data
  928. this.filterbanListAll = res.data
  929. })
  930. // if(node.id==1){
  931. // this.filterbanList=[
  932. // {
  933. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  934. // farmName: '板石街道',
  935. // datasetNames: ['bs:banshijiedao'],
  936. // name: 'banshijiedao@bs'
  937. // },
  938. // {
  939. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  940. // farmName: '河口街道',
  941. // datasetNames: ['bs:hekoujiedao'],
  942. // name: 'hekoujiedao@bs'
  943. // },
  944. // {
  945. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  946. // farmName: '七道江镇',
  947. // datasetNames: ['bs:qidaojiangzhen'],
  948. // name: 'qidaojiangzhen@bs'
  949. // },
  950. // ]
  951. // }else if (node.id==2){
  952. // this.filterbanList=[
  953. // {
  954. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/WuJianFangGuoYouLinChang',
  955. // farmName: '六道江镇',
  956. // datasetNames: ['bs:WuJianFangGuoYouLinChang'],
  957. // name: 'WuJianFangGuoYouLinChang@bs'
  958. // },
  959. // ]
  960. // }else if (node.id==3){
  961. // this.filterbanList=[
  962. // {
  963. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/SanDaoGouGuoYouLinChang',
  964. // farmName: '三道沟镇',
  965. // datasetNames: ['bs:SanDaoGouGuoYouLinChang'],
  966. // name: 'SanDaoGouGuoYouLinChang@bs'
  967. // },
  968. // ]
  969. // }else if (node.id==4){
  970. // this.filterbanList=[
  971. // {
  972. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/DaJingGouGuoYouLinChang',
  973. // farmName: '红土崖镇',
  974. // datasetNames: ['bs:DaJingGouGuoYouLinChang'],
  975. // name: 'DaJingGouGuoYouLinChang@bs'
  976. // },
  977. // ]
  978. // }else if (node.id==5){
  979. // this.filterbanList=[
  980. // {
  981. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/ShiYanGuoYouLinChang',
  982. // farmName: '大阳岔镇',
  983. // datasetNames: ['bs:ShiYanGuoYouLinChang'],
  984. // name: 'ShiYanGuoYouLinChang@bs'
  985. // }
  986. // ]
  987. // }
  988. },
  989. // 返回图片列表
  990. assetTypeAnImage(filePath) {
  991. let imageList = []
  992. if (filePath != null && filePath.length > 0) {
  993. for (let i = 0; i < filePath.length; i++) {
  994. if (filePath[i].fileType == 'image') {
  995. imageList.push(filePath[i].fileUrl)
  996. }
  997. }
  998. }
  999. return imageList
  1000. },
  1001. clickFile(fileUrl, fileName, fileType) {
  1002. if (fileType == 'image') {
  1003. return
  1004. } else if (fileType == 'video') {
  1005. this.showTcPlayer = true
  1006. setTimeout(() => {
  1007. this.playVideo = fileUrl
  1008. }, 500)
  1009. } else {
  1010. let a = document.createElement('a')
  1011. a.download = fileName
  1012. a.href = fileUrl
  1013. a.target = '_blank'
  1014. a.click()
  1015. }
  1016. },
  1017. setValue(event) {
  1018. this.centerTaskTaskDepts = []
  1019. //签收选择部门
  1020. if (event != null && event.length > 0) {
  1021. for (let i = 0; i < event.length; i++) {
  1022. if (event[i].label != undefined && event[i].value != undefined) {
  1023. this.centerTaskTaskDepts.push({
  1024. taskDeptId: event[i].value,
  1025. taskDeptName: event[i].label
  1026. })
  1027. }
  1028. }
  1029. }
  1030. },
  1031. receiveTask(taskId, eventCode) {
  1032. let param = {
  1033. taskId: taskId,
  1034. eventCode: eventCode,
  1035. // centerTaskTaskDepts: this.centerTaskTaskDepts
  1036. }
  1037. receiveTask(param).then(res => {
  1038. //任务领取
  1039. if (res.code == 200) {
  1040. this.$message.success(`任务领取成功!`)
  1041. this.deptOptions = []
  1042. this.deptName = []
  1043. this.centerTaskTaskDepts = []
  1044. //刷新任务列表
  1045. this.selectTaskList()
  1046. this.showDeptConfirm = false
  1047. }
  1048. })
  1049. },
  1050. refusedTask(taskId, eventCode) {
  1051. let param = {
  1052. taskId: taskId,
  1053. eventCode: eventCode,
  1054. // centerTaskTaskDepts: this.centerTaskTaskDepts
  1055. }
  1056. refusedTask(param).then(res => {
  1057. //任务拒绝
  1058. if (res.code == 200) {
  1059. this.$message.success(`任务拒绝成功!`)
  1060. this.deptOptions = []
  1061. this.deptName = []
  1062. this.centerTaskTaskDepts = []
  1063. //刷新任务列表
  1064. this.selectTaskList()
  1065. this.showDeptConfirm = false
  1066. }
  1067. })
  1068. },
  1069. selectTaskDtpts(taskId, eventCode, state) {
  1070. this.taskId = taskId
  1071. this.eventCode = eventCode
  1072. selectTaskDtpts({
  1073. taskId: taskId
  1074. }).then(res => {
  1075. //任务领取部门列表
  1076. if (res.code == 200) {
  1077. this.deptOptions = res.data
  1078. this.taskStatusButton = state
  1079. this.showDeptConfirm = true
  1080. }
  1081. })
  1082. },
  1083. cancelEventShow() {
  1084. console.log('关闭事件弹窗')
  1085. this.eventCode = null
  1086. this.eventLogList = []
  1087. },
  1088. cancelEventConfirm() {
  1089. //关闭事件签收弹窗
  1090. this.sendDeptId = null
  1091. this.sendDeptName = null
  1092. this.sendUserFegin = []
  1093. this.sendEventType = null
  1094. this.sendHuoZaiBanJing = 0
  1095. this.sendGuanLianYuAn = null
  1096. this.sendTaskTitle = null
  1097. this.sendTaskSource = null
  1098. this.sendTaskContent = null
  1099. this.sendLianDongDept = []
  1100. this.eventTypeList = [] //事件类型列表
  1101. this.guanLianYuAnList = [] //关联预案列表
  1102. this.deptOptions = [] //签收部门
  1103. this.deptOptionsLiandong = [] //联动部门
  1104. this.eventStatusButton = null //流程按钮标识
  1105. this.eventConfirmTitle = null //流程按钮标识
  1106. this.resourcesListCheck = []
  1107. this.userFeginList = [] //联系人列表
  1108. this.eventDescription = null//审核意见
  1109. this.uploadAttachList = [] //审核上传图片回显集合
  1110. this.attachExamine = [] //审核图片集合
  1111. },
  1112. cancelEventConfirm_send() {
  1113. //清空表单数据
  1114. this.sendDeptId = null
  1115. this.sendDeptName = null
  1116. this.sendUserFegin = []
  1117. this.sendEventType = null
  1118. this.sendHuoZaiBanJing = 0
  1119. this.sendGuanLianYuAn = null
  1120. this.sendTaskTitle = null
  1121. this.sendTaskSource = null
  1122. this.sendTaskContent = null
  1123. this.sendLianDongDept = []
  1124. this.eventTypeList = [] //事件类型列表
  1125. this.guanLianYuAnList = [] //关联预案列表
  1126. this.deptOptions = [] //签收部门
  1127. this.deptOptionsLiandong = [] //联动部门
  1128. this.userFeginList = [] //联系人列表
  1129. this.eventDescription = null //审核意见
  1130. this.uploadAttachList = [] //审核上传图片回显集合
  1131. this.attachExamine = [] //审核图片集合
  1132. },
  1133. showEventDialog(eventCode) {
  1134. this.eventCode = eventCode
  1135. let that = this
  1136. //获取事件详情
  1137. getEventDetail({
  1138. eventCode: eventCode
  1139. }).then(res => {
  1140. this.eventDialog = true
  1141. this.eventLogList = res.data.eventlog
  1142. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1143. this.address = res.data.catalogue.address
  1144. this.eventType = res.data.catalogue.eventType
  1145. this.eventId = res.data.catalogue.id
  1146. this.longitude = res.data.catalogue.longitude
  1147. this.latitude = res.data.catalogue.latitude
  1148. let markersMap = {
  1149. lng: 124.59,
  1150. lat: 43.02,
  1151. icon: 'marker',
  1152. bindPopupHtml: '',
  1153. click: '',
  1154. parameter: '',
  1155. keepBindPopup: false,
  1156. isAggregation: true,
  1157. radius: 0
  1158. }
  1159. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1160. markersMap.icon = 'sj-icon-map-xinshangbao'
  1161. }
  1162. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1163. markersMap.icon = 'sj-icon-map-cuiban'
  1164. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1165. markersMap.icon = 'sj-icon-map-qianshou'
  1166. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1167. markersMap.icon = 'sj-icon-map-banjie'
  1168. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1169. markersMap.icon = 'sj-icon-map-guidang'
  1170. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1171. markersMap.icon = 'sj-icon-map-queren'
  1172. }
  1173. markersMap.lng = res.data.catalogue.longitude
  1174. markersMap.lat = res.data.catalogue.latitude
  1175. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1176. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0]
  1177. .fireRadius > 0) {
  1178. markersMap.radius = res.data.eventdetail[0].fireRadius
  1179. }
  1180. setTimeout(() => {
  1181. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  1182. that.$refs.supermapTaskDialog.clearM(false)
  1183. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  1184. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue.latitude, res.data
  1185. .catalogue.longitude)
  1186. }, 1000)
  1187. })
  1188. },
  1189. showEventDialog_message(eventCode) {
  1190. this.eventCode = eventCode
  1191. let that = this
  1192. //获取事件详情
  1193. getEventDetail({
  1194. eventCode: eventCode
  1195. }).then(res => {
  1196. let markersMapList = [];
  1197. that.eventDialog_message = true
  1198. that.eventLogList = res.data.eventlog //日志列表
  1199. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1200. that.address = res.data.catalogue.address
  1201. that.eventStatusValue = res.data.catalogue.eventStatusValue
  1202. that.eventType = res.data.catalogue.eventType
  1203. that.statusFlag = res.data.catalogue.statusFlag
  1204. that.dataStatus = res.data.catalogue.dataStatus
  1205. that.deptId = res.data.catalogue.deptId
  1206. that.eventId = res.data.catalogue.id
  1207. that.longitude = res.data.catalogue.longitude
  1208. that.latitude = res.data.catalogue.latitude
  1209. that.eventName = res.data.catalogue.eventName
  1210. that.version = res.data.catalogue.version
  1211. that.eventTypeXl = res.data.catalogue.eventTypeXl
  1212. that.isExamine = res.data.catalogue.isExamine
  1213. let markersMap = {
  1214. lng: 124.59,
  1215. lat: 43.02,
  1216. icon: 'marker',
  1217. bindPopupHtml: '',
  1218. click: '',
  1219. parameter: '',
  1220. keepBindPopup: false,
  1221. isAggregation: true,
  1222. radius: 0
  1223. }
  1224. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1225. markersMap.icon = 'sj-icon-map-xinshangbao'
  1226. }
  1227. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1228. markersMap.icon = 'sj-icon-map-cuiban'
  1229. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1230. markersMap.icon = 'sj-icon-map-qianshou'
  1231. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1232. markersMap.icon = 'sj-icon-map-banjie'
  1233. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1234. markersMap.icon = 'sj-icon-map-guidang'
  1235. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1236. markersMap.icon = 'sj-icon-map-queren'
  1237. }
  1238. markersMap.lng = res.data.catalogue.longitude
  1239. markersMap.lat = res.data.catalogue.latitude
  1240. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1241. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  1242. 0) {
  1243. markersMap.radius = res.data.eventdetail[0].fireRadius
  1244. }
  1245. markersMapList.push(markersMap);
  1246. if (res.data.centermonitorTCamera != null) {
  1247. that.cameraCode = res.data.centermonitorTCamera.id;
  1248. let markersMap = {
  1249. lng: 124.59,
  1250. lat: 43.02,
  1251. icon: 'camera',
  1252. bindPopupHtml: '',
  1253. click: 'preview',
  1254. parameter: {
  1255. code: res.data.centermonitorTCamera.cameraCode,
  1256. type: res.data.centermonitorTCamera.cameraFactory,
  1257. name: res.data.centermonitorTCamera.cameraName
  1258. },
  1259. keepBindPopup: false,
  1260. isAggregation: true,
  1261. radius: 0
  1262. }
  1263. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1264. '<span>' +
  1265. ' <div class="d-l-con">' +
  1266. ' <div class="d-l-l-text">' +
  1267. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1268. ' </div>' +
  1269. ' </div>' +
  1270. ' </span>' +
  1271. '<span>' +
  1272. '</div>'
  1273. markersMap.lng = res.data.centermonitorTCamera.longitude
  1274. markersMap.lat = res.data.centermonitorTCamera.latitude
  1275. markersMapList.push(markersMap)
  1276. }
  1277. setTimeout(() => {
  1278. that.$refs.supermapDialogMessage.dynamicPlotting() //弹出动态绘制窗口,防止截图位置改变
  1279. that.$refs.supermapDialogMessage.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  1280. that.$refs.supermapDialogMessage.clearM(false)
  1281. that.$refs.supermapDialogMessage.clearM(true)
  1282. that.$refs.supermapDialogMessage.setMarkersRadius(markersMapList)
  1283. }, 2000)
  1284. })
  1285. },
  1286. getUrl(urlList) {
  1287. this.uploadAttachList = urlList
  1288. this.attachExamine = []
  1289. urlList.forEach(item => {
  1290. var attachPath = {
  1291. attachPath: item.name
  1292. }
  1293. this.attachExamine.push(attachPath)
  1294. });
  1295. },
  1296. sendEventLog() {
  1297. if (this.eventLog == '' || this.eventLog == null) {
  1298. return;
  1299. }
  1300. //日志发送
  1301. let param = {
  1302. eventCode: this.eventCode,
  1303. logContent: this.eventLog,
  1304. operation: "bus_oper_type_2",
  1305. operationType: "log_oper_type_1"
  1306. }
  1307. sendEventLog(param).then(res => {
  1308. if (res.code == 200) {
  1309. this.$message.success(`发送成功!`)
  1310. this.eventLog = null
  1311. this.refreshEventDialog(this.eventCode)
  1312. }
  1313. })
  1314. },
  1315. /**
  1316. * eventStatusValue 事件状态
  1317. * isSend 是否办理
  1318. * */
  1319. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1320. this.eventStatusButton = eventStatus
  1321. let that = this
  1322. if (!isSend) { //事件弹窗
  1323. if (eventStatus == 'sh') { //审核
  1324. that.eventConfirmTitle = '事件审核'
  1325. that.showEventConfirm = true
  1326. }
  1327. } else { //事件提交后台
  1328. if (eventStatus == 'shtg') {
  1329. that.eventStatusButton = 'sh'
  1330. if (that.eventDescription == '' || that.eventDescription == null) {
  1331. that.$message.error(`请填写审核意见!`)
  1332. return
  1333. }
  1334. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  1335. that.$message.error(`请上传审核图片!`)
  1336. return
  1337. }
  1338. //事件处理流程--审核通过
  1339. let param = {
  1340. id: that.eventId, //事件id
  1341. eventCode: that.eventCode, //事件编号
  1342. eventName: that.eventName, //事件名称
  1343. isExamine: 1, //通过传1,不通过传0
  1344. version: that.version,
  1345. eventDescription: that.eventDescription, //审核意见
  1346. attach: that.attachExamine
  1347. }
  1348. eventExamine(param).then(res => {
  1349. if (res.code == 200) {
  1350. that.$message.success(`处理成功!`)
  1351. that.refreshEvent(that.eventCode)
  1352. that.selectMessageList()
  1353. that.cancelEventConfirm_send()
  1354. that.showEventConfirm = false
  1355. } else if (res.code == 304) {
  1356. console.log(that.eventCode)
  1357. this.$message.warning(res.msg)
  1358. this.showEventDialog_message(that.eventCode)
  1359. //获取事件详情
  1360. }
  1361. that.attachExamine = []
  1362. that.uploadAttachList = []
  1363. that.eventDescription = ""
  1364. })
  1365. } else if (eventStatus == 'shbtg') {
  1366. that.eventStatusButton = 'sh'
  1367. if (that.eventDescription == '' || that.eventDescription == null) {
  1368. that.$message.error(`请填写审核意见!`)
  1369. return true;
  1370. }
  1371. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  1372. that.$message.error(`请上传审核图片!`)
  1373. return true;
  1374. }
  1375. //事件处理流程--审核不通过
  1376. let param = {
  1377. id: that.eventId, //事件id
  1378. eventCode: that.eventCode, //事件编号
  1379. eventName: that.eventName, //事件名称
  1380. isExamine: 0, //通过传1,不通过传0
  1381. version: that.version,
  1382. eventDescription: that.eventDescription, //审核意见
  1383. attach: that.attachExamine
  1384. }
  1385. eventExamine(param).then(res => {
  1386. if (res.code == 200) {
  1387. that.$message.success(`处理成功!`)
  1388. that.refreshEvent(that.eventCode)
  1389. that.selectMessageList()
  1390. that.cancelEventConfirm_send()
  1391. that.showEventConfirm = false
  1392. } else if (res.code == 304) {
  1393. console.log(that.eventCode)
  1394. this.$message.warning(res.msg)
  1395. this.showEventDialog_message(that.eventCode)
  1396. //获取事件详情
  1397. }
  1398. that.attachExamine = []
  1399. that.uploadAttachList = []
  1400. that.eventDescription = ""
  1401. })
  1402. }
  1403. }
  1404. },
  1405. refreshEvent(eventCode) {
  1406. this.eventCode = eventCode
  1407. let that = this
  1408. //刷新--事件详情
  1409. getEventDetail({
  1410. eventCode: eventCode
  1411. }).then(res => {
  1412. let markersMapList = [];
  1413. that.eventLogList = res.data.eventlog
  1414. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1415. that.address = res.data.catalogue.address
  1416. that.eventStatusValue = res.data.catalogue.eventStatusValue
  1417. that.eventType = res.data.catalogue.eventType
  1418. that.statusFlag = res.data.catalogue.statusFlag
  1419. that.dataStatus = res.data.catalogue.dataStatus
  1420. that.deptId = res.data.catalogue.deptId
  1421. that.eventId = res.data.catalogue.id
  1422. that.latitude = res.data.catalogue.latitude
  1423. that.longitude = res.data.catalogue.longitude
  1424. that.eventName = res.data.catalogue.eventName
  1425. that.version = res.data.catalogue.version
  1426. that.eventTypeXl = res.data.catalogue.eventTypeXl
  1427. that.isExamine = res.data.catalogue.isExamine
  1428. let markersMap = {
  1429. lng: 124.59,
  1430. lat: 43.02,
  1431. icon: 'marker',
  1432. bindPopupHtml: '',
  1433. click: '',
  1434. parameter: '',
  1435. keepBindPopup: false,
  1436. isAggregation: true,
  1437. radius: 0
  1438. }
  1439. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1440. markersMap.icon = 'sj-icon-map-xinshangbao'
  1441. }
  1442. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1443. markersMap.icon = 'sj-icon-map-cuiban'
  1444. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1445. markersMap.icon = 'sj-icon-map-qianshou'
  1446. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1447. markersMap.icon = 'sj-icon-map-banjie'
  1448. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1449. markersMap.icon = 'sj-icon-map-guidang'
  1450. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1451. markersMap.icon = 'sj-icon-map-queren'
  1452. }
  1453. markersMap.lng = res.data.catalogue.longitude
  1454. markersMap.lat = res.data.catalogue.latitude
  1455. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1456. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  1457. 0) {
  1458. markersMap.radius = res.data.eventdetail[0].fireRadius
  1459. }
  1460. markersMapList.push(markersMap)
  1461. if (res.data.centermonitorTCamera != null) {
  1462. let markersMap = {
  1463. lng: 124.59,
  1464. lat: 43.02,
  1465. icon: 'camera',
  1466. bindPopupHtml: '',
  1467. click: 'preview',
  1468. parameter: {
  1469. code: res.data.centermonitorTCamera.cameraCode,
  1470. type: res.data.centermonitorTCamera.cameraFactory,
  1471. name: res.data.centermonitorTCamera.cameraName
  1472. },
  1473. keepBindPopup: false,
  1474. isAggregation: true,
  1475. radius: 0
  1476. }
  1477. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1478. '<span>' +
  1479. ' <div class="d-l-con">' +
  1480. ' <div class="d-l-l-text">' +
  1481. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1482. ' </div>' +
  1483. ' </div>' +
  1484. ' </span>' +
  1485. '<span>' +
  1486. '</div>'
  1487. markersMap.lng = res.data.centermonitorTCamera.longitude
  1488. markersMap.lat = res.data.centermonitorTCamera.latitude
  1489. markersMapList.push(markersMap)
  1490. }
  1491. setTimeout(() => {
  1492. that.$refs.supermapDialogMessage.clearM(false)
  1493. that.$refs.supermapDialogMessage.clearM(true)
  1494. that.$refs.supermapDialogMessage.setMarkersRadius(markersMapList)
  1495. that.$refs.supermapDialogMessage.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  1496. }, 2000)
  1497. })
  1498. },
  1499. refreshEventDialog(eventCode) {
  1500. //刷新--事件日志12
  1501. getEventDetail({
  1502. eventCode: eventCode
  1503. }).then(res => {
  1504. this.eventLogList = res.data.eventlog
  1505. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1506. })
  1507. },
  1508. selectTaskList: async function () {
  1509. //获取任务列表
  1510. selectTaskBO().then(res => {
  1511. this.taskList = res.data
  1512. this.taskCount = res.data.length
  1513. })
  1514. this.initWebSocket('TASK_SOCKET', '/taskPush/', this.websockSid.userId)
  1515. },
  1516. handleCheckedCitiesChangeBan(value) {
  1517. this.choseLayerSwitchingList(this.banCheckList)
  1518. },
  1519. handleCheckedCitiesChangeBan_Data(value) {
  1520. if (this.banCheckList_Data.length > 1) {
  1521. this.banCheckList_Data.splice(0, 1)
  1522. }
  1523. this.choseLayerSwitchingList_Data(this.banCheckList_Data)
  1524. },
  1525. handleCheckedCitiesChangeChang(value) {
  1526. this.choseLayerSwitchingList(this.changCheckList)
  1527. },
  1528. refresh() {
  1529. window.location.reload()
  1530. },
  1531. showDialog(click) {
  1532. window.showDialog(click)
  1533. },
  1534. // 测量距离
  1535. choseMeasuringDistance() {
  1536. this.$parent.$refs.supermap.choseMeasuringDistance()
  1537. },
  1538. // 测量面积
  1539. choseMeasuringArea() {
  1540. this.$parent.$refs.supermap.choseMeasuringArea()
  1541. },
  1542. // 测量清除
  1543. choseMeasuringClear() {
  1544. this.$parent.$refs.supermap.choseMeasuringAreaAll()
  1545. },
  1546. choseLayerSwitching(url, isClear) {
  1547. window.choseLayerSwitching(url, isClear)
  1548. },
  1549. choseLayerSwitchingList(urlList) { //选择图层(传递数组)
  1550. window.choseLayerSwitchingList(urlList)
  1551. },
  1552. choseLayerSwitchingList_Data(urlList) { //选择图层(传递数组)
  1553. window.choseLayerSwitchingList_Data(urlList)
  1554. },
  1555. forestban() {
  1556. window.forestban()
  1557. console.log('林班')
  1558. },
  1559. forestchang() {
  1560. window.forestchang()
  1561. console.log('林场')
  1562. },
  1563. closeBanChild() {
  1564. this.banCheckList = []
  1565. this.showBanChild = false
  1566. },
  1567. closeChangChild() {
  1568. this.changCheckList = []
  1569. this.showChangChild = false
  1570. },
  1571. //图例收起弹出
  1572. btmIndent() {
  1573. if (this.btmTipIndent == '') {
  1574. this.btmTipIndent = 'btm-tip-to-right'
  1575. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  1576. this.btmTipIndent = ''
  1577. }
  1578. },
  1579. searchFilterchang(filterchang) {
  1580. //林场列表搜索
  1581. let searchFilterchangnew = []
  1582. if (filterchang != null && filterchang != '') {
  1583. for (var i = 0; i < this.filterchangListAll.length; i++) {
  1584. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  1585. searchFilterchangnew.push(this.filterchangListAll[i])
  1586. }
  1587. }
  1588. this.filterchangList = searchFilterchangnew
  1589. } else {
  1590. this.filterchangList = this.filterchangListAll
  1591. }
  1592. },
  1593. searchFilterban(filterban) {
  1594. //林场列表搜索
  1595. let searchFilterbannew = []
  1596. if (filterban != null && filterban != '') {
  1597. for (var i = 0; i < this.filterbanListAll.length; i++) {
  1598. if (this.filterbanListAll[i].farmName.indexOf(filterban) > -1) {
  1599. searchFilterbannew.push(this.filterbanListAll[i])
  1600. }
  1601. }
  1602. this.filterbanList = searchFilterbannew
  1603. } else {
  1604. this.filterbanList = this.filterbanListAll
  1605. }
  1606. },
  1607. //标记警报
  1608. updateAlert() {
  1609. this.eventWarn = true
  1610. },
  1611. updateAlertFalse() {
  1612. this.eventWarn = false
  1613. this.$emit('stopAudio')
  1614. }
  1615. }
  1616. }
  1617. </script>
  1618. <style rel="stylesheet/scss" lang="scss" scoped>
  1619. @import '@/assets/styles/base.scss';
  1620. .dotClass {
  1621. width: 10px;
  1622. height: 10px;
  1623. border-radius: 50%;
  1624. display: block;
  1625. margin: -5px;
  1626. }
  1627. .redClass {
  1628. background-color: red;
  1629. width: 10px;
  1630. height: 10px;
  1631. border-radius: 50%;
  1632. display: block;
  1633. }
  1634. .btm-box {
  1635. width: 100%;
  1636. height: auto;
  1637. background: linear-gradient($btmMemu);
  1638. position: absolute;
  1639. z-index: 999;
  1640. bottom: 0;
  1641. height: 2.5rem;
  1642. display: flex;
  1643. align-items: center;
  1644. z-index: 9999;
  1645. .light {
  1646. position: absolute;
  1647. top: -.5rem;
  1648. }
  1649. .btm-left {
  1650. position: absolute;
  1651. font-size: .7rem;
  1652. height: 2rem;
  1653. line-height: 2rem;
  1654. border: 1px $searchBorder;
  1655. border-left: none;
  1656. color: $inBlue;
  1657. display: flex;
  1658. -webkit-transform: translateX(-21rem) !important;
  1659. transform: translateX(-21rem) !important;
  1660. transition: all 0.5s ease-in-out !important;
  1661. .btm-legend {
  1662. height: 2rem;
  1663. text-align: center;
  1664. color: $inBlue;
  1665. padding: 0 .5rem;
  1666. cursor: pointer;
  1667. }
  1668. .btm-legend:hover {
  1669. background-color: $tipHover;
  1670. color: $white;
  1671. }
  1672. .btm-left-tip {
  1673. display: flex;
  1674. align-items: center;
  1675. margin: 0 .5rem;
  1676. .btm-left-block {
  1677. width: 1rem;
  1678. height: 1rem;
  1679. margin-right: .3rem;
  1680. border-radius: .2rem;
  1681. }
  1682. .btm-left-state-c1 {
  1683. background-color: $eventStateColor-xsb;
  1684. }
  1685. .btm-left-state-c2 {
  1686. background-color: $eventStateColor-cb;
  1687. }
  1688. .btm-left-state-c3 {
  1689. background-color: $eventStateColor-yqs;
  1690. }
  1691. .btm-left-state-c4 {
  1692. background-color: $eventStateColor-ld;
  1693. }
  1694. .btm-left-state-c5 {
  1695. background-color: $eventStateColor-bj;
  1696. }
  1697. .btm-left-state-c6 {
  1698. background-color: $eventStateColor-tb;
  1699. }
  1700. }
  1701. }
  1702. .btm-tip-to-right {
  1703. -webkit-transform: translateX(0) !important;
  1704. transform: translateX(0) !important;
  1705. transition: all 0.5s ease-in-out !important;
  1706. }
  1707. .bottom-menu-normal {
  1708. max-width: 70%;
  1709. padding: 0 3rem;
  1710. position: absolute;
  1711. left: 50%;
  1712. transform: translateX(-50%);
  1713. bottom: 0;
  1714. z-index: 999;
  1715. border-radius: 5px;
  1716. display: flex;
  1717. justify-content: center;
  1718. align-items: center;
  1719. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  1720. // background-size: cover;
  1721. .btm-m-con {
  1722. position: relative;
  1723. color: $inBlue;
  1724. font-size: .5rem;
  1725. padding: .6rem 1rem;
  1726. display: flex;
  1727. align-items: center;
  1728. justify-content: center;
  1729. -webkit-transform: translateY(0);
  1730. transform: translateY(0);
  1731. transition: all 0.2s ease-in-out;
  1732. cursor: pointer;
  1733. white-space: nowrap;
  1734. i {
  1735. font-size: 1rem;
  1736. color: $inBlue;
  1737. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  1738. margin-right: 0.2rem;
  1739. }
  1740. .nav-child {
  1741. text-shadow: none !important;
  1742. position: absolute;
  1743. bottom: 3rem;
  1744. border: 1px solid saddlebrown;
  1745. padding: .5rem;
  1746. -moz-border-radius-topleft: 0;
  1747. -moz-border-radius-bottomright: 0;
  1748. background-color: $barBgc;
  1749. box-shadow: $barShadow;
  1750. border: 1px $barBorder;
  1751. left: 50%;
  1752. transform: translateX(-50%);
  1753. color: $inBlue;
  1754. .nav-child-btn {
  1755. padding: .2rem;
  1756. }
  1757. .forestban {
  1758. display: flex;
  1759. .forestban-con {
  1760. width: 20rem;
  1761. height: 20rem;
  1762. overflow-y: scroll;
  1763. border: 1px solid rgba(51, 70, 127, 0.7);
  1764. }
  1765. .forestban-right {
  1766. width: 10rem;
  1767. height: 20rem;
  1768. overflow-y: scroll;
  1769. padding: 0 1rem;
  1770. .el-checkbox-group {
  1771. display: flex;
  1772. flex-direction: column;
  1773. label {
  1774. padding: .4rem 0;
  1775. }
  1776. .el-checkbox {
  1777. color: $white;
  1778. }
  1779. }
  1780. }
  1781. }
  1782. }
  1783. }
  1784. .btm-m-con:hover,
  1785. .on {
  1786. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1787. -webkit-transform: translateX(0.2rem);
  1788. transform: translateX(0.2rem);
  1789. transition: all 0.2s ease-in-out;
  1790. .nav-child {
  1791. text-shadow: none !important;
  1792. }
  1793. i {
  1794. color: $inBlueHover;
  1795. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1796. }
  1797. }
  1798. }
  1799. .btm-right {
  1800. position: absolute;
  1801. font-size: .7rem;
  1802. height: 2rem;
  1803. display: flex;
  1804. right: 1rem;
  1805. align-items: center;
  1806. .el-badge {
  1807. display: flex !important;
  1808. margin-left: 1.5rem;
  1809. button {
  1810. padding: 0 .3rem;
  1811. height: 1.5rem;
  1812. background-color: #112543;
  1813. color: $inBlue;
  1814. border: 1px $searchBorder;
  1815. }
  1816. }
  1817. .el-badge:hover {
  1818. -webkit-transform: translateX(0.1rem);
  1819. transform: translateX(0.1rem);
  1820. transition: all 0.2s ease-in-out;
  1821. button {
  1822. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1823. }
  1824. }
  1825. }
  1826. }
  1827. .btm-r-pop-info {
  1828. display: flex;
  1829. width: 35rem;
  1830. flex-direction: column;
  1831. max-height: 85vh;
  1832. min-height: fit-content;
  1833. overflow-y: scroll;
  1834. padding: 1rem;
  1835. .btm-r-pop-info-box:hover {
  1836. box-shadow: $shadowListHover;
  1837. color: $inBlue;
  1838. border: 1px $countBorder;
  1839. }
  1840. .btm-r-pop-info-box {
  1841. width: 100%;
  1842. display: flex;
  1843. flex-direction: column;
  1844. background-color: $deepBG;
  1845. padding: .5rem;
  1846. border-radius: .5rem;
  1847. color: $inBlue;
  1848. border: 1px $searchBorder;
  1849. margin-bottom: 1rem;
  1850. .btm-r-pop-info-tit {
  1851. display: flex;
  1852. padding: .5rem;
  1853. h3 {
  1854. font-weight: bolder;
  1855. }
  1856. }
  1857. .btm-r-pop-info-con {
  1858. padding: .5rem;
  1859. display: flex;
  1860. flex-direction: column;
  1861. border-top: 1px $searchBorder;
  1862. border-bottom: 1px $searchBorder;
  1863. .btm-r-pop-info-list {
  1864. display: flex;
  1865. padding: .3rem 0;
  1866. .btm-r-pop-info-list-name {
  1867. width: 3.6rem;
  1868. text-align: right;
  1869. margin-right: 1rem;
  1870. }
  1871. .btm-r-pop-info-list-text {
  1872. }
  1873. }
  1874. }
  1875. .btm-r-pop-info-btm {
  1876. padding: .5rem;
  1877. display: flex;
  1878. justify-content: space-between;
  1879. .btm-r-pop-info-btm-btn {
  1880. button {
  1881. padding: .5rem;
  1882. }
  1883. }
  1884. }
  1885. }
  1886. }
  1887. //警铃
  1888. .fire-tip {
  1889. text-align: center;
  1890. width: 100%;
  1891. font-size: 44px;
  1892. color: #ff0000;
  1893. text-shadow: 0 0 1px #ffffff;
  1894. }
  1895. .fire-address {
  1896. text-align: center;
  1897. width: 100%;
  1898. font-size: 14px;
  1899. color: rgba(255, 255, 255, 0.8);
  1900. margin-top: 44px;
  1901. }
  1902. .fire-handle {
  1903. display: block;
  1904. text-align: center;
  1905. background: #00BFF0;
  1906. color: #ffffff;
  1907. border-radius: 20px;
  1908. font-size: 14px;
  1909. width: 80px;
  1910. height: 40px;
  1911. line-height: 40px;
  1912. margin: 24px auto;
  1913. text-decoration: none
  1914. }
  1915. .fire-handle:hover {
  1916. background: #06a2ca;
  1917. }
  1918. .bell {
  1919. position: absolute;
  1920. right: 10px;
  1921. bottom: -20px;
  1922. width: 100%;
  1923. height: 320px;
  1924. z-index: 999;
  1925. }
  1926. .bell canvas {
  1927. display: block;
  1928. position: absolute;
  1929. left: 0;
  1930. top: -9px;
  1931. }
  1932. /* 保持大小不变的小圆圈 */
  1933. .dot {
  1934. position: absolute;
  1935. width: 96px;
  1936. height: 96px;
  1937. left: 160px;
  1938. top: 160px;
  1939. background: url('../assets/images/bell.gif') no-repeat;
  1940. // background: url(.) no-repeat;
  1941. background-size: 100%;
  1942. z-index: 200;
  1943. }
  1944. /* 产生动画(向外扩散变大)的圆圈 */
  1945. .pulse,
  1946. .pulse-big {
  1947. position: absolute;
  1948. width: 420px;
  1949. height: 420px;
  1950. border: 2px solid #EF2D02;
  1951. background: rgba(239, 45, 2, 0.8);
  1952. border-radius: 50%;
  1953. z-index: 100;
  1954. opacity: 0;
  1955. }
  1956. .pulse {
  1957. background: rgba(239, 45, 2, 0.6) !important;
  1958. -webkit-animation: warn 0.9s ease-out;
  1959. -moz-animation: warn 0.9s ease-out;
  1960. animation: warn 0.9s ease-out;
  1961. -webkit-animation-iteration-count: infinite;
  1962. -moz-animation-iteration-count: infinite;
  1963. animation-iteration-count: infinite;
  1964. box-shadow: 1px 1px 30px #EF2D02;
  1965. }
  1966. .pulse-big {
  1967. background: rgba(239, 45, 2, 0.6) !important;
  1968. -webkit-animation: warn1 0.9s ease-out;
  1969. -moz-animation: warn1 0.9s ease-out;
  1970. animation: warn1 0.9s ease-out;
  1971. -webkit-animation-iteration-count: infinite;
  1972. -moz-animation-iteration-count: infinite;
  1973. animation-iteration-count: infinite;
  1974. box-shadow: 1px 1px 30px #EF2D02;
  1975. }
  1976. @keyframes warn {
  1977. 0% {
  1978. -moz-transform: scale(0);
  1979. transform: scale(0);
  1980. opacity: 1;
  1981. }
  1982. 100% {
  1983. -moz-transform: scale(1);
  1984. transform: scale(1);
  1985. opacity: 0;
  1986. }
  1987. }
  1988. @keyframes warn1 {
  1989. 0% {
  1990. -o-transform: scale(0);
  1991. transform: scale(0);
  1992. opacity: 1;
  1993. }
  1994. 100% {
  1995. -o-transform: scale(0.6);
  1996. transform: scale(0.6);
  1997. opacity: 0;
  1998. }
  1999. }
  2000. </style>