vBottomMenu.vue 77 KB

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