vBottomMenu.vue 39 KB

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