vBottomMenu.vue 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343
  1. <template>
  2. <div class="btm-box">
  3. <img class="light" src="../assets/images/integrated/btm-light.png" />
  4. <div class="btm-left" :class="btmTipIndent">
  5. <div class="btm-left-tip">
  6. <div class="btm-left-block btm-left-state-c1"></div>
  7. 新上报
  8. </div>
  9. <div class="btm-left-tip">
  10. <div class="btm-left-block btm-left-state-c2"></div>
  11. 催办
  12. </div>
  13. <div class="btm-left-tip">
  14. <div class="btm-left-block btm-left-state-c3"></div>
  15. 已签收
  16. </div>
  17. <!-- div class="btm-left-tip">
  18. <div class="btm-left-block btm-left-state-c4"></div>
  19. 联动
  20. </div> -->
  21. <div class="btm-left-tip">
  22. <div class="btm-left-block btm-left-state-c5"></div>
  23. 办结
  24. </div>
  25. <div class="btm-left-tip">
  26. <div class="btm-left-block btm-left-state-c6"></div>
  27. 归档
  28. </div>
  29. <div class="btm-legend" @click="btmIndent">
  30. <span>图例</span>
  31. <i class="el-icon-caret-right" v-if="this.btmTipIndent !== 'btm-tip-to-right'"></i>
  32. <i class="el-icon-caret-left" v-if="this.btmTipIndent == 'btm-tip-to-right'"></i>
  33. </div>
  34. </div>
  35. <div class="bottom-menu-normal">
  36. <div v-for="(fastMenu,index) in fastMenu" :key="index" class="btm-m-con">
  37. <a><i :class="fastMenu.icon" @click.stop="showDialog(fastMenu.click)"></i><a
  38. @click.stop="showDialog(fastMenu.click)">{{ fastMenu.name }}</a>
  39. <div v-if="showChild && fastMenu.click == 'layerSwitching'" class="nav-child">
  40. <el-button type="primary"
  41. @click.stop="choseLayerSwitching('http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo',true)"
  42. class="nav-child-btn" plain>铁东
  43. </el-button>
  44. <el-button type="primary"
  45. @click.stop="choseLayerSwitching('http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo',true)"
  46. class="nav-child-btn" plain>铁西
  47. </el-button>
  48. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  49. @click.stop="closeChild"></el-button> -->
  50. </div>
  51. <!-- 林斑 -->
  52. <div v-show="showBanChild && fastMenu.click == 'forestban'" class="nav-child">
  53. <div class="forestban">
  54. <div class="forestban-con">
  55. <!-- <el-input-->
  56. <!-- placeholder="输入关键字进行过滤"-->
  57. <!-- v-model="filterbanText">-->
  58. <!-- </el-input>-->
  59. <el-tree :data="deptOptionsLiandong" ref="banDept" node-key="id" :check-strictly="true"
  60. :filter-node-method="filterbanNode" @click :accordion="true" empty-text="加载中,请稍候"
  61. :props="defaultProps"></el-tree>
  62. </div>
  63. <div class="forestban-right">
  64. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="searchFB">
  65. </el-input>
  66. <el-checkbox-group v-model="banCheckList" @change="handleCheckedCitiesChangeBan">
  67. <el-checkbox v-for="(fastMenu,index) in filterbanList"
  68. label="http://218.27.1.154:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo">
  69. 铁东
  70. </el-checkbox>
  71. </el-checkbox-group>
  72. </div>
  73. <el-button type="danger" icon="el-icon-close"
  74. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  75. @click.stop="closeBanChild"></el-button>
  76. </div>
  77. </div>
  78. <!-- 林场 -->
  79. <div v-show="showChangChild && fastMenu.click == 'forestchang'" class="nav-child">
  80. <div class="forestban">
  81. <div class="forestban-con">
  82. <!-- <el-input-->
  83. <!-- placeholder="输入关键字进行过滤"-->
  84. <!-- v-model="filterchangText">-->
  85. <!-- </el-input>-->
  86. <el-tree :data="deptOptionsLiandong" ref="changDept" node-key="id"
  87. :check-strictly="true" :filter-node-method="filterchangNode"
  88. @node-click="handlechangNodeClick" :accordion="true" empty-text="加载中,请稍候"
  89. :props="defaultProps"></el-tree>
  90. </div>
  91. <div class="forestban-right">
  92. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterchang"
  93. @change="searchFilterchang(filterchang)">
  94. </el-input>
  95. <el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
  96. <el-checkbox v-for="(item,index) in filterchangList" :label="item.farmAddress">
  97. {{ item.farmName }}
  98. </el-checkbox>
  99. </el-checkbox-group>
  100. </div>
  101. <el-button type="danger" icon="el-icon-close"
  102. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  103. @click.stop="closeChangChild"></el-button>
  104. </div>
  105. </div>
  106. </a>
  107. </div>
  108. </div>
  109. <div class="btm-right">
  110. <el-popover placement="top" trigger="click">
  111. <div class="btm-r-pop-info">
  112. <div class="btm-r-pop-info-box" v-for="(item,index) in taskList">
  113. <div class="btm-r-pop-info-tit">
  114. <h3>{{ item.taskSourceValue }}</h3>
  115. </div>
  116. <div class="btm-r-pop-info-con">
  117. <div class="btm-r-pop-info-list">
  118. <div class="btm-r-pop-info-list-name">标题</div>
  119. <div class="btm-r-pop-info-list-text">{{ item.taskTitle }}</div>
  120. </div>
  121. <div class="btm-r-pop-info-list">
  122. <div class="btm-r-pop-info-list-name">发起人</div>
  123. <div class="btm-r-pop-info-list-text">{{ item.sendPersonName }}</div>
  124. </div>
  125. <div class="btm-r-pop-info-list">
  126. <div class="btm-r-pop-info-list-name">发起时间</div>
  127. <div class="btm-r-pop-info-list-text">{{ item.taskSendTime }}</div>
  128. </div>
  129. <div class="btm-r-pop-info-list">
  130. <div class="btm-r-pop-info-list-name">关联事件</div>
  131. <div class="btm-r-pop-info-list-text">{{ item.eventName }}</div>
  132. </div>
  133. <div class="btm-r-pop-info-list">
  134. <div class="btm-r-pop-info-list-name">催办状态</div>
  135. <div class="btm-r-pop-info-list-text" style="color: red" v-if="item.isUrged==1">
  136. 任务催办中,请及时处理!!</div>
  137. <div class="btm-r-pop-info-list-text" v-else>正常</div>
  138. </div>
  139. </div>
  140. <div class="btm-r-pop-info-btm">
  141. <el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
  142. <div class="btm-r-pop-info-btm-btn">
  143. <el-button type="danger" @click="selectTaskDtpts(item.taskId,item.eventCode,'jj')">拒绝
  144. </el-button>
  145. <el-button type="primary" @click="selectTaskDtpts(item.taskId,item.eventCode,'lq')">领取
  146. </el-button>
  147. </div>
  148. </div>
  149. </div>
  150. </div>
  151. <el-badge :value="taskCount" slot="reference">
  152. <el-button size="small" icon="el-icon-bank-card">任务</el-button>
  153. </el-badge>
  154. </el-popover>
  155. <el-popover placement="top" trigger="click">
  156. <div class="btm-r-pop-info">
  157. <div class="btm-r-pop-info-box" v-for="(item,index) in messageList">
  158. <div class="btm-r-pop-info-con">
  159. <div class="btm-r-pop-info-list">
  160. <div class="btm-r-pop-info-list-name">{{item.title}}</div>
  161. <div class="btm-r-pop-info-list-text">{{item.content}}</div>
  162. </div>
  163. </div>
  164. <div class="btm-r-pop-info-btm">
  165. <el-link type="success" @click="selectMessageById(item.id)">标记已读</el-link>
  166. </div>
  167. </div>
  168. </div>
  169. <el-badge :value="messageCount" slot="reference">
  170. <el-button size="small" icon="el-icon-chat-line-round">消息</el-button>
  171. </el-badge>
  172. </el-popover>
  173. <!-- 警报铃 必须放在这,放在别处不好使 -->
  174. <div class="bell" v-if="eventWarn" @click="updateAlertFalse">
  175. <div class="dot"></div>
  176. <div class="pulse"></div>
  177. <div class="pulse-big"></div>
  178. </div>
  179. <!--<el-badge type="primary">-->
  180. <!--<el-button size="small" icon="el-icon-bell" @click="updateAlertFalse">警报</el-button>-->
  181. <!--</el-badge>-->
  182. <el-badge type="warning">
  183. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  184. </el-badge>
  185. </div>
  186. <!-- 事件详情弹层 -->
  187. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" customClass="customWidth" append-to-body
  188. @close="cancelEventShow()">
  189. <div class="dia-event-info">
  190. <el-row>
  191. <!-- 左侧 -->
  192. <el-col :span="18" class="dia-left">
  193. <div ref="imageTofile" style="height: 75vh;">
  194. <!-- 应急预案 -->
  195. <div class="dia-left-top">
  196. <div class="dia-left-top-tit">应急预案</div>
  197. <div class="dia-left-top-carousel">
  198. <el-carousel height="30px" direction="vertical" :interval="2000">
  199. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  200. <a
  201. :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName }}</a>
  202. </el-carousel-item>
  203. <el-carousel-item v-else>
  204. <a href="#">未选预案</a>
  205. </el-carousel-item>
  206. </el-carousel>
  207. </div>
  208. </div>
  209. <!-- 应急预案end -->
  210. <!-- 地图 -->
  211. <supermapTaskDialog ref="supermapTaskDialog" style="position: absolute; top:0;left: 0;"
  212. :mapDiv="'taskDialogSuperMap'"
  213. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  214. :codes="['9fa5']" :isSideBySide="false" :isdynamicPlotting="false" />
  215. <!-- 地图end -->
  216. </div>
  217. </el-col>
  218. <!-- 左侧end -->
  219. <!-- 右侧 -->
  220. <el-col :span="6" class="dia-right">
  221. <div class="e-right">
  222. <div class="forthis1-1">
  223. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  224. style="padding-bottom:1rem ;">
  225. <div class="i-list-con">
  226. <div class="this-con">
  227. <div class="z-info-list" style="margin-top: 0;">
  228. <el-timeline>
  229. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  230. placement="top" v-for="(item,index) in eventLogList">
  231. <el-card style="width: 40vh">
  232. <div class="z-info-list-con">
  233. <div class="user-and-time flex-d">
  234. <span>{{ item.createName }}</span>
  235. <span
  236. v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  237. class="el-icon-location"></i>
  238. {{ address }}</span>
  239. <span v-else></span>
  240. </div>
  241. <div class="z-info">
  242. <div class="this-con-list-info">
  243. {{ item.logContent }}
  244. </div>
  245. <div>
  246. <router-link to="#"
  247. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  248. v-for="(itemfile,indexfile) in item.fileVOs">
  249. <el-image :src="itemfile.fileUrl"
  250. v-if="itemfile.fileType=='image'"
  251. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  252. style="width:3rem; height:3rem;margin: 2px;"
  253. :title="itemfile.fileName">
  254. </el-image>
  255. <img v-else-if="itemfile.fileType=='video'"
  256. style="width:3rem; height:3rem;margin: 2px;"
  257. :src="require('@/assets/fileTypeImage/mp4.png')"
  258. :title="itemfile.fileName">
  259. </img>
  260. <img v-else-if="itemfile.fileType=='word'"
  261. style="width:3rem; height:3rem;margin: 2px;"
  262. :src="require('@/assets/fileTypeImage/word.png')"
  263. :title="itemfile.fileName">
  264. </img>
  265. <img v-else-if="itemfile.fileType=='excel'"
  266. style="width:3rem; height:3rem;margin: 2px;"
  267. :src="require('@/assets/fileTypeImage/excel.png')"
  268. :title="itemfile.fileName">
  269. </img>
  270. <img v-else
  271. style="width:3rem; height:3rem;margin: 2px;"
  272. :src="require('@/assets/fileTypeImage/file.png')"
  273. :title="itemfile.fileName">
  274. </img>
  275. </router-link>
  276. </div>
  277. </div>
  278. </div>
  279. </el-card>
  280. </el-timeline-item>
  281. </el-timeline>
  282. </div>
  283. </div>
  284. </div>
  285. </dv-border-box-7>
  286. </div>
  287. <!-- <div class="forthis">-->
  288. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  289. <!-- <div class="i-list-con">-->
  290. <!-- <div class="this-con h-25 no-padding">-->
  291. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  292. <!-- <div class="z-info-btm-grp">-->
  293. <!-- <div class="z-info-btm-grp-top">-->
  294. <!-- <div class="z-info-btm-grp-left">-->
  295. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  296. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  297. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  298. <!-- </el-button>-->
  299. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  300. <!-- </el-button>-->
  301. <!-- </div>-->
  302. <!-- <div class="z-info-btm-grp-right">-->
  303. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  304. <!-- </el-button>-->
  305. <!-- </div>-->
  306. <!-- </div>-->
  307. <!-- </div>-->
  308. <!-- </div>-->
  309. <!-- </div>-->
  310. <!-- </div>-->
  311. <!-- </dv-border-box-7>-->
  312. <!-- </div>-->
  313. </div>
  314. </el-col>
  315. <!-- 左侧end -->
  316. </el-row>
  317. </div>
  318. </el-dialog>
  319. <!-- 任务选择领取部门弹层 -->
  320. <el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body
  321. @close="cancelEventConfirm()">
  322. <el-form label-width="80px">
  323. <el-form-item label="选择部门">
  324. <el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">
  325. <el-option v-for="item in deptOptions" :key="item.taskDeptId" :label="item.taskDeptName"
  326. :value="{value:item.taskDeptId,label:item.taskDeptName}">
  327. <!--:disabled="item.eventStatus=='未处理' ? false:true"-->
  328. </el-option>
  329. </el-select>
  330. </el-form-item>
  331. <el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"
  332. @click="receiveTask(taskId,eventCode)">领取
  333. </el-button>
  334. <el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"
  335. @click="refusedTask(taskId,eventCode)">拒绝
  336. </el-button>
  337. </el-form>
  338. </el-dialog>
  339. <!-- 图片,视频预览 -->
  340. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" append-to-body>
  341. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  342. </el-dialog>
  343. </div>
  344. </template>
  345. <script>
  346. import {
  347. selectTaskBO,
  348. getEventDetail,
  349. selectTaskDtpts,
  350. receiveTask,
  351. refusedTask,
  352. selectMessageCount,
  353. selectMessageList,
  354. selectMessageById
  355. } from '@/api/forest'
  356. import {
  357. selectFarmByDeptId
  358. } from '@/api/vBottomMenu'
  359. import {
  360. treeselectAll as deptTreeselect
  361. } from '@/api/system/dept'
  362. import supermapTaskDialog from '@/components/supermap' //超图
  363. import TcPlayer from '@/components/TcPlayer' //视频预览
  364. import Cookies from 'js-cookie';
  365. export default {
  366. components: {
  367. supermapTaskDialog,
  368. TcPlayer
  369. },
  370. watch: {
  371. filterbanText(val) {
  372. alert(val)
  373. console.log(this.$refs)
  374. this.$refs.banDept.filter(val)
  375. },
  376. filterchangText(val) {
  377. alert(val)
  378. console.log(this.$refs)
  379. this.$refs.changDept.filter(val)
  380. }
  381. },
  382. data() {
  383. return {
  384. playVideo: '', //视频预览地址
  385. showTcPlayer: false, //视频预览弹窗
  386. filterbanText: '',
  387. filterchangText: '',
  388. filterbanList: [],
  389. filterchangList: [],
  390. filterchangListAll: [],
  391. eventId: null,
  392. websock: '',
  393. wsuri:'ws://127.0.0.1:10012/messagePush/',
  394. wsuri2:'ws://127.0.0.1:10005/taskPush/',
  395. setIntervalWesocketPush: null,
  396. websockSid: {
  397. userId: ''
  398. },
  399. eventCode: null,
  400. longitude: null,
  401. latitude: null,
  402. eventLogList: [], //事件详情日志
  403. eventDialog: false, //事件详情弹层
  404. taskStatusButton: null, //任务按钮
  405. visuForestCloudYuAnBo: null,
  406. address: null, //事件上报地址
  407. taskId: null, //任务ID
  408. showDeptConfirm: false, //任务领取选择部门弹窗
  409. deptOptions: [], //任务领取部门列表
  410. centerTaskTaskDepts: [], //任务领取部门
  411. deptName: [], //任务领取部门
  412. taskCount: 0, //任务数量
  413. taskList: 0, //任务列表
  414. messageCount: 0, //消息数量
  415. messageList: 0, //消息列表
  416. btmTipIndent: '', //图例收起弹出
  417. eventLocationVisible: false,
  418. showChild: false,
  419. showBanChild: false, //林斑
  420. showChangChild: false, //林场
  421. fastMenu: [{
  422. name: '事件定位',
  423. icon: 'iconfont sj-icon-sjdw',
  424. click: 'eventLocation'
  425. },
  426. // {
  427. // name: '图层切换',
  428. // icon: 'iconfont sj-icon-tcqh',
  429. // click: 'layerSwitching'
  430. // },
  431. {
  432. name: '测量工具',
  433. icon: 'iconfont sj-icon-clgj',
  434. click: 'editableLayers'
  435. },
  436. // {
  437. // name: '林班',
  438. // icon: 'iconfont sj-icon-lbzy',
  439. // click: 'forestban'
  440. // },
  441. //
  442. // {
  443. // name: '林场',
  444. // icon: 'iconfont sj-icon-lczy',
  445. // click: 'forestchang'
  446. // },
  447. {
  448. name: '电视墙',
  449. icon: 'el-icon-s-grid',
  450. click: 'TVWall'
  451. }
  452. ],
  453. deptOptionsLiandong: [],
  454. data: [{
  455. label: '一级 1',
  456. children: [{
  457. label: '二级 1-1',
  458. children: [{
  459. label: '三级 1-1-1'
  460. }]
  461. }]
  462. }, {
  463. label: '一级 2',
  464. children: [{
  465. label: '二级 2-1',
  466. children: [{
  467. label: '三级 2-1-1'
  468. }]
  469. }, {
  470. label: '二级 2-2',
  471. children: [{
  472. label: '三级 2-2-1'
  473. }]
  474. }]
  475. }, {
  476. label: '一级 3',
  477. children: [{
  478. label: '二级 3-1',
  479. children: [{
  480. label: '三级 3-1-1'
  481. }]
  482. }, {
  483. label: '二级 3-2',
  484. children: [{
  485. label: '三级 3-2-1'
  486. }]
  487. }]
  488. }],
  489. defaultProps: {
  490. children: 'children',
  491. label: 'label'
  492. },
  493. banCheckList: [], //林班
  494. changCheckList: [], //林场
  495. searchFB: '',
  496. filterchang: '', //林场搜索
  497. btmCurrent: '',
  498. eventWarn: false, //webSocket事件问题警报标记
  499. }
  500. },
  501. created() {
  502. /** 查询部门树结构 */
  503. deptTreeselect().then(response => {
  504. this.deptOptionsLiandong = response.data
  505. })
  506. },
  507. mounted() {
  508. this.websockSid.userId=Cookies.get("userId")
  509. },
  510. methods: {
  511. initWebSocket(wsurl,userId) { //初始化weosocket
  512. //const wsuri = 'ws://127.0.0.1:10003/eventPush/' + userId + '/' + eventTypeDl + '/' + eventType
  513. const wsuri = wsurl+userId
  514. // const wsuri = 'ws://172.28.20.82:10012/taskPush/'+userId
  515. this.websock = new WebSocket(wsuri)
  516. console.log('建立websocket连接'+wsuri)
  517. this.websock.onopen = this.websocketonopen
  518. this.websock.onmessage = this.websocketonmessage
  519. this.websock.onerror = this.websocketonerror
  520. },
  521. websocketonopen() { //连接建立之后执行send方法发送数据
  522. console.log('websocket连接成功')
  523. this.weosocket = true
  524. this.sendPing()
  525. },
  526. websocketonerror() { //连接建立失败重连
  527. this.initWebSocket(this.wsuri,this.websockSid.userId)
  528. },
  529. websocketonmessage(e) { //数据接收
  530. console.log('接收数据', e.data)
  531. // let data = "{\"fromId\":\"farming\"}";
  532. // 处理收到的消息
  533. this.handleWebSoceketEvent(e.data)
  534. },
  535. handleWebSoceketEvent(val) {
  536. let that = this
  537. let data = JSON.parse(val)
  538. console.log('数据数据数据数据',data)
  539. /**
  540. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  541. * eventPush: 事件列表消息
  542. * */
  543. let message=data.centermessageTPushrecord
  544. let message2=data.centertaskTTask
  545. if (null!=message)
  546. {
  547. console.log(message)
  548. this.messageList.push(message)
  549. this.messageCount++
  550. }else if (null!=message2)
  551. {
  552. this.taskList.push(message2)
  553. this.taskCount ++
  554. }
  555. // if (data.tag == "eventPush" && that.markersList.filter( item => data.eventCode == item.parameter).length == 0) {
  556. // getEventPush({eventCode: data.eventCode}).then((res) => {
  557. // if (res.data != undefined) {
  558. // //插入到第一条
  559. // this.eventList.unshift(res.data)
  560. // // 插入后删除最后一条 保证列表中为10条数据
  561. // if (this.eventList.length > 9)
  562. // this.eventList.splice(10, 1)
  563. // // 将收到的数据在地图上添加
  564. // this.getWebSocketEvent(res.data)
  565. // }
  566. // })
  567. // }
  568. console.log(data)
  569. },
  570. websocketsend(Data) { //数据发送
  571. this.websock.send(Data)
  572. },
  573. websocketclose(e) { //关闭
  574. console.log('断开连接', e)
  575. // clearInterval(this.setIntervalWesocketPush)
  576. this.weosocket = false
  577. },
  578. /**发送心跳
  579. * @param {number} time 心跳间隔毫秒 默认5000
  580. * @param {string} ping 心跳名称 默认字符串ping
  581. */
  582. sendPing(time = 60000, ping = {
  583. 'fromId': 'farming'
  584. }) {
  585. clearInterval(this.setIntervalWesocketPush)
  586. this.setIntervalWesocketPush = setInterval(() => {
  587. if (this.weosocket) {
  588. this.websock.send(JSON.stringify(ping))
  589. } else {
  590. // this.initWebSocket()
  591. }
  592. }, time)
  593. },
  594. filterbanNode(value, data) {
  595. //树搜索
  596. if (!value) return true
  597. return data.label.indexOf(value) !== -1
  598. },
  599. filterchangNode(value, data) {
  600. //树搜索
  601. if (!value) return true
  602. return data.label.indexOf(value) !== -1
  603. },
  604. handlechangNodeClick(node, data, value) {
  605. //获取林场列表
  606. this.filterchang = ''
  607. selectFarmByDeptId({
  608. deptId: node.id
  609. }).then(res => {
  610. this.filterchangList = res.data
  611. this.filterchangListAll = res.data
  612. })
  613. },
  614. // 返回图片列表
  615. assetTypeAnImage(filePath) {
  616. let imageList = []
  617. if (filePath != null && filePath.length > 0) {
  618. for (let i = 0; i < filePath.length; i++) {
  619. if (filePath[i].fileType == 'image') {
  620. imageList.push(filePath[i].fileUrl)
  621. }
  622. }
  623. }
  624. return imageList
  625. },
  626. clickFile(fileUrl, fileName, fileType) {
  627. if (fileType == 'image') {
  628. return
  629. } else if (fileType == 'video') {
  630. this.showTcPlayer = true
  631. setTimeout(() => {
  632. this.playVideo = fileUrl
  633. }, 500)
  634. } else {
  635. let a = document.createElement('a')
  636. a.download = fileName
  637. a.href = fileUrl
  638. a.target = '_blank'
  639. a.click()
  640. }
  641. },
  642. setValue(event) {
  643. this.centerTaskTaskDepts = []
  644. //签收选择部门
  645. if (event != null && event.length > 0) {
  646. for (let i = 0; i < event.length; i++) {
  647. if (event[i].label != undefined && event[i].value != undefined) {
  648. this.centerTaskTaskDepts.push({
  649. taskDeptId: event[i].value,
  650. taskDeptName: event[i].label
  651. })
  652. }
  653. }
  654. }
  655. },
  656. receiveTask(taskId, eventCode) {
  657. let param = {
  658. taskId: taskId,
  659. eventCode: eventCode,
  660. centerTaskTaskDepts: this.centerTaskTaskDepts
  661. }
  662. receiveTask(param).then(res => {
  663. //任务领取
  664. if (res.code == 200) {
  665. this.$message.success(`任务领取成功!`)
  666. this.deptOptions = []
  667. this.deptName = []
  668. this.centerTaskTaskDepts = []
  669. //刷新任务列表
  670. this.selectTaskList()
  671. this.showDeptConfirm = false
  672. }
  673. })
  674. },
  675. refusedTask(taskId, eventCode) {
  676. let param = {
  677. taskId: taskId,
  678. eventCode: eventCode,
  679. centerTaskTaskDepts: this.centerTaskTaskDepts
  680. }
  681. refusedTask(param).then(res => {
  682. //任务拒绝
  683. if (res.code == 200) {
  684. this.$message.success(`任务拒绝成功!`)
  685. this.deptOptions = []
  686. this.deptName = []
  687. this.centerTaskTaskDepts = []
  688. //刷新任务列表
  689. this.selectTaskList()
  690. this.showDeptConfirm = false
  691. }
  692. })
  693. },
  694. selectTaskDtpts(taskId, eventCode, state) {
  695. this.taskId = taskId
  696. this.eventCode = eventCode
  697. selectTaskDtpts({
  698. taskId: taskId
  699. }).then(res => {
  700. //任务领取部门列表
  701. if (res.code == 200) {
  702. this.deptOptions = res.data
  703. this.taskStatusButton = state
  704. this.showDeptConfirm = true
  705. }
  706. })
  707. },
  708. cancelEventShow() {
  709. console.log('关闭事件弹窗')
  710. this.eventCode = null
  711. this.eventLogList = []
  712. },
  713. cancelEventConfirm() {
  714. console.log('关闭任务选择部门')
  715. this.eventCode = null
  716. this.deptOptions = []
  717. this.deptName = []
  718. this.centerTaskTaskDepts = []
  719. },
  720. showEventDialog(eventCode) {
  721. this.eventCode = eventCode
  722. let that = this
  723. //获取事件详情
  724. getEventDetail({
  725. eventCode: eventCode
  726. }).then(res => {
  727. this.eventDialog = true
  728. this.eventLogList = res.data.eventlog
  729. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  730. this.address = res.data.catalogue.address
  731. this.eventType = res.data.catalogue.eventType
  732. this.eventId = res.data.catalogue.id
  733. this.longitude = res.data.catalogue.longitude
  734. this.latitude = res.data.catalogue.latitude
  735. let markersMap = {
  736. lng: 124.59,
  737. lat: 43.02,
  738. icon: 'marker',
  739. bindPopupHtml: '',
  740. click: '',
  741. parameter: '',
  742. keepBindPopup: false,
  743. isAggregation: false,
  744. radius: 0
  745. }
  746. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue
  747. .urgeCount == 0) {
  748. markersMap.icon = 'sj-icon-map-xinshangbao'
  749. }
  750. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue
  751. .urgeCount > 0) {
  752. markersMap.icon = 'sj-icon-map-cuiban'
  753. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  754. markersMap.icon = 'sj-icon-map-qianshou'
  755. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  756. markersMap.icon = 'sj-icon-map-banjie'
  757. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  758. markersMap.icon = 'sj-icon-map-guidang'
  759. }
  760. markersMap.lng = res.data.catalogue.longitude
  761. markersMap.lat = res.data.catalogue.latitude
  762. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  763. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0]
  764. .fireRadius > 0) {
  765. markersMap.radius = res.data.eventdetail[0].fireRadius
  766. }
  767. setTimeout(() => {
  768. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  769. that.$refs.supermapTaskDialog.clearM(false)
  770. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  771. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue.latitude, res.data
  772. .catalogue.longitude)
  773. }, 1000)
  774. })
  775. },
  776. selectTaskList: async function() {
  777. //获取任务列表
  778. selectTaskBO().then(res => {
  779. this.taskList = res.data
  780. this.taskCount = res.data.length
  781. })
  782. this.initWebSocket(this.wsuri2,this.websockSid.userId)
  783. },
  784. selectMessageById(id) {
  785. selectMessageById(id).then(response => {
  786. /** 获取消息列表 */
  787. this.selectMessageList();
  788. });
  789. this.initWebSocket(this.wsuri,this.websockSid.userId)
  790. },
  791. /** 获取消息列表 */
  792. selectMessageList(){
  793. selectMessageList(Cookies.get("userId")).then(response => {
  794. this.messageList = response.data
  795. this.messageCount = response.data.length
  796. });
  797. },
  798. handleCheckedCitiesChangeBan(value) {
  799. this.choseLayerSwitchingList(this.banCheckList)
  800. },
  801. handleCheckedCitiesChangeChang(value) {
  802. this.choseLayerSwitchingList(this.changCheckList)
  803. },
  804. refresh() {
  805. window.location.reload()
  806. },
  807. showDialog(click) {
  808. window.showDialog(click)
  809. },
  810. choseLayerSwitching(url, isClear) {
  811. window.choseLayerSwitching(url, isClear)
  812. },
  813. choseLayerSwitchingList(urlList) { //选择图层(传递数组)
  814. window.choseLayerSwitchingList(urlList)
  815. },
  816. forestban() {
  817. window.forestban()
  818. console.log('林班')
  819. },
  820. forestchang() {
  821. window.forestchang()
  822. console.log('林场')
  823. },
  824. closeBanChild() {
  825. this.banCheckList = []
  826. this.showBanChild = false
  827. },
  828. closeChangChild() {
  829. this.changCheckList = []
  830. this.showChangChild = false
  831. },
  832. //图例收起弹出
  833. btmIndent() {
  834. if (this.btmTipIndent == '') {
  835. this.btmTipIndent = 'btm-tip-to-right'
  836. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  837. this.btmTipIndent = ''
  838. }
  839. },
  840. searchFilterchang(filterchang) {
  841. //林场列表搜索
  842. let searchFilterchangnew = []
  843. if (filterchang != null && filterchang != '') {
  844. for (var i = 0; i < this.filterchangListAll.length; i++) {
  845. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  846. searchFilterchangnew.push(this.filterchangListAll[i])
  847. }
  848. }
  849. this.filterchangList = searchFilterchangnew
  850. } else {
  851. this.filterchangList = this.filterchangListAll
  852. }
  853. },
  854. //标记警报
  855. updateAlert() {
  856. this.eventWarn = true;
  857. },
  858. updateAlertFalse(){
  859. this.eventWarn = false;
  860. this.$emit('stopAudio');
  861. }
  862. }
  863. }
  864. </script>
  865. <style rel="stylesheet/scss" lang="scss" scoped>
  866. @import '@/assets/styles/base.scss';
  867. .dotClass {
  868. width: 10px;
  869. height: 10px;
  870. border-radius: 50%;
  871. display: block;
  872. margin: -5px;
  873. }
  874. .redClass {
  875. background-color: red;
  876. width: 10px;
  877. height: 10px;
  878. border-radius: 50%;
  879. display: block;
  880. }
  881. .btm-box {
  882. width: 100%;
  883. height: auto;
  884. background: linear-gradient($btmMemu);
  885. position: absolute;
  886. z-index: 999;
  887. bottom: 0;
  888. height: 2.5rem;
  889. display: flex;
  890. align-items: center;
  891. z-index: 9999;
  892. .light {
  893. position: absolute;
  894. top: -.5rem;
  895. }
  896. .btm-left {
  897. position: absolute;
  898. font-size: .7rem;
  899. height: 2rem;
  900. line-height: 2rem;
  901. border: 1px $searchBorder;
  902. border-left: none;
  903. color: $inBlue;
  904. display: flex;
  905. -webkit-transform: translateX(-21rem) !important;
  906. transform: translateX(-21rem) !important;
  907. transition: all 0.5s ease-in-out !important;
  908. .btm-legend {
  909. height: 2rem;
  910. text-align: center;
  911. color: $inBlue;
  912. padding: 0 .5rem;
  913. cursor: pointer;
  914. }
  915. .btm-legend:hover {
  916. background-color: $tipHover;
  917. color: $white;
  918. }
  919. .btm-left-tip {
  920. display: flex;
  921. align-items: center;
  922. margin: 0 .5rem;
  923. .btm-left-block {
  924. width: 1rem;
  925. height: 1rem;
  926. margin-right: .3rem;
  927. border-radius: .2rem;
  928. }
  929. .btm-left-state-c1 {
  930. background-color: $eventStateColor-xsb;
  931. }
  932. .btm-left-state-c2 {
  933. background-color: $eventStateColor-cb;
  934. }
  935. .btm-left-state-c3 {
  936. background-color: $eventStateColor-yqs;
  937. }
  938. .btm-left-state-c4 {
  939. background-color: $eventStateColor-ld;
  940. }
  941. .btm-left-state-c5 {
  942. background-color: $eventStateColor-bj;
  943. }
  944. .btm-left-state-c6 {
  945. background-color: $eventStateColor-tb;
  946. }
  947. }
  948. }
  949. .btm-tip-to-right {
  950. -webkit-transform: translateX(0) !important;
  951. transform: translateX(0) !important;
  952. transition: all 0.5s ease-in-out !important;
  953. }
  954. .bottom-menu-normal {
  955. max-width: 70%;
  956. padding: 0 3rem;
  957. position: absolute;
  958. left: 50%;
  959. transform: translateX(-50%);
  960. bottom: 0;
  961. z-index: 999;
  962. border-radius: 5px;
  963. display: flex;
  964. justify-content: center;
  965. align-items: center;
  966. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  967. // background-size: cover;
  968. .btm-m-con {
  969. position: relative;
  970. color: $inBlue;
  971. font-size: .5rem;
  972. padding: .6rem 1rem;
  973. display: flex;
  974. align-items: center;
  975. justify-content: center;
  976. -webkit-transform: translateY(0);
  977. transform: translateY(0);
  978. transition: all 0.2s ease-in-out;
  979. cursor: pointer;
  980. white-space: nowrap;
  981. i {
  982. font-size: 1rem;
  983. color: $inBlue;
  984. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  985. margin-right: 0.2rem;
  986. }
  987. .nav-child {
  988. text-shadow: none !important;
  989. position: absolute;
  990. bottom: 3rem;
  991. border: 1px solid saddlebrown;
  992. padding: .5rem;
  993. -moz-border-radius-topleft: 0;
  994. -moz-border-radius-bottomright: 0;
  995. background-color: $barBgc;
  996. box-shadow: $barShadow;
  997. border: 1px $barBorder;
  998. left: 50%;
  999. transform: translateX(-50%);
  1000. color: $inBlue;
  1001. .nav-child-btn {
  1002. padding: .2rem;
  1003. }
  1004. .forestban {
  1005. display: flex;
  1006. .forestban-con {
  1007. width: 20rem;
  1008. height: 20rem;
  1009. overflow-y: scroll;
  1010. border: 1px solid rgba(51, 70, 127, 0.7);
  1011. }
  1012. .forestban-right {
  1013. width: 10rem;
  1014. height: 20rem;
  1015. overflow-y: scroll;
  1016. padding: 0 1rem;
  1017. .el-checkbox-group {
  1018. display: flex;
  1019. flex-direction: column;
  1020. label {
  1021. padding: .4rem 0;
  1022. }
  1023. .el-checkbox {
  1024. color: $white;
  1025. }
  1026. }
  1027. }
  1028. }
  1029. }
  1030. }
  1031. .btm-m-con:hover,
  1032. .on {
  1033. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1034. -webkit-transform: translateX(0.2rem);
  1035. transform: translateX(0.2rem);
  1036. transition: all 0.2s ease-in-out;
  1037. .nav-child {
  1038. text-shadow: none !important;
  1039. }
  1040. i {
  1041. color: $inBlueHover;
  1042. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1043. }
  1044. }
  1045. }
  1046. .btm-right {
  1047. position: absolute;
  1048. font-size: .7rem;
  1049. height: 2rem;
  1050. display: flex;
  1051. right: 1rem;
  1052. align-items: center;
  1053. .el-badge {
  1054. display: flex !important;
  1055. margin-left: 1.5rem;
  1056. button {
  1057. padding: 0 .3rem;
  1058. height: 1.5rem;
  1059. background-color: #112543;
  1060. color: $inBlue;
  1061. border: 1px $searchBorder;
  1062. }
  1063. }
  1064. .el-badge:hover {
  1065. -webkit-transform: translateX(0.1rem);
  1066. transform: translateX(0.1rem);
  1067. transition: all 0.2s ease-in-out;
  1068. button {
  1069. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1070. }
  1071. }
  1072. }
  1073. }
  1074. .btm-r-pop-info {
  1075. display: flex;
  1076. width: 35rem;
  1077. flex-direction: column;
  1078. max-height: 85vh;
  1079. min-height: fit-content;
  1080. overflow-y: scroll;
  1081. padding: 1rem;
  1082. .btm-r-pop-info-box:hover {
  1083. box-shadow: $shadowListHover;
  1084. color: $inBlue;
  1085. border: 1px $countBorder;
  1086. }
  1087. .btm-r-pop-info-box {
  1088. width: 100%;
  1089. display: flex;
  1090. flex-direction: column;
  1091. background-color: $deepBG;
  1092. padding: .5rem;
  1093. border-radius: .5rem;
  1094. color: $inBlue;
  1095. border: 1px $searchBorder;
  1096. margin-bottom: 1rem;
  1097. .btm-r-pop-info-tit {
  1098. display: flex;
  1099. padding: .5rem;
  1100. h3 {
  1101. font-weight: bolder;
  1102. }
  1103. }
  1104. .btm-r-pop-info-con {
  1105. padding: .5rem;
  1106. display: flex;
  1107. flex-direction: column;
  1108. border-top: 1px $searchBorder;
  1109. border-bottom: 1px $searchBorder;
  1110. .btm-r-pop-info-list {
  1111. display: flex;
  1112. padding: .3rem 0;
  1113. .btm-r-pop-info-list-name {
  1114. width: 3.6rem;
  1115. text-align: right;
  1116. margin-right: 1rem;
  1117. }
  1118. .btm-r-pop-info-list-text {}
  1119. }
  1120. }
  1121. .btm-r-pop-info-btm {
  1122. padding: .5rem;
  1123. display: flex;
  1124. justify-content: space-between;
  1125. .btm-r-pop-info-btm-btn {
  1126. button {
  1127. padding: .5rem;
  1128. }
  1129. }
  1130. }
  1131. }
  1132. }
  1133. //警铃
  1134. .fire-tip {
  1135. text-align: center;
  1136. width: 100%;
  1137. font-size: 44px;
  1138. color: #ff0000;
  1139. text-shadow: 0 0 1px #ffffff;
  1140. }
  1141. .fire-address {
  1142. text-align: center;
  1143. width: 100%;
  1144. font-size: 14px;
  1145. color: rgba(255, 255, 255, 0.8);
  1146. margin-top: 44px;
  1147. }
  1148. .fire-handle {
  1149. display: block;
  1150. text-align: center;
  1151. background: #00BFF0;
  1152. color: #ffffff;
  1153. border-radius: 20px;
  1154. font-size: 14px;
  1155. width: 80px;
  1156. height: 40px;
  1157. line-height: 40px;
  1158. margin: 24px auto;
  1159. text-decoration: none
  1160. }
  1161. .fire-handle:hover {
  1162. background: #06a2ca;
  1163. }
  1164. .bell {
  1165. position: absolute;
  1166. right: 10px;
  1167. bottom:-20px;
  1168. width: 100%;
  1169. height: 320px;
  1170. z-index: 999;
  1171. }
  1172. .bell canvas {
  1173. display: block;
  1174. position: absolute;
  1175. left: 0;
  1176. top: -9px;
  1177. }
  1178. /* 保持大小不变的小圆圈 */
  1179. .dot {
  1180. position: absolute;
  1181. width: 96px;
  1182. height: 96px;
  1183. left: 160px;
  1184. top: 160px;
  1185. background: url('../assets/images/bell.gif') no-repeat;
  1186. // background: url(.) no-repeat;
  1187. background-size: 100%;
  1188. z-index: 200;
  1189. }
  1190. /* 产生动画(向外扩散变大)的圆圈 */
  1191. .pulse,
  1192. .pulse-big {
  1193. position: absolute;
  1194. width: 420px;
  1195. height: 420px;
  1196. border: 2px solid #EF2D02;
  1197. background: rgba(239, 45, 2, 0.8);
  1198. border-radius: 50%;
  1199. z-index: 100;
  1200. opacity: 0;
  1201. }
  1202. .pulse {
  1203. background: rgba(239, 45, 2, 0.6) !important;
  1204. -webkit-animation: warn 0.9s ease-out;
  1205. -moz-animation: warn 0.9s ease-out;
  1206. animation: warn 0.9s ease-out;
  1207. -webkit-animation-iteration-count: infinite;
  1208. -moz-animation-iteration-count: infinite;
  1209. animation-iteration-count: infinite;
  1210. box-shadow: 1px 1px 30px #EF2D02;
  1211. }
  1212. .pulse-big {
  1213. background: rgba(239, 45, 2, 0.6) !important;
  1214. -webkit-animation: warn1 0.9s ease-out;
  1215. -moz-animation: warn1 0.9s ease-out;
  1216. animation: warn1 0.9s ease-out;
  1217. -webkit-animation-iteration-count: infinite;
  1218. -moz-animation-iteration-count: infinite;
  1219. animation-iteration-count: infinite;
  1220. box-shadow: 1px 1px 30px #EF2D02;
  1221. }
  1222. @keyframes warn {
  1223. 0% {
  1224. -moz-transform: scale(0);
  1225. transform: scale(0);
  1226. opacity: 1;
  1227. }
  1228. 100% {
  1229. -moz-transform: scale(1);
  1230. transform: scale(1);
  1231. opacity: 0;
  1232. }
  1233. }
  1234. @keyframes warn1 {
  1235. 0% {
  1236. -o-transform: scale(0);
  1237. transform: scale(0);
  1238. opacity: 1;
  1239. }
  1240. 100% {
  1241. -o-transform: scale(0.6);
  1242. transform: scale(0.6);
  1243. opacity: 0;
  1244. }
  1245. }
  1246. </style>