vBottomMenu.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149
  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. <el-badge type="primary">
  203. <el-button size="small" icon="el-icon-bell">警报</el-button>
  204. </el-badge>
  205. <el-badge type="warning">
  206. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  207. </el-badge>
  208. </div>
  209. <!-- 事件详情弹层 -->
  210. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" customClass="customWidth" append-to-body
  211. @close="cancelEventShow()">
  212. <div class="dia-event-info">
  213. <el-row>
  214. <!-- 左侧 -->
  215. <el-col :span="18" class="dia-left">
  216. <div ref="imageTofile" style="height: 75vh;">
  217. <!-- 应急预案 -->
  218. <div class="dia-left-top">
  219. <div class="dia-left-top-tit">应急预案</div>
  220. <div class="dia-left-top-carousel">
  221. <el-carousel height="30px" direction="vertical" :interval="2000">
  222. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  223. <a :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName }}</a>
  224. </el-carousel-item>
  225. <el-carousel-item v-else>
  226. <a href="#">未选预案</a>
  227. </el-carousel-item>
  228. </el-carousel>
  229. </div>
  230. </div>
  231. <!-- 应急预案end -->
  232. <!-- 地图 -->
  233. <supermapTaskDialog ref="supermapTaskDialog"
  234. style="position: absolute; top:0;left: 0;"
  235. :mapDiv="'taskDialogSuperMap'"
  236. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  237. :codes="['9fa5']"
  238. :isSideBySide="false"
  239. :isdynamicPlotting="false"/>
  240. <!-- 地图end -->
  241. </div>
  242. </el-col>
  243. <!-- 左侧end -->
  244. <!-- 右侧 -->
  245. <el-col :span="6" class="dia-right">
  246. <div class="e-right">
  247. <div class="forthis1-1">
  248. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  249. style="padding-bottom:1rem ;">
  250. <div class="i-list-con">
  251. <div class="this-con">
  252. <div class="z-info-list" style="margin-top: 0;">
  253. <el-timeline>
  254. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  255. placement="top" v-for="(item,index) in eventLogList">
  256. <el-card style="width: 40vh">
  257. <div class="z-info-list-con">
  258. <div class="user-and-time flex-d">
  259. <span>{{ item.createName }}</span>
  260. <span v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  261. class="el-icon-location"></i> {{ address }}</span>
  262. <span v-else></span>
  263. </div>
  264. <div class="z-info">
  265. <div class="this-con-list-info">
  266. {{ item.logContent }}
  267. </div>
  268. <div>
  269. <router-link to="#" @click.native="clickFile(itemfile.fileUrl,itemfile.fileName)"
  270. v-for="(itemfile,indexfile) in item.fileVOs">
  271. <!-- 使用el-image的:src需要加require -->
  272. <!-- <img v-if="isAssetTypeAnImage(itemfile.fileUrl)"-->
  273. <!-- style="width:3rem; height:3rem;margin: 2px;"-->
  274. <!-- :src="itemfile.fileUrl"-->
  275. <!-- :title="itemfile.fileName">-->
  276. <!-- </img>-->
  277. <el-image :src="itemfile.fileUrl" v-if="isAssetTypeAnImage(itemfile.fileUrl)"
  278. :preview-src-list="assetTypeAnImage(item.attachs)"
  279. style="width:3rem; height:3rem;margin: 2px;"
  280. :title="itemfile.fileName">
  281. </el-image>
  282. <img v-else-if="isAssetTypeAnMp4(itemfile.fileUrl)"
  283. style="width:3rem; height:3rem;margin: 2px;"
  284. :src="require('@/assets/fileTypeImage/mp4.png')"
  285. :title="itemfile.fileName">
  286. </img>
  287. <img v-else-if="isAssetTypeAnWord(itemfile.fileUrl)"
  288. style="width:3rem; height:3rem;margin: 2px;"
  289. :src="require('@/assets/fileTypeImage/word.png')"
  290. :title="itemfile.fileName">
  291. </img>
  292. <img v-else-if="isAssetTypeAnExcel(itemfile.fileUrl)"
  293. style="width:3rem; height:3rem;margin: 2px;"
  294. :src="require('@/assets/fileTypeImage/excel.png')"
  295. :title="itemfile.fileName">
  296. </img>
  297. <img v-else
  298. style="width:3rem; height:3rem;margin: 2px;"
  299. :src="require('@/assets/fileTypeImage/file.png')"
  300. :title="itemfile.fileName">
  301. </img>
  302. </router-link>
  303. </div>
  304. </div>
  305. </div>
  306. </el-card>
  307. </el-timeline-item>
  308. </el-timeline>
  309. </div>
  310. </div>
  311. </div>
  312. </dv-border-box-7>
  313. </div>
  314. <!-- <div class="forthis">-->
  315. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  316. <!-- <div class="i-list-con">-->
  317. <!-- <div class="this-con h-25 no-padding">-->
  318. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  319. <!-- <div class="z-info-btm-grp">-->
  320. <!-- <div class="z-info-btm-grp-top">-->
  321. <!-- <div class="z-info-btm-grp-left">-->
  322. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  323. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  324. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  325. <!-- </el-button>-->
  326. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  327. <!-- </el-button>-->
  328. <!-- </div>-->
  329. <!-- <div class="z-info-btm-grp-right">-->
  330. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  331. <!-- </el-button>-->
  332. <!-- </div>-->
  333. <!-- </div>-->
  334. <!-- </div>-->
  335. <!-- </div>-->
  336. <!-- </div>-->
  337. <!-- </div>-->
  338. <!-- </dv-border-box-7>-->
  339. <!-- </div>-->
  340. </div>
  341. </el-col>
  342. <!-- 左侧end -->
  343. </el-row>
  344. </div>
  345. </el-dialog>
  346. <!-- 任务选择领取部门弹层 -->
  347. <el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body
  348. @close="cancelEventConfirm()">
  349. <el-form label-width="80px">
  350. <el-form-item label="选择部门">
  351. <el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">
  352. <el-option
  353. v-for="item in deptOptions"
  354. :key="item.taskDeptId"
  355. :label="item.taskDeptName"
  356. :value="{value:item.taskDeptId,label:item.taskDeptName}">
  357. <!--:disabled="item.eventStatus=='未处理' ? false:true"-->
  358. </el-option>
  359. </el-select>
  360. </el-form-item>
  361. <el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
  362. @click="receiveTask(taskId,eventCode)">领取
  363. </el-button>
  364. <el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
  365. @click="refusedTask(taskId,eventCode)">拒绝
  366. </el-button>
  367. </el-form>
  368. </el-dialog>
  369. <!-- 图片,视频预览 -->
  370. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" append-to-body>
  371. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  372. </el-dialog>
  373. </div>
  374. </template>
  375. <script>
  376. import {
  377. selectTaskBO, getEventDetail, selectTaskDtpts, receiveTask, refusedTask
  378. } from '@/api/forest'
  379. import {
  380. selectFarmByDeptId
  381. } from '@/api/vBottomMenu'
  382. import {
  383. treeselectAll as deptTreeselect
  384. } from '@/api/system/dept'
  385. import supermapTaskDialog from '@/components/supermap' //超图
  386. import TcPlayer from '@/components/TcPlayer' //视频预览
  387. export default {
  388. components: {
  389. supermapTaskDialog,
  390. TcPlayer
  391. },
  392. watch: {
  393. filterbanText(val) {
  394. alert(val)
  395. console.log(this.$refs)
  396. this.$refs.banDept.filter(val)
  397. },
  398. filterchangText(val) {
  399. alert(val)
  400. console.log(this.$refs)
  401. this.$refs.changDept.filter(val)
  402. }
  403. },
  404. data() {
  405. return {
  406. playVideo: '',//视频预览地址
  407. showTcPlayer: false,//视频预览弹窗
  408. filterbanText: '',
  409. filterchangText: '',
  410. filterbanList: [],
  411. filterchangList: [],
  412. filterchangListAll: [],
  413. eventId: null,
  414. eventCode: null,
  415. longitude: null,
  416. latitude: null,
  417. eventLogList: [],//事件详情日志
  418. eventDialog: false,//事件详情弹层
  419. taskStatusButton: null,//任务按钮
  420. visuForestCloudYuAnBo: null,
  421. address: null,//事件上报地址
  422. taskId: null,//任务ID
  423. showDeptConfirm: false,//任务领取选择部门弹窗
  424. deptOptions: [],//任务领取部门列表
  425. centerTaskTaskDepts: [],//任务领取部门
  426. deptName: [],//任务领取部门
  427. taskCount: 0,//任务数量
  428. taskList: 0,//任务列表
  429. btmTipIndent: '', //图例收起弹出
  430. eventLocationVisible: false,
  431. showChild: false,
  432. showBanChild: false, //林斑
  433. showChangChild: false, //林场
  434. fastMenu: [
  435. {
  436. name: '事件定位',
  437. icon: 'iconfont sj-icon-sjdw',
  438. click: 'eventLocation'
  439. },
  440. {
  441. name: '图层切换',
  442. icon: 'iconfont sj-icon-tcqh',
  443. click: 'layerSwitching'
  444. },
  445. {
  446. name: '测量工具',
  447. icon: 'iconfont sj-icon-clgj',
  448. click: 'editableLayers'
  449. },
  450. // {
  451. // name: '林班',
  452. // icon: 'iconfont sj-icon-lbzy',
  453. // click: 'forestban'
  454. // },
  455. //
  456. // {
  457. // name: '林场',
  458. // icon: 'iconfont sj-icon-lczy',
  459. // click: 'forestchang'
  460. // },
  461. {
  462. name: '电视墙',
  463. icon: 'el-icon-s-grid',
  464. click: 'TVWall'
  465. }
  466. ],
  467. deptOptionsLiandong: [],
  468. data: [
  469. {
  470. label: '一级 1',
  471. children: [{
  472. label: '二级 1-1',
  473. children: [{
  474. label: '三级 1-1-1'
  475. }]
  476. }]
  477. }, {
  478. label: '一级 2',
  479. children: [{
  480. label: '二级 2-1',
  481. children: [{
  482. label: '三级 2-1-1'
  483. }]
  484. }, {
  485. label: '二级 2-2',
  486. children: [{
  487. label: '三级 2-2-1'
  488. }]
  489. }]
  490. }, {
  491. label: '一级 3',
  492. children: [{
  493. label: '二级 3-1',
  494. children: [{
  495. label: '三级 3-1-1'
  496. }]
  497. }, {
  498. label: '二级 3-2',
  499. children: [{
  500. label: '三级 3-2-1'
  501. }]
  502. }]
  503. }],
  504. defaultProps: {
  505. children: 'children',
  506. label: 'label'
  507. },
  508. banCheckList: [], //林班
  509. changCheckList: [], //林场
  510. searchFB: '',
  511. filterchang: '',//林场搜索
  512. btmCurrent: ''
  513. }
  514. },
  515. created() {
  516. /** 查询部门树结构 */
  517. deptTreeselect().then(response => {
  518. this.deptOptionsLiandong = response.data
  519. })
  520. },
  521. methods: {
  522. filterbanNode(value, data) {
  523. //树搜索
  524. if (!value) return true
  525. return data.label.indexOf(value) !== -1
  526. },
  527. filterchangNode(value, data) {
  528. //树搜索
  529. if (!value) return true
  530. return data.label.indexOf(value) !== -1
  531. },
  532. handlechangNodeClick(node,data,value) {
  533. //获取林场列表
  534. this.filterchang=''
  535. selectFarmByDeptId({deptId:node.id}).then(res => {
  536. this.filterchangList = res.data
  537. this.filterchangListAll = res.data
  538. })
  539. },
  540. // 返回图片列表
  541. assetTypeAnImage(filePath) {
  542. let imageList = []
  543. if (filePath != null && filePath.length > 0) {
  544. for (let i = 0; i < filePath.length; i++) {
  545. //获取最后一个.的位置
  546. var index = filePath[i].lastIndexOf('.')
  547. //获取后缀
  548. var ext = filePath[i].substr(index + 1)
  549. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  550. if (aa) {
  551. imageList.push(filePath[i])
  552. }
  553. }
  554. }
  555. return imageList
  556. },
  557. // 返回图片列表
  558. assetTypeAnImage(filePath) {
  559. let imageList = []
  560. if (filePath != null && filePath.length > 0) {
  561. for (let i = 0; i < filePath.length; i++) {
  562. //获取最后一个.的位置
  563. var index = filePath[i].lastIndexOf('.')
  564. //获取后缀
  565. var ext = filePath[i].substr(index + 1)
  566. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  567. if (aa) {
  568. imageList.push(filePath[i])
  569. }
  570. }
  571. }
  572. return imageList
  573. },
  574. // 判断是否为视频
  575. isAssetTypeAnMp4(filePath) {
  576. //获取最后一个.的位置
  577. var index = filePath.lastIndexOf('.')
  578. //获取后缀
  579. var ext = filePath.substr(index + 1)
  580. let aa = ['mp4'].indexOf(ext.toLowerCase()) !== -1
  581. return aa
  582. },
  583. // 判断是否为Word
  584. isAssetTypeAnWord(filePath) {
  585. //获取最后一个.的位置
  586. var index = filePath.lastIndexOf('.')
  587. //获取后缀
  588. var ext = filePath.substr(index + 1)
  589. let aa = ['doc', 'docx'].indexOf(ext.toLowerCase()) !== -1
  590. return aa
  591. },
  592. // 判断是否为Excel
  593. isAssetTypeAnExcel(filePath) {
  594. //获取最后一个.的位置
  595. var index = filePath.lastIndexOf('.')
  596. //获取后缀
  597. var ext = filePath.substr(index + 1)
  598. let aa = ['xlsx', 'xls', 'csv'].indexOf(ext.toLowerCase()) !== -1
  599. return aa
  600. },
  601. // 判断是否为图片
  602. isAssetTypeAnImage(filePath) {
  603. //获取最后一个.的位置
  604. var index = filePath.lastIndexOf('.')
  605. //获取后缀
  606. var ext = filePath.substr(index + 1)
  607. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  608. return aa
  609. },
  610. // 获取文件名称
  611. getFileName(name) {
  612. if (name.lastIndexOf('/') > -1) {
  613. return name.slice(name.lastIndexOf('/') + 1)
  614. } else {
  615. return ''
  616. }
  617. },
  618. clickFile(fileUrl, fileName) {
  619. if (this.isAssetTypeAnImage(fileUrl)) {
  620. return
  621. } else if (this.isAssetTypeAnMp4(fileUrl)) {
  622. this.showTcPlayer = true
  623. setTimeout(() => {
  624. this.playVideo = fileUrl
  625. }, 500)
  626. } else {
  627. let a = document.createElement('a')
  628. a.download = fileName
  629. a.href = fileUrl
  630. a.target="_blank"
  631. a.click()
  632. }
  633. },
  634. setValue(event) {
  635. this.centerTaskTaskDepts = []
  636. //签收选择部门
  637. if (event != null && event.length > 0) {
  638. for (let i = 0; i < event.length; i++) {
  639. if (event[i].label != undefined && event[i].value != undefined) {
  640. this.centerTaskTaskDepts.push({ taskDeptId: event[i].value, taskDeptName: event[i].label })
  641. }
  642. }
  643. }
  644. },
  645. receiveTask(taskId, eventCode) {
  646. let param = { taskId: taskId, eventCode: eventCode, centerTaskTaskDepts: this.centerTaskTaskDepts }
  647. receiveTask(param).then(res => {
  648. //任务领取
  649. if (res.code == 200) {
  650. this.$message.success(`任务领取成功!`)
  651. this.deptOptions = []
  652. this.deptName = []
  653. this.centerTaskTaskDepts = []
  654. //刷新任务列表
  655. this.selectTaskList()
  656. this.showDeptConfirm = false
  657. }
  658. })
  659. },
  660. refusedTask(taskId, eventCode) {
  661. let param = { taskId: taskId, eventCode: eventCode, centerTaskTaskDepts: this.centerTaskTaskDepts }
  662. refusedTask(param).then(res => {
  663. //任务拒绝
  664. if (res.code == 200) {
  665. this.$message.success(`任务拒绝成功!`)
  666. this.deptOptions = []
  667. this.deptName = []
  668. this.centerTaskTaskDepts = []
  669. //刷新任务列表
  670. this.selectTaskList()
  671. this.showDeptConfirm = false
  672. }
  673. })
  674. },
  675. selectTaskDtpts(taskId, eventCode, state) {
  676. this.taskId = taskId
  677. this.eventCode = eventCode
  678. selectTaskDtpts({ taskId: taskId }).then(res => {
  679. //任务领取部门列表
  680. if (res.code == 200) {
  681. this.deptOptions = res.data
  682. this.taskStatusButton = state
  683. this.showDeptConfirm = true
  684. }
  685. })
  686. },
  687. cancelEventShow() {
  688. console.log('关闭事件弹窗')
  689. this.eventCode = null
  690. this.eventLogList = []
  691. },
  692. cancelEventConfirm() {
  693. console.log('关闭任务选择部门')
  694. this.eventCode = null
  695. this.deptOptions = []
  696. this.deptName = []
  697. this.centerTaskTaskDepts = []
  698. },
  699. showEventDialog(eventCode) {
  700. this.eventCode = eventCode
  701. let that = this
  702. //获取事件详情
  703. getEventDetail({ eventCode: eventCode }).then(res => {
  704. this.eventDialog = true
  705. this.eventLogList = res.data.eventlog
  706. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  707. if (res.data.catalogue != null && res.data.catalogue.length > 0) {
  708. this.address = res.data.catalogue[0].address
  709. this.eventType = res.data.catalogue[0].eventType
  710. this.eventId = res.data.catalogue[0].id
  711. this.longitude = res.data.catalogue[0].longitude
  712. this.latitude = res.data.catalogue[0].latitude
  713. let markersMap = {
  714. lng: 124.59,
  715. lat: 43.02,
  716. icon: 'marker',
  717. bindPopupHtml: '',
  718. click: '',
  719. parameter: '',
  720. keepBindPopup: false,
  721. isAggregation: false,
  722. radius: 0
  723. }
  724. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount == 0) {
  725. markersMap.icon = 'sj-icon-map-xinshangbao'
  726. }
  727. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount > 0) {
  728. markersMap.icon = 'sj-icon-map-cuiban'
  729. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_2') {
  730. markersMap.icon = 'sj-icon-map-qianshou'
  731. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_5') {
  732. markersMap.icon = 'sj-icon-map-banjie'
  733. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_6') {
  734. markersMap.icon = 'sj-icon-map-guidang'
  735. }
  736. markersMap.lng = res.data.catalogue[0].longitude
  737. markersMap.lat = res.data.catalogue[0].latitude
  738. 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) {
  739. markersMap.radius = res.data.eventdetail[0].fireRadius
  740. }
  741. setTimeout(() => {
  742. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  743. that.$refs.supermapTaskDialog.clearM(false)
  744. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  745. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue[0].latitude, res.data.catalogue[0].longitude)
  746. }, 1000)
  747. }
  748. })
  749. },
  750. refreshTaskList() {
  751. //刷新任务列表
  752. this.selectTaskList()
  753. },
  754. selectTaskList: async function() {
  755. //获取任务列表
  756. selectTaskBO().then(res => {
  757. this.taskList = res.data
  758. this.taskCount = res.data.length
  759. })
  760. },
  761. handleCheckedCitiesChangeBan(value) {
  762. this.choseLayerSwitchingList(this.banCheckList)
  763. },
  764. handleCheckedCitiesChangeChang(value) {
  765. this.choseLayerSwitchingList(this.changCheckList)
  766. },
  767. refresh() {
  768. window.location.reload()
  769. },
  770. showDialog(click) {
  771. window.showDialog(click)
  772. },
  773. choseLayerSwitching(url, isClear) {
  774. window.choseLayerSwitching(url, isClear)
  775. },
  776. choseLayerSwitchingList(urlList) {//选择图层(传递数组)
  777. window.choseLayerSwitchingList(urlList)
  778. },
  779. forestban() {
  780. window.forestban()
  781. console.log('林班')
  782. },
  783. forestchang() {
  784. window.forestchang()
  785. console.log('林场')
  786. },
  787. closeBanChild() {
  788. this.banCheckList = []
  789. this.showBanChild = false
  790. },
  791. closeChangChild() {
  792. this.changCheckList = []
  793. this.showChangChild = false
  794. },
  795. //图例收起弹出
  796. btmIndent() {
  797. if (this.btmTipIndent == '') {
  798. this.btmTipIndent = 'btm-tip-to-right'
  799. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  800. this.btmTipIndent = ''
  801. }
  802. },
  803. searchFilterchang(filterchang){
  804. //林场列表搜索
  805. let searchFilterchangnew = []
  806. if (filterchang != null && filterchang != '') {
  807. for (var i = 0; i < this.filterchangListAll.length; i++) {
  808. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  809. searchFilterchangnew.push(this.filterchangListAll[i])
  810. }
  811. }
  812. this.filterchangList = searchFilterchangnew
  813. } else {
  814. this.filterchangList = this.filterchangListAll
  815. }
  816. }
  817. }
  818. }
  819. </script>
  820. <style rel="stylesheet/scss" lang="scss" scoped>
  821. @import '@/assets/styles/base.scss';
  822. .btm-box {
  823. width: 100%;
  824. height: auto;
  825. background: linear-gradient($btmMemu);
  826. position: absolute;
  827. z-index: 999;
  828. bottom: 0;
  829. height: 2.5rem;
  830. display: flex;
  831. align-items: center;
  832. z-index:9999;
  833. .light {
  834. position: absolute;
  835. top: -.5rem;
  836. }
  837. .btm-left {
  838. position: absolute;
  839. font-size: .7rem;
  840. height: 2rem;
  841. line-height: 2rem;
  842. border: 1px $searchBorder;
  843. border-left: none;
  844. color: $inBlue;
  845. display: flex;
  846. -webkit-transform: translateX(-21rem) !important;
  847. transform: translateX(-21rem) !important;
  848. transition: all 0.5s ease-in-out !important;
  849. .btm-legend {
  850. height: 2rem;
  851. text-align: center;
  852. color: $inBlue;
  853. padding: 0 .5rem;
  854. cursor: pointer;
  855. }
  856. .btm-legend:hover {
  857. background-color: $tipHover;
  858. color: $white;
  859. }
  860. .btm-left-tip {
  861. display: flex;
  862. align-items: center;
  863. margin: 0 .5rem;
  864. .btm-left-block {
  865. width: 1rem;
  866. height: 1rem;
  867. margin-right: .3rem;
  868. border-radius: .2rem;
  869. }
  870. .btm-left-state-c1 {
  871. background-color: $eventStateColor-xsb;
  872. }
  873. .btm-left-state-c2 {
  874. background-color: $eventStateColor-cb;
  875. }
  876. .btm-left-state-c3 {
  877. background-color: $eventStateColor-yqs;
  878. }
  879. .btm-left-state-c4 {
  880. background-color: $eventStateColor-ld;
  881. }
  882. .btm-left-state-c5 {
  883. background-color: $eventStateColor-bj;
  884. }
  885. .btm-left-state-c6 {
  886. background-color: $eventStateColor-tb;
  887. }
  888. }
  889. }
  890. .btm-tip-to-right {
  891. -webkit-transform: translateX(0) !important;
  892. transform: translateX(0) !important;
  893. transition: all 0.5s ease-in-out !important;
  894. }
  895. .bottom-menu-normal {
  896. max-width: 70%;
  897. padding: 0 3rem;
  898. position: absolute;
  899. left: 50%;
  900. transform: translateX(-50%);
  901. bottom: 0;
  902. z-index: 999;
  903. border-radius: 5px;
  904. display: flex;
  905. justify-content: center;
  906. align-items: center;
  907. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  908. // background-size: cover;
  909. .btm-m-con {
  910. position: relative;
  911. color: $inBlue;
  912. font-size: .5rem;
  913. padding: .6rem 1rem;
  914. display: flex;
  915. align-items: center;
  916. justify-content: center;
  917. -webkit-transform: translateY(0);
  918. transform: translateY(0);
  919. transition: all 0.2s ease-in-out;
  920. cursor: pointer;
  921. white-space: nowrap;
  922. i {
  923. font-size: 1rem;
  924. color: $inBlue;
  925. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  926. margin-right: 0.2rem;
  927. }
  928. .nav-child {
  929. text-shadow: none !important;
  930. position: absolute;
  931. bottom: 3rem;
  932. border: 1px solid saddlebrown;
  933. padding: .5rem;
  934. -moz-border-radius-topleft: 0;
  935. -moz-border-radius-bottomright: 0;
  936. background-color: $barBgc;
  937. box-shadow: $barShadow;
  938. border: 1px $barBorder;
  939. left: 50%;
  940. transform: translateX(-50%);
  941. color: $inBlue;
  942. .nav-child-btn {
  943. padding: .2rem;
  944. }
  945. .forestban {
  946. display: flex;
  947. .forestban-con {
  948. width: 20rem;
  949. height: 20rem;
  950. overflow-y: scroll;
  951. border: 1px solid rgba(51, 70, 127, 0.7);
  952. }
  953. .forestban-right {
  954. width: 10rem;
  955. height: 20rem;
  956. overflow-y: scroll;
  957. padding: 0 1rem;
  958. .el-checkbox-group {
  959. display: flex;
  960. flex-direction: column;
  961. label {
  962. padding: .4rem 0;
  963. }
  964. .el-checkbox {
  965. color: $white;
  966. }
  967. }
  968. }
  969. }
  970. }
  971. }
  972. .btm-m-con:hover,
  973. .on {
  974. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  975. -webkit-transform: translateX(0.2rem);
  976. transform: translateX(0.2rem);
  977. transition: all 0.2s ease-in-out;
  978. .nav-child {
  979. text-shadow: none !important;
  980. }
  981. i {
  982. color: $inBlueHover;
  983. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  984. }
  985. }
  986. }
  987. .btm-right {
  988. position: absolute;
  989. font-size: .7rem;
  990. height: 2rem;
  991. display: flex;
  992. right: 1rem;
  993. align-items: center;
  994. .el-badge {
  995. display: flex !important;
  996. margin-left: 1.5rem;
  997. button {
  998. padding: 0 .3rem;
  999. height: 1.5rem;
  1000. background-color: #112543;
  1001. color: $inBlue;
  1002. border: 1px $searchBorder;
  1003. }
  1004. }
  1005. .el-badge:hover {
  1006. -webkit-transform: translateX(0.1rem);
  1007. transform: translateX(0.1rem);
  1008. transition: all 0.2s ease-in-out;
  1009. button {
  1010. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1011. }
  1012. }
  1013. }
  1014. }
  1015. .btm-r-pop-info {
  1016. display: flex;
  1017. width: 35rem;
  1018. flex-direction: column;
  1019. max-height: 85vh;
  1020. min-height: fit-content;
  1021. overflow-y: scroll;
  1022. padding: 1rem;
  1023. .btm-r-pop-info-box:hover {
  1024. box-shadow: $shadowListHover;
  1025. color: $inBlue;
  1026. border: 1px $countBorder;
  1027. }
  1028. .btm-r-pop-info-box {
  1029. width: 100%;
  1030. display: flex;
  1031. flex-direction: column;
  1032. background-color: $deepBG;
  1033. padding: .5rem;
  1034. border-radius: .5rem;
  1035. color: $inBlue;
  1036. border: 1px $searchBorder;
  1037. margin-bottom: 1rem;
  1038. .btm-r-pop-info-tit {
  1039. display: flex;
  1040. padding: .5rem;
  1041. h3 {
  1042. font-weight: bolder;
  1043. }
  1044. }
  1045. .btm-r-pop-info-con {
  1046. padding: .5rem;
  1047. display: flex;
  1048. flex-direction: column;
  1049. border-top: 1px $searchBorder;
  1050. border-bottom: 1px $searchBorder;
  1051. .btm-r-pop-info-list {
  1052. display: flex;
  1053. padding: .3rem 0;
  1054. .btm-r-pop-info-list-name {
  1055. width: 3.6rem;
  1056. text-align: right;
  1057. margin-right: 1rem;
  1058. }
  1059. .btm-r-pop-info-list-text {
  1060. }
  1061. }
  1062. }
  1063. .btm-r-pop-info-btm {
  1064. padding: .5rem;
  1065. display: flex;
  1066. justify-content: space-between;
  1067. .btm-r-pop-info-btm-btn {
  1068. button {
  1069. padding: .5rem;
  1070. }
  1071. }
  1072. }
  1073. }
  1074. }
  1075. </style>