vBottomMenu.vue 40 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. name: '农场',
  457. icon: 'iconfont sj-icon-lczy',
  458. click: 'forestchang'
  459. },
  460. {
  461. name: '电视墙',
  462. icon: 'el-icon-s-grid',
  463. click: 'TVWall'
  464. }
  465. ],
  466. deptOptionsLiandong: [],
  467. data: [
  468. {
  469. label: '一级 1',
  470. children: [{
  471. label: '二级 1-1',
  472. children: [{
  473. label: '三级 1-1-1'
  474. }]
  475. }]
  476. }, {
  477. label: '一级 2',
  478. children: [{
  479. label: '二级 2-1',
  480. children: [{
  481. label: '三级 2-1-1'
  482. }]
  483. }, {
  484. label: '二级 2-2',
  485. children: [{
  486. label: '三级 2-2-1'
  487. }]
  488. }]
  489. }, {
  490. label: '一级 3',
  491. children: [{
  492. label: '二级 3-1',
  493. children: [{
  494. label: '三级 3-1-1'
  495. }]
  496. }, {
  497. label: '二级 3-2',
  498. children: [{
  499. label: '三级 3-2-1'
  500. }]
  501. }]
  502. }],
  503. defaultProps: {
  504. children: 'children',
  505. label: 'label'
  506. },
  507. banCheckList: [], //林班
  508. changCheckList: [], //林场
  509. searchFB: '',
  510. filterchang: '',//林场搜索
  511. btmCurrent: ''
  512. }
  513. },
  514. created() {
  515. /** 查询部门树结构 */
  516. deptTreeselect().then(response => {
  517. this.deptOptionsLiandong = response.data
  518. })
  519. },
  520. methods: {
  521. filterbanNode(value, data) {
  522. //树搜索
  523. if (!value) return true
  524. return data.label.indexOf(value) !== -1
  525. },
  526. filterchangNode(value, data) {
  527. //树搜索
  528. if (!value) return true
  529. return data.label.indexOf(value) !== -1
  530. },
  531. handlechangNodeClick(node,data,value) {
  532. //获取林场列表
  533. this.filterchang=''
  534. selectFarmByDeptId({deptId:node.id}).then(res => {
  535. this.filterchangList = res.data
  536. this.filterchangListAll = res.data
  537. })
  538. },
  539. // 返回图片列表
  540. assetTypeAnImage(filePath) {
  541. let imageList = []
  542. if (filePath != null && filePath.length > 0) {
  543. for (let i = 0; i < filePath.length; i++) {
  544. //获取最后一个.的位置
  545. var index = filePath[i].lastIndexOf('.')
  546. //获取后缀
  547. var ext = filePath[i].substr(index + 1)
  548. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  549. if (aa) {
  550. imageList.push(filePath[i])
  551. }
  552. }
  553. }
  554. return imageList
  555. },
  556. // 返回图片列表
  557. assetTypeAnImage(filePath) {
  558. let imageList = []
  559. if (filePath != null && filePath.length > 0) {
  560. for (let i = 0; i < filePath.length; i++) {
  561. //获取最后一个.的位置
  562. var index = filePath[i].lastIndexOf('.')
  563. //获取后缀
  564. var ext = filePath[i].substr(index + 1)
  565. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  566. if (aa) {
  567. imageList.push(filePath[i])
  568. }
  569. }
  570. }
  571. return imageList
  572. },
  573. // 判断是否为视频
  574. isAssetTypeAnMp4(filePath) {
  575. //获取最后一个.的位置
  576. var index = filePath.lastIndexOf('.')
  577. //获取后缀
  578. var ext = filePath.substr(index + 1)
  579. let aa = ['mp4'].indexOf(ext.toLowerCase()) !== -1
  580. return aa
  581. },
  582. // 判断是否为Word
  583. isAssetTypeAnWord(filePath) {
  584. //获取最后一个.的位置
  585. var index = filePath.lastIndexOf('.')
  586. //获取后缀
  587. var ext = filePath.substr(index + 1)
  588. let aa = ['doc', 'docx'].indexOf(ext.toLowerCase()) !== -1
  589. return aa
  590. },
  591. // 判断是否为Excel
  592. isAssetTypeAnExcel(filePath) {
  593. //获取最后一个.的位置
  594. var index = filePath.lastIndexOf('.')
  595. //获取后缀
  596. var ext = filePath.substr(index + 1)
  597. let aa = ['xlsx', 'xls', 'csv'].indexOf(ext.toLowerCase()) !== -1
  598. return aa
  599. },
  600. // 判断是否为图片
  601. isAssetTypeAnImage(filePath) {
  602. //获取最后一个.的位置
  603. var index = filePath.lastIndexOf('.')
  604. //获取后缀
  605. var ext = filePath.substr(index + 1)
  606. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  607. return aa
  608. },
  609. // 获取文件名称
  610. getFileName(name) {
  611. if (name.lastIndexOf('/') > -1) {
  612. return name.slice(name.lastIndexOf('/') + 1)
  613. } else {
  614. return ''
  615. }
  616. },
  617. clickFile(fileUrl, fileName) {
  618. if (this.isAssetTypeAnImage(fileUrl)) {
  619. return
  620. } else if (this.isAssetTypeAnMp4(fileUrl)) {
  621. this.showTcPlayer = true
  622. setTimeout(() => {
  623. this.playVideo = fileUrl
  624. }, 500)
  625. } else {
  626. let a = document.createElement('a')
  627. a.download = fileName
  628. a.href = fileUrl
  629. a.target="_blank"
  630. a.click()
  631. }
  632. },
  633. setValue(event) {
  634. this.centerTaskTaskDepts = []
  635. //签收选择部门
  636. if (event != null && event.length > 0) {
  637. for (let i = 0; i < event.length; i++) {
  638. if (event[i].label != undefined && event[i].value != undefined) {
  639. this.centerTaskTaskDepts.push({ taskDeptId: event[i].value, taskDeptName: event[i].label })
  640. }
  641. }
  642. }
  643. },
  644. receiveTask(taskId, eventCode) {
  645. let param = { taskId: taskId, eventCode: eventCode, centerTaskTaskDepts: this.centerTaskTaskDepts }
  646. receiveTask(param).then(res => {
  647. //任务领取
  648. if (res.code == 200) {
  649. this.$message.success(`任务领取成功!`)
  650. this.deptOptions = []
  651. this.deptName = []
  652. this.centerTaskTaskDepts = []
  653. //刷新任务列表
  654. this.selectTaskList()
  655. this.showDeptConfirm = false
  656. }
  657. })
  658. },
  659. refusedTask(taskId, eventCode) {
  660. let param = { taskId: taskId, eventCode: eventCode, centerTaskTaskDepts: this.centerTaskTaskDepts }
  661. refusedTask(param).then(res => {
  662. //任务拒绝
  663. if (res.code == 200) {
  664. this.$message.success(`任务拒绝成功!`)
  665. this.deptOptions = []
  666. this.deptName = []
  667. this.centerTaskTaskDepts = []
  668. //刷新任务列表
  669. this.selectTaskList()
  670. this.showDeptConfirm = false
  671. }
  672. })
  673. },
  674. selectTaskDtpts(taskId, eventCode, state) {
  675. this.taskId = taskId
  676. this.eventCode = eventCode
  677. selectTaskDtpts({ taskId: taskId }).then(res => {
  678. //任务领取部门列表
  679. if (res.code == 200) {
  680. this.deptOptions = res.data
  681. this.taskStatusButton = state
  682. this.showDeptConfirm = true
  683. }
  684. })
  685. },
  686. cancelEventShow() {
  687. console.log('关闭事件弹窗')
  688. this.eventCode = null
  689. this.eventLogList = []
  690. },
  691. cancelEventConfirm() {
  692. console.log('关闭任务选择部门')
  693. this.eventCode = null
  694. this.deptOptions = []
  695. this.deptName = []
  696. this.centerTaskTaskDepts = []
  697. },
  698. showEventDialog(eventCode) {
  699. this.eventCode = eventCode
  700. let that = this
  701. //获取事件详情
  702. getEventDetail({ eventCode: eventCode }).then(res => {
  703. this.eventDialog = true
  704. this.eventLogList = res.data.eventlog
  705. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  706. if (res.data.catalogue != null && res.data.catalogue.length > 0) {
  707. this.address = res.data.catalogue[0].address
  708. this.eventType = res.data.catalogue[0].eventType
  709. this.eventId = res.data.catalogue[0].id
  710. this.longitude = res.data.catalogue[0].longitude
  711. this.latitude = res.data.catalogue[0].latitude
  712. let markersMap = {
  713. lng: 124.59,
  714. lat: 43.02,
  715. icon: 'marker',
  716. bindPopupHtml: '',
  717. click: '',
  718. parameter: '',
  719. keepBindPopup: false,
  720. isAggregation: false,
  721. radius: 0
  722. }
  723. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount == 0) {
  724. markersMap.icon = 'sj-icon-map-xinshangbao'
  725. }
  726. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount > 0) {
  727. markersMap.icon = 'sj-icon-map-cuiban'
  728. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_2') {
  729. markersMap.icon = 'sj-icon-map-qianshou'
  730. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_5') {
  731. markersMap.icon = 'sj-icon-map-banjie'
  732. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_6') {
  733. markersMap.icon = 'sj-icon-map-guidnag'
  734. }
  735. markersMap.lng = res.data.catalogue[0].longitude
  736. markersMap.lat = res.data.catalogue[0].latitude
  737. 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) {
  738. markersMap.radius = res.data.eventdetail[0].fireRadius
  739. }
  740. setTimeout(() => {
  741. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  742. that.$refs.supermapTaskDialog.clearM(false)
  743. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  744. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue[0].latitude, res.data.catalogue[0].longitude)
  745. }, 1000)
  746. }
  747. })
  748. },
  749. refreshTaskList() {
  750. //刷新任务列表
  751. this.selectTaskList()
  752. },
  753. selectTaskList: async function() {
  754. //获取任务列表
  755. selectTaskBO().then(res => {
  756. this.taskList = res.data
  757. this.taskCount = res.data.length
  758. })
  759. },
  760. handleCheckedCitiesChangeBan(value) {
  761. this.choseLayerSwitchingList(this.banCheckList)
  762. },
  763. handleCheckedCitiesChangeChang(value) {
  764. this.choseLayerSwitchingList(this.changCheckList)
  765. },
  766. refresh() {
  767. window.location.reload()
  768. },
  769. showDialog(click) {
  770. window.showDialog(click)
  771. },
  772. choseLayerSwitching(url, isClear) {
  773. window.choseLayerSwitching(url, isClear)
  774. },
  775. choseLayerSwitchingList(urlList) {//选择图层(传递数组)
  776. window.choseLayerSwitchingList(urlList)
  777. },
  778. forestban() {
  779. window.forestban()
  780. console.log('林班')
  781. },
  782. forestchang() {
  783. window.forestchang()
  784. console.log('林场')
  785. },
  786. closeBanChild() {
  787. this.banCheckList = []
  788. this.showBanChild = false
  789. },
  790. closeChangChild() {
  791. this.changCheckList = []
  792. this.showChangChild = false
  793. },
  794. //图例收起弹出
  795. btmIndent() {
  796. if (this.btmTipIndent == '') {
  797. this.btmTipIndent = 'btm-tip-to-right'
  798. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  799. this.btmTipIndent = ''
  800. }
  801. },
  802. searchFilterchang(filterchang){
  803. //林场列表搜索
  804. let searchFilterchangnew = []
  805. if (filterchang != null && filterchang != '') {
  806. for (var i = 0; i < this.filterchangListAll.length; i++) {
  807. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  808. searchFilterchangnew.push(this.filterchangListAll[i])
  809. }
  810. }
  811. this.filterchangList = searchFilterchangnew
  812. } else {
  813. this.filterchangList = this.filterchangListAll
  814. }
  815. }
  816. }
  817. }
  818. </script>
  819. <style rel="stylesheet/scss" lang="scss" scoped>
  820. @import '@/assets/styles/base.scss';
  821. .btm-box {
  822. width: 100%;
  823. height: auto;
  824. background: linear-gradient($btmMemu);
  825. position: absolute;
  826. z-index: 999;
  827. bottom: 0;
  828. height: 2.5rem;
  829. display: flex;
  830. align-items: center;
  831. z-index:9999;
  832. .light {
  833. position: absolute;
  834. top: -.5rem;
  835. }
  836. .btm-left {
  837. position: absolute;
  838. font-size: .7rem;
  839. height: 2rem;
  840. line-height: 2rem;
  841. border: 1px $searchBorder;
  842. border-left: none;
  843. color: $inBlue;
  844. display: flex;
  845. -webkit-transform: translateX(-21rem) !important;
  846. transform: translateX(-21rem) !important;
  847. transition: all 0.5s ease-in-out !important;
  848. .btm-legend {
  849. height: 2rem;
  850. text-align: center;
  851. color: $inBlue;
  852. padding: 0 .5rem;
  853. cursor: pointer;
  854. }
  855. .btm-legend:hover {
  856. background-color: $tipHover;
  857. color: $white;
  858. }
  859. .btm-left-tip {
  860. display: flex;
  861. align-items: center;
  862. margin: 0 .5rem;
  863. .btm-left-block {
  864. width: 1rem;
  865. height: 1rem;
  866. margin-right: .3rem;
  867. border-radius: .2rem;
  868. }
  869. .btm-left-state-c1 {
  870. background-color: $eventStateColor-xsb;
  871. }
  872. .btm-left-state-c2 {
  873. background-color: $eventStateColor-cb;
  874. }
  875. .btm-left-state-c3 {
  876. background-color: $eventStateColor-yqs;
  877. }
  878. .btm-left-state-c4 {
  879. background-color: $eventStateColor-ld;
  880. }
  881. .btm-left-state-c5 {
  882. background-color: $eventStateColor-bj;
  883. }
  884. .btm-left-state-c6 {
  885. background-color: $eventStateColor-tb;
  886. }
  887. }
  888. }
  889. .btm-tip-to-right {
  890. -webkit-transform: translateX(0) !important;
  891. transform: translateX(0) !important;
  892. transition: all 0.5s ease-in-out !important;
  893. }
  894. .bottom-menu-normal {
  895. max-width: 70%;
  896. padding: 0 3rem;
  897. position: absolute;
  898. left: 50%;
  899. transform: translateX(-50%);
  900. bottom: 0;
  901. z-index: 999;
  902. border-radius: 5px;
  903. display: flex;
  904. justify-content: center;
  905. align-items: center;
  906. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  907. // background-size: cover;
  908. .btm-m-con {
  909. position: relative;
  910. color: $inBlue;
  911. font-size: .5rem;
  912. padding: .6rem 1rem;
  913. display: flex;
  914. align-items: center;
  915. justify-content: center;
  916. -webkit-transform: translateY(0);
  917. transform: translateY(0);
  918. transition: all 0.2s ease-in-out;
  919. cursor: pointer;
  920. white-space: nowrap;
  921. i {
  922. font-size: 1rem;
  923. color: $inBlue;
  924. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  925. margin-right: 0.2rem;
  926. }
  927. .nav-child {
  928. text-shadow: none !important;
  929. position: absolute;
  930. bottom: 3rem;
  931. border: 1px solid saddlebrown;
  932. padding: .5rem;
  933. -moz-border-radius-topleft: 0;
  934. -moz-border-radius-bottomright: 0;
  935. background-color: $barBgc;
  936. box-shadow: $barShadow;
  937. border: 1px $barBorder;
  938. left: 50%;
  939. transform: translateX(-50%);
  940. color: $inBlue;
  941. .nav-child-btn {
  942. padding: .2rem;
  943. }
  944. .forestban {
  945. display: flex;
  946. .forestban-con {
  947. width: 20rem;
  948. height: 20rem;
  949. overflow-y: scroll;
  950. border: 1px solid rgba(51, 70, 127, 0.7);
  951. }
  952. .forestban-right {
  953. width: 10rem;
  954. height: 20rem;
  955. overflow-y: scroll;
  956. padding: 0 1rem;
  957. .el-checkbox-group {
  958. display: flex;
  959. flex-direction: column;
  960. label {
  961. padding: .4rem 0;
  962. }
  963. .el-checkbox {
  964. color: $white;
  965. }
  966. }
  967. }
  968. }
  969. }
  970. }
  971. .btm-m-con:hover,
  972. .on {
  973. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  974. -webkit-transform: translateX(0.2rem);
  975. transform: translateX(0.2rem);
  976. transition: all 0.2s ease-in-out;
  977. .nav-child {
  978. text-shadow: none !important;
  979. }
  980. i {
  981. color: $inBlueHover;
  982. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  983. }
  984. }
  985. }
  986. .btm-right {
  987. position: absolute;
  988. font-size: .7rem;
  989. height: 2rem;
  990. display: flex;
  991. right: 1rem;
  992. align-items: center;
  993. .el-badge {
  994. display: flex !important;
  995. margin-left: 1.5rem;
  996. button {
  997. padding: 0 .3rem;
  998. height: 1.5rem;
  999. background-color: #112543;
  1000. color: $inBlue;
  1001. border: 1px $searchBorder;
  1002. }
  1003. }
  1004. .el-badge:hover {
  1005. -webkit-transform: translateX(0.1rem);
  1006. transform: translateX(0.1rem);
  1007. transition: all 0.2s ease-in-out;
  1008. button {
  1009. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1010. }
  1011. }
  1012. }
  1013. }
  1014. .btm-r-pop-info {
  1015. display: flex;
  1016. width: 35rem;
  1017. flex-direction: column;
  1018. max-height: 85vh;
  1019. min-height: fit-content;
  1020. overflow-y: scroll;
  1021. padding: 1rem;
  1022. .btm-r-pop-info-box:hover {
  1023. box-shadow: $shadowListHover;
  1024. color: $inBlue;
  1025. border: 1px $countBorder;
  1026. }
  1027. .btm-r-pop-info-box {
  1028. width: 100%;
  1029. display: flex;
  1030. flex-direction: column;
  1031. background-color: $deepBG;
  1032. padding: .5rem;
  1033. border-radius: .5rem;
  1034. color: $inBlue;
  1035. border: 1px $searchBorder;
  1036. margin-bottom: 1rem;
  1037. .btm-r-pop-info-tit {
  1038. display: flex;
  1039. padding: .5rem;
  1040. h3 {
  1041. font-weight: bolder;
  1042. }
  1043. }
  1044. .btm-r-pop-info-con {
  1045. padding: .5rem;
  1046. display: flex;
  1047. flex-direction: column;
  1048. border-top: 1px $searchBorder;
  1049. border-bottom: 1px $searchBorder;
  1050. .btm-r-pop-info-list {
  1051. display: flex;
  1052. padding: .3rem 0;
  1053. .btm-r-pop-info-list-name {
  1054. width: 3.6rem;
  1055. text-align: right;
  1056. margin-right: 1rem;
  1057. }
  1058. .btm-r-pop-info-list-text {
  1059. }
  1060. }
  1061. }
  1062. .btm-r-pop-info-btm {
  1063. padding: .5rem;
  1064. display: flex;
  1065. justify-content: space-between;
  1066. .btm-r-pop-info-btm-btn {
  1067. button {
  1068. padding: .5rem;
  1069. }
  1070. }
  1071. }
  1072. }
  1073. }
  1074. </style>