vBottomMenu.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244
  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('http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo',true)"
  42. class="nav-child-btn" plain>铁东
  43. </el-button>
  44. <el-button type="primary"
  45. @click.stop="choseLayerSwitching('http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo',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. <!-- 林斑 -->
  52. <div v-show="showBanChild && fastMenu.click == 'forestban'" class="nav-child">
  53. <div class="forestban">
  54. <div class="forestban-con">
  55. <!-- <el-input-->
  56. <!-- placeholder="输入关键字进行过滤"-->
  57. <!-- v-model="filterbanText">-->
  58. <!-- </el-input>-->
  59. <el-tree :data="deptOptionsLiandong" ref="banDept" node-key="id" :check-strictly="true"
  60. :filter-node-method="filterbanNode" @click :accordion="true" empty-text="加载中,请稍候"
  61. :props="defaultProps"></el-tree>
  62. </div>
  63. <div class="forestban-right">
  64. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="searchFB">
  65. </el-input>
  66. <el-checkbox-group v-model="banCheckList" @change="handleCheckedCitiesChangeBan">
  67. <el-checkbox v-for="(fastMenu,index) in filterbanList"
  68. label="http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo">
  69. 铁东
  70. </el-checkbox>
  71. </el-checkbox-group>
  72. </div>
  73. <el-button type="danger" icon="el-icon-close"
  74. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  75. @click.stop="closeBanChild"></el-button>
  76. </div>
  77. </div>
  78. <!-- 林场 -->
  79. <div v-show="showChangChild && fastMenu.click == 'forestchang'" class="nav-child">
  80. <div class="forestban">
  81. <div class="forestban-con">
  82. <!-- <el-input-->
  83. <!-- placeholder="输入关键字进行过滤"-->
  84. <!-- v-model="filterchangText">-->
  85. <!-- </el-input>-->
  86. <el-tree :data="deptOptionsLiandong" ref="changDept" node-key="id"
  87. :check-strictly="true" :filter-node-method="filterchangNode"
  88. @node-click="handlechangNodeClick" :accordion="true" empty-text="加载中,请稍候"
  89. :props="defaultProps"></el-tree>
  90. </div>
  91. <div class="forestban-right">
  92. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterchang"
  93. @change="searchFilterchang(filterchang)">
  94. </el-input>
  95. <el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
  96. <el-checkbox v-for="(item,index) in filterchangList" :label="item.farmAddress">
  97. {{ item.farmName }}
  98. </el-checkbox>
  99. </el-checkbox-group>
  100. </div>
  101. <el-button type="danger" icon="el-icon-close"
  102. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  103. @click.stop="closeChangChild"></el-button>
  104. </div>
  105. </div>
  106. </a>
  107. </div>
  108. </div>
  109. <div class="btm-right">
  110. <el-popover placement="top" trigger="click">
  111. <div class="btm-r-pop-info">
  112. <div class="btm-r-pop-info-box" v-for="(item,index) in taskList">
  113. <div class="btm-r-pop-info-tit">
  114. <h3>{{ item.taskSourceValue }}</h3>
  115. </div>
  116. <div class="btm-r-pop-info-con">
  117. <div class="btm-r-pop-info-list">
  118. <div class="btm-r-pop-info-list-name">标题</div>
  119. <div class="btm-r-pop-info-list-text">{{ item.taskTitle }}</div>
  120. </div>
  121. <div class="btm-r-pop-info-list">
  122. <div class="btm-r-pop-info-list-name">发起人</div>
  123. <div class="btm-r-pop-info-list-text">{{ item.sendPersonName }}</div>
  124. </div>
  125. <div class="btm-r-pop-info-list">
  126. <div class="btm-r-pop-info-list-name">发起时间</div>
  127. <div class="btm-r-pop-info-list-text">{{ item.taskSendTime }}</div>
  128. </div>
  129. <div class="btm-r-pop-info-list">
  130. <div class="btm-r-pop-info-list-name">关联事件</div>
  131. <div class="btm-r-pop-info-list-text">{{ item.eventName }}</div>
  132. </div>
  133. <div class="btm-r-pop-info-list">
  134. <div class="btm-r-pop-info-list-name">催办状态</div>
  135. <div class="btm-r-pop-info-list-text" style="color: red" v-if="item.isUrged==1">
  136. 任务催办中,请及时处理!!</div>
  137. <div class="btm-r-pop-info-list-text" v-else>正常</div>
  138. </div>
  139. </div>
  140. <div class="btm-r-pop-info-btm">
  141. <el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
  142. <div class="btm-r-pop-info-btm-btn">
  143. <el-button type="danger" @click="selectTaskDtpts(item.taskId,item.eventCode,'jj')">拒绝
  144. </el-button>
  145. <el-button type="primary" @click="selectTaskDtpts(item.taskId,item.eventCode,'lq')">领取
  146. </el-button>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <el-badge :value="taskCount" slot="reference">
  152. <el-button size="small" icon="el-icon-bank-card" @click="refreshTaskList">任务</el-button>
  153. </el-badge>
  154. </el-popover>
  155. <el-popover placement="top" trigger="click">
  156. <div class="btm-r-pop-info">
  157. <div class="btm-r-pop-info-box" v-for="(item,index) in 0">
  158. <div class="btm-r-pop-info-tit">
  159. <h3>火险任务</h3>
  160. </div>
  161. <div class="btm-r-pop-info-con">
  162. <div class="btm-r-pop-info-list">
  163. <div class="btm-r-pop-info-list-name">标题</div>
  164. <div class="btm-r-pop-info-list-text">四平阿斯利康大姐夫啊路上的风景可丽金啊水电分离家</div>
  165. </div>
  166. <div class="btm-r-pop-info-list">
  167. <div class="btm-r-pop-info-list-name">发起人</div>
  168. <div class="btm-r-pop-info-list-text">张三</div>
  169. </div>
  170. <div class="btm-r-pop-info-list">
  171. <div class="btm-r-pop-info-list-name">发起时间</div>
  172. <div class="btm-r-pop-info-list-text">2022-09-05 12:12:15</div>
  173. </div>
  174. <div class="btm-r-pop-info-list">
  175. <div class="btm-r-pop-info-list-name">关联事件</div>
  176. <div class="btm-r-pop-info-list-text">啊萨杜拉副科级啊萨杜拉副科级</div>
  177. </div>
  178. </div>
  179. <div class="btm-r-pop-info-btm">
  180. <el-link type="success">查看详情</el-link>
  181. <div class="btm-r-pop-info-btm-btn">
  182. <el-button type="danger">拒绝</el-button>
  183. <el-button type="primary">领取</el-button>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <el-badge :value="0" slot="reference">
  189. <el-button size="small" icon="el-icon-chat-line-round">消息</el-button>
  190. </el-badge>
  191. </el-popover>
  192. <!-- 警报铃 必须放在这,放在别处不好使 -->
  193. <div class="bell" v-if="eventWarn" @click="updateAlertFalse">
  194. <div class="dot"></div>
  195. <div class="pulse"></div>
  196. <div class="pulse-big"></div>
  197. </div>
  198. <el-badge type="primary">
  199. <el-button size="small" icon="el-icon-bell" @click="updateAlertFalse">警报</el-button>
  200. </el-badge>
  201. <el-badge type="warning">
  202. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  203. </el-badge>
  204. </div>
  205. <!-- 事件详情弹层 -->
  206. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" customClass="customWidth" append-to-body
  207. @close="cancelEventShow()">
  208. <div class="dia-event-info">
  209. <el-row>
  210. <!-- 左侧 -->
  211. <el-col :span="18" class="dia-left">
  212. <div ref="imageTofile" style="height: 75vh;">
  213. <!-- 应急预案 -->
  214. <div class="dia-left-top">
  215. <div class="dia-left-top-tit">应急预案</div>
  216. <div class="dia-left-top-carousel">
  217. <el-carousel height="30px" direction="vertical" :interval="2000">
  218. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  219. <a
  220. :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName }}</a>
  221. </el-carousel-item>
  222. <el-carousel-item v-else>
  223. <a href="#">未选预案</a>
  224. </el-carousel-item>
  225. </el-carousel>
  226. </div>
  227. </div>
  228. <!-- 应急预案end -->
  229. <!-- 地图 -->
  230. <supermapTaskDialog ref="supermapTaskDialog" style="position: absolute; top:0;left: 0;"
  231. :mapDiv="'taskDialogSuperMap'"
  232. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  233. :codes="['9fa5']" :isSideBySide="false" :isdynamicPlotting="false" />
  234. <!-- 地图end -->
  235. </div>
  236. </el-col>
  237. <!-- 左侧end -->
  238. <!-- 右侧 -->
  239. <el-col :span="6" class="dia-right">
  240. <div class="e-right">
  241. <div class="forthis1-1">
  242. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  243. style="padding-bottom:1rem ;">
  244. <div class="i-list-con">
  245. <div class="this-con">
  246. <div class="z-info-list" style="margin-top: 0;">
  247. <el-timeline>
  248. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  249. placement="top" v-for="(item,index) in eventLogList">
  250. <el-card style="width: 40vh">
  251. <div class="z-info-list-con">
  252. <div class="user-and-time flex-d">
  253. <span>{{ item.createName }}</span>
  254. <span
  255. v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  256. class="el-icon-location"></i>
  257. {{ address }}</span>
  258. <span v-else></span>
  259. </div>
  260. <div class="z-info">
  261. <div class="this-con-list-info">
  262. {{ item.logContent }}
  263. </div>
  264. <div>
  265. <router-link to="#"
  266. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  267. v-for="(itemfile,indexfile) in item.fileVOs">
  268. <el-image :src="itemfile.fileUrl"
  269. v-if="itemfile.fileType=='image'"
  270. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  271. style="width:3rem; height:3rem;margin: 2px;"
  272. :title="itemfile.fileName">
  273. </el-image>
  274. <img v-else-if="itemfile.fileType=='video'"
  275. style="width:3rem; height:3rem;margin: 2px;"
  276. :src="require('@/assets/fileTypeImage/mp4.png')"
  277. :title="itemfile.fileName">
  278. </img>
  279. <img v-else-if="itemfile.fileType=='word'"
  280. style="width:3rem; height:3rem;margin: 2px;"
  281. :src="require('@/assets/fileTypeImage/word.png')"
  282. :title="itemfile.fileName">
  283. </img>
  284. <img v-else-if="itemfile.fileType=='excel'"
  285. style="width:3rem; height:3rem;margin: 2px;"
  286. :src="require('@/assets/fileTypeImage/excel.png')"
  287. :title="itemfile.fileName">
  288. </img>
  289. <img v-else
  290. style="width:3rem; height:3rem;margin: 2px;"
  291. :src="require('@/assets/fileTypeImage/file.png')"
  292. :title="itemfile.fileName">
  293. </img>
  294. </router-link>
  295. </div>
  296. </div>
  297. </div>
  298. </el-card>
  299. </el-timeline-item>
  300. </el-timeline>
  301. </div>
  302. </div>
  303. </div>
  304. </dv-border-box-7>
  305. </div>
  306. <!-- <div class="forthis">-->
  307. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  308. <!-- <div class="i-list-con">-->
  309. <!-- <div class="this-con h-25 no-padding">-->
  310. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  311. <!-- <div class="z-info-btm-grp">-->
  312. <!-- <div class="z-info-btm-grp-top">-->
  313. <!-- <div class="z-info-btm-grp-left">-->
  314. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  315. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  316. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  317. <!-- </el-button>-->
  318. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  319. <!-- </el-button>-->
  320. <!-- </div>-->
  321. <!-- <div class="z-info-btm-grp-right">-->
  322. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  323. <!-- </el-button>-->
  324. <!-- </div>-->
  325. <!-- </div>-->
  326. <!-- </div>-->
  327. <!-- </div>-->
  328. <!-- </div>-->
  329. <!-- </div>-->
  330. <!-- </dv-border-box-7>-->
  331. <!-- </div>-->
  332. </div>
  333. </el-col>
  334. <!-- 左侧end -->
  335. </el-row>
  336. </div>
  337. </el-dialog>
  338. <!-- 任务选择领取部门弹层 -->
  339. <el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body
  340. @close="cancelEventConfirm()">
  341. <el-form label-width="80px">
  342. <el-form-item label="选择部门">
  343. <el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">
  344. <el-option v-for="item in deptOptions" :key="item.taskDeptId" :label="item.taskDeptName"
  345. :value="{value:item.taskDeptId,label:item.taskDeptName}">
  346. <!--:disabled="item.eventStatus=='未处理' ? false:true"-->
  347. </el-option>
  348. </el-select>
  349. </el-form-item>
  350. <el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
  351. @click="receiveTask(taskId,eventCode)">领取
  352. </el-button>
  353. <el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
  354. @click="refusedTask(taskId,eventCode)">拒绝
  355. </el-button>
  356. </el-form>
  357. </el-dialog>
  358. <!-- 图片,视频预览 -->
  359. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" append-to-body>
  360. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  361. </el-dialog>
  362. </div>
  363. </template>
  364. <script>
  365. import {
  366. selectTaskBO,
  367. getEventDetail,
  368. selectTaskDtpts,
  369. receiveTask,
  370. refusedTask
  371. } from '@/api/forest'
  372. import {
  373. selectFarmByDeptId
  374. } from '@/api/vBottomMenu'
  375. import {
  376. treeselectAll as deptTreeselect
  377. } from '@/api/system/dept'
  378. import supermapTaskDialog from '@/components/supermap' //超图
  379. import TcPlayer from '@/components/TcPlayer' //视频预览
  380. export default {
  381. components: {
  382. supermapTaskDialog,
  383. TcPlayer
  384. },
  385. watch: {
  386. filterbanText(val) {
  387. alert(val)
  388. console.log(this.$refs)
  389. this.$refs.banDept.filter(val)
  390. },
  391. filterchangText(val) {
  392. alert(val)
  393. console.log(this.$refs)
  394. this.$refs.changDept.filter(val)
  395. }
  396. },
  397. data() {
  398. return {
  399. playVideo: '', //视频预览地址
  400. showTcPlayer: false, //视频预览弹窗
  401. filterbanText: '',
  402. filterchangText: '',
  403. filterbanList: [],
  404. filterchangList: [],
  405. filterchangListAll: [],
  406. eventId: null,
  407. eventCode: null,
  408. longitude: null,
  409. latitude: null,
  410. eventLogList: [], //事件详情日志
  411. eventDialog: false, //事件详情弹层
  412. taskStatusButton: null, //任务按钮
  413. visuForestCloudYuAnBo: null,
  414. address: null, //事件上报地址
  415. taskId: null, //任务ID
  416. showDeptConfirm: false, //任务领取选择部门弹窗
  417. deptOptions: [], //任务领取部门列表
  418. centerTaskTaskDepts: [], //任务领取部门
  419. deptName: [], //任务领取部门
  420. taskCount: 0, //任务数量
  421. taskList: 0, //任务列表
  422. btmTipIndent: '', //图例收起弹出
  423. eventLocationVisible: false,
  424. showChild: false,
  425. showBanChild: false, //林斑
  426. showChangChild: false, //林场
  427. fastMenu: [{
  428. name: '事件定位',
  429. icon: 'iconfont sj-icon-sjdw',
  430. click: 'eventLocation'
  431. },
  432. {
  433. name: '图层切换',
  434. icon: 'iconfont sj-icon-tcqh',
  435. click: 'layerSwitching'
  436. },
  437. {
  438. name: '测量工具',
  439. icon: 'iconfont sj-icon-clgj',
  440. click: 'editableLayers'
  441. },
  442. {
  443. name: '林班',
  444. icon: 'iconfont sj-icon-lbzy',
  445. click: 'forestban'
  446. },
  447. {
  448. name: '林场',
  449. icon: 'iconfont sj-icon-lczy',
  450. click: 'forestchang'
  451. },
  452. {
  453. name: '电视墙',
  454. icon: 'el-icon-s-grid',
  455. click: 'TVWall'
  456. }
  457. ],
  458. deptOptionsLiandong: [],
  459. data: [{
  460. label: '一级 1',
  461. children: [{
  462. label: '二级 1-1',
  463. children: [{
  464. label: '三级 1-1-1'
  465. }]
  466. }]
  467. }, {
  468. label: '一级 2',
  469. children: [{
  470. label: '二级 2-1',
  471. children: [{
  472. label: '三级 2-1-1'
  473. }]
  474. }, {
  475. label: '二级 2-2',
  476. children: [{
  477. label: '三级 2-2-1'
  478. }]
  479. }]
  480. }, {
  481. label: '一级 3',
  482. children: [{
  483. label: '二级 3-1',
  484. children: [{
  485. label: '三级 3-1-1'
  486. }]
  487. }, {
  488. label: '二级 3-2',
  489. children: [{
  490. label: '三级 3-2-1'
  491. }]
  492. }]
  493. }],
  494. defaultProps: {
  495. children: 'children',
  496. label: 'label'
  497. },
  498. banCheckList: [], //林班
  499. changCheckList: [], //林场
  500. searchFB: '',
  501. filterchang: '', //林场搜索
  502. btmCurrent: '',
  503. eventWarn: false, //webSocket事件问题警报标记
  504. }
  505. },
  506. created() {
  507. /** 查询部门树结构 */
  508. deptTreeselect().then(response => {
  509. this.deptOptionsLiandong = response.data
  510. })
  511. },
  512. methods: {
  513. filterbanNode(value, data) {
  514. //树搜索
  515. if (!value) return true
  516. return data.label.indexOf(value) !== -1
  517. },
  518. filterchangNode(value, data) {
  519. //树搜索
  520. if (!value) return true
  521. return data.label.indexOf(value) !== -1
  522. },
  523. handlechangNodeClick(node, data, value) {
  524. //获取林场列表
  525. this.filterchang = ''
  526. selectFarmByDeptId({
  527. deptId: node.id
  528. }).then(res => {
  529. this.filterchangList = res.data
  530. this.filterchangListAll = res.data
  531. })
  532. },
  533. // 返回图片列表
  534. assetTypeAnImage(filePath) {
  535. let imageList = []
  536. if (filePath != null && filePath.length > 0) {
  537. for (let i = 0; i < filePath.length; i++) {
  538. if (filePath[i].fileType == 'image') {
  539. imageList.push(filePath[i].fileUrl)
  540. }
  541. }
  542. }
  543. return imageList
  544. },
  545. clickFile(fileUrl, fileName, fileType) {
  546. if (fileType == 'image') {
  547. return
  548. } else if (fileType == 'video') {
  549. this.showTcPlayer = true
  550. setTimeout(() => {
  551. this.playVideo = fileUrl
  552. }, 500)
  553. } else {
  554. let a = document.createElement('a')
  555. a.download = fileName
  556. a.href = fileUrl
  557. a.target = '_blank'
  558. a.click()
  559. }
  560. },
  561. setValue(event) {
  562. this.centerTaskTaskDepts = []
  563. //签收选择部门
  564. if (event != null && event.length > 0) {
  565. for (let i = 0; i < event.length; i++) {
  566. if (event[i].label != undefined && event[i].value != undefined) {
  567. this.centerTaskTaskDepts.push({
  568. taskDeptId: event[i].value,
  569. taskDeptName: event[i].label
  570. })
  571. }
  572. }
  573. }
  574. },
  575. receiveTask(taskId, eventCode) {
  576. let param = {
  577. taskId: taskId,
  578. eventCode: eventCode,
  579. centerTaskTaskDepts: this.centerTaskTaskDepts
  580. }
  581. receiveTask(param).then(res => {
  582. //任务领取
  583. if (res.code == 200) {
  584. this.$message.success(`任务领取成功!`)
  585. this.deptOptions = []
  586. this.deptName = []
  587. this.centerTaskTaskDepts = []
  588. //刷新任务列表
  589. this.selectTaskList()
  590. this.showDeptConfirm = false
  591. }
  592. })
  593. },
  594. refusedTask(taskId, eventCode) {
  595. let param = {
  596. taskId: taskId,
  597. eventCode: eventCode,
  598. centerTaskTaskDepts: this.centerTaskTaskDepts
  599. }
  600. refusedTask(param).then(res => {
  601. //任务拒绝
  602. if (res.code == 200) {
  603. this.$message.success(`任务拒绝成功!`)
  604. this.deptOptions = []
  605. this.deptName = []
  606. this.centerTaskTaskDepts = []
  607. //刷新任务列表
  608. this.selectTaskList()
  609. this.showDeptConfirm = false
  610. }
  611. })
  612. },
  613. selectTaskDtpts(taskId, eventCode, state) {
  614. this.taskId = taskId
  615. this.eventCode = eventCode
  616. selectTaskDtpts({
  617. taskId: taskId
  618. }).then(res => {
  619. //任务领取部门列表
  620. if (res.code == 200) {
  621. this.deptOptions = res.data
  622. this.taskStatusButton = state
  623. this.showDeptConfirm = true
  624. }
  625. })
  626. },
  627. cancelEventShow() {
  628. console.log('关闭事件弹窗')
  629. this.eventCode = null
  630. this.eventLogList = []
  631. },
  632. cancelEventConfirm() {
  633. console.log('关闭任务选择部门')
  634. this.eventCode = null
  635. this.deptOptions = []
  636. this.deptName = []
  637. this.centerTaskTaskDepts = []
  638. },
  639. showEventDialog(eventCode) {
  640. this.eventCode = eventCode
  641. let that = this
  642. //获取事件详情
  643. getEventDetail({
  644. eventCode: eventCode
  645. }).then(res => {
  646. this.eventDialog = true
  647. this.eventLogList = res.data.eventlog
  648. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  649. this.address = res.data.catalogue.address
  650. this.eventType = res.data.catalogue.eventType
  651. this.eventId = res.data.catalogue.id
  652. this.longitude = res.data.catalogue.longitude
  653. this.latitude = res.data.catalogue.latitude
  654. let markersMap = {
  655. lng: 124.59,
  656. lat: 43.02,
  657. icon: 'marker',
  658. bindPopupHtml: '',
  659. click: '',
  660. parameter: '',
  661. keepBindPopup: false,
  662. isAggregation: false,
  663. radius: 0
  664. }
  665. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue
  666. .urgeCount == 0) {
  667. markersMap.icon = 'sj-icon-map-xinshangbao'
  668. }
  669. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue
  670. .urgeCount > 0) {
  671. markersMap.icon = 'sj-icon-map-cuiban'
  672. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  673. markersMap.icon = 'sj-icon-map-qianshou'
  674. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  675. markersMap.icon = 'sj-icon-map-banjie'
  676. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  677. markersMap.icon = 'sj-icon-map-guidang'
  678. }
  679. markersMap.lng = res.data.catalogue.longitude
  680. markersMap.lat = res.data.catalogue.latitude
  681. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  682. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0]
  683. .fireRadius > 0) {
  684. markersMap.radius = res.data.eventdetail[0].fireRadius
  685. }
  686. setTimeout(() => {
  687. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  688. that.$refs.supermapTaskDialog.clearM(false)
  689. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  690. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue.latitude, res.data
  691. .catalogue.longitude)
  692. }, 1000)
  693. })
  694. },
  695. refreshTaskList() {
  696. //刷新任务列表
  697. this.selectTaskList()
  698. },
  699. selectTaskList: async function() {
  700. //获取任务列表
  701. selectTaskBO().then(res => {
  702. this.taskList = res.data
  703. this.taskCount = res.data.length
  704. })
  705. },
  706. handleCheckedCitiesChangeBan(value) {
  707. this.choseLayerSwitchingList(this.banCheckList)
  708. },
  709. handleCheckedCitiesChangeChang(value) {
  710. this.choseLayerSwitchingList(this.changCheckList)
  711. },
  712. refresh() {
  713. window.location.reload()
  714. },
  715. showDialog(click) {
  716. window.showDialog(click)
  717. },
  718. choseLayerSwitching(url, isClear) {
  719. window.choseLayerSwitching(url, isClear)
  720. },
  721. choseLayerSwitchingList(urlList) { //选择图层(传递数组)
  722. window.choseLayerSwitchingList(urlList)
  723. },
  724. forestban() {
  725. window.forestban()
  726. console.log('林班')
  727. },
  728. forestchang() {
  729. window.forestchang()
  730. console.log('林场')
  731. },
  732. closeBanChild() {
  733. this.banCheckList = []
  734. this.showBanChild = false
  735. },
  736. closeChangChild() {
  737. this.changCheckList = []
  738. this.showChangChild = false
  739. },
  740. //图例收起弹出
  741. btmIndent() {
  742. if (this.btmTipIndent == '') {
  743. this.btmTipIndent = 'btm-tip-to-right'
  744. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  745. this.btmTipIndent = ''
  746. }
  747. },
  748. searchFilterchang(filterchang) {
  749. //林场列表搜索
  750. let searchFilterchangnew = []
  751. if (filterchang != null && filterchang != '') {
  752. for (var i = 0; i < this.filterchangListAll.length; i++) {
  753. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  754. searchFilterchangnew.push(this.filterchangListAll[i])
  755. }
  756. }
  757. this.filterchangList = searchFilterchangnew
  758. } else {
  759. this.filterchangList = this.filterchangListAll
  760. }
  761. },
  762. //标记警报
  763. updateAlert() {
  764. this.eventWarn = true;
  765. },
  766. updateAlertFalse(){
  767. this.eventWarn = false;
  768. this.$emit('stopAudio');
  769. }
  770. }
  771. }
  772. </script>
  773. <style rel="stylesheet/scss" lang="scss" scoped>
  774. @import '@/assets/styles/base.scss';
  775. .dotClass {
  776. width: 10px;
  777. height: 10px;
  778. border-radius: 50%;
  779. display: block;
  780. margin: -5px;
  781. }
  782. .redClass {
  783. background-color: red;
  784. width: 10px;
  785. height: 10px;
  786. border-radius: 50%;
  787. display: block;
  788. }
  789. .btm-box {
  790. width: 100%;
  791. height: auto;
  792. background: linear-gradient($btmMemu);
  793. position: absolute;
  794. z-index: 999;
  795. bottom: 0;
  796. height: 2.5rem;
  797. display: flex;
  798. align-items: center;
  799. z-index: 9999;
  800. .light {
  801. position: absolute;
  802. top: -.5rem;
  803. }
  804. .btm-left {
  805. position: absolute;
  806. font-size: .7rem;
  807. height: 2rem;
  808. line-height: 2rem;
  809. border: 1px $searchBorder;
  810. border-left: none;
  811. color: $inBlue;
  812. display: flex;
  813. -webkit-transform: translateX(-21rem) !important;
  814. transform: translateX(-21rem) !important;
  815. transition: all 0.5s ease-in-out !important;
  816. .btm-legend {
  817. height: 2rem;
  818. text-align: center;
  819. color: $inBlue;
  820. padding: 0 .5rem;
  821. cursor: pointer;
  822. }
  823. .btm-legend:hover {
  824. background-color: $tipHover;
  825. color: $white;
  826. }
  827. .btm-left-tip {
  828. display: flex;
  829. align-items: center;
  830. margin: 0 .5rem;
  831. .btm-left-block {
  832. width: 1rem;
  833. height: 1rem;
  834. margin-right: .3rem;
  835. border-radius: .2rem;
  836. }
  837. .btm-left-state-c1 {
  838. background-color: $eventStateColor-xsb;
  839. }
  840. .btm-left-state-c2 {
  841. background-color: $eventStateColor-cb;
  842. }
  843. .btm-left-state-c3 {
  844. background-color: $eventStateColor-yqs;
  845. }
  846. .btm-left-state-c4 {
  847. background-color: $eventStateColor-ld;
  848. }
  849. .btm-left-state-c5 {
  850. background-color: $eventStateColor-bj;
  851. }
  852. .btm-left-state-c6 {
  853. background-color: $eventStateColor-tb;
  854. }
  855. }
  856. }
  857. .btm-tip-to-right {
  858. -webkit-transform: translateX(0) !important;
  859. transform: translateX(0) !important;
  860. transition: all 0.5s ease-in-out !important;
  861. }
  862. .bottom-menu-normal {
  863. max-width: 70%;
  864. padding: 0 3rem;
  865. position: absolute;
  866. left: 50%;
  867. transform: translateX(-50%);
  868. bottom: 0;
  869. z-index: 999;
  870. border-radius: 5px;
  871. display: flex;
  872. justify-content: center;
  873. align-items: center;
  874. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  875. // background-size: cover;
  876. .btm-m-con {
  877. position: relative;
  878. color: $inBlue;
  879. font-size: .5rem;
  880. padding: .6rem 1rem;
  881. display: flex;
  882. align-items: center;
  883. justify-content: center;
  884. -webkit-transform: translateY(0);
  885. transform: translateY(0);
  886. transition: all 0.2s ease-in-out;
  887. cursor: pointer;
  888. white-space: nowrap;
  889. i {
  890. font-size: 1rem;
  891. color: $inBlue;
  892. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  893. margin-right: 0.2rem;
  894. }
  895. .nav-child {
  896. text-shadow: none !important;
  897. position: absolute;
  898. bottom: 3rem;
  899. border: 1px solid saddlebrown;
  900. padding: .5rem;
  901. -moz-border-radius-topleft: 0;
  902. -moz-border-radius-bottomright: 0;
  903. background-color: $barBgc;
  904. box-shadow: $barShadow;
  905. border: 1px $barBorder;
  906. left: 50%;
  907. transform: translateX(-50%);
  908. color: $inBlue;
  909. .nav-child-btn {
  910. padding: .2rem;
  911. }
  912. .forestban {
  913. display: flex;
  914. .forestban-con {
  915. width: 20rem;
  916. height: 20rem;
  917. overflow-y: scroll;
  918. border: 1px solid rgba(51, 70, 127, 0.7);
  919. }
  920. .forestban-right {
  921. width: 10rem;
  922. height: 20rem;
  923. overflow-y: scroll;
  924. padding: 0 1rem;
  925. .el-checkbox-group {
  926. display: flex;
  927. flex-direction: column;
  928. label {
  929. padding: .4rem 0;
  930. }
  931. .el-checkbox {
  932. color: $white;
  933. }
  934. }
  935. }
  936. }
  937. }
  938. }
  939. .btm-m-con:hover,
  940. .on {
  941. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  942. -webkit-transform: translateX(0.2rem);
  943. transform: translateX(0.2rem);
  944. transition: all 0.2s ease-in-out;
  945. .nav-child {
  946. text-shadow: none !important;
  947. }
  948. i {
  949. color: $inBlueHover;
  950. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  951. }
  952. }
  953. }
  954. .btm-right {
  955. position: absolute;
  956. font-size: .7rem;
  957. height: 2rem;
  958. display: flex;
  959. right: 1rem;
  960. align-items: center;
  961. .el-badge {
  962. display: flex !important;
  963. margin-left: 1.5rem;
  964. button {
  965. padding: 0 .3rem;
  966. height: 1.5rem;
  967. background-color: #112543;
  968. color: $inBlue;
  969. border: 1px $searchBorder;
  970. }
  971. }
  972. .el-badge:hover {
  973. -webkit-transform: translateX(0.1rem);
  974. transform: translateX(0.1rem);
  975. transition: all 0.2s ease-in-out;
  976. button {
  977. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  978. }
  979. }
  980. }
  981. }
  982. .btm-r-pop-info {
  983. display: flex;
  984. width: 35rem;
  985. flex-direction: column;
  986. max-height: 85vh;
  987. min-height: fit-content;
  988. overflow-y: scroll;
  989. padding: 1rem;
  990. .btm-r-pop-info-box:hover {
  991. box-shadow: $shadowListHover;
  992. color: $inBlue;
  993. border: 1px $countBorder;
  994. }
  995. .btm-r-pop-info-box {
  996. width: 100%;
  997. display: flex;
  998. flex-direction: column;
  999. background-color: $deepBG;
  1000. padding: .5rem;
  1001. border-radius: .5rem;
  1002. color: $inBlue;
  1003. border: 1px $searchBorder;
  1004. margin-bottom: 1rem;
  1005. .btm-r-pop-info-tit {
  1006. display: flex;
  1007. padding: .5rem;
  1008. h3 {
  1009. font-weight: bolder;
  1010. }
  1011. }
  1012. .btm-r-pop-info-con {
  1013. padding: .5rem;
  1014. display: flex;
  1015. flex-direction: column;
  1016. border-top: 1px $searchBorder;
  1017. border-bottom: 1px $searchBorder;
  1018. .btm-r-pop-info-list {
  1019. display: flex;
  1020. padding: .3rem 0;
  1021. .btm-r-pop-info-list-name {
  1022. width: 3.6rem;
  1023. text-align: right;
  1024. margin-right: 1rem;
  1025. }
  1026. .btm-r-pop-info-list-text {}
  1027. }
  1028. }
  1029. .btm-r-pop-info-btm {
  1030. padding: .5rem;
  1031. display: flex;
  1032. justify-content: space-between;
  1033. .btm-r-pop-info-btm-btn {
  1034. button {
  1035. padding: .5rem;
  1036. }
  1037. }
  1038. }
  1039. }
  1040. }
  1041. //警铃
  1042. .fire-tip {
  1043. text-align: center;
  1044. width: 100%;
  1045. font-size: 44px;
  1046. color: #ff0000;
  1047. text-shadow: 0 0 1px #ffffff;
  1048. }
  1049. .fire-address {
  1050. text-align: center;
  1051. width: 100%;
  1052. font-size: 14px;
  1053. color: rgba(255, 255, 255, 0.8);
  1054. margin-top: 44px;
  1055. }
  1056. .fire-handle {
  1057. display: block;
  1058. text-align: center;
  1059. background: #00BFF0;
  1060. color: #ffffff;
  1061. border-radius: 20px;
  1062. font-size: 14px;
  1063. width: 80px;
  1064. height: 40px;
  1065. line-height: 40px;
  1066. margin: 24px auto;
  1067. text-decoration: none
  1068. }
  1069. .fire-handle:hover {
  1070. background: #06a2ca;
  1071. }
  1072. .bell {
  1073. position: absolute;
  1074. right: 10px;
  1075. bottom:-20px;
  1076. width: 100%;
  1077. height: 320px;
  1078. z-index: 999;
  1079. }
  1080. .bell canvas {
  1081. display: block;
  1082. position: absolute;
  1083. left: 0;
  1084. top: -9px;
  1085. }
  1086. /* 保持大小不变的小圆圈 */
  1087. .dot {
  1088. position: absolute;
  1089. width: 96px;
  1090. height: 96px;
  1091. left: 160px;
  1092. top: 160px;
  1093. background: url('../assets/images/bell.gif') no-repeat;
  1094. // background: url(.) no-repeat;
  1095. background-size: 100%;
  1096. z-index: 200;
  1097. }
  1098. /* 产生动画(向外扩散变大)的圆圈 */
  1099. .pulse,
  1100. .pulse-big {
  1101. position: absolute;
  1102. width: 420px;
  1103. height: 420px;
  1104. border: 2px solid #EF2D02;
  1105. background: rgba(239, 45, 2, 0.8);
  1106. border-radius: 50%;
  1107. z-index: 100;
  1108. opacity: 0;
  1109. }
  1110. .pulse {
  1111. background: rgba(239, 45, 2, 0.6) !important;
  1112. -webkit-animation: warn 0.9s ease-out;
  1113. -moz-animation: warn 0.9s ease-out;
  1114. animation: warn 0.9s ease-out;
  1115. -webkit-animation-iteration-count: infinite;
  1116. -moz-animation-iteration-count: infinite;
  1117. animation-iteration-count: infinite;
  1118. box-shadow: 1px 1px 30px #EF2D02;
  1119. }
  1120. .pulse-big {
  1121. background: rgba(239, 45, 2, 0.6) !important;
  1122. -webkit-animation: warn1 0.9s ease-out;
  1123. -moz-animation: warn1 0.9s ease-out;
  1124. animation: warn1 0.9s ease-out;
  1125. -webkit-animation-iteration-count: infinite;
  1126. -moz-animation-iteration-count: infinite;
  1127. animation-iteration-count: infinite;
  1128. box-shadow: 1px 1px 30px #EF2D02;
  1129. }
  1130. @keyframes warn {
  1131. 0% {
  1132. -moz-transform: scale(0);
  1133. transform: scale(0);
  1134. opacity: 1;
  1135. }
  1136. 100% {
  1137. -moz-transform: scale(1);
  1138. transform: scale(1);
  1139. opacity: 0;
  1140. }
  1141. }
  1142. @keyframes warn1 {
  1143. 0% {
  1144. -o-transform: scale(0);
  1145. transform: scale(0);
  1146. opacity: 1;
  1147. }
  1148. 100% {
  1149. -o-transform: scale(0.6);
  1150. transform: scale(0.6);
  1151. opacity: 0;
  1152. }
  1153. }
  1154. </style>