vBottomMenu.vue 39 KB

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