vBottomMenu.vue 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348
  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. setIntervalWesocketPush: null,
  394. websockSid: {
  395. userId: ''
  396. },
  397. eventCode: null,
  398. longitude: null,
  399. latitude: null,
  400. eventLogList: [], //事件详情日志
  401. eventDialog: false, //事件详情弹层
  402. taskStatusButton: null, //任务按钮
  403. visuForestCloudYuAnBo: null,
  404. address: null, //事件上报地址
  405. taskId: null, //任务ID
  406. showDeptConfirm: false, //任务领取选择部门弹窗
  407. deptOptions: [], //任务领取部门列表
  408. centerTaskTaskDepts: [], //任务领取部门
  409. deptName: [], //任务领取部门
  410. taskCount: 0, //任务数量
  411. taskList: 0, //任务列表
  412. messageCount: 0, //消息数量
  413. messageList: 0, //消息列表
  414. btmTipIndent: '', //图例收起弹出
  415. eventLocationVisible: false,
  416. showChild: false,
  417. showBanChild: false, //林斑
  418. showChangChild: false, //林场
  419. fastMenu: [{
  420. name: '事件定位',
  421. icon: 'iconfont sj-icon-sjdw',
  422. click: 'eventLocation'
  423. },
  424. // {
  425. // name: '图层切换',
  426. // icon: 'iconfont sj-icon-tcqh',
  427. // click: 'layerSwitching'
  428. // },
  429. {
  430. name: '测量工具',
  431. icon: 'iconfont sj-icon-clgj',
  432. click: 'editableLayers'
  433. },
  434. // {
  435. // name: '林班',
  436. // icon: 'iconfont sj-icon-lbzy',
  437. // click: 'forestban'
  438. // },
  439. //
  440. // {
  441. // name: '林场',
  442. // icon: 'iconfont sj-icon-lczy',
  443. // click: 'forestchang'
  444. // },
  445. {
  446. name: '电视墙',
  447. icon: 'el-icon-s-grid',
  448. click: 'TVWall'
  449. }
  450. ],
  451. deptOptionsLiandong: [],
  452. data: [{
  453. label: '一级 1',
  454. children: [{
  455. label: '二级 1-1',
  456. children: [{
  457. label: '三级 1-1-1'
  458. }]
  459. }]
  460. }, {
  461. label: '一级 2',
  462. children: [{
  463. label: '二级 2-1',
  464. children: [{
  465. label: '三级 2-1-1'
  466. }]
  467. }, {
  468. label: '二级 2-2',
  469. children: [{
  470. label: '三级 2-2-1'
  471. }]
  472. }]
  473. }, {
  474. label: '一级 3',
  475. children: [{
  476. label: '二级 3-1',
  477. children: [{
  478. label: '三级 3-1-1'
  479. }]
  480. }, {
  481. label: '二级 3-2',
  482. children: [{
  483. label: '三级 3-2-1'
  484. }]
  485. }]
  486. }],
  487. defaultProps: {
  488. children: 'children',
  489. label: 'label'
  490. },
  491. banCheckList: [], //林班
  492. changCheckList: [], //林场
  493. searchFB: '',
  494. filterchang: '', //林场搜索
  495. btmCurrent: '',
  496. wsurl:'',
  497. postName:'',
  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,postName,userId) {
  512. this.postName=postName
  513. this.wsurl=wsurl
  514. selectConfigKey(wsurl).then(res => {
  515. //初始化weosocket
  516. //const wsuri = 'ws://127.0.0.1:10003/eventPush/' + userId + '/' + eventTypeDl + '/' + eventType
  517. const wsuri = res.data + userId +postName+ userId
  518. // const wsuri = 'ws://172.28.20.82:10012/taskPush/'+userId
  519. this.websock = new WebSocket(wsuri)
  520. //console.log('建立websocket连接' + wsuri)
  521. this.websock.onopen = this.websocketonopen
  522. this.websock.onmessage = this.websocketonmessage
  523. this.websock.onerror = this.websocketonerror
  524. })
  525. },
  526. websocketonopen() { //连接建立之后执行send方法发送数据
  527. console.log('websocket连接成功')
  528. this.weosocket = true
  529. this.sendPing()
  530. },
  531. websocketonerror() { //连接建立失败重连
  532. this.initWebSocket(this.wsurl,this.postName,this.websockSid.userId)
  533. },
  534. websocketonmessage(e) { //数据接收
  535. console.log('接收数据', e.data)
  536. // let data = "{\"fromId\":\"farming\"}";
  537. // 处理收到的消息
  538. this.handleWebSoceketEvent(e.data)
  539. },
  540. handleWebSoceketEvent(val) {
  541. let that = this
  542. let data = JSON.parse(val)
  543. console.log('数据数据数据数据',data)
  544. /**
  545. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  546. * eventPush: 事件列表消息
  547. * */
  548. let message=data.centermessageTPushrecord
  549. let message2=data.centertaskTTask
  550. if (null!=message)
  551. {
  552. console.log(message)
  553. this.messageList.push(message)
  554. this.messageCount++
  555. }else if (null!=message2)
  556. {
  557. this.taskList.push(message2)
  558. this.taskCount ++
  559. }
  560. // if (data.tag == "eventPush" && that.markersList.filter( item => data.eventCode == item.parameter).length == 0) {
  561. // getEventPush({eventCode: data.eventCode}).then((res) => {
  562. // if (res.data != undefined) {
  563. // //插入到第一条
  564. // this.eventList.unshift(res.data)
  565. // // 插入后删除最后一条 保证列表中为10条数据
  566. // if (this.eventList.length > 9)
  567. // this.eventList.splice(10, 1)
  568. // // 将收到的数据在地图上添加
  569. // this.getWebSocketEvent(res.data)
  570. // }
  571. // })
  572. // }
  573. console.log(data)
  574. },
  575. websocketsend(Data) { //数据发送
  576. this.websock.send(Data)
  577. },
  578. websocketclose(e) { //关闭
  579. console.log('断开连接', e)
  580. // clearInterval(this.setIntervalWesocketPush)
  581. this.weosocket = false
  582. },
  583. /**发送心跳
  584. * @param {number} time 心跳间隔毫秒 默认5000
  585. * @param {string} ping 心跳名称 默认字符串ping
  586. */
  587. sendPing(time = 60000, ping = {
  588. 'fromId': 'farming'
  589. }) {
  590. clearInterval(this.setIntervalWesocketPush)
  591. this.setIntervalWesocketPush = setInterval(() => {
  592. if (this.weosocket) {
  593. this.websock.send(JSON.stringify(ping))
  594. } else {
  595. // this.initWebSocket()
  596. }
  597. }, time)
  598. },
  599. filterbanNode(value, data) {
  600. //树搜索
  601. if (!value) return true
  602. return data.label.indexOf(value) !== -1
  603. },
  604. filterchangNode(value, data) {
  605. //树搜索
  606. if (!value) return true
  607. return data.label.indexOf(value) !== -1
  608. },
  609. handlechangNodeClick(node, data, value) {
  610. //获取林场列表
  611. this.filterchang = ''
  612. selectFarmByDeptId({
  613. deptId: node.id
  614. }).then(res => {
  615. this.filterchangList = res.data
  616. this.filterchangListAll = res.data
  617. })
  618. },
  619. // 返回图片列表
  620. assetTypeAnImage(filePath) {
  621. let imageList = []
  622. if (filePath != null && filePath.length > 0) {
  623. for (let i = 0; i < filePath.length; i++) {
  624. if (filePath[i].fileType == 'image') {
  625. imageList.push(filePath[i].fileUrl)
  626. }
  627. }
  628. }
  629. return imageList
  630. },
  631. clickFile(fileUrl, fileName, fileType) {
  632. if (fileType == 'image') {
  633. return
  634. } else if (fileType == 'video') {
  635. this.showTcPlayer = true
  636. setTimeout(() => {
  637. this.playVideo = fileUrl
  638. }, 500)
  639. } else {
  640. let a = document.createElement('a')
  641. a.download = fileName
  642. a.href = fileUrl
  643. a.target = '_blank'
  644. a.click()
  645. }
  646. },
  647. setValue(event) {
  648. this.centerTaskTaskDepts = []
  649. //签收选择部门
  650. if (event != null && event.length > 0) {
  651. for (let i = 0; i < event.length; i++) {
  652. if (event[i].label != undefined && event[i].value != undefined) {
  653. this.centerTaskTaskDepts.push({
  654. taskDeptId: event[i].value,
  655. taskDeptName: event[i].label
  656. })
  657. }
  658. }
  659. }
  660. },
  661. receiveTask(taskId, eventCode) {
  662. let param = {
  663. taskId: taskId,
  664. eventCode: eventCode,
  665. centerTaskTaskDepts: this.centerTaskTaskDepts
  666. }
  667. receiveTask(param).then(res => {
  668. //任务领取
  669. if (res.code == 200) {
  670. this.$message.success(`任务领取成功!`)
  671. this.deptOptions = []
  672. this.deptName = []
  673. this.centerTaskTaskDepts = []
  674. //刷新任务列表
  675. this.selectTaskList()
  676. this.showDeptConfirm = false
  677. }
  678. })
  679. },
  680. refusedTask(taskId, eventCode) {
  681. let param = {
  682. taskId: taskId,
  683. eventCode: eventCode,
  684. centerTaskTaskDepts: this.centerTaskTaskDepts
  685. }
  686. refusedTask(param).then(res => {
  687. //任务拒绝
  688. if (res.code == 200) {
  689. this.$message.success(`任务拒绝成功!`)
  690. this.deptOptions = []
  691. this.deptName = []
  692. this.centerTaskTaskDepts = []
  693. //刷新任务列表
  694. this.selectTaskList()
  695. this.showDeptConfirm = false
  696. }
  697. })
  698. },
  699. selectTaskDtpts(taskId, eventCode, state) {
  700. this.taskId = taskId
  701. this.eventCode = eventCode
  702. selectTaskDtpts({
  703. taskId: taskId
  704. }).then(res => {
  705. //任务领取部门列表
  706. if (res.code == 200) {
  707. this.deptOptions = res.data
  708. this.taskStatusButton = state
  709. this.showDeptConfirm = true
  710. }
  711. })
  712. },
  713. cancelEventShow() {
  714. console.log('关闭事件弹窗')
  715. this.eventCode = null
  716. this.eventLogList = []
  717. },
  718. cancelEventConfirm() {
  719. console.log('关闭任务选择部门')
  720. this.eventCode = null
  721. this.deptOptions = []
  722. this.deptName = []
  723. this.centerTaskTaskDepts = []
  724. },
  725. showEventDialog(eventCode) {
  726. this.eventCode = eventCode
  727. let that = this
  728. //获取事件详情
  729. getEventDetail({
  730. eventCode: eventCode
  731. }).then(res => {
  732. this.eventDialog = true
  733. this.eventLogList = res.data.eventlog
  734. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  735. this.address = res.data.catalogue.address
  736. this.eventType = res.data.catalogue.eventType
  737. this.eventId = res.data.catalogue.id
  738. this.longitude = res.data.catalogue.longitude
  739. this.latitude = res.data.catalogue.latitude
  740. let markersMap = {
  741. lng: 124.59,
  742. lat: 43.02,
  743. icon: 'marker',
  744. bindPopupHtml: '',
  745. click: '',
  746. parameter: '',
  747. keepBindPopup: false,
  748. isAggregation: false,
  749. radius: 0
  750. }
  751. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue
  752. .urgeCount == 0) {
  753. markersMap.icon = 'sj-icon-map-xinshangbao'
  754. }
  755. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue
  756. .urgeCount > 0) {
  757. markersMap.icon = 'sj-icon-map-cuiban'
  758. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  759. markersMap.icon = 'sj-icon-map-qianshou'
  760. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  761. markersMap.icon = 'sj-icon-map-banjie'
  762. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  763. markersMap.icon = 'sj-icon-map-guidang'
  764. }
  765. markersMap.lng = res.data.catalogue.longitude
  766. markersMap.lat = res.data.catalogue.latitude
  767. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  768. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0]
  769. .fireRadius > 0) {
  770. markersMap.radius = res.data.eventdetail[0].fireRadius
  771. }
  772. setTimeout(() => {
  773. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  774. that.$refs.supermapTaskDialog.clearM(false)
  775. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  776. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue.latitude, res.data
  777. .catalogue.longitude)
  778. }, 1000)
  779. })
  780. },
  781. selectTaskList: async function() {
  782. //获取任务列表
  783. selectTaskBO().then(res => {
  784. this.taskList = res.data
  785. this.taskCount = res.data.length
  786. })
  787. this.initWebSocket('TASK_SOCKET','/taskPush/',this.websockSid.userId)
  788. },
  789. selectMessageById(id) {
  790. selectMessageById(id).then(response => {
  791. /** 获取消息列表 */
  792. this.selectMessageList();
  793. });
  794. this.initWebSocket('MESSAGE_SOCKET','/messagePush/',this.websockSid.userId)
  795. },
  796. /** 获取消息列表 */
  797. selectMessageList(){
  798. selectMessageList(Cookies.get("userId")).then(response => {
  799. this.messageList = response.data
  800. this.messageCount = response.data.length
  801. });
  802. },
  803. handleCheckedCitiesChangeBan(value) {
  804. this.choseLayerSwitchingList(this.banCheckList)
  805. },
  806. handleCheckedCitiesChangeChang(value) {
  807. this.choseLayerSwitchingList(this.changCheckList)
  808. },
  809. refresh() {
  810. window.location.reload()
  811. },
  812. showDialog(click) {
  813. window.showDialog(click)
  814. },
  815. choseLayerSwitching(url, isClear) {
  816. window.choseLayerSwitching(url, isClear)
  817. },
  818. choseLayerSwitchingList(urlList) { //选择图层(传递数组)
  819. window.choseLayerSwitchingList(urlList)
  820. },
  821. forestban() {
  822. window.forestban()
  823. console.log('林班')
  824. },
  825. forestchang() {
  826. window.forestchang()
  827. console.log('林场')
  828. },
  829. closeBanChild() {
  830. this.banCheckList = []
  831. this.showBanChild = false
  832. },
  833. closeChangChild() {
  834. this.changCheckList = []
  835. this.showChangChild = false
  836. },
  837. //图例收起弹出
  838. btmIndent() {
  839. if (this.btmTipIndent == '') {
  840. this.btmTipIndent = 'btm-tip-to-right'
  841. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  842. this.btmTipIndent = ''
  843. }
  844. },
  845. searchFilterchang(filterchang) {
  846. //林场列表搜索
  847. let searchFilterchangnew = []
  848. if (filterchang != null && filterchang != '') {
  849. for (var i = 0; i < this.filterchangListAll.length; i++) {
  850. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  851. searchFilterchangnew.push(this.filterchangListAll[i])
  852. }
  853. }
  854. this.filterchangList = searchFilterchangnew
  855. } else {
  856. this.filterchangList = this.filterchangListAll
  857. }
  858. },
  859. //标记警报
  860. updateAlert() {
  861. this.eventWarn = true;
  862. },
  863. updateAlertFalse(){
  864. this.eventWarn = false;
  865. this.$emit('stopAudio');
  866. }
  867. }
  868. }
  869. </script>
  870. <style rel="stylesheet/scss" lang="scss" scoped>
  871. @import '@/assets/styles/base.scss';
  872. .dotClass {
  873. width: 10px;
  874. height: 10px;
  875. border-radius: 50%;
  876. display: block;
  877. margin: -5px;
  878. }
  879. .redClass {
  880. background-color: red;
  881. width: 10px;
  882. height: 10px;
  883. border-radius: 50%;
  884. display: block;
  885. }
  886. .btm-box {
  887. width: 100%;
  888. height: auto;
  889. background: linear-gradient($btmMemu);
  890. position: absolute;
  891. z-index: 999;
  892. bottom: 0;
  893. height: 2.5rem;
  894. display: flex;
  895. align-items: center;
  896. z-index: 9999;
  897. .light {
  898. position: absolute;
  899. top: -.5rem;
  900. }
  901. .btm-left {
  902. position: absolute;
  903. font-size: .7rem;
  904. height: 2rem;
  905. line-height: 2rem;
  906. border: 1px $searchBorder;
  907. border-left: none;
  908. color: $inBlue;
  909. display: flex;
  910. -webkit-transform: translateX(-21rem) !important;
  911. transform: translateX(-21rem) !important;
  912. transition: all 0.5s ease-in-out !important;
  913. .btm-legend {
  914. height: 2rem;
  915. text-align: center;
  916. color: $inBlue;
  917. padding: 0 .5rem;
  918. cursor: pointer;
  919. }
  920. .btm-legend:hover {
  921. background-color: $tipHover;
  922. color: $white;
  923. }
  924. .btm-left-tip {
  925. display: flex;
  926. align-items: center;
  927. margin: 0 .5rem;
  928. .btm-left-block {
  929. width: 1rem;
  930. height: 1rem;
  931. margin-right: .3rem;
  932. border-radius: .2rem;
  933. }
  934. .btm-left-state-c1 {
  935. background-color: $eventStateColor-xsb;
  936. }
  937. .btm-left-state-c2 {
  938. background-color: $eventStateColor-cb;
  939. }
  940. .btm-left-state-c3 {
  941. background-color: $eventStateColor-yqs;
  942. }
  943. .btm-left-state-c4 {
  944. background-color: $eventStateColor-ld;
  945. }
  946. .btm-left-state-c5 {
  947. background-color: $eventStateColor-bj;
  948. }
  949. .btm-left-state-c6 {
  950. background-color: $eventStateColor-tb;
  951. }
  952. }
  953. }
  954. .btm-tip-to-right {
  955. -webkit-transform: translateX(0) !important;
  956. transform: translateX(0) !important;
  957. transition: all 0.5s ease-in-out !important;
  958. }
  959. .bottom-menu-normal {
  960. max-width: 70%;
  961. padding: 0 3rem;
  962. position: absolute;
  963. left: 50%;
  964. transform: translateX(-50%);
  965. bottom: 0;
  966. z-index: 999;
  967. border-radius: 5px;
  968. display: flex;
  969. justify-content: center;
  970. align-items: center;
  971. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  972. // background-size: cover;
  973. .btm-m-con {
  974. position: relative;
  975. color: $inBlue;
  976. font-size: .5rem;
  977. padding: .6rem 1rem;
  978. display: flex;
  979. align-items: center;
  980. justify-content: center;
  981. -webkit-transform: translateY(0);
  982. transform: translateY(0);
  983. transition: all 0.2s ease-in-out;
  984. cursor: pointer;
  985. white-space: nowrap;
  986. i {
  987. font-size: 1rem;
  988. color: $inBlue;
  989. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  990. margin-right: 0.2rem;
  991. }
  992. .nav-child {
  993. text-shadow: none !important;
  994. position: absolute;
  995. bottom: 3rem;
  996. border: 1px solid saddlebrown;
  997. padding: .5rem;
  998. -moz-border-radius-topleft: 0;
  999. -moz-border-radius-bottomright: 0;
  1000. background-color: $barBgc;
  1001. box-shadow: $barShadow;
  1002. border: 1px $barBorder;
  1003. left: 50%;
  1004. transform: translateX(-50%);
  1005. color: $inBlue;
  1006. .nav-child-btn {
  1007. padding: .2rem;
  1008. }
  1009. .forestban {
  1010. display: flex;
  1011. .forestban-con {
  1012. width: 20rem;
  1013. height: 20rem;
  1014. overflow-y: scroll;
  1015. border: 1px solid rgba(51, 70, 127, 0.7);
  1016. }
  1017. .forestban-right {
  1018. width: 10rem;
  1019. height: 20rem;
  1020. overflow-y: scroll;
  1021. padding: 0 1rem;
  1022. .el-checkbox-group {
  1023. display: flex;
  1024. flex-direction: column;
  1025. label {
  1026. padding: .4rem 0;
  1027. }
  1028. .el-checkbox {
  1029. color: $white;
  1030. }
  1031. }
  1032. }
  1033. }
  1034. }
  1035. }
  1036. .btm-m-con:hover,
  1037. .on {
  1038. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1039. -webkit-transform: translateX(0.2rem);
  1040. transform: translateX(0.2rem);
  1041. transition: all 0.2s ease-in-out;
  1042. .nav-child {
  1043. text-shadow: none !important;
  1044. }
  1045. i {
  1046. color: $inBlueHover;
  1047. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1048. }
  1049. }
  1050. }
  1051. .btm-right {
  1052. position: absolute;
  1053. font-size: .7rem;
  1054. height: 2rem;
  1055. display: flex;
  1056. right: 1rem;
  1057. align-items: center;
  1058. .el-badge {
  1059. display: flex !important;
  1060. margin-left: 1.5rem;
  1061. button {
  1062. padding: 0 .3rem;
  1063. height: 1.5rem;
  1064. background-color: #112543;
  1065. color: $inBlue;
  1066. border: 1px $searchBorder;
  1067. }
  1068. }
  1069. .el-badge:hover {
  1070. -webkit-transform: translateX(0.1rem);
  1071. transform: translateX(0.1rem);
  1072. transition: all 0.2s ease-in-out;
  1073. button {
  1074. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1075. }
  1076. }
  1077. }
  1078. }
  1079. .btm-r-pop-info {
  1080. display: flex;
  1081. width: 35rem;
  1082. flex-direction: column;
  1083. max-height: 85vh;
  1084. min-height: fit-content;
  1085. overflow-y: scroll;
  1086. padding: 1rem;
  1087. .btm-r-pop-info-box:hover {
  1088. box-shadow: $shadowListHover;
  1089. color: $inBlue;
  1090. border: 1px $countBorder;
  1091. }
  1092. .btm-r-pop-info-box {
  1093. width: 100%;
  1094. display: flex;
  1095. flex-direction: column;
  1096. background-color: $deepBG;
  1097. padding: .5rem;
  1098. border-radius: .5rem;
  1099. color: $inBlue;
  1100. border: 1px $searchBorder;
  1101. margin-bottom: 1rem;
  1102. .btm-r-pop-info-tit {
  1103. display: flex;
  1104. padding: .5rem;
  1105. h3 {
  1106. font-weight: bolder;
  1107. }
  1108. }
  1109. .btm-r-pop-info-con {
  1110. padding: .5rem;
  1111. display: flex;
  1112. flex-direction: column;
  1113. border-top: 1px $searchBorder;
  1114. border-bottom: 1px $searchBorder;
  1115. .btm-r-pop-info-list {
  1116. display: flex;
  1117. padding: .3rem 0;
  1118. .btm-r-pop-info-list-name {
  1119. width: 3.6rem;
  1120. text-align: right;
  1121. margin-right: 1rem;
  1122. }
  1123. .btm-r-pop-info-list-text {}
  1124. }
  1125. }
  1126. .btm-r-pop-info-btm {
  1127. padding: .5rem;
  1128. display: flex;
  1129. justify-content: space-between;
  1130. .btm-r-pop-info-btm-btn {
  1131. button {
  1132. padding: .5rem;
  1133. }
  1134. }
  1135. }
  1136. }
  1137. }
  1138. //警铃
  1139. .fire-tip {
  1140. text-align: center;
  1141. width: 100%;
  1142. font-size: 44px;
  1143. color: #ff0000;
  1144. text-shadow: 0 0 1px #ffffff;
  1145. }
  1146. .fire-address {
  1147. text-align: center;
  1148. width: 100%;
  1149. font-size: 14px;
  1150. color: rgba(255, 255, 255, 0.8);
  1151. margin-top: 44px;
  1152. }
  1153. .fire-handle {
  1154. display: block;
  1155. text-align: center;
  1156. background: #00BFF0;
  1157. color: #ffffff;
  1158. border-radius: 20px;
  1159. font-size: 14px;
  1160. width: 80px;
  1161. height: 40px;
  1162. line-height: 40px;
  1163. margin: 24px auto;
  1164. text-decoration: none
  1165. }
  1166. .fire-handle:hover {
  1167. background: #06a2ca;
  1168. }
  1169. .bell {
  1170. position: absolute;
  1171. right: 10px;
  1172. bottom:-20px;
  1173. width: 100%;
  1174. height: 320px;
  1175. z-index: 999;
  1176. }
  1177. .bell canvas {
  1178. display: block;
  1179. position: absolute;
  1180. left: 0;
  1181. top: -9px;
  1182. }
  1183. /* 保持大小不变的小圆圈 */
  1184. .dot {
  1185. position: absolute;
  1186. width: 96px;
  1187. height: 96px;
  1188. left: 160px;
  1189. top: 160px;
  1190. background: url('../assets/images/bell.gif') no-repeat;
  1191. // background: url(.) no-repeat;
  1192. background-size: 100%;
  1193. z-index: 200;
  1194. }
  1195. /* 产生动画(向外扩散变大)的圆圈 */
  1196. .pulse,
  1197. .pulse-big {
  1198. position: absolute;
  1199. width: 420px;
  1200. height: 420px;
  1201. border: 2px solid #EF2D02;
  1202. background: rgba(239, 45, 2, 0.8);
  1203. border-radius: 50%;
  1204. z-index: 100;
  1205. opacity: 0;
  1206. }
  1207. .pulse {
  1208. background: rgba(239, 45, 2, 0.6) !important;
  1209. -webkit-animation: warn 0.9s ease-out;
  1210. -moz-animation: warn 0.9s ease-out;
  1211. animation: warn 0.9s ease-out;
  1212. -webkit-animation-iteration-count: infinite;
  1213. -moz-animation-iteration-count: infinite;
  1214. animation-iteration-count: infinite;
  1215. box-shadow: 1px 1px 30px #EF2D02;
  1216. }
  1217. .pulse-big {
  1218. background: rgba(239, 45, 2, 0.6) !important;
  1219. -webkit-animation: warn1 0.9s ease-out;
  1220. -moz-animation: warn1 0.9s ease-out;
  1221. animation: warn1 0.9s ease-out;
  1222. -webkit-animation-iteration-count: infinite;
  1223. -moz-animation-iteration-count: infinite;
  1224. animation-iteration-count: infinite;
  1225. box-shadow: 1px 1px 30px #EF2D02;
  1226. }
  1227. @keyframes warn {
  1228. 0% {
  1229. -moz-transform: scale(0);
  1230. transform: scale(0);
  1231. opacity: 1;
  1232. }
  1233. 100% {
  1234. -moz-transform: scale(1);
  1235. transform: scale(1);
  1236. opacity: 0;
  1237. }
  1238. }
  1239. @keyframes warn1 {
  1240. 0% {
  1241. -o-transform: scale(0);
  1242. transform: scale(0);
  1243. opacity: 1;
  1244. }
  1245. 100% {
  1246. -o-transform: scale(0.6);
  1247. transform: scale(0.6);
  1248. opacity: 0;
  1249. }
  1250. }
  1251. </style>