vBottomMenu.vue 77 KB

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