vBottomMenu.vue 43 KB

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