vBottomMenu.vue 77 KB

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