vBottomMenu.vue 39 KB

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