vBottomMenu.vue 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119
  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"><i class="iconfont sj-icon-shangbao"></i></div>
  7. 新上报
  8. </div>
  9. <div class="btm-left-tip">
  10. <div class="btm-left-block btm-left-state-c2"><i class="iconfont sj-icon-cuiban"></i></div>
  11. 催办
  12. </div>
  13. <div class="btm-left-tip">
  14. <div class="btm-left-block btm-left-state-c3-1"><i class="iconfont sj-icon-queren"></i></div>
  15. 确认
  16. </div>
  17. <div class="btm-left-tip">
  18. <div class="btm-left-block btm-left-state-c3"><i class="iconfont sj-icon-yiqianshou"></i></div>
  19. 已签收
  20. </div>
  21. <!-- div class="btm-left-tip">
  22. <div class="btm-left-block btm-left-state-c4"></div>
  23. 联动
  24. </div> -->
  25. <div class="btm-left-tip">
  26. <div class="btm-left-block btm-left-state-c5"><i class="iconfont sj-icon-banjie"></i></div>
  27. 办结
  28. </div>
  29. <div class="btm-left-tip">
  30. <div class="btm-left-block btm-left-state-c6"><i class="iconfont sj-icon-guidang"></i></div>
  31. 归档
  32. </div>
  33. <div class="btm-legend" @click="btmIndent">
  34. <span>图例</span>
  35. <i class="el-icon-caret-right" v-if="this.btmTipIndent !== 'btm-tip-to-right'"></i>
  36. <i class="el-icon-caret-left" v-if="this.btmTipIndent == 'btm-tip-to-right'"></i>
  37. </div>
  38. </div>
  39. <div class="bottom-menu-normal">
  40. <div v-for="(fastMenu,index) in fastMenu" :key="index" class="btm-m-con">
  41. <a><i :class="fastMenu.icon" @click.stop="showDialog(fastMenu.click)"></i><a
  42. @click.stop="showDialog(fastMenu.click)">{{ fastMenu.name }}</a>
  43. <div v-if="showChild && fastMenu.click == 'layerSwitching'" class="nav-child">
  44. <el-button type="primary"
  45. @click.stop="choseLayerSwitching(null,true)"
  46. class="nav-child-btn" plain>矢量图
  47. </el-button>
  48. <el-button type="primary"
  49. @click.stop="choseLayerSwitching('http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/baishanyingxiang',true)"
  50. class="nav-child-btn" plain>影像图
  51. </el-button>
  52. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  53. @click.stop="closeChild"></el-button> -->
  54. </div>
  55. <div v-if="showMeasure && fastMenu.click == 'editableLayers'" class="nav-child">
  56. <el-button type="primary"
  57. @click.stop="choseMeasuringDistance"
  58. class="nav-child-btn" plain>测距
  59. </el-button>
  60. <el-button type="primary"
  61. @click.stop="choseMeasuringArea"
  62. class="nav-child-btn" plain>测面
  63. </el-button>
  64. <el-button type="primary"
  65. @click.stop="choseMeasuringClear"
  66. class="nav-child-btn" plain>清除
  67. </el-button>
  68. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  69. @click.stop="closeChild"></el-button> -->
  70. </div>
  71. <!-- 林斑 -->
  72. <div v-show="showBanChild && fastMenu.click == 'forestban'" class="nav-child">
  73. <div class="forestban">
  74. <div class="forestban-con">
  75. <!-- <el-input-->
  76. <!-- placeholder="输入关键字进行过滤"-->
  77. <!-- v-model="filterbanText">-->
  78. <!-- </el-input>-->
  79. <el-tree :data="deptBanOptionsLiandong" ref="banDept" node-key="id" :check-strictly="true"
  80. :filter-node-method="filterbanNode" @node-click="handlebanNodeClick" :accordion="true"
  81. empty-text=""
  82. :props="defaultProps"></el-tree>
  83. </div>
  84. <div class="forestban-right">
  85. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterban"
  86. @change="searchFilterban(filterchang)">
  87. </el-input>
  88. <el-checkbox-group v-model="banCheckList_Data">
  89. <el-checkbox v-for="(item,index) in filterbanList" :label="item"
  90. @change="handleCheckedCitiesChangeBan_Data">
  91. {{ item.farmName }}
  92. </el-checkbox>
  93. </el-checkbox-group>
  94. </div>
  95. <el-button type="danger" icon="el-icon-close"
  96. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  97. @click.stop="closeBanChild"></el-button>
  98. </div>
  99. </div>
  100. <!-- 林场 -->
  101. <div v-show="showChangChild && fastMenu.click == 'forestchang'" class="nav-child">
  102. <div class="forestban">
  103. <div class="forestban-con">
  104. <!-- <el-input-->
  105. <!-- placeholder="输入关键字进行过滤"-->
  106. <!-- v-model="filterchangText">-->
  107. <!-- </el-input>-->
  108. <el-tree :data="deptChangOptionsLiandong" ref="changDept" node-key="id"
  109. :check-strictly="true" :filter-node-method="filterchangNode"
  110. @node-click="handlechangNodeClick" :accordion="true" empty-text="加载中,请稍候"
  111. :props="defaultProps"></el-tree>
  112. </div>
  113. <div class="forestban-right">
  114. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterchang"
  115. @change="searchFilterchang(filterchang)">
  116. </el-input>
  117. <el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
  118. <el-checkbox v-for="(item,index) in filterchangList" :label="item.farmAddress">
  119. {{ item.farmName }}
  120. </el-checkbox>
  121. </el-checkbox-group>
  122. </div>
  123. <el-button type="danger" icon="el-icon-close"
  124. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  125. @click.stop="closeChangChild"></el-button>
  126. </div>
  127. </div>
  128. </a>
  129. </div>
  130. </div>
  131. <div class="btm-right">
  132. <el-popover placement="top" trigger="click" :disabled="taskCount==0">
  133. <div class="btm-r-pop-info">
  134. <div class="btm-r-pop-info-box" v-for="(item,index) in taskList">
  135. <div class="btm-r-pop-info-tit">
  136. <h3>{{ item.taskSourceValue }}</h3>
  137. </div>
  138. <div class="btm-r-pop-info-con">
  139. <div class="btm-r-pop-info-list">
  140. <div class="btm-r-pop-info-list-name">标题</div>
  141. <div class="btm-r-pop-info-list-text">{{ item.taskTitle }}</div>
  142. </div>
  143. <div class="btm-r-pop-info-list">
  144. <div class="btm-r-pop-info-list-name">发起人</div>
  145. <div class="btm-r-pop-info-list-text">{{ item.sendPersonName }}</div>
  146. </div>
  147. <div class="btm-r-pop-info-list">
  148. <div class="btm-r-pop-info-list-name">发起时间</div>
  149. <div class="btm-r-pop-info-list-text">{{ item.taskSendTime }}</div>
  150. </div>
  151. <div class="btm-r-pop-info-list">
  152. <div class="btm-r-pop-info-list-name">关联事件</div>
  153. <div class="btm-r-pop-info-list-text">{{ item.eventName }}</div>
  154. </div>
  155. <div class="btm-r-pop-info-list">
  156. <div class="btm-r-pop-info-list-name">催办状态</div>
  157. <div class="btm-r-pop-info-list-text" style="color: red" v-if="item.isUrged==1">
  158. 任务催办中,请及时处理!!
  159. </div>
  160. <div class="btm-r-pop-info-list-text" v-else>正常</div>
  161. </div>
  162. </div>
  163. <div class="btm-r-pop-info-btm">
  164. <el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
  165. <div class="btm-r-pop-info-btm-btn">
  166. <el-button type="danger" @click="refusedTask(item.taskId,item.eventCode)">拒绝
  167. </el-button>
  168. <el-button type="primary" @click="receiveTask(item.taskId,item.eventCode)">领取
  169. </el-button>
  170. </div>
  171. </div>
  172. </div>
  173. </div>
  174. <el-badge :value="taskCount" slot="reference" :hidden="taskCount==0">
  175. <el-button size="small" icon="el-icon-bank-card">任务</el-button>
  176. </el-badge>
  177. </el-popover>
  178. <el-popover placement="top" trigger="click" :disabled="messageCount==0">
  179. <div class="btm-r-pop-info">
  180. <div class="btm-r-pop-info-box" v-for="(item,index) in messageList">
  181. <div class="btm-r-pop-info-con">
  182. <div class="btm-r-pop-info-list">
  183. <div class="btm-r-pop-info-list-name">消息时间</div>
  184. <div class="btm-r-pop-info-list-text">{{ item.createTime }}</div>
  185. </div>
  186. <div class="btm-r-pop-info-list">
  187. <div class="btm-r-pop-info-list-name">标题</div>
  188. <div class="btm-r-pop-info-list-text">{{ item.title }}</div>
  189. </div>
  190. <div class="btm-r-pop-info-list">
  191. <div class="btm-r-pop-info-list-name">消息类型</div>
  192. <div class="btm-r-pop-info-list-text" v-if="item.type ==1">部门消息</div>
  193. <div class="btm-r-pop-info-list-text" v-if="item.type ==2">用户消息</div>
  194. </div>
  195. <div class="btm-r-pop-info-list">
  196. <div class="btm-r-pop-info-list-name">内容</div>
  197. <div class="btm-r-pop-info-list-text" style="width:85%:">
  198. <h4 class="line-h-1 w-100p" v-html="item.content">{{ item.content }}</h4>
  199. </div>
  200. </div>
  201. </div>
  202. <div class="btm-r-pop-info-btm">
  203. <el-link type="success" v-if="item.eventCode!=null&&item.type ==1" @click="showEventDialog_message(item.eventCode)">
  204. 查看事件详情
  205. </el-link>
  206. <div class="btm-r-pop-info-btm-btn" v-else>
  207. <el-button type="primary" @click="selectMessageById(item.id)">标记已读
  208. </el-button>
  209. </div>
  210. </div>
  211. </div>
  212. </div>
  213. <el-badge :value="messageCount" slot="reference" :hidden="messageCount==0">
  214. <el-button size="small" icon="el-icon-chat-line-round">消息</el-button>
  215. </el-badge>
  216. </el-popover>
  217. <!-- 警报铃 必须放在这,放在别处不好使 -->
  218. <div class="bell" v-if="eventWarn" @click="updateAlertFalse">
  219. <div class="dot"></div>
  220. <div class="pulse"></div>
  221. <div class="pulse-big"></div>
  222. </div>
  223. <!--<el-badge type="primary">-->
  224. <!--<el-button size="small" icon="el-icon-bell" @click="updateAlertFalse">警报</el-button>-->
  225. <!--</el-badge>-->
  226. <el-badge type="warning">
  227. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  228. </el-badge>
  229. </div>
  230. <!-- 事件详情弹层 -->
  231. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" customClass="customWidth" append-to-body
  232. @close="cancelEventShow()">
  233. <div class="dia-event-info">
  234. <el-row>
  235. <!-- 左侧 -->
  236. <el-col :span="18" class="dia-left">
  237. <div ref="imageTofile" style="height: 75vh;">
  238. <!-- 应急预案 -->
  239. <div class="dia-left-top">
  240. <div class="dia-left-top-tit">应急预案</div>
  241. <div class="dia-left-top-carousel">
  242. <el-carousel height="30px" direction="vertical" :interval="2000">
  243. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  244. <a
  245. :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName }}</a>
  246. </el-carousel-item>
  247. <el-carousel-item v-else>
  248. <a href="#">未选预案</a>
  249. </el-carousel-item>
  250. </el-carousel>
  251. </div>
  252. </div>
  253. <!-- 应急预案end -->
  254. <!-- 地图 -->
  255. <supermapTaskDialog ref="supermapTaskDialog" style="position: absolute; top:0;left: 0;"
  256. :mapDiv="'taskDialogSuperMap'"
  257. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  258. :codes="['9fa5']" :isSideBySide="false" :isdynamicPlotting="false"/>
  259. <!-- 地图end -->
  260. </div>
  261. </el-col>
  262. <!-- 左侧end -->
  263. <!-- 右侧 -->
  264. <el-col :span="6" class="dia-right">
  265. <div class="e-right">
  266. <div class="forthis1-1">
  267. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  268. style="padding-bottom:1rem ;">
  269. <div class="i-list-con">
  270. <div class="this-con">
  271. <div class="z-info-list" style="margin-top: 0;">
  272. <el-timeline>
  273. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  274. placement="top" v-for="(item,index) in eventLogList">
  275. <el-card style="width: 40vh">
  276. <div class="z-info-list-con">
  277. <div class="user-and-time flex-d">
  278. <span>{{ item.createName }}</span>
  279. <span
  280. v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  281. class="el-icon-location"></i>
  282. {{ address }}</span>
  283. <span v-else></span>
  284. </div>
  285. <div class="z-info">
  286. <div class="this-con-list-info">
  287. {{ item.logContent }}
  288. </div>
  289. <div>
  290. <router-link to="#"
  291. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  292. v-for="(itemfile,indexfile) in item.fileVOs">
  293. <el-image :src="itemfile.fileUrl"
  294. v-if="itemfile.fileType=='image'"
  295. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  296. style="width:3rem; height:3rem;margin: 2px;"
  297. :title="itemfile.fileName">
  298. </el-image>
  299. <img v-else-if="itemfile.fileType=='video'"
  300. style="width:3rem; height:3rem;margin: 2px;"
  301. :src="require('@/assets/fileTypeImage/mp4.png')"
  302. :title="itemfile.fileName">
  303. </img>
  304. <img v-else-if="itemfile.fileType=='word'"
  305. style="width:3rem; height:3rem;margin: 2px;"
  306. :src="require('@/assets/fileTypeImage/word.png')"
  307. :title="itemfile.fileName">
  308. </img>
  309. <img v-else-if="itemfile.fileType=='excel'"
  310. style="width:3rem; height:3rem;margin: 2px;"
  311. :src="require('@/assets/fileTypeImage/excel.png')"
  312. :title="itemfile.fileName">
  313. </img>
  314. <img v-else
  315. style="width:3rem; height:3rem;margin: 2px;"
  316. :src="require('@/assets/fileTypeImage/file.png')"
  317. :title="itemfile.fileName">
  318. </img>
  319. </router-link>
  320. </div>
  321. </div>
  322. </div>
  323. </el-card>
  324. </el-timeline-item>
  325. </el-timeline>
  326. </div>
  327. </div>
  328. </div>
  329. </dv-border-box-7>
  330. </div>
  331. <!-- <div class="forthis">-->
  332. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  333. <!-- <div class="i-list-con">-->
  334. <!-- <div class="this-con h-25 no-padding">-->
  335. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  336. <!-- <div class="z-info-btm-grp">-->
  337. <!-- <div class="z-info-btm-grp-top">-->
  338. <!-- <div class="z-info-btm-grp-left">-->
  339. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  340. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  341. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  342. <!-- </el-button>-->
  343. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  344. <!-- </el-button>-->
  345. <!-- </div>-->
  346. <!-- <div class="z-info-btm-grp-right">-->
  347. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  348. <!-- </el-button>-->
  349. <!-- </div>-->
  350. <!-- </div>-->
  351. <!-- </div>-->
  352. <!-- </div>-->
  353. <!-- </div>-->
  354. <!-- </div>-->
  355. <!-- </dv-border-box-7>-->
  356. <!-- </div>-->
  357. </div>
  358. </el-col>
  359. <!-- 左侧end -->
  360. </el-row>
  361. </div>
  362. </el-dialog>
  363. <el-dialog title="事件详情" :visible.sync="eventDialog_message" customClass="customWidth" v-if="eventDialog_message"
  364. @close="cancelEventShow()">
  365. <div class="dia-event-info">
  366. <el-row>
  367. <!-- 左侧 -->
  368. <el-col :span="18" class="dia-left">
  369. <div ref="imageTofile" style="height: 75vh;">
  370. <!-- 应急预案 -->
  371. <div class="dia-left-top">
  372. <div class="dia-left-top-tit">应急预案</div>
  373. <div class="dia-left-top-carousel">
  374. <el-carousel height="30px" direction="vertical" :interval="2000">
  375. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  376. <!-- <el-tooltip class="item" effect="dark" :content="visuForestCloudYuAnBo.reserveName" placement="top-start">
  377. <a :href="visuForestCloudYuAnBo.fileUrl" ><span><div style=" width: 50px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;word-break: keep-all;">{{ visuForestCloudYuAnBo.reserveName }}</div></span></a>
  378. </el-tooltip> -->
  379. <el-tooltip placement="top" popper-class="js-tps"
  380. :visible-arrow="visuForestCloudYuAnBo.reserveName.length>6">
  381. <div slot="content" class="leader-info-container">
  382. <div class="leader-info-list-con" v-show="visuForestCloudYuAnBo.reserveName.length>6">
  383. <h4>{{ visuForestCloudYuAnBo.reserveName }}</h4>
  384. </div>
  385. </div>
  386. <a
  387. :href="visuForestCloudYuAnBo.fileUrl">{{
  388. visuForestCloudYuAnBo.reserveName | ellipsisFont6
  389. }}</a>
  390. </el-tooltip>
  391. </el-carousel-item>
  392. <el-carousel-item v-else>
  393. <a href="#">暂未关联预案</a>
  394. </el-carousel-item>
  395. </el-carousel>
  396. </div>
  397. </div>
  398. <!-- 应急预案end -->
  399. <!-- 地图 -->
  400. <supermapDialogMessage ref="supermapDialogMessage" style="position: absolute; top:0;left: 0;"
  401. :mapDiv="'messageSuperMap'"
  402. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  403. :codes="['9fa5']"
  404. :isSideBySide="false" :isdynamicPlotting="true"/>
  405. <!-- <supermapDialog ref="supermapDialog" -->
  406. <!-- @preview="preview"/> -->
  407. <!-- 地图end -->
  408. </div>
  409. </el-col>
  410. <!-- 左侧end -->
  411. <!-- 右侧 -->
  412. <el-col :span="6" class="dia-right">
  413. <div class="e-right">
  414. <div class="forthis1">
  415. <dv-border-box-7 backgroundColor="#040b1f" style="padding-bottom:1rem ;">
  416. <div class="i-list-con">
  417. <div class="this-con">
  418. <div class="z-info-list" style="margin-top: 0;">
  419. <el-timeline>
  420. <el-timeline-item color="#2bacf7" :timestamp="item.createTime" placement="top"
  421. v-for="(item,index) in eventLogList">
  422. <el-card style="width: 40vh">
  423. <div class="z-info-list-con">
  424. <div class="user-and-time flex-d">
  425. <span>{{ item.createName }}</span>
  426. <span v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  427. class="el-icon-location"></i> {{ address }}</span>
  428. <span v-else></span>
  429. </div>
  430. <div class="z-info">
  431. <div class="this-con-list-info">
  432. {{ item.logContent }}
  433. </div>
  434. <div>
  435. <router-link to="#"
  436. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  437. v-for="(itemfile,indexfile) in item.fileVOs">
  438. <el-image :src="itemfile.fileUrl" v-if="itemfile.fileType=='image'"
  439. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  440. :z-index="10000"
  441. style="width:3rem; height:3rem;margin: 2px;" :title="itemfile.fileName">
  442. </el-image>
  443. <img v-else-if="itemfile.fileType=='video'"
  444. style="width:3rem; height:3rem;margin: 2px;"
  445. :src="require('@/assets/fileTypeImage/mp4.png')" :title="itemfile.fileName">
  446. </img>
  447. <img v-else-if="itemfile.fileType=='word'"
  448. style="width:3rem; height:3rem;margin: 2px;"
  449. :src="require('@/assets/fileTypeImage/word.png')" :title="itemfile.fileName">
  450. </img>
  451. <img v-else-if="itemfile.fileType=='excel'"
  452. style="width:3rem; height:3rem;margin: 2px;"
  453. :src="require('@/assets/fileTypeImage/excel.png')"
  454. :title="itemfile.fileName">
  455. </img>
  456. <img v-else style="width:3rem; height:3rem;margin: 2px;"
  457. :src="require('@/assets/fileTypeImage/file.png')" :title="itemfile.fileName">
  458. </img>
  459. </router-link>
  460. </div>
  461. </div>
  462. </div>
  463. </el-card>
  464. </el-timeline-item>
  465. </el-timeline>
  466. </div>
  467. </div>
  468. </div>
  469. </dv-border-box-7>
  470. </div>
  471. <div class="forthis2">
  472. <dv-border-box-7 backgroundColor="#040b1f">
  473. <div class="i-list-con">
  474. <div class="this-con h-25 no-padding">
  475. <div class="z-info-list" style="margin-top: 0;">
  476. <div class="z-info-btm-grp">
  477. <!-- <div class="z-info-btm-grp-top">-->
  478. <!-- <div class="z-info-btm-grp-left">-->
  479. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  480. <!-- </el-button>-->
  481. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传-->
  482. <!-- </el-button>-->
  483. <!-- </div>-->
  484. <!-- </div>-->
  485. <div class="z-info-btm-input">
  486. <el-input type="textarea" v-model="eventLog" :autosize="{ minRows: 7, maxRows: 7}"
  487. placeholder="请输入反馈信息">
  488. </el-input>
  489. <div class="z-info-btm-input-btn" v-if="eventStatusValue=='forest_event_status_1'">
  490. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  491. </el-button>
  492. </div>
  493. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_7'">
  494. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  495. </el-button>
  496. </div>
  497. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
  498. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  499. </el-button>
  500. </div>
  501. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'">
  502. <el-button size="small" v-if="statusFlag=='2'" icon="el-icon-success"
  503. style="text-align:left"
  504. @click="updateCentereventTEventcatalogueStatus('sh',false)">
  505. 审核
  506. </el-button>
  507. <el-button size="small" v-else-if="isExamine =='0'" icon="el-icon-loading"
  508. style="text-align:left">
  509. 请等待复核,复核通过后方可归档。
  510. </el-button>
  511. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  512. </el-button>
  513. </div>
  514. <div class="z-info-btm-input-btn" v-else>
  515. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  516. </el-button>
  517. </div>
  518. </div>
  519. </div>
  520. </div>
  521. </div>
  522. </div>
  523. </dv-border-box-7>
  524. </div>
  525. </div>
  526. </el-col>
  527. <!-- 左侧end -->
  528. </el-row>
  529. </div>
  530. </el-dialog>
  531. <el-dialog :title="eventConfirmTitle" :visible.sync="showEventConfirm" v-if="showEventConfirm" width="50%"
  532. style="top: 50px" @close="cancelEventConfirm()">
  533. <el-form label-width="80px">
  534. <el-form-item label="审核意见" v-if="eventStatusButton=='sh'">
  535. <el-input type="textarea" v-model="eventDescription" :autosize="{ minRows: 7, maxRows: 7}"
  536. placeholder="请输入审核意见">
  537. </el-input>
  538. </el-form-item>
  539. <el-form-item label="附件" prop="schedulePictures" v-if="eventStatusButton=='sh'">
  540. <ImageUpload ref="ImageUpload" :limit="10" :fileType="['jpg', 'png','jpeg']" :value="uploadAttachList"
  541. @input="getUrl"></ImageUpload>
  542. </el-form-item>
  543. <el-button class="sj-icon-btn" icon="el-icon-check" size="mini" type="primary" v-if="eventStatusButton=='sh'"
  544. @click="updateCentereventTEventcatalogueStatus('shtg',true)">通过
  545. </el-button>
  546. <el-button class="sj-icon-btn" icon="el-icon-circle-close" size="mini" type="primary" v-if="eventStatusButton=='sh'"
  547. @click="updateCentereventTEventcatalogueStatus('shbtg',true)">不通过
  548. </el-button>
  549. </el-form>
  550. </el-dialog>
  551. <!-- 任务选择领取部门弹层 -->
  552. <!--<el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body-->
  553. <!--@close="cancelEventConfirm()">-->
  554. <!--<el-form label-width="80px">-->
  555. <!--<el-form-item label="选择部门">-->
  556. <!--<el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">-->
  557. <!--<el-option v-for="item in deptOptions" :key="item.taskDeptId" :label="item.taskDeptName"-->
  558. <!--:value="{value:item.taskDeptId,label:item.taskDeptName}">-->
  559. <!--&lt;!&ndash;:disabled="item.eventStatus=='未处理' ? false:true"&ndash;&gt;-->
  560. <!--</el-option>-->
  561. <!--</el-select>-->
  562. <!--</el-form-item>-->
  563. <!--<el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"-->
  564. <!--@click="receiveTask(taskId,eventCode)">领取-->
  565. <!--</el-button>-->
  566. <!--<el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"-->
  567. <!--@click="refusedTask(taskId,eventCode)">拒绝-->
  568. <!--</el-button>-->
  569. <!--</el-form>-->
  570. <!--</el-dialog>-->
  571. <!-- 图片,视频预览 -->
  572. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" append-to-body>
  573. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  574. </el-dialog>
  575. </div>
  576. </template>
  577. <script>
  578. import {
  579. selectTaskBO,
  580. getEventDetail,
  581. selectTaskDtpts,
  582. receiveTask,
  583. refusedTask,
  584. selectMessageCount,
  585. selectMessageList,
  586. selectMessageById,
  587. listSJfl,
  588. listYuAn,
  589. selectByeventCode,
  590. sendTask,
  591. eventExamine,
  592. eventHandling, sendEventLog
  593. } from '@/api/forest'
  594. import {
  595. selectFarmByDeptId, linBanTreeselect, selectBanBylinBanTreesId, userDeptSelect
  596. } from '@/api/vBottomMenu'
  597. import supermapTaskDialog from '@/components/supermap' //超图
  598. import supermapDialogMessage from '@/components/supermap' //超图
  599. import TcPlayer from '@/components/TcPlayer' //视频预览
  600. import Cookies from 'js-cookie'
  601. import {selectConfigKey} from "@/api/system/config";
  602. import {getIconBg} from "@/api/components/sookaMapIcon";
  603. import {treeselectAll as deptTreeselect} from "@/api/system/dept";
  604. export default {
  605. components: {
  606. supermapTaskDialog,
  607. supermapDialogMessage,
  608. TcPlayer,
  609. },
  610. watch: {
  611. filterbanText(val) {
  612. console.log(this.$refs)
  613. this.$refs.banDept.filter(val)
  614. },
  615. filterchangText(val) {
  616. console.log(this.$refs)
  617. this.$refs.changDept.filter(val)
  618. }
  619. },
  620. data() {
  621. return {
  622. playVideo: '', //视频预览地址
  623. showTcPlayer: false, //视频预览弹窗
  624. filterbanText: '',
  625. filterchangText: '',
  626. filterbanList: [],
  627. filterbanListAll: [],
  628. filterchangList: [],
  629. filterchangListAll: [],
  630. eventId: null,
  631. eventCode: null,
  632. eventName: null,
  633. eventLog: null,
  634. longitude: null,
  635. latitude: null,
  636. eventLogList: [], //事件详情日志
  637. eventDialog: false, //事件详情弹层
  638. eventDialog_message: false, //事件详情弹层_消息
  639. taskStatusButton: null, //任务按钮
  640. visuForestCloudYuAnBo: null,
  641. address: null, //事件上报地址
  642. taskId: null, //任务ID
  643. showDeptConfirm: false, //任务领取选择部门弹窗
  644. deptOptions: [], //任务领取部门列表
  645. centerTaskTaskDepts: [], //任务领取部门
  646. deptName: [], //任务领取部门
  647. taskCount: 0, //任务数量
  648. taskList: 0, //任务列表
  649. btmTipIndent: '', //图例收起弹出
  650. eventLocationVisible: false,
  651. showChild: false,
  652. showBanChild: false, //林斑
  653. showMeasure: false, //测量工具
  654. showChangChild: false, //林场
  655. fastMenu: [
  656. {
  657. name: '事件定位',
  658. icon: 'iconfont sj-icon-sjdw',
  659. click: 'eventLocation'
  660. },
  661. // {
  662. // name: '图层切换',
  663. // icon: 'iconfont sj-icon-tcqh',
  664. // click: 'layerSwitching'
  665. // },
  666. {
  667. name: '测量工具',
  668. icon: 'iconfont sj-icon-clgj',
  669. click: 'editableLayers'
  670. },
  671. // {
  672. // name: '林班',
  673. // icon: 'iconfont sj-icon-lbzy',
  674. // click: 'forestban'
  675. // },
  676. //
  677. // {
  678. // name: '林场',
  679. // icon: 'iconfont sj-icon-lczy',
  680. // click: 'forestchang'
  681. // },
  682. {
  683. name: '电视墙',
  684. icon: 'el-icon-s-grid',
  685. click: 'TVWall'
  686. },
  687. // {
  688. // name: '无人机',
  689. // icon: 'iconfont sj-icon-landing',
  690. // click: 'wrj'
  691. // }
  692. ],
  693. deptChangOptionsLiandong: [],//查询林场部门树结构
  694. deptBanOptionsLiandong: [],//查询林班层级树结构
  695. // deptOptionsLiandong_baishan: [
  696. // {
  697. // label: '板石头国有林场',
  698. // id: 1,
  699. // children: [
  700. // ]
  701. // }, {
  702. // label: '五间房国有林场',
  703. // id: 2,
  704. // children: []
  705. // }, {
  706. // label: '三道沟国有林场',
  707. // id: 3,
  708. // children: []
  709. // }, {
  710. // label: '大镜沟国有林场',
  711. // id: 4,
  712. // children: []
  713. // }, {
  714. // label: '实验国有林场',
  715. // id: 5,
  716. // children: []
  717. // }
  718. // ],
  719. defaultProps: {
  720. children: 'children',
  721. label: 'label'
  722. },
  723. banCheckList: [], //林班
  724. banCheckList_Data: [], //林班 带数据图层
  725. changCheckList: [], //林场
  726. filterban: '', //林班搜索
  727. filterchang: '', //林场搜索
  728. btmCurrent: '',
  729. eventWarn: false, //webSocket事件问题警报标记
  730. messageCount: 0, //消息数量
  731. messageList: 0,//消息列表
  732. websock: '',
  733. wsurl: '',
  734. postName: '',
  735. postNameDept: '/messageDeptPush/',
  736. setIntervalWesocketPush: null,
  737. websockSid: {
  738. userId: '',
  739. deptId: ''
  740. },
  741. /** *****************事件流程***************************/
  742. showEventConfirm: false, //事件签收弹窗
  743. deptNameitem: '签收部门',
  744. sendDeptId: null, //签收部门/发起部门
  745. sendDeptName: null, //签收部门/发起部门
  746. sendEventType: null, //事件类型
  747. sendHuoZaiBanJing: 0, //火灾报告
  748. sendGuanLianYuAn: null, //关联预案
  749. sendUserFegin: [], //联系人
  750. sendTaskSource: null, //任务来源
  751. sendTaskTitle: null, //联动标题
  752. sendTaskContent: null, //联动内容
  753. sendLianDongDept: [], //联动部门
  754. eventTypeList: [], //事件类型列表
  755. guanLianYuAnList: [], //关联预案列表
  756. userFeginList: [], //联系人列表
  757. deptOptions: [], //签收部门
  758. deptOptionsLiandong: [], //联动部门
  759. eventStatusButton: null, //流程按钮标识
  760. eventConfirmTitle: null, //弹窗标题 ---签收 误报 重复 审核意见
  761. eventDescription: null, //审核意见
  762. uploadAttachList: [], //审核上传图片回显集合
  763. attachExamine: [], //审核图片集合
  764. /** *****************事件流程***************************/
  765. weosocket: false,
  766. }
  767. },
  768. created() {
  769. },
  770. mounted() {
  771. this.websockSid.userId = Cookies.get("userId")
  772. this.websockSid.deptId = Cookies.get("deptId")
  773. },
  774. destroyed() { //离开页面关闭Socket连接
  775. if (this.websock) {
  776. clearInterval(this.setIntervalWesocketPush)
  777. this.websock.close()
  778. this.weosocket = false
  779. this.websock = null
  780. }
  781. },
  782. methods: {
  783. deptTreeselect() {
  784. /** 查询林场部门树结构 */
  785. userDeptSelect().then(response => {
  786. this.deptChangOptionsLiandong = response.data
  787. })
  788. },
  789. initWebSocket(wsurl, postName, userId) {
  790. this.postName = postName
  791. this.wsurl = wsurl
  792. selectConfigKey(wsurl).then(res => {
  793. //初始化weosocket
  794. //const wsuri = 'ws://127.0.0.1:10003/eventPush/' + userId + '/' + eventTypeDl + '/' + eventType
  795. const wsuri = res.data + postName + userId
  796. // const wsuri = 'ws://172.28.20.82:10012/taskPush/'+userId
  797. this.websock = new WebSocket(wsuri)
  798. //console.log('建立websocket连接' + wsuri)
  799. this.websock.onopen = this.websocketonopen
  800. this.websock.onmessage = this.websocketonmessage
  801. this.websock.onerror = this.websocketonerror
  802. })
  803. },
  804. websocketonopen() { //连接建立之后执行send方法发送数据
  805. console.log('websocket连接成功')
  806. this.weosocket = true
  807. this.sendPing()
  808. },
  809. websocketonerror() { //连接建立失败重连
  810. this.initWebSocket(this.wsurl, this.postName, this.websockSid.userId)
  811. this.initWebSocket(this.wsurl, this.postNameDept, this.websockSid.deptId)
  812. },
  813. websocketonmessage(e) { //数据接收
  814. console.log('接收数据', e.data)
  815. // let data = "{\"fromId\":\"farming\"}";
  816. // 处理收到的消息
  817. this.handleWebSoceketEvent(e.data)
  818. },
  819. handleWebSoceketEvent(val) {
  820. let that = this
  821. let data = JSON.parse(val)
  822. console.log('数据数据数据数据', data)
  823. /**
  824. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  825. * eventPush: 事件列表消息
  826. * */
  827. let message = data.centermessageTPushrecord
  828. let message_dept = data.centermessageTPushrecord_dept
  829. let task = data.centertaskTTask
  830. if (null != message) {
  831. console.log(message)
  832. this.messageList.push(message)
  833. this.messageCount++
  834. }if (null != message_dept) {
  835. console.log(message_dept)
  836. this.messageList.push(message_dept)
  837. this.messageCount++
  838. } else if (null != task) {
  839. task.taskId = task.id
  840. this.taskList.push(task)
  841. this.taskCount++
  842. }
  843. // if (data.tag == "eventPush" && that.markersList.filter( item => data.eventCode == item.parameter).length == 0) {
  844. // getEventPush({eventCode: data.eventCode}).then((res) => {
  845. // if (res.data != undefined) {
  846. // //插入到第一条
  847. // this.eventList.unshift(res.data)
  848. // // 插入后删除最后一条 保证列表中为10条数据
  849. // if (this.eventList.length > 9)
  850. // this.eventList.splice(10, 1)
  851. // // 将收到的数据在地图上添加
  852. // this.getWebSocketEvent(res.data)
  853. // }
  854. // })
  855. // }
  856. console.log(data)
  857. },
  858. websocketsend(Data) { //数据发送
  859. this.websock.send(Data)
  860. },
  861. websocketclose(e) { //关闭
  862. console.log('断开连接', e)
  863. // clearInterval(this.setIntervalWesocketPush)
  864. this.weosocket = false
  865. },
  866. /**发送心跳
  867. * @param {number} time 心跳间隔毫秒 默认5000
  868. * @param {string} ping 心跳名称 默认字符串ping
  869. */
  870. sendPing(time = 60000, ping = {
  871. 'fromId': 'farming'
  872. }) {
  873. clearInterval(this.setIntervalWesocketPush)
  874. this.setIntervalWesocketPush = setInterval(() => {
  875. if (this.weosocket) {
  876. this.websock.send(JSON.stringify(ping))
  877. } else {
  878. // this.initWebSocket()
  879. }
  880. }, time)
  881. },
  882. linBanTreeselect() {
  883. /** 查询林班层级树结构 */
  884. linBanTreeselect().then(response => {
  885. this.deptBanOptionsLiandong = response.data
  886. })
  887. },
  888. selectMessageById(id) {
  889. selectMessageById(id).then(response => {
  890. /** 获取消息列表 */
  891. this.selectMessageList()
  892. })
  893. },
  894. /** 获取消息个数 */
  895. selectMessageCount() {
  896. selectMessageCount(Cookies.get('userId'),Cookies.get('deptId')).then(response => {
  897. this.messageCount = response.data
  898. })
  899. },
  900. /** 获取消息列表 */
  901. selectMessageList() {
  902. selectMessageList(Cookies.get('userId'), Cookies.get('deptId')).then(response => {
  903. this.messageList = response.data
  904. this.messageCount = response.data.length
  905. })
  906. this.initWebSocket('MESSAGE_SOCKET', '/messagePush/', this.websockSid.userId)
  907. this.initWebSocket('MESSAGE_SOCKET', '/messageDeptPush/', this.websockSid.deptId)
  908. },
  909. filterbanNode(value, data) {
  910. //树搜索
  911. if (!value) return true
  912. return data.label.indexOf(value) !== -1
  913. },
  914. filterchangNode(value, data) {
  915. //树搜索
  916. if (!value) return true
  917. return data.label.indexOf(value) !== -1
  918. },
  919. handlechangNodeClick(node, data, value) {
  920. //获取林场列表
  921. this.filterchang = ''
  922. selectFarmByDeptId({
  923. deptId: node.id
  924. }).then(res => {
  925. this.filterchangList = res.data
  926. this.filterchangListAll = res.data
  927. })
  928. },
  929. handlebanNodeClick(node, data, value) {
  930. //获取林班列表
  931. this.filterban = ''
  932. selectBanBylinBanTreesId(node.id).then(res => {
  933. this.filterbanList = res.data
  934. this.filterbanListAll = res.data
  935. })
  936. // if(node.id==1){
  937. // this.filterbanList=[
  938. // {
  939. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  940. // farmName: '板石街道',
  941. // datasetNames: ['bs:banshijiedao'],
  942. // name: 'banshijiedao@bs'
  943. // },
  944. // {
  945. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  946. // farmName: '河口街道',
  947. // datasetNames: ['bs:hekoujiedao'],
  948. // name: 'hekoujiedao@bs'
  949. // },
  950. // {
  951. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  952. // farmName: '七道江镇',
  953. // datasetNames: ['bs:qidaojiangzhen'],
  954. // name: 'qidaojiangzhen@bs'
  955. // },
  956. // ]
  957. // }else if (node.id==2){
  958. // this.filterbanList=[
  959. // {
  960. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/WuJianFangGuoYouLinChang',
  961. // farmName: '六道江镇',
  962. // datasetNames: ['bs:WuJianFangGuoYouLinChang'],
  963. // name: 'WuJianFangGuoYouLinChang@bs'
  964. // },
  965. // ]
  966. // }else if (node.id==3){
  967. // this.filterbanList=[
  968. // {
  969. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/SanDaoGouGuoYouLinChang',
  970. // farmName: '三道沟镇',
  971. // datasetNames: ['bs:SanDaoGouGuoYouLinChang'],
  972. // name: 'SanDaoGouGuoYouLinChang@bs'
  973. // },
  974. // ]
  975. // }else if (node.id==4){
  976. // this.filterbanList=[
  977. // {
  978. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/DaJingGouGuoYouLinChang',
  979. // farmName: '红土崖镇',
  980. // datasetNames: ['bs:DaJingGouGuoYouLinChang'],
  981. // name: 'DaJingGouGuoYouLinChang@bs'
  982. // },
  983. // ]
  984. // }else if (node.id==5){
  985. // this.filterbanList=[
  986. // {
  987. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/ShiYanGuoYouLinChang',
  988. // farmName: '大阳岔镇',
  989. // datasetNames: ['bs:ShiYanGuoYouLinChang'],
  990. // name: 'ShiYanGuoYouLinChang@bs'
  991. // }
  992. // ]
  993. // }
  994. },
  995. // 返回图片列表
  996. assetTypeAnImage(filePath) {
  997. let imageList = []
  998. if (filePath != null && filePath.length > 0) {
  999. for (let i = 0; i < filePath.length; i++) {
  1000. if (filePath[i].fileType == 'image') {
  1001. imageList.push(filePath[i].fileUrl)
  1002. }
  1003. }
  1004. }
  1005. return imageList
  1006. },
  1007. clickFile(fileUrl, fileName, fileType) {
  1008. if (fileType == 'image') {
  1009. return
  1010. } else if (fileType == 'video') {
  1011. this.showTcPlayer = true
  1012. setTimeout(() => {
  1013. this.playVideo = fileUrl
  1014. }, 500)
  1015. } else {
  1016. let a = document.createElement('a')
  1017. a.download = fileName
  1018. a.href = fileUrl
  1019. a.target = '_blank'
  1020. a.click()
  1021. }
  1022. },
  1023. setValue(event) {
  1024. this.centerTaskTaskDepts = []
  1025. //签收选择部门
  1026. if (event != null && event.length > 0) {
  1027. for (let i = 0; i < event.length; i++) {
  1028. if (event[i].label != undefined && event[i].value != undefined) {
  1029. this.centerTaskTaskDepts.push({
  1030. taskDeptId: event[i].value,
  1031. taskDeptName: event[i].label
  1032. })
  1033. }
  1034. }
  1035. }
  1036. },
  1037. receiveTask(taskId, eventCode) {
  1038. let param = {
  1039. taskId: taskId,
  1040. eventCode: eventCode,
  1041. // centerTaskTaskDepts: this.centerTaskTaskDepts
  1042. }
  1043. receiveTask(param).then(res => {
  1044. //任务领取
  1045. if (res.code == 200) {
  1046. this.$message.success(`任务领取成功!`)
  1047. this.deptOptions = []
  1048. this.deptName = []
  1049. this.centerTaskTaskDepts = []
  1050. //刷新任务列表
  1051. this.selectTaskList()
  1052. this.showDeptConfirm = false
  1053. }
  1054. })
  1055. },
  1056. refusedTask(taskId, eventCode) {
  1057. let param = {
  1058. taskId: taskId,
  1059. eventCode: eventCode,
  1060. // centerTaskTaskDepts: this.centerTaskTaskDepts
  1061. }
  1062. refusedTask(param).then(res => {
  1063. //任务拒绝
  1064. if (res.code == 200) {
  1065. this.$message.success(`任务拒绝成功!`)
  1066. this.deptOptions = []
  1067. this.deptName = []
  1068. this.centerTaskTaskDepts = []
  1069. //刷新任务列表
  1070. this.selectTaskList()
  1071. this.showDeptConfirm = false
  1072. }
  1073. })
  1074. },
  1075. selectTaskDtpts(taskId, eventCode, state) {
  1076. this.taskId = taskId
  1077. this.eventCode = eventCode
  1078. selectTaskDtpts({
  1079. taskId: taskId
  1080. }).then(res => {
  1081. //任务领取部门列表
  1082. if (res.code == 200) {
  1083. this.deptOptions = res.data
  1084. this.taskStatusButton = state
  1085. this.showDeptConfirm = true
  1086. }
  1087. })
  1088. },
  1089. cancelEventShow() {
  1090. console.log('关闭事件弹窗')
  1091. this.eventCode = null
  1092. this.eventLogList = []
  1093. },
  1094. cancelEventConfirm() {
  1095. //关闭事件签收弹窗
  1096. this.sendDeptId = null
  1097. this.sendDeptName = null
  1098. this.sendUserFegin = []
  1099. this.sendEventType = null
  1100. this.sendHuoZaiBanJing = 0
  1101. this.sendGuanLianYuAn = null
  1102. this.sendTaskTitle = null
  1103. this.sendTaskSource = null
  1104. this.sendTaskContent = null
  1105. this.sendLianDongDept = []
  1106. this.eventTypeList = [] //事件类型列表
  1107. this.guanLianYuAnList = [] //关联预案列表
  1108. this.deptOptions = [] //签收部门
  1109. this.deptOptionsLiandong = [] //联动部门
  1110. this.eventStatusButton = null //流程按钮标识
  1111. this.eventConfirmTitle = null //流程按钮标识
  1112. this.resourcesListCheck = []
  1113. this.userFeginList = [] //联系人列表
  1114. this.eventDescription = null//审核意见
  1115. this.uploadAttachList = [] //审核上传图片回显集合
  1116. this.attachExamine = [] //审核图片集合
  1117. },
  1118. cancelEventConfirm_send() {
  1119. //清空表单数据
  1120. this.sendDeptId = null
  1121. this.sendDeptName = null
  1122. this.sendUserFegin = []
  1123. this.sendEventType = null
  1124. this.sendHuoZaiBanJing = 0
  1125. this.sendGuanLianYuAn = null
  1126. this.sendTaskTitle = null
  1127. this.sendTaskSource = null
  1128. this.sendTaskContent = null
  1129. this.sendLianDongDept = []
  1130. this.eventTypeList = [] //事件类型列表
  1131. this.guanLianYuAnList = [] //关联预案列表
  1132. this.deptOptions = [] //签收部门
  1133. this.deptOptionsLiandong = [] //联动部门
  1134. this.userFeginList = [] //联系人列表
  1135. this.eventDescription = null //审核意见
  1136. this.uploadAttachList = [] //审核上传图片回显集合
  1137. this.attachExamine = [] //审核图片集合
  1138. },
  1139. showEventDialog(eventCode) {
  1140. this.eventCode = eventCode
  1141. let that = this
  1142. //获取事件详情
  1143. getEventDetail({
  1144. eventCode: eventCode
  1145. }).then(res => {
  1146. this.eventDialog = true
  1147. this.eventLogList = res.data.eventlog
  1148. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1149. this.address = res.data.catalogue.address
  1150. this.eventType = res.data.catalogue.eventType
  1151. this.eventId = res.data.catalogue.id
  1152. this.longitude = res.data.catalogue.longitude
  1153. this.latitude = res.data.catalogue.latitude
  1154. let markersMap = {
  1155. lng: 124.59,
  1156. lat: 43.02,
  1157. icon: 'marker',
  1158. bindPopupHtml: '',
  1159. click: '',
  1160. parameter: '',
  1161. keepBindPopup: false,
  1162. isAggregation: true,
  1163. radius: 0
  1164. }
  1165. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1166. markersMap.icon = 'sj-icon-map-xinshangbao'
  1167. }
  1168. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1169. markersMap.icon = 'sj-icon-map-cuiban'
  1170. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1171. markersMap.icon = 'sj-icon-map-qianshou'
  1172. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1173. markersMap.icon = 'sj-icon-map-banjie'
  1174. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1175. markersMap.icon = 'sj-icon-map-guidang'
  1176. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1177. markersMap.icon = 'sj-icon-map-queren'
  1178. }
  1179. markersMap.lng = res.data.catalogue.longitude
  1180. markersMap.lat = res.data.catalogue.latitude
  1181. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1182. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0]
  1183. .fireRadius > 0) {
  1184. markersMap.radius = res.data.eventdetail[0].fireRadius
  1185. }
  1186. setTimeout(() => {
  1187. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  1188. that.$refs.supermapTaskDialog.clearM(false)
  1189. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  1190. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue.latitude, res.data
  1191. .catalogue.longitude)
  1192. }, 1000)
  1193. })
  1194. },
  1195. showEventDialog_message(eventCode) {
  1196. this.eventCode = eventCode
  1197. let that = this
  1198. //获取事件详情
  1199. getEventDetail({
  1200. eventCode: eventCode
  1201. }).then(res => {
  1202. let markersMapList = [];
  1203. that.eventDialog_message = true
  1204. that.eventLogList = res.data.eventlog //日志列表
  1205. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1206. that.address = res.data.catalogue.address
  1207. that.eventStatusValue = res.data.catalogue.eventStatusValue
  1208. that.eventType = res.data.catalogue.eventType
  1209. that.statusFlag = res.data.catalogue.statusFlag
  1210. that.dataStatus = res.data.catalogue.dataStatus
  1211. that.deptId = res.data.catalogue.deptId
  1212. that.eventId = res.data.catalogue.id
  1213. that.longitude = res.data.catalogue.longitude
  1214. that.latitude = res.data.catalogue.latitude
  1215. that.eventName = res.data.catalogue.eventName
  1216. that.version = res.data.catalogue.version
  1217. that.eventTypeXl = res.data.catalogue.eventTypeXl
  1218. that.isExamine = res.data.catalogue.isExamine
  1219. let markersMap = {
  1220. lng: 124.59,
  1221. lat: 43.02,
  1222. icon: 'marker',
  1223. bindPopupHtml: '',
  1224. click: '',
  1225. parameter: '',
  1226. keepBindPopup: false,
  1227. isAggregation: true,
  1228. radius: 0
  1229. }
  1230. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1231. markersMap.icon = 'sj-icon-map-xinshangbao'
  1232. }
  1233. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1234. markersMap.icon = 'sj-icon-map-cuiban'
  1235. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1236. markersMap.icon = 'sj-icon-map-qianshou'
  1237. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1238. markersMap.icon = 'sj-icon-map-banjie'
  1239. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1240. markersMap.icon = 'sj-icon-map-guidang'
  1241. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1242. markersMap.icon = 'sj-icon-map-queren'
  1243. }
  1244. markersMap.lng = res.data.catalogue.longitude
  1245. markersMap.lat = res.data.catalogue.latitude
  1246. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1247. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  1248. 0) {
  1249. markersMap.radius = res.data.eventdetail[0].fireRadius
  1250. }
  1251. markersMapList.push(markersMap);
  1252. if (res.data.centermonitorTCamera != null) {
  1253. that.cameraCode = res.data.centermonitorTCamera.id;
  1254. let markersMap = {
  1255. lng: 124.59,
  1256. lat: 43.02,
  1257. icon: 'camera',
  1258. bindPopupHtml: '',
  1259. click: 'preview',
  1260. parameter: {
  1261. code: res.data.centermonitorTCamera.cameraCode,
  1262. type: res.data.centermonitorTCamera.cameraFactory,
  1263. name: res.data.centermonitorTCamera.cameraName
  1264. },
  1265. keepBindPopup: false,
  1266. isAggregation: true,
  1267. radius: 0
  1268. }
  1269. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1270. '<span>' +
  1271. ' <div class="d-l-con">' +
  1272. ' <div class="d-l-l-text">' +
  1273. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1274. ' </div>' +
  1275. ' </div>' +
  1276. ' </span>' +
  1277. '<span>' +
  1278. '</div>'
  1279. markersMap.lng = res.data.centermonitorTCamera.longitude
  1280. markersMap.lat = res.data.centermonitorTCamera.latitude
  1281. markersMapList.push(markersMap)
  1282. }
  1283. setTimeout(() => {
  1284. that.$refs.supermapDialogMessage.dynamicPlotting() //弹出动态绘制窗口,防止截图位置改变
  1285. that.$refs.supermapDialogMessage.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  1286. that.$refs.supermapDialogMessage.clearM(false)
  1287. that.$refs.supermapDialogMessage.clearM(true)
  1288. that.$refs.supermapDialogMessage.setMarkersRadius(markersMapList)
  1289. }, 2000)
  1290. })
  1291. },
  1292. getUrl(urlList) {
  1293. this.uploadAttachList = urlList
  1294. this.attachExamine = []
  1295. urlList.forEach(item => {
  1296. var attachPath = {
  1297. attachPath: item.name
  1298. }
  1299. this.attachExamine.push(attachPath)
  1300. });
  1301. },
  1302. sendEventLog() {
  1303. if (this.eventLog == '' || this.eventLog == null) {
  1304. return;
  1305. }
  1306. //日志发送
  1307. let param = {
  1308. eventCode: this.eventCode,
  1309. logContent: this.eventLog,
  1310. operation: "bus_oper_type_2",
  1311. operationType: "log_oper_type_1"
  1312. }
  1313. sendEventLog(param).then(res => {
  1314. if (res.code == 200) {
  1315. this.$message.success(`发送成功!`)
  1316. this.eventLog = null
  1317. this.refreshEventDialog(this.eventCode)
  1318. }
  1319. })
  1320. },
  1321. /**
  1322. * eventStatusValue 事件状态
  1323. * isSend 是否办理
  1324. * */
  1325. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1326. this.eventStatusButton = eventStatus
  1327. let that = this
  1328. if (!isSend) { //事件弹窗
  1329. if (eventStatus == 'sh') { //审核
  1330. that.eventConfirmTitle = '事件审核'
  1331. that.showEventConfirm = true
  1332. }
  1333. } else { //事件提交后台
  1334. if (eventStatus == 'shtg') {
  1335. that.eventStatusButton = 'sh'
  1336. if (that.eventDescription == '' || that.eventDescription == null) {
  1337. that.$message.error(`请填写审核意见!`)
  1338. return
  1339. }
  1340. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  1341. that.$message.error(`请上传审核图片!`)
  1342. return
  1343. }
  1344. //事件处理流程--审核通过
  1345. let param = {
  1346. id: that.eventId, //事件id
  1347. eventCode: that.eventCode, //事件编号
  1348. eventName: that.eventName, //事件名称
  1349. isExamine: 1, //通过传1,不通过传0
  1350. version: that.version,
  1351. eventDescription: that.eventDescription, //审核意见
  1352. attach: that.attachExamine
  1353. }
  1354. eventExamine(param).then(res => {
  1355. if (res.code == 200) {
  1356. that.$message.success(`处理成功!`)
  1357. that.refreshEvent(that.eventCode)
  1358. that.selectMessageList()
  1359. that.cancelEventConfirm_send()
  1360. that.showEventConfirm = false
  1361. } else if (res.code == 304) {
  1362. console.log(that.eventCode)
  1363. this.$message.warning(res.msg)
  1364. this.showEventDialog_message(that.eventCode)
  1365. //获取事件详情
  1366. }
  1367. that.attachExamine = []
  1368. that.uploadAttachList = []
  1369. that.eventDescription = ""
  1370. })
  1371. } else if (eventStatus == 'shbtg') {
  1372. that.eventStatusButton = 'sh'
  1373. if (that.eventDescription == '' || that.eventDescription == null) {
  1374. that.$message.error(`请填写审核意见!`)
  1375. return true;
  1376. }
  1377. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  1378. that.$message.error(`请上传审核图片!`)
  1379. return true;
  1380. }
  1381. //事件处理流程--审核不通过
  1382. let param = {
  1383. id: that.eventId, //事件id
  1384. eventCode: that.eventCode, //事件编号
  1385. eventName: that.eventName, //事件名称
  1386. isExamine: 0, //通过传1,不通过传0
  1387. version: that.version,
  1388. eventDescription: that.eventDescription, //审核意见
  1389. attach: that.attachExamine
  1390. }
  1391. eventExamine(param).then(res => {
  1392. if (res.code == 200) {
  1393. that.$message.success(`处理成功!`)
  1394. that.refreshEvent(that.eventCode)
  1395. that.selectMessageList()
  1396. that.cancelEventConfirm_send()
  1397. that.showEventConfirm = false
  1398. } else if (res.code == 304) {
  1399. console.log(that.eventCode)
  1400. this.$message.warning(res.msg)
  1401. this.showEventDialog_message(that.eventCode)
  1402. //获取事件详情
  1403. }
  1404. that.attachExamine = []
  1405. that.uploadAttachList = []
  1406. that.eventDescription = ""
  1407. })
  1408. }
  1409. }
  1410. },
  1411. refreshEvent(eventCode) {
  1412. this.eventCode = eventCode
  1413. let that = this
  1414. //刷新--事件详情
  1415. getEventDetail({
  1416. eventCode: eventCode
  1417. }).then(res => {
  1418. let markersMapList = [];
  1419. that.eventLogList = res.data.eventlog
  1420. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1421. that.address = res.data.catalogue.address
  1422. that.eventStatusValue = res.data.catalogue.eventStatusValue
  1423. that.eventType = res.data.catalogue.eventType
  1424. that.statusFlag = res.data.catalogue.statusFlag
  1425. that.dataStatus = res.data.catalogue.dataStatus
  1426. that.deptId = res.data.catalogue.deptId
  1427. that.eventId = res.data.catalogue.id
  1428. that.latitude = res.data.catalogue.latitude
  1429. that.longitude = res.data.catalogue.longitude
  1430. that.eventName = res.data.catalogue.eventName
  1431. that.version = res.data.catalogue.version
  1432. that.eventTypeXl = res.data.catalogue.eventTypeXl
  1433. that.isExamine = res.data.catalogue.isExamine
  1434. let markersMap = {
  1435. lng: 124.59,
  1436. lat: 43.02,
  1437. icon: 'marker',
  1438. bindPopupHtml: '',
  1439. click: '',
  1440. parameter: '',
  1441. keepBindPopup: false,
  1442. isAggregation: true,
  1443. radius: 0
  1444. }
  1445. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1446. markersMap.icon = 'sj-icon-map-xinshangbao'
  1447. }
  1448. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1449. markersMap.icon = 'sj-icon-map-cuiban'
  1450. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1451. markersMap.icon = 'sj-icon-map-qianshou'
  1452. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1453. markersMap.icon = 'sj-icon-map-banjie'
  1454. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1455. markersMap.icon = 'sj-icon-map-guidang'
  1456. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1457. markersMap.icon = 'sj-icon-map-queren'
  1458. }
  1459. markersMap.lng = res.data.catalogue.longitude
  1460. markersMap.lat = res.data.catalogue.latitude
  1461. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1462. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  1463. 0) {
  1464. markersMap.radius = res.data.eventdetail[0].fireRadius
  1465. }
  1466. markersMapList.push(markersMap)
  1467. if (res.data.centermonitorTCamera != null) {
  1468. let markersMap = {
  1469. lng: 124.59,
  1470. lat: 43.02,
  1471. icon: 'camera',
  1472. bindPopupHtml: '',
  1473. click: 'preview',
  1474. parameter: {
  1475. code: res.data.centermonitorTCamera.cameraCode,
  1476. type: res.data.centermonitorTCamera.cameraFactory,
  1477. name: res.data.centermonitorTCamera.cameraName
  1478. },
  1479. keepBindPopup: false,
  1480. isAggregation: true,
  1481. radius: 0
  1482. }
  1483. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1484. '<span>' +
  1485. ' <div class="d-l-con">' +
  1486. ' <div class="d-l-l-text">' +
  1487. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1488. ' </div>' +
  1489. ' </div>' +
  1490. ' </span>' +
  1491. '<span>' +
  1492. '</div>'
  1493. markersMap.lng = res.data.centermonitorTCamera.longitude
  1494. markersMap.lat = res.data.centermonitorTCamera.latitude
  1495. markersMapList.push(markersMap)
  1496. }
  1497. setTimeout(() => {
  1498. that.$refs.supermapDialogMessage.clearM(false)
  1499. that.$refs.supermapDialogMessage.clearM(true)
  1500. that.$refs.supermapDialogMessage.setMarkersRadius(markersMapList)
  1501. that.$refs.supermapDialogMessage.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  1502. }, 2000)
  1503. })
  1504. },
  1505. refreshEventDialog(eventCode) {
  1506. //刷新--事件日志12
  1507. getEventDetail({
  1508. eventCode: eventCode
  1509. }).then(res => {
  1510. this.eventLogList = res.data.eventlog
  1511. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1512. })
  1513. },
  1514. selectTaskList: async function () {
  1515. //获取任务列表
  1516. selectTaskBO().then(res => {
  1517. this.taskList = res.data
  1518. this.taskCount = res.data.length
  1519. })
  1520. this.initWebSocket('TASK_SOCKET', '/taskPush/', this.websockSid.deptId)
  1521. },
  1522. handleCheckedCitiesChangeBan(value) {
  1523. this.choseLayerSwitchingList(this.banCheckList)
  1524. },
  1525. handleCheckedCitiesChangeBan_Data(value) {
  1526. if (this.banCheckList_Data.length > 1) {
  1527. this.banCheckList_Data.splice(0, 1)
  1528. }
  1529. this.choseLayerSwitchingList_Data(this.banCheckList_Data)
  1530. },
  1531. handleCheckedCitiesChangeChang(value) {
  1532. this.choseLayerSwitchingList(this.changCheckList)
  1533. },
  1534. refresh() {
  1535. window.location.reload()
  1536. },
  1537. showDialog(click) {
  1538. window.showDialog(click)
  1539. },
  1540. // 测量距离
  1541. choseMeasuringDistance() {
  1542. this.$parent.$refs.supermap.choseMeasuringDistance()
  1543. },
  1544. // 测量面积
  1545. choseMeasuringArea() {
  1546. this.$parent.$refs.supermap.choseMeasuringArea()
  1547. },
  1548. // 测量清除
  1549. choseMeasuringClear() {
  1550. this.$parent.$refs.supermap.choseMeasuringAreaAll()
  1551. },
  1552. choseLayerSwitching(url, isClear) {
  1553. window.choseLayerSwitching(url, isClear)
  1554. },
  1555. choseLayerSwitchingList(urlList) { //选择图层(传递数组)
  1556. window.choseLayerSwitchingList(urlList)
  1557. },
  1558. choseLayerSwitchingList_Data(urlList) { //选择图层(传递数组)
  1559. window.choseLayerSwitchingList_Data(urlList)
  1560. },
  1561. forestban() {
  1562. window.forestban()
  1563. console.log('林班')
  1564. },
  1565. forestchang() {
  1566. window.forestchang()
  1567. console.log('林场')
  1568. },
  1569. closeBanChild() {
  1570. this.banCheckList = []
  1571. this.showBanChild = false
  1572. },
  1573. closeChangChild() {
  1574. this.changCheckList = []
  1575. this.showChangChild = false
  1576. },
  1577. //图例收起弹出
  1578. btmIndent() {
  1579. if (this.btmTipIndent == '') {
  1580. this.btmTipIndent = 'btm-tip-to-right'
  1581. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  1582. this.btmTipIndent = ''
  1583. }
  1584. },
  1585. searchFilterchang(filterchang) {
  1586. //林场列表搜索
  1587. let searchFilterchangnew = []
  1588. if (filterchang != null && filterchang != '') {
  1589. for (var i = 0; i < this.filterchangListAll.length; i++) {
  1590. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  1591. searchFilterchangnew.push(this.filterchangListAll[i])
  1592. }
  1593. }
  1594. this.filterchangList = searchFilterchangnew
  1595. } else {
  1596. this.filterchangList = this.filterchangListAll
  1597. }
  1598. },
  1599. searchFilterban(filterban) {
  1600. //林场列表搜索
  1601. let searchFilterbannew = []
  1602. if (filterban != null && filterban != '') {
  1603. for (var i = 0; i < this.filterbanListAll.length; i++) {
  1604. if (this.filterbanListAll[i].farmName.indexOf(filterban) > -1) {
  1605. searchFilterbannew.push(this.filterbanListAll[i])
  1606. }
  1607. }
  1608. this.filterbanList = searchFilterbannew
  1609. } else {
  1610. this.filterbanList = this.filterbanListAll
  1611. }
  1612. },
  1613. //标记警报
  1614. updateAlert() {
  1615. this.eventWarn = true
  1616. },
  1617. updateAlertFalse() {
  1618. this.eventWarn = false
  1619. this.$emit('stopAudio')
  1620. }
  1621. }
  1622. }
  1623. </script>
  1624. <style rel="stylesheet/scss" lang="scss" scoped>
  1625. @import '@/assets/styles/base.scss';
  1626. .dotClass {
  1627. width: 10px;
  1628. height: 10px;
  1629. border-radius: 50%;
  1630. display: block;
  1631. margin: -5px;
  1632. }
  1633. .redClass {
  1634. background-color: red;
  1635. width: 10px;
  1636. height: 10px;
  1637. border-radius: 50%;
  1638. display: block;
  1639. }
  1640. .btm-box {
  1641. width: 100%;
  1642. height: auto;
  1643. background: linear-gradient($btmMemu);
  1644. position: absolute;
  1645. z-index: 999;
  1646. bottom: 0;
  1647. height: 2.5rem;
  1648. display: flex;
  1649. align-items: center;
  1650. z-index: 9999;
  1651. .light {
  1652. position: absolute;
  1653. top: -.5rem;
  1654. }
  1655. .btm-left {
  1656. position: absolute;
  1657. font-size: .7rem;
  1658. height: 2rem;
  1659. line-height: 2rem;
  1660. border: 1px $searchBorder;
  1661. border-left: none;
  1662. color: $inBlue;
  1663. display: flex;
  1664. -webkit-transform: translateX(-24rem) !important;
  1665. transform: translateX(-24rem) !important;
  1666. transition: all 0.5s ease-in-out !important;
  1667. .btm-legend {
  1668. height: 2rem;
  1669. text-align: center;
  1670. color: $inBlue;
  1671. padding: 0 .5rem;
  1672. cursor: pointer;
  1673. }
  1674. .btm-legend:hover {
  1675. background-color: $tipHover;
  1676. color: $white;
  1677. }
  1678. .btm-left-tip {
  1679. display: flex;
  1680. align-items: center;
  1681. margin: 0 .5rem;
  1682. .btm-left-block {
  1683. width: 1rem;
  1684. height: 1rem;
  1685. margin-right: .3rem;
  1686. border-radius: .2rem;
  1687. i{
  1688. font-size: 10px;
  1689. color: #fff;
  1690. line-height: 1rem;
  1691. display: block;
  1692. margin: auto auto;
  1693. text-align: center;
  1694. }
  1695. }
  1696. .btm-left-state-c1 {
  1697. background-color: $eventStateColor-xsb;
  1698. }
  1699. .btm-left-state-c2 {
  1700. background-color: $eventStateColor-cb;
  1701. }
  1702. .btm-left-state-c3-1 {
  1703. background-color: $eventStateColor-qr;
  1704. }
  1705. .btm-left-state-c3 {
  1706. background-color: $eventStateColor-yqs;
  1707. }
  1708. .btm-left-state-c4 {
  1709. background-color: $eventStateColor-ld;
  1710. }
  1711. .btm-left-state-c5 {
  1712. background-color: $eventStateColor-bj;
  1713. }
  1714. .btm-left-state-c6 {
  1715. background-color: $eventStateColor-tb;
  1716. }
  1717. }
  1718. }
  1719. .btm-tip-to-right {
  1720. -webkit-transform: translateX(0) !important;
  1721. transform: translateX(0) !important;
  1722. transition: all 0.5s ease-in-out !important;
  1723. }
  1724. .bottom-menu-normal {
  1725. max-width: 70%;
  1726. padding: 0 3rem;
  1727. position: absolute;
  1728. left: 50%;
  1729. transform: translateX(-50%);
  1730. bottom: 0;
  1731. z-index: 999;
  1732. border-radius: 5px;
  1733. display: flex;
  1734. justify-content: center;
  1735. align-items: center;
  1736. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  1737. // background-size: cover;
  1738. .btm-m-con {
  1739. position: relative;
  1740. color: $inBlue;
  1741. font-size: .5rem;
  1742. padding: .6rem 1rem;
  1743. display: flex;
  1744. align-items: center;
  1745. justify-content: center;
  1746. -webkit-transform: translateY(0);
  1747. transform: translateY(0);
  1748. transition: all 0.2s ease-in-out;
  1749. cursor: pointer;
  1750. white-space: nowrap;
  1751. i {
  1752. font-size: 1rem;
  1753. color: $inBlue;
  1754. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  1755. margin-right: 0.2rem;
  1756. }
  1757. .nav-child {
  1758. text-shadow: none !important;
  1759. position: absolute;
  1760. bottom: 3rem;
  1761. border: 1px solid saddlebrown;
  1762. padding: .5rem;
  1763. -moz-border-radius-topleft: 0;
  1764. -moz-border-radius-bottomright: 0;
  1765. background-color: $barBgc;
  1766. box-shadow: $barShadow;
  1767. border: 1px $barBorder;
  1768. left: 50%;
  1769. transform: translateX(-50%);
  1770. color: $inBlue;
  1771. .nav-child-btn {
  1772. padding: .2rem;
  1773. }
  1774. .forestban {
  1775. display: flex;
  1776. .forestban-con {
  1777. width: 20rem;
  1778. height: 20rem;
  1779. overflow-y: scroll;
  1780. border: 1px solid rgba(51, 70, 127, 0.7);
  1781. }
  1782. .forestban-right {
  1783. width: 10rem;
  1784. height: 20rem;
  1785. overflow-y: scroll;
  1786. padding: 0 1rem;
  1787. .el-checkbox-group {
  1788. display: flex;
  1789. flex-direction: column;
  1790. label {
  1791. padding: .4rem 0;
  1792. }
  1793. .el-checkbox {
  1794. color: $white;
  1795. }
  1796. }
  1797. }
  1798. }
  1799. }
  1800. }
  1801. .btm-m-con:hover,
  1802. .on {
  1803. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1804. -webkit-transform: translateX(0.2rem);
  1805. transform: translateX(0.2rem);
  1806. transition: all 0.2s ease-in-out;
  1807. .nav-child {
  1808. text-shadow: none !important;
  1809. }
  1810. i {
  1811. color: $inBlueHover;
  1812. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1813. }
  1814. }
  1815. }
  1816. .btm-right {
  1817. position: absolute;
  1818. font-size: .7rem;
  1819. height: 2rem;
  1820. display: flex;
  1821. right: 1rem;
  1822. align-items: center;
  1823. .el-badge {
  1824. display: flex !important;
  1825. margin-left: 1.5rem;
  1826. button {
  1827. padding: 0 .3rem;
  1828. height: 1.5rem;
  1829. background-color: #112543;
  1830. color: $inBlue;
  1831. border: 1px $searchBorder;
  1832. }
  1833. }
  1834. .el-badge:hover {
  1835. -webkit-transform: translateX(0.1rem);
  1836. transform: translateX(0.1rem);
  1837. transition: all 0.2s ease-in-out;
  1838. button {
  1839. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1840. }
  1841. }
  1842. }
  1843. }
  1844. .btm-r-pop-info {
  1845. display: flex;
  1846. width: 35rem;
  1847. flex-direction: column;
  1848. max-height: 85vh;
  1849. min-height: fit-content;
  1850. overflow-y: scroll;
  1851. padding: 1rem;
  1852. .btm-r-pop-info-box:hover {
  1853. box-shadow: $shadowListHover;
  1854. color: $inBlue;
  1855. border: 1px $countBorder;
  1856. }
  1857. .btm-r-pop-info-box {
  1858. width: 100%;
  1859. display: flex;
  1860. flex-direction: column;
  1861. background-color: $deepBG;
  1862. padding: .5rem;
  1863. border-radius: .5rem;
  1864. color: $inBlue;
  1865. border: 1px $searchBorder;
  1866. margin-bottom: 1rem;
  1867. .btm-r-pop-info-tit {
  1868. display: flex;
  1869. padding: .5rem;
  1870. h3 {
  1871. font-weight: bolder;
  1872. }
  1873. }
  1874. .btm-r-pop-info-con {
  1875. padding: .5rem;
  1876. display: flex;
  1877. flex-direction: column;
  1878. border-top: 1px $searchBorder;
  1879. border-bottom: 1px $searchBorder;
  1880. .btm-r-pop-info-list {
  1881. display: flex;
  1882. padding: .3rem 0;
  1883. .btm-r-pop-info-list-name {
  1884. width: 3.6rem;
  1885. text-align: right;
  1886. margin-right: 1rem;
  1887. }
  1888. .btm-r-pop-info-list-text {
  1889. }
  1890. }
  1891. }
  1892. .btm-r-pop-info-btm {
  1893. padding: .5rem;
  1894. display: flex;
  1895. justify-content: space-between;
  1896. .btm-r-pop-info-btm-btn {
  1897. button {
  1898. padding: .5rem;
  1899. }
  1900. }
  1901. }
  1902. }
  1903. }
  1904. //警铃
  1905. .fire-tip {
  1906. text-align: center;
  1907. width: 100%;
  1908. font-size: 44px;
  1909. color: #ff0000;
  1910. text-shadow: 0 0 1px #ffffff;
  1911. }
  1912. .fire-address {
  1913. text-align: center;
  1914. width: 100%;
  1915. font-size: 14px;
  1916. color: rgba(255, 255, 255, 0.8);
  1917. margin-top: 44px;
  1918. }
  1919. .fire-handle {
  1920. display: block;
  1921. text-align: center;
  1922. background: #00BFF0;
  1923. color: #ffffff;
  1924. border-radius: 20px;
  1925. font-size: 14px;
  1926. width: 80px;
  1927. height: 40px;
  1928. line-height: 40px;
  1929. margin: 24px auto;
  1930. text-decoration: none
  1931. }
  1932. .fire-handle:hover {
  1933. background: #06a2ca;
  1934. }
  1935. .bell {
  1936. position: absolute;
  1937. right: 10px;
  1938. bottom: -20px;
  1939. width: 100%;
  1940. height: 320px;
  1941. z-index: 999;
  1942. }
  1943. .bell canvas {
  1944. display: block;
  1945. position: absolute;
  1946. left: 0;
  1947. top: -9px;
  1948. }
  1949. /* 保持大小不变的小圆圈 */
  1950. .dot {
  1951. position: absolute;
  1952. width: 96px;
  1953. height: 96px;
  1954. left: 160px;
  1955. top: 160px;
  1956. background: url('../assets/images/bell.gif') no-repeat;
  1957. // background: url(.) no-repeat;
  1958. background-size: 100%;
  1959. z-index: 200;
  1960. }
  1961. /* 产生动画(向外扩散变大)的圆圈 */
  1962. .pulse,
  1963. .pulse-big {
  1964. position: absolute;
  1965. width: 420px;
  1966. height: 420px;
  1967. border: 2px solid #EF2D02;
  1968. background: rgba(239, 45, 2, 0.8);
  1969. border-radius: 50%;
  1970. z-index: 100;
  1971. opacity: 0;
  1972. }
  1973. .pulse {
  1974. background: rgba(239, 45, 2, 0.6) !important;
  1975. -webkit-animation: warn 0.9s ease-out;
  1976. -moz-animation: warn 0.9s ease-out;
  1977. animation: warn 0.9s ease-out;
  1978. -webkit-animation-iteration-count: infinite;
  1979. -moz-animation-iteration-count: infinite;
  1980. animation-iteration-count: infinite;
  1981. box-shadow: 1px 1px 30px #EF2D02;
  1982. }
  1983. .pulse-big {
  1984. background: rgba(239, 45, 2, 0.6) !important;
  1985. -webkit-animation: warn1 0.9s ease-out;
  1986. -moz-animation: warn1 0.9s ease-out;
  1987. animation: warn1 0.9s ease-out;
  1988. -webkit-animation-iteration-count: infinite;
  1989. -moz-animation-iteration-count: infinite;
  1990. animation-iteration-count: infinite;
  1991. box-shadow: 1px 1px 30px #EF2D02;
  1992. }
  1993. @keyframes warn {
  1994. 0% {
  1995. -moz-transform: scale(0);
  1996. transform: scale(0);
  1997. opacity: 1;
  1998. }
  1999. 100% {
  2000. -moz-transform: scale(1);
  2001. transform: scale(1);
  2002. opacity: 0;
  2003. }
  2004. }
  2005. @keyframes warn1 {
  2006. 0% {
  2007. -o-transform: scale(0);
  2008. transform: scale(0);
  2009. opacity: 1;
  2010. }
  2011. 100% {
  2012. -o-transform: scale(0.6);
  2013. transform: scale(0.6);
  2014. opacity: 0;
  2015. }
  2016. }
  2017. </style>