vBottomMenu.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919
  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. @click.stop="showDialog(fastMenu.click)">
  38. <a><i :class="fastMenu.icon"></i>{{ fastMenu.name }}
  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-if="showBanChild && fastMenu.click == 'forestban'" class="nav-child">
  53. <div class="forestban">
  54. <div class="forestban-con">
  55. <el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
  56. </div>
  57. <div class="forestban-right">
  58. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="searchFB">
  59. </el-input>
  60. <el-checkbox-group v-model="banCheckList" @change="handleCheckedCitiesChangeBan">
  61. <el-checkbox label="http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo">
  62. 铁东
  63. </el-checkbox>
  64. <el-checkbox label="http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo">
  65. 铁西
  66. </el-checkbox>
  67. </el-checkbox-group>
  68. </div>
  69. <el-button type="danger" icon="el-icon-close"
  70. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  71. @click.stop="closeBanChild"></el-button>
  72. </div>
  73. </div>
  74. <!-- 林场 -->
  75. <div v-if="showChangChild && fastMenu.click == 'forestchang'" class="nav-child">
  76. <div class="forestban">
  77. <div class="forestban-con">
  78. <el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick"></el-tree>
  79. </div>
  80. <div class="forestban-right">
  81. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="searchFB">
  82. </el-input>
  83. <el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
  84. <el-checkbox label="http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo">
  85. 铁东
  86. </el-checkbox>
  87. <el-checkbox label="http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo">
  88. 铁西
  89. </el-checkbox>
  90. </el-checkbox-group>
  91. </div>
  92. <el-button type="danger" icon="el-icon-close"
  93. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  94. @click.stop="closeChangChild"></el-button>
  95. </div>
  96. </div>
  97. </a>
  98. </div>
  99. </div>
  100. <div class="btm-right">
  101. <el-popover placement="top" trigger="click">
  102. <div class="btm-r-pop-info">
  103. <div class="btm-r-pop-info-box" v-for="(item,index) in taskList">
  104. <div class="btm-r-pop-info-tit">
  105. <h3>火险任务</h3>
  106. </div>
  107. <div class="btm-r-pop-info-con">
  108. <div class="btm-r-pop-info-list">
  109. <div class="btm-r-pop-info-list-name">标题</div>
  110. <div class="btm-r-pop-info-list-text">{{ item.taskTitle }}</div>
  111. </div>
  112. <div class="btm-r-pop-info-list">
  113. <div class="btm-r-pop-info-list-name">发起人</div>
  114. <div class="btm-r-pop-info-list-text">{{ item.sendPersonName }}</div>
  115. </div>
  116. <div class="btm-r-pop-info-list">
  117. <div class="btm-r-pop-info-list-name">发起时间</div>
  118. <div class="btm-r-pop-info-list-text">{{ item.taskSendTime }}</div>
  119. </div>
  120. <div class="btm-r-pop-info-list">
  121. <div class="btm-r-pop-info-list-name">关联事件</div>
  122. <div class="btm-r-pop-info-list-text">{{ item.eventName }}</div>
  123. </div>
  124. </div>
  125. <div class="btm-r-pop-info-btm">
  126. <el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
  127. <div class="btm-r-pop-info-btm-btn">
  128. <el-button type="danger" @click="selectTaskDtpts(item.taskId,'jj')">拒绝</el-button>
  129. <el-button type="primary" @click="selectTaskDtpts(item.taskId,'lq')">领取</el-button>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. <el-badge :value="taskCount" slot="reference">
  135. <el-button size="small" icon="el-icon-bank-card" @click="refreshTaskList">任务</el-button>
  136. </el-badge>
  137. </el-popover>
  138. <el-popover placement="top" trigger="click">
  139. <div class="btm-r-pop-info">
  140. <div class="btm-r-pop-info-box" v-for="(item,index) in 4">
  141. <div class="btm-r-pop-info-tit">
  142. <h3>火险任务</h3>
  143. </div>
  144. <div class="btm-r-pop-info-con">
  145. <div class="btm-r-pop-info-list">
  146. <div class="btm-r-pop-info-list-name">标题</div>
  147. <div class="btm-r-pop-info-list-text">四平阿斯利康大姐夫啊路上的风景可丽金啊水电分离家</div>
  148. </div>
  149. <div class="btm-r-pop-info-list">
  150. <div class="btm-r-pop-info-list-name">发起人</div>
  151. <div class="btm-r-pop-info-list-text">张三</div>
  152. </div>
  153. <div class="btm-r-pop-info-list">
  154. <div class="btm-r-pop-info-list-name">发起时间</div>
  155. <div class="btm-r-pop-info-list-text">2022-09-05 12:12:15</div>
  156. </div>
  157. <div class="btm-r-pop-info-list">
  158. <div class="btm-r-pop-info-list-name">关联事件</div>
  159. <div class="btm-r-pop-info-list-text">啊萨杜拉副科级啊萨杜拉副科级</div>
  160. </div>
  161. </div>
  162. <div class="btm-r-pop-info-btm">
  163. <el-link type="success">查看详情</el-link>
  164. <div class="btm-r-pop-info-btm-btn">
  165. <el-button type="danger">拒绝</el-button>
  166. <el-button type="primary">领取</el-button>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <el-badge :value="3" slot="reference">
  172. <el-button size="small" icon="el-icon-chat-line-round">消息</el-button>
  173. </el-badge>
  174. </el-popover>
  175. <el-badge type="primary">
  176. <el-button size="small" icon="el-icon-bell">警报</el-button>
  177. </el-badge>
  178. <el-badge type="warning">
  179. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  180. </el-badge>
  181. </div>
  182. <!-- 事件详情弹层 -->
  183. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" width="95%" append-to-body
  184. @close="cancelEventShow()">
  185. <div class="dia-event-info">
  186. <el-row>
  187. <!-- 左侧 -->
  188. <el-col :span="18" class="dia-left">
  189. <div ref="imageTofile" style="height: 75vh;">
  190. <!-- 应急预案 -->
  191. <div class="dia-left-top">
  192. <div class="dia-left-top-tit">应急预案</div>
  193. <div class="dia-left-top-carousel">
  194. <el-carousel height="30px" direction="vertical" :interval="2000">
  195. <el-carousel-item v-for="item in 3" :key="item">
  196. <a href="#">这是一条应急预案</a>
  197. </el-carousel-item>
  198. </el-carousel>
  199. </div>
  200. </div>
  201. <!-- 应急预案end -->
  202. <!-- 地图 -->
  203. <supermapTaskDialog ref="supermapTaskDialog"
  204. style="position: absolute; top:0;left: 0;"
  205. :mapDiv="'taskDialogSuperMap'"
  206. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  207. :codes="['9fa5']"
  208. :isSideBySide="false"
  209. :isdynamicPlotting="false"/>
  210. <!-- 地图end -->
  211. </div>
  212. </el-col>
  213. <!-- 左侧end -->
  214. <!-- 右侧 -->
  215. <el-col :span="6" class="dia-right">
  216. <div class="e-right" style="height: 75vh;!important;">
  217. <div class="forthis" style="height: 75vh;!important;">
  218. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  219. style="padding-bottom:1rem ;height: 75vh;!important;">
  220. <div class="i-list-con" style="height: 75vh;!important;">
  221. <div class="this-con" style="height: 75vh;!important;">
  222. <div class="z-info-list" style="margin-top: 0;height: 75vh;!important;">
  223. <el-timeline style="height: 75vh;!important;">
  224. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  225. placement="top" v-for="(item,index) in eventLogList">
  226. <el-card style="width: 40vh">
  227. <div class="z-info-list-con">
  228. <div class="user-and-time flex-d">
  229. <span>{{ item.createName }}</span><span><i
  230. class="el-icon-location"></i> 定位</span>
  231. </div>
  232. <div class="z-info">
  233. <div class="this-con-list-info">
  234. {{ item.logContent }}
  235. </div>
  236. <div>
  237. <el-image :src="itemfile" v-if="isAssetTypeAnImage(itemfile)"
  238. :preview-src-list="item.attachs"
  239. style="width:3rem; height:3rem;margin: 2px;"
  240. v-for="(itemfile,index1) in item.attachs">
  241. </el-image>
  242. <el-link :href="itemfile" :underline="false" target="_blank"
  243. v-for="(itemfile,index1) in item.attachs"
  244. v-if="!isAssetTypeAnImage(itemfile)">
  245. <span class="el-icon-document"> {{ getFileName(itemfile) }} </span>
  246. </el-link>
  247. </div>
  248. </div>
  249. </div>
  250. </el-card>
  251. </el-timeline-item>
  252. </el-timeline>
  253. </div>
  254. </div>
  255. </div>
  256. </dv-border-box-7>
  257. </div>
  258. <!-- <div class="forthis">-->
  259. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  260. <!-- <div class="i-list-con">-->
  261. <!-- <div class="this-con h-25 no-padding">-->
  262. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  263. <!-- <div class="z-info-btm-grp">-->
  264. <!-- <div class="z-info-btm-grp-top">-->
  265. <!-- <div class="z-info-btm-grp-left">-->
  266. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  267. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  268. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  269. <!-- </el-button>-->
  270. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  271. <!-- </el-button>-->
  272. <!-- </div>-->
  273. <!-- <div class="z-info-btm-grp-right">-->
  274. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  275. <!-- </el-button>-->
  276. <!-- </div>-->
  277. <!-- </div>-->
  278. <!-- </div>-->
  279. <!-- </div>-->
  280. <!-- </div>-->
  281. <!-- </div>-->
  282. <!-- </dv-border-box-7>-->
  283. <!-- </div>-->
  284. </div>
  285. </el-col>
  286. <!-- 左侧end -->
  287. </el-row>
  288. </div>
  289. </el-dialog>
  290. <!-- 任务选择领取部门弹层 -->
  291. <el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body
  292. @close="cancelEventConfirm()">
  293. <el-form label-width="80px">
  294. <el-form-item label="选择部门">
  295. <el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">
  296. <el-option
  297. v-for="item in deptOptions"
  298. :key="item.taskDeptId"
  299. :label="item.taskDeptName"
  300. :value="{value:item.taskDeptId,label:item.taskDeptName}">
  301. <!--:disabled="item.eventStatus=='未处理' ? false:true"-->
  302. </el-option>
  303. </el-select>
  304. </el-form-item>
  305. <el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
  306. @click="receiveTask(taskId)">领取
  307. </el-button>
  308. <el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
  309. @click="refusedTask(taskId)">拒绝
  310. </el-button>
  311. </el-form>
  312. </el-dialog>
  313. </div>
  314. </template>
  315. <script>
  316. import {
  317. selectTaskBO, getEventDetail, selectTaskDtpts, receiveTask, refusedTask
  318. } from '@/api/forest'
  319. import supermapTaskDialog from '@/components/supermap' //超图
  320. export default {
  321. components: {
  322. supermapTaskDialog
  323. },
  324. data() {
  325. return {
  326. eventId: null,
  327. eventCode: null,
  328. longitude: null,
  329. latitude: null,
  330. eventLogList: [],//事件详情日志
  331. eventDialog: false,//事件详情弹层
  332. taskStatusButton: null,//任务按钮
  333. taskId: null,//任务ID
  334. showDeptConfirm: false,//任务领取选择部门弹窗
  335. deptOptions: [],//任务领取部门列表
  336. centerTaskTaskDepts: [],//任务领取部门
  337. deptName: [],//任务领取部门
  338. taskCount: 0,//任务数量
  339. taskList: 0,//任务列表
  340. btmTipIndent: '', //图例收起弹出
  341. eventLocationVisible: false,
  342. showChild: false,
  343. showBanChild: false, //林斑
  344. showChangChild: false, //林场
  345. fastMenu: [
  346. {
  347. name: '事件定位',
  348. icon: 'iconfont sj-icon-sjdw',
  349. click: 'eventLocation'
  350. },
  351. {
  352. name: '图层切换',
  353. icon: 'iconfont sj-icon-tcqh',
  354. click: 'layerSwitching'
  355. },
  356. {
  357. name: '测量工具',
  358. icon: 'iconfont sj-icon-clgj',
  359. click: 'editableLayers'
  360. },
  361. {
  362. name: '林班',
  363. icon: 'iconfont sj-icon-lbzy',
  364. click: 'forestban'
  365. },
  366. {
  367. name: '林场',
  368. icon: 'iconfont sj-icon-lczy',
  369. click: 'forestchang'
  370. },
  371. {
  372. name: '电视墙',
  373. icon: 'el-icon-s-grid',
  374. click: 'TVWall'
  375. }
  376. ],
  377. data: [
  378. {
  379. label: '一级 1',
  380. children: [{
  381. label: '二级 1-1',
  382. children: [{
  383. label: '三级 1-1-1'
  384. }]
  385. }]
  386. }, {
  387. label: '一级 2',
  388. children: [{
  389. label: '二级 2-1',
  390. children: [{
  391. label: '三级 2-1-1'
  392. }]
  393. }, {
  394. label: '二级 2-2',
  395. children: [{
  396. label: '三级 2-2-1'
  397. }]
  398. }]
  399. }, {
  400. label: '一级 3',
  401. children: [{
  402. label: '二级 3-1',
  403. children: [{
  404. label: '三级 3-1-1'
  405. }]
  406. }, {
  407. label: '二级 3-2',
  408. children: [{
  409. label: '三级 3-2-1'
  410. }]
  411. }]
  412. }],
  413. defaultProps: {
  414. children: 'children',
  415. label: 'label'
  416. },
  417. banCheckList: [], //林班
  418. changCheckList: [], //林场
  419. searchFB: '',
  420. btmCurrent: ''
  421. }
  422. },
  423. methods: {
  424. setValue(event) {
  425. this.centerTaskTaskDepts = []
  426. //签收选择部门
  427. if (event != null && event.length > 0) {
  428. for (let i = 0; i < event.length; i++) {
  429. if (event[i].label != undefined && event[i].value != undefined) {
  430. this.centerTaskTaskDepts.push({ taskDeptId: event[i].value, taskDeptName: event[i].label })
  431. }
  432. }
  433. }
  434. },
  435. receiveTask(taskId) {
  436. let param = { taskId: taskId, centerTaskTaskDepts: this.centerTaskTaskDepts }
  437. receiveTask(param).then(res => {
  438. //任务领取
  439. if (res.code == 200) {
  440. this.$message.success(`任务领取成功!`)
  441. this.deptOptions = []
  442. this.deptName = []
  443. this.centerTaskTaskDepts = []
  444. //刷新任务列表
  445. this.selectTaskList()
  446. this.showDeptConfirm = false
  447. }
  448. })
  449. },
  450. refusedTask(taskId) {
  451. let param = { taskId: taskId, centerTaskTaskDepts: this.centerTaskTaskDepts }
  452. refusedTask(param).then(res => {
  453. //任务拒绝
  454. if (res.code == 200) {
  455. this.$message.success(`任务拒绝成功!`)
  456. this.deptOptions = []
  457. this.deptName = []
  458. this.centerTaskTaskDepts = []
  459. //刷新任务列表
  460. this.selectTaskList()
  461. this.showDeptConfirm = false
  462. }
  463. })
  464. },
  465. selectTaskDtpts(taskId, state) {
  466. this.taskId = taskId
  467. selectTaskDtpts({ taskId: taskId }).then(res => {
  468. //任务领取部门列表
  469. if (res.code == 200) {
  470. this.deptOptions = res.data
  471. this.taskStatusButton = state
  472. this.showDeptConfirm = true
  473. }
  474. })
  475. },
  476. cancelEventShow() {
  477. console.log('关闭事件弹窗')
  478. this.eventLogList = []
  479. },
  480. cancelEventConfirm() {
  481. console.log('关闭任务选择部门')
  482. this.deptOptions = []
  483. this.deptName = []
  484. this.centerTaskTaskDepts = []
  485. },
  486. showEventDialog(eventCode) {
  487. this.eventCode = eventCode
  488. let that = this
  489. //获取事件详情
  490. getEventDetail({ eventCode: eventCode }).then(res => {
  491. this.eventDialog = true
  492. this.eventLogList = res.data.eventlog
  493. if (res.data.catalogue != null && res.data.catalogue.length > 0) {
  494. this.eventType = res.data.catalogue[0].eventType
  495. this.eventId = res.data.catalogue[0].id
  496. this.longitude = res.data.catalogue[0].longitude
  497. this.latitude = res.data.catalogue[0].latitude
  498. let markersMap = {
  499. lng: 124.59,
  500. lat: 43.02,
  501. icon: 'marker',
  502. bindPopupHtml: '',
  503. click: '',
  504. parameter: '',
  505. keepBindPopup: false,
  506. isAggregation: false,
  507. radius: 0
  508. }
  509. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1') {
  510. markersMap.icon = 'sj-icon-map-wcl'
  511. markersMap.isAggregation = false
  512. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_2' || res.data.catalogue[0].eventStatusValue == 'forest_event_status_3' || res.data.catalogue[0].eventStatusValue == 'forest_event_status_4' || res.data.catalogue[0].eventStatusValue == 'forest_event_status_5') {
  513. markersMap.icon = 'sj-icon-map-clz'
  514. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_6') {
  515. markersMap.icon = 'sj-icon-map-ywc'
  516. } else {
  517. markersMap.icon = 'sj-icon-map-clz'
  518. }
  519. markersMap.lng = res.data.catalogue[0].longitude
  520. markersMap.lat = res.data.catalogue[0].latitude
  521. 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) {
  522. markersMap.radius = res.data.eventdetail[0].fireRadius
  523. }
  524. setTimeout(() => {
  525. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  526. that.$refs.supermapTaskDialog.clearM(false)
  527. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  528. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue[0].latitude, res.data.catalogue[0].longitude)
  529. }, 1000)
  530. }
  531. })
  532. },
  533. refreshTaskList() {
  534. //刷新任务列表
  535. this.selectTaskList()
  536. },
  537. selectTaskList: async function() {
  538. //获取任务列表
  539. selectTaskBO().then(res => {
  540. this.taskList = res.data
  541. this.taskCount = res.data.length
  542. })
  543. },
  544. handleCheckedCitiesChangeBan(value) {
  545. this.choseLayerSwitchingList(this.banCheckList)
  546. },
  547. handleCheckedCitiesChangeChang(value) {
  548. this.choseLayerSwitchingList(this.changCheckList)
  549. },
  550. handleNodeClick(data) {
  551. console.log(data)
  552. },
  553. refresh() {
  554. window.location.reload()
  555. },
  556. showDialog(click) {
  557. window.showDialog(click)
  558. },
  559. choseLayerSwitching(url, isClear) {
  560. window.choseLayerSwitching(url, isClear)
  561. },
  562. choseLayerSwitchingList(urlList) {//选择图层(传递数组)
  563. window.choseLayerSwitchingList(urlList)
  564. },
  565. forestban() {
  566. window.forestban()
  567. console.log('林班')
  568. },
  569. forestchang() {
  570. window.forestchang()
  571. console.log('林场')
  572. },
  573. closeBanChild() {
  574. this.banCheckList = []
  575. this.showBanChild = false
  576. },
  577. closeChangChild() {
  578. this.changCheckList = []
  579. this.showChangChild = false
  580. },
  581. //图例收起弹出
  582. btmIndent() {
  583. if (this.btmTipIndent == '') {
  584. this.btmTipIndent = 'btm-tip-to-right'
  585. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  586. this.btmTipIndent = ''
  587. }
  588. }
  589. }
  590. }
  591. </script>
  592. <style rel="stylesheet/scss" lang="scss" scoped>
  593. @import '@/assets/styles/base.scss';
  594. .btm-box {
  595. width: 100%;
  596. height: auto;
  597. background: linear-gradient($btmMemu);
  598. position: absolute;
  599. z-index: 999;
  600. bottom: 0;
  601. height: 2.5rem;
  602. display: flex;
  603. align-items: center;
  604. .light {
  605. position: absolute;
  606. top: -.5rem;
  607. }
  608. .btm-left {
  609. position: absolute;
  610. font-size: .7rem;
  611. height: 2rem;
  612. line-height: 2rem;
  613. border: 1px $searchBorder;
  614. border-left: none;
  615. color: $inBlue;
  616. display: flex;
  617. -webkit-transform: translateX(-21rem) !important;
  618. transform: translateX(-21rem) !important;
  619. transition: all 0.5s ease-in-out !important;
  620. .btm-legend {
  621. height: 2rem;
  622. text-align: center;
  623. color: $inBlue;
  624. padding: 0 .5rem;
  625. cursor: pointer;
  626. }
  627. .btm-legend:hover {
  628. background-color: $tipHover;
  629. color: $white;
  630. }
  631. .btm-left-tip {
  632. display: flex;
  633. align-items: center;
  634. margin: 0 .5rem;
  635. .btm-left-block {
  636. width: 1rem;
  637. height: 1rem;
  638. margin-right: .3rem;
  639. border-radius: .2rem;
  640. }
  641. .btm-left-state-c1 {
  642. background-color: $eventStateColor-xsb;
  643. }
  644. .btm-left-state-c2 {
  645. background-color: $eventStateColor-cb;
  646. }
  647. .btm-left-state-c3 {
  648. background-color: $eventStateColor-yqs;
  649. }
  650. .btm-left-state-c4 {
  651. background-color: $eventStateColor-ld;
  652. }
  653. .btm-left-state-c5 {
  654. background-color: $eventStateColor-bj;
  655. }
  656. .btm-left-state-c6 {
  657. background-color: $eventStateColor-tb;
  658. }
  659. }
  660. }
  661. .btm-tip-to-right {
  662. -webkit-transform: translateX(0) !important;
  663. transform: translateX(0) !important;
  664. transition: all 0.5s ease-in-out !important;
  665. }
  666. .bottom-menu-normal {
  667. max-width: 70%;
  668. padding: 0 3rem;
  669. position: absolute;
  670. left: 50%;
  671. transform: translateX(-50%);
  672. bottom: 0;
  673. z-index: 999;
  674. border-radius: 5px;
  675. display: flex;
  676. justify-content: center;
  677. align-items: center;
  678. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  679. // background-size: cover;
  680. .btm-m-con {
  681. position: relative;
  682. color: $inBlue;
  683. font-size: .5rem;
  684. padding: .6rem 1rem;
  685. display: flex;
  686. align-items: center;
  687. justify-content: center;
  688. -webkit-transform: translateY(0);
  689. transform: translateY(0);
  690. transition: all 0.2s ease-in-out;
  691. cursor: pointer;
  692. white-space: nowrap;
  693. i {
  694. font-size: 1rem;
  695. color: $inBlue;
  696. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  697. margin-right: 0.2rem;
  698. }
  699. .nav-child {
  700. text-shadow: none !important;
  701. position: absolute;
  702. bottom: 3rem;
  703. border: 1px solid saddlebrown;
  704. padding: .5rem;
  705. -moz-border-radius-topleft: 0;
  706. -moz-border-radius-bottomright: 0;
  707. background-color: $barBgc;
  708. box-shadow: $barShadow;
  709. border: 1px $barBorder;
  710. left: 50%;
  711. transform: translateX(-50%);
  712. color: $inBlue;
  713. .nav-child-btn {
  714. padding: .2rem;
  715. }
  716. .forestban {
  717. display: flex;
  718. .forestban-con {
  719. width: 10rem;
  720. height: 20rem;
  721. overflow-y: scroll;
  722. border: 1px solid rgba(51, 70, 127, 0.7);
  723. }
  724. .forestban-right {
  725. width: 15rem;
  726. height: 20rem;
  727. overflow-y: scroll;
  728. padding: 0 1rem;
  729. .el-checkbox-group {
  730. display: flex;
  731. flex-direction: column;
  732. label {
  733. padding: .4rem 0;
  734. }
  735. .el-checkbox {
  736. color: $white;
  737. }
  738. }
  739. }
  740. }
  741. }
  742. }
  743. .btm-m-con:hover,
  744. .on {
  745. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  746. -webkit-transform: translateX(0.2rem);
  747. transform: translateX(0.2rem);
  748. transition: all 0.2s ease-in-out;
  749. .nav-child {
  750. text-shadow: none !important;
  751. }
  752. i {
  753. color: $inBlueHover;
  754. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  755. }
  756. }
  757. }
  758. .btm-right {
  759. position: absolute;
  760. font-size: .7rem;
  761. height: 2rem;
  762. display: flex;
  763. right: 1rem;
  764. align-items: center;
  765. .el-badge {
  766. display: flex !important;
  767. margin-left: 1.5rem;
  768. button {
  769. padding: 0 .3rem;
  770. height: 1.5rem;
  771. background-color: #112543;
  772. color: $inBlue;
  773. border: 1px $searchBorder;
  774. }
  775. }
  776. .el-badge:hover {
  777. -webkit-transform: translateX(0.1rem);
  778. transform: translateX(0.1rem);
  779. transition: all 0.2s ease-in-out;
  780. button {
  781. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  782. }
  783. }
  784. }
  785. }
  786. .btm-r-pop-info {
  787. display: flex;
  788. width: 35rem;
  789. flex-direction: column;
  790. max-height: 85vh;
  791. min-height: fit-content;
  792. overflow-y: scroll;
  793. padding: 1rem;
  794. .btm-r-pop-info-box:hover {
  795. box-shadow: $shadowListHover;
  796. color: $inBlue;
  797. border: 1px $countBorder;
  798. }
  799. .btm-r-pop-info-box {
  800. width: 100%;
  801. display: flex;
  802. flex-direction: column;
  803. background-color: $deepBG;
  804. padding: .5rem;
  805. border-radius: .5rem;
  806. color: $inBlue;
  807. border: 1px $searchBorder;
  808. margin-bottom: 1rem;
  809. .btm-r-pop-info-tit {
  810. display: flex;
  811. padding: .5rem;
  812. h3 {
  813. font-weight: bolder;
  814. }
  815. }
  816. .btm-r-pop-info-con {
  817. padding: .5rem;
  818. display: flex;
  819. flex-direction: column;
  820. border-top: 1px $searchBorder;
  821. border-bottom: 1px $searchBorder;
  822. .btm-r-pop-info-list {
  823. display: flex;
  824. padding: .3rem 0;
  825. .btm-r-pop-info-list-name {
  826. width: 3.6rem;
  827. text-align: right;
  828. margin-right: 1rem;
  829. }
  830. .btm-r-pop-info-list-text {
  831. }
  832. }
  833. }
  834. .btm-r-pop-info-btm {
  835. padding: .5rem;
  836. display: flex;
  837. justify-content: space-between;
  838. .btm-r-pop-info-btm-btn {
  839. button {
  840. padding: .5rem;
  841. }
  842. }
  843. }
  844. }
  845. }
  846. </style>