syzDetails.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <template>
  2. <el-dialog
  3. width="90%"
  4. @open="opened"
  5. @closed="closed"
  6. :fullscreen="true"
  7. :show-close="true"
  8. class="dialogs"
  9. >
  10. <template #title>
  11. <div class="showTitles currentShowTitles">
  12. <div class="titles">升压站</div>
  13. </div>
  14. </template>
  15. <div class="bodyy">
  16. <el-tabs
  17. type="border-card"
  18. stretch
  19. lazy
  20. style="width: 100%; height: 100%"
  21. v-model="activeTab"
  22. @tab-click="tabClick"
  23. >
  24. <el-tab-pane
  25. class="syzDetailsPaneItem"
  26. v-for="(item, index) in syzArray"
  27. :key="index"
  28. :name="item.id"
  29. >
  30. <template #label>
  31. <span v-if="pageshowMode % 2">
  32. <el-badge is-dot v-if="item.isWarning === '1'">
  33. <span>{{ item.name }}</span>
  34. </el-badge>
  35. <span v-else>{{ item.name }}</span>
  36. </span>
  37. <span v-else>
  38. <el-badge is-dot v-if="item.isWarning === '1'">
  39. <span>{{ item.name }}</span>
  40. </el-badge>
  41. <span v-else>{{ item.name }}</span>
  42. </span>
  43. </template>
  44. <div class="buttonGroup" v-if="item.id === 'all'" >
  45. <el-button-group>
  46. <el-button type="plain" size="small" @click="changeHeight('D')" :class="allHeight === 'D' ? 'showSty' : ''">大图标</el-button>
  47. <el-button type="plain" size="small" @click="changeHeight('Z')" :class="allHeight === 'Z' ? 'showSty' : ''">中图标</el-button>
  48. <el-button type="plain" size="small" @click="changeHeight('X')" :class="allHeight === 'X' ? 'showSty' : ''">小图标</el-button>
  49. </el-button-group>
  50. </div>
  51. <div v-if="item.id === 'all'" :style="allpageHeight" style="width: 100%;display: inline-block;overflow-y:auto">
  52. <div v-for="(item, index) in allSvgMsgData" :key="index" :style="getStyle(allHeight)">
  53. <div class="showAllSvgMsg" @dblclick="dblgetSvgDataFn(item.id)" :class="getWarnstyle(item)">
  54. <div class="showAllSvgMsg_top" v-html="item.msg"></div>
  55. <div class="showAllSvgMsg_bot">
  56. <span>{{item.name}}</span>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <div id="svg" :style="pageHeight" v-if="item.id !== 'all' && item.id === activeTab" v-html="svgMsg" v-loading="loading"></div>
  62. <!-- <Mhs ref="svgRef" v-if="item.id === 'MHS_BT'" />
  63. <Nss ref="svgRef" v-if="item.id === 'NSS_FDC'" />
  64. <Qs ref="svgRef" v-if="item.id === 'QS_FDC'" />
  65. <Sbq ref="svgRef" v-if="item.id === 'SBQ_FDC'" />
  66. <Xs ref="svgRef" v-if="item.id === 'XS_FDC'" /> -->
  67. <!-- <Pl1 ref="svgRef" v-if="item.id === 'PL1_GDC'" />
  68. <Pl2 ref="svgRef" v-if="item.id === 'PL2_GDC'" />
  69. <Dwk ref="svgRef" v-if="item.id === 'DWK_GDC'" />
  70. <Mch ref="svgRef" v-if="item.id === 'MCH_GDC'" />
  71. <Xh ref="svgRef" v-if="item.id === 'XH_GDC'" />
  72. <Sbdl ref="svgRef" v-if="item.id === 'QS3_FDC'" /> -->
  73. <div class="alarmIconBox" v-if="item.id !== 'all'" @click="switchAlarmSound(index)">
  74. <el-tooltip
  75. v-if="item.isMute"
  76. effect="light"
  77. :content="`当前${item.name}升压站报警已消音,请注意`"
  78. placement="left"
  79. >
  80. <i
  81. class="el-icon-close-notification"
  82. style="color: orangered"
  83. ></i>
  84. </el-tooltip>
  85. <i v-else class="el-icon-bell" style="color: rgb(219, 215, 0)"></i>
  86. </div>
  87. </el-tab-pane>
  88. </el-tabs>
  89. <CurrentWarningCard
  90. :currentClass="$store.state.currentWarningCardClass"
  91. :activeTab="activeTab || 'MHS_FDC'"
  92. v-if="activeTab !== 'all'"
  93. />
  94. </div>
  95. </el-dialog>
  96. </template>
  97. <script>
  98. import Mhs from "../BoosterStation/mhs.vue";
  99. import Nss from "../BoosterStation/nss.vue";
  100. import Qs from "../BoosterStation/qs.vue";
  101. import Sbq from "../BoosterStation/sbq.vue";
  102. import Xs from "../BoosterStation/xs.vue";
  103. import Dwk from "../BoosterStation/dwk.vue";
  104. import Sbdl from "../BoosterStation/sbdl.vue";
  105. import Pl1 from "../BoosterStation/pl1.vue";
  106. import Pl2 from "../BoosterStation/pl2.vue";
  107. import Mch from "../BoosterStation/mch.vue";
  108. import Xh from "../BoosterStation/xh.vue";
  109. import api from "api/index";
  110. import CurrentWarningCard from "./currentWarningCard.vue";
  111. export default {
  112. props: {
  113. activeTabStation: {
  114. type: String,
  115. default: "",
  116. },
  117. },
  118. components: {
  119. Mhs,
  120. Nss,
  121. Qs,
  122. Sbq,
  123. Xs,
  124. Dwk,
  125. Sbdl,
  126. Pl1,
  127. Pl2,
  128. Mch,
  129. Xh,
  130. CurrentWarningCard
  131. },
  132. data() {
  133. return {
  134. activeTab: this.$store.state.activeTab,
  135. svgVisible: true,
  136. audio: null,
  137. timmer: null,
  138. syzArray: [],
  139. pageshowMode: 0,
  140. svgMsg: '',
  141. loading: false,
  142. allTagidArr: [],
  143. starTimer: null,
  144. allTagsMS: {},
  145. allrefreshData: {},
  146. allConditions: {},
  147. onlytag: {},
  148. allSvgMsgData: [],
  149. allHeight: 'D',
  150. allWarnData: [],
  151. starTimerWarn: null,
  152. numm: 0,
  153. stationSort: []
  154. };
  155. },
  156. computed: {
  157. pageHeight() {
  158. return {
  159. 'height': document.documentElement.clientHeight-60 + 'px'
  160. }
  161. },
  162. allpageHeight() {
  163. return {
  164. 'height': document.documentElement.clientHeight-200 + 'px'
  165. }
  166. },
  167. },
  168. mounted() {
  169. },
  170. updated() {},
  171. methods: {
  172. // 获取升压站报警数据
  173. getSyzWarnData() {
  174. api.alarmFault().then((res) => {
  175. if (res && res.data) {
  176. let datas = res.data
  177. let arr = []
  178. datas.forEach(it =>{
  179. if (it.rank === '5' && it.category1 === 'SYZ') {
  180. // if (it.stationName.indexOf('风电场') !== -1 ) {
  181. // str = it.stationName.substring(0, it.stationName.indexOf('风电场'))
  182. // } else if (it.stationName.indexOf('光伏电站') !== -1) {
  183. // str = it.stationName.substring(0, it.stationName.indexOf('光伏电站'))
  184. // }
  185. arr.push(it.category2)
  186. }
  187. // let str = ''
  188. })
  189. this.allWarnData = this.unique(arr)
  190. }
  191. })
  192. },
  193. unique(arr) {
  194. let newArr = []
  195. for(let i=0; i<arr.length; i++) {
  196. if (newArr.indexOf(arr[i]) === -1) {
  197. newArr.push(arr[i])
  198. }
  199. }
  200. return newArr
  201. },
  202. getWarnstyle(item) {
  203. let showWarn = ''
  204. this.allWarnData.forEach(it=> {
  205. if (it === item.id) {
  206. showWarn = 'warningMaskNew'
  207. }
  208. })
  209. return showWarn
  210. },
  211. getStyle(type) {
  212. let num = null
  213. let num1 = null
  214. let num2 = null
  215. if (type === 'D') {
  216. return {
  217. 'width': '33.3%',
  218. 'float': 'left',
  219. 'height': '400px'
  220. }
  221. } else if (type === 'Z') {
  222. num = parseInt(this.allSvgMsgData.length / 4)
  223. num1 = this.allSvgMsgData.length % 4
  224. num2 = num1 > 0 ? num + 1 : num
  225. return {
  226. 'width': '25%',
  227. 'float': 'left',
  228. 'height': (document.documentElement.clientHeight-200) / num2 + 'px'
  229. }
  230. } else {
  231. num = parseInt(this.allSvgMsgData.length / 5)
  232. num1 = this.allSvgMsgData.length % 5
  233. num2 = num1 > 0 ? num + 1 : num
  234. return {
  235. 'width': '20%',
  236. 'float': 'left',
  237. 'height': (document.documentElement.clientHeight-200) / num2 + 'px'
  238. }
  239. }
  240. },
  241. changeHeight(type) {
  242. this.allHeight = type
  243. },
  244. getAllStationtab() {
  245. let obj = {
  246. id: 'all',
  247. name: '全部'
  248. }
  249. api.getAllStationTab().then((res) => {
  250. if (res && res.data) {
  251. res.data.unshift(obj)
  252. this.syzArray = res.data
  253. this.activeTab = res.data[0].id
  254. if (this.activeTab === 'all') {
  255. let allMsg = res.data
  256. this.allSvgMsgData = []
  257. this.stationSort = []
  258. allMsg.forEach(it =>{
  259. if (it.id !== 'all') {
  260. this.stationSort.push(it.name)
  261. this.getallSvgDataFn(it.id, it.name)
  262. }
  263. })
  264. // window.sessionStorage.setItem('allSvgData', [])
  265. console.log('allSvgMsgData', this.allSvgMsgData)
  266. console.log('stationSort', this.stationSort)
  267. console.log('allMsg', allMsg)
  268. }
  269. // this.getSvgDataFn(res.data[0].id)
  270. }
  271. })
  272. },
  273. // 获取所有升压站数据
  274. getallSvgDataFn(id, name) {
  275. let params = {
  276. id: id
  277. }
  278. api.getSvgData(params).then((res) => {
  279. let str = ''
  280. str = res.data.substring(res.data.indexOf('<svg'))
  281. str = str.replace('<svg', '<svg viewBox="0 -100 1900 1260"')
  282. let obj = {
  283. id: id,
  284. name: name,
  285. msg: str
  286. }
  287. this.allSvgMsgData.push(obj)
  288. if (this.allSvgMsgData.length === this.stationSort.length) {
  289. let sortArr = []
  290. this.stationSort.forEach(itc =>{
  291. this.allSvgMsgData.forEach(itb =>{
  292. if (itc === itb.name) {
  293. sortArr.push(itb)
  294. }
  295. })
  296. })
  297. this.allSvgMsgData = sortArr
  298. }
  299. })
  300. },
  301. // 获取升压站数据
  302. getSvgDataFn(val) {
  303. this.svgMsg = ''
  304. this.loading = true
  305. let params = {
  306. id: val
  307. }
  308. api.getSvgData(params).then((res) => {
  309. if (res && res.data) {
  310. let str = ''
  311. str = res.data.substring(res.data.indexOf('<svg'))
  312. str = str.replace('<svg', '<svg viewBox="0 0 1900 1260"')
  313. this.svgMsg = str
  314. let html = document.getElementById('svg')
  315. let svg1 = document.getElementsByTagName('svg')
  316. this.$nextTick(() =>{
  317. if (svg1) {
  318. let allTags = []
  319. let allTagsxc = []
  320. let status = ['g', 'text', 'rect', 'line', 'polyline', 'circle', 'ellipse', 'polygon']
  321. status.forEach(it =>{
  322. let allgs = []
  323. allgs = document.querySelectorAll(it);
  324. allTags.push(allgs)
  325. })
  326. allTags = [...allTags[0], ...allTags[1], ...allTags[2], ...allTags[3], ...allTags[4], ...allTags[5], ...allTags[6], ...allTags[7]]
  327. allTags.forEach((it) => {
  328. if (it.getAttribute("tagid")) {
  329. allTagsxc.push(it);
  330. }
  331. });
  332. console.log('allTags222=>', allTagsxc)
  333. this.allTagidArr = allTagsxc
  334. this.getSvgInfo()
  335. }
  336. console.log('html111=>', html)
  337. })
  338. this.loading = false
  339. }
  340. })
  341. },
  342. // 获取触发器
  343. getSvgInfo() {
  344. let params = {
  345. id: this.activeTab
  346. }
  347. api.getAllStationSvgInfo(params).then((res) => {
  348. if (res && res.data) {
  349. if (res.data.tags) {
  350. let strarr = []
  351. let str = ''
  352. for(let i in res.data.tags) {
  353. strarr.push(res.data.tags[i].tag)
  354. }
  355. str = strarr.join(',')
  356. this.allTagsMS = res.data.tags
  357. this.allConditions = res.data.conditions
  358. // this.getrefreshData(str)
  359. this.starTimer = setInterval(() =>{
  360. this.getrefreshData(str)
  361. }, 1000)
  362. }
  363. console.log('SvgInfo333=>', res)
  364. }
  365. })
  366. },
  367. // 获取根盾数据
  368. getrefreshData(val) {
  369. api.refreshData(val).then((res) => {
  370. if (res && res.data) {
  371. this.allrefreshData = res.data
  372. this.refreshDataFn(this.allTagsMS)
  373. }
  374. console.log('refreshData444=>', res)
  375. })
  376. },
  377. // 刷新数据
  378. refreshDataFn(datas) {
  379. for (let it in datas) {
  380. let tagId = datas[it];
  381. this.toRefreshFn(it, tagId);
  382. }
  383. },
  384. // 刷新自定义组件
  385. toRefreshFn(val, data) {
  386. var tag = this.allrefreshData[data.tag];
  387. if (!tag) return;
  388. this.allTagidArr.forEach(it =>{
  389. this.onlytag = {}
  390. if (it.attributes.tagid) {
  391. if (val === it.attributes.tagid.value) {
  392. this.onlytag = it
  393. if (it.nodeName === 'polyline') {
  394. console.log('onlyTag666', this.onlytag)
  395. }
  396. if (it.nodeName !== 'text') {
  397. if (this.onlytag.attributes.csid) {
  398. let csid = this.onlytag.attributes.csid.value.split(';')
  399. csid.forEach(ic =>{
  400. if (ic) {
  401. if (!this.allConditions[ic].isBinding) {
  402. let num = parseInt(this.allConditions[ic].value) === 0 ? '0' : parseInt(this.allConditions[ic].value)
  403. if (num) {
  404. let num2 = tag.value === 0 ? '0' : tag.value
  405. if (num === num2) {
  406. this.onlytag.setAttribute(this.allConditions[ic].property, this.allConditions[ic].propertyValue)
  407. return
  408. }
  409. }
  410. } else {
  411. this.onlytag.setAttribute(this.allConditions[ic].property, this.allConditions[ic].propertyValue)
  412. }
  413. }
  414. })
  415. }
  416. } else {
  417. this.onlytag.textContent = tag.value.toFixed(2)
  418. }
  419. }
  420. }
  421. })
  422. // console.log('onlyTag555', this.onlytag)
  423. },
  424. // '全部'界面双击事件
  425. dblgetSvgDataFn(name) {
  426. this.activeTab = name
  427. this.getSvgDataFn(name)
  428. },
  429. // 初始化第一次报警并判断是否播放声音
  430. initAlarm() {
  431. let syzAlarmArray = this.$store.getters.syzAlarmArray;
  432. const firstAlarmItem = syzAlarmArray.find((ele) => {
  433. return !ele.isConfirm && ele.rank === this.$store.state.syzAlarmRank;
  434. });
  435. firstAlarmItem &&
  436. this.audioPlay(this.getSound(firstAlarmItem.soundSource));
  437. firstAlarmItem &&
  438. this.$store.getters.syzAlarmArray.forEach((ele) => {
  439. if (ele.stationId === firstAlarmItem.stationId) {
  440. ele.isConfirm = true;
  441. }
  442. });
  443. this.activeTab =
  444. this.activeTabStation ||
  445. firstAlarmItem?.stationId ||
  446. syzAlarmArray.find((ele) => {
  447. return ele.rank === this.$store.state.syzAlarmRank;
  448. })?.stationId ||
  449. this.$store.getters.syzArray[0].id;
  450. syzAlarmArray.forEach((ele) => {
  451. if (ele.stationId === firstAlarmItem?.stationId) {
  452. ele.isConfirm = true;
  453. this.clearWarningTag(ele.stationId);
  454. } else if (
  455. !ele.isConfirm &&
  456. ele.stationId !== firstAlarmItem?.stationId
  457. ) {
  458. this.renderWarningTag(ele.stationId);
  459. }
  460. });
  461. this.$store.commit("syzAlarmArray", syzAlarmArray);
  462. },
  463. // 定时器循环数据判断小红点渲染及是否播放声音
  464. renderAlarm(stationId = "", playSound = true) {
  465. let syzAlarmArray = this.$store.getters.syzAlarmArray;
  466. syzAlarmArray.forEach((ele) => {
  467. if (ele.stationId === stationId) {
  468. ele.isConfirm = true;
  469. this.clearWarningTag(ele.stationId);
  470. } else if (!ele.isConfirm && ele.stationId !== stationId) {
  471. this.renderWarningTag(ele.stationId);
  472. }
  473. });
  474. const res = syzAlarmArray.find((ele) => {
  475. return !ele.isConfirm;
  476. });
  477. if (playSound) {
  478. // this.audioPlay("./static/sound/syz.mp3");
  479. }
  480. this.$store.commit("syzAlarmArray", syzAlarmArray);
  481. },
  482. // 返回音频文件路径
  483. getSound(fileName) {
  484. return `./static/sound/${fileName}.mp3`;
  485. },
  486. // 播放音频
  487. audioPlay(audioPath) {
  488. let soundMuteSelf = [];
  489. let soundMuteOther = [];
  490. this.$store.getters.syzAlarmArray.forEach((ele) => {
  491. if (ele.stationId === this.activeTab) {
  492. soundMuteSelf.push(ele);
  493. } else {
  494. soundMuteOther.push(ele);
  495. }
  496. });
  497. let alarmSelfLock = soundMuteSelf.some((ele) => {
  498. return !ele.isConfirm;
  499. });
  500. let alarmOtherLock = soundMuteOther.some((ele) => {
  501. return !ele.isConfirm;
  502. });
  503. if (alarmOtherLock) {
  504. this.audio = new Audio(audioPath);
  505. this.audio.play();
  506. } else if (alarmSelfLock) {
  507. this.$store.getters.syzArray.forEach((ele) => {
  508. if (ele.stationId === this.activeTab) {
  509. ele.isMute = false;
  510. this.audio = new Audio(audioPath);
  511. this.audio.play();
  512. }
  513. });
  514. } else if (!alarmSelfLock) {
  515. this.$store.getters.syzArray.forEach((ele) => {
  516. if (ele.stationId === this.activeTab) {
  517. if (!ele.isMute) {
  518. this.audio = new Audio(audioPath);
  519. this.audio.play();
  520. }
  521. }
  522. });
  523. }
  524. },
  525. // 显示某个小红点
  526. renderWarningTag(stationId = "") {
  527. this.$store.getters.syzArray.forEach((ele) => {
  528. if (ele.id === stationId) {
  529. ele.isWarning = "1";
  530. }
  531. });
  532. this.pageshowMode++;
  533. },
  534. // 清除某个小红点
  535. clearWarningTag(stationId = "") {
  536. this.$store.getters.syzArray.forEach((ele) => {
  537. if (ele.id === stationId) {
  538. ele.isWarning = "0";
  539. }
  540. });
  541. this.pageshowMode++;
  542. },
  543. // 切换报警声音开关
  544. switchAlarmSound(index) {
  545. this.$store.getters.syzArray[index].isMute =
  546. !this.$store.getters.syzArray[index].isMute;
  547. },
  548. opened() {
  549. this.initAlarm();
  550. this.getAllStationtab()
  551. this.timmer = setInterval(() => {
  552. this.renderAlarm();
  553. }, 3000);
  554. let starTimerWarn = setInterval(() =>{
  555. this.getSyzWarnData()
  556. }, 2000)
  557. if (this.activeTabStation) {
  558. setTimeout(() => {
  559. clearInterval(this.starTimer);
  560. this.starTimer = null;
  561. this.$store.commit("activeTab", this.activeTabStation);
  562. this.renderAlarm(this.activeTabStation, false);
  563. if (this.activeTabStation !== 'all') {
  564. this.activeTab = this.activeTabStation
  565. this.debounce(this.getSvgDataFn(this.activeTabStation), 200)
  566. }
  567. }, 100);
  568. }
  569. },
  570. closed() {
  571. // this.$refs.svgRef[0].closed()
  572. // this.$refs.svgRef[1].closed()
  573. // this.$refs.svgRef[2].closed()
  574. // this.$refs.svgRef[3].closed()
  575. // this.$refs.svgRef[4].closed()
  576. clearInterval(this.starTimer);
  577. clearInterval(this.starTimerWarn);
  578. clearInterval(this.timmer);
  579. this.starTimer = null
  580. this.starTimerWarn = null
  581. this.timmer = null;
  582. this.$store.commit("activeTab", "");
  583. this.$store.commit("syzDialogShow", false);
  584. },
  585. tabClick(res) {
  586. clearInterval(this.starTimer);
  587. this.starTimer = null;
  588. this.$store.commit("activeTab", res.props.name);
  589. this.renderAlarm(res.props.name, false);
  590. if (res.props.name !== 'all') {
  591. this.debounce(this.getSvgDataFn(res.props.name), 200)
  592. // this.getSvgDataFn(res.props.name)
  593. }
  594. },
  595. debounce(fn, delay) {
  596. var delay = delay || 200;
  597. var timer;
  598. return function () {
  599. var th = this;
  600. var args = arguments;
  601. if (timer) {
  602. clearTimeout(timer);
  603. }
  604. timer = setTimeout(function () {
  605. timer = null;
  606. fn.apply(th, args);
  607. }, delay);
  608. };
  609. },
  610. throttle(fn, interval) {
  611. var last;
  612. var timer;
  613. var interval = interval || 200;
  614. return function () {
  615. var th = this;
  616. var args = arguments;
  617. var now = +new Date();
  618. if (last && now - last < interval) {
  619. clearTimeout(timer);
  620. timer = setTimeout(function () {
  621. last = now;
  622. fn.apply(th, args);
  623. }, interval);
  624. } else {
  625. last = now;
  626. fn.apply(th, args);
  627. }
  628. }
  629. }
  630. },
  631. watch: {
  632. "$store.state.syzArray"(res) {
  633. this.syzArray = res;
  634. },
  635. },
  636. };
  637. </script>
  638. <style lang="less" scoped>
  639. .bodyy {
  640. display: flex;
  641. flex-direction: row;
  642. background-color: black;
  643. width: 98%;
  644. margin-top: -30px;
  645. height: 90vh;
  646. position: relative;
  647. overflow: hidden;
  648. margin-left: 44px;
  649. .syzDetailsPaneItem {
  650. position: relative;
  651. .buttonGroup{
  652. margin-bottom: 10px;
  653. display: flex;
  654. // justify-content: end;
  655. float: right;
  656. .el-button-group{
  657. .el-button{
  658. min-height: 30px !important;
  659. }
  660. .showSty{
  661. color: #409eff;
  662. border-color: #c6e2ff;
  663. background-color: #ecf5ff;
  664. outline: 0;
  665. }
  666. }
  667. }
  668. .warningMaskNew {
  669. background-color: rgba(186, 50, 55, 0.5);
  670. animation: fade 2000ms infinite;
  671. -webkit-animation: fade 2000ms infinite;
  672. }
  673. @keyframes fade {
  674. from {
  675. opacity: 0.7;
  676. }
  677. 50% {
  678. opacity: 0.3;
  679. }
  680. to {
  681. opacity: 0.7;
  682. }
  683. }
  684. @-webkit-keyframes fade {
  685. from {
  686. opacity: 0.7;
  687. }
  688. 50% {
  689. opacity: 0.3;
  690. }
  691. to {
  692. opacity: 0.7;
  693. }
  694. }
  695. .showAllSvgMsg{
  696. width: calc(100% - 15px);
  697. height: calc(100% - 15px);
  698. // padding: 20px;
  699. // margin-bottom: 20px;
  700. // background: #3a3a3a;
  701. // border: 3px solid #3a3a3a;
  702. border: 3px solid #646464;
  703. border-radius: 10px;
  704. .showAllSvgMsg_top{
  705. border-radius: 10px 10px 0 0;
  706. height: calc(100% - 40px);
  707. width: 100%;
  708. // background: #fff;
  709. }
  710. .showAllSvgMsg_bot{
  711. background: #3a3a3a;
  712. border-radius: 0 0 8px 8px;
  713. height: 40px;
  714. text-align: center;
  715. span{
  716. position: relative;
  717. top: 10px;
  718. font-weight: bold;
  719. color: #fff;
  720. }
  721. }
  722. }
  723. .alarmIconBox {
  724. position: absolute;
  725. right: 0;
  726. top: 0;
  727. cursor: pointer;
  728. i {
  729. font-size: 20px;
  730. }
  731. }
  732. }
  733. }
  734. </style>
  735. <style lang="less">
  736. .bodyy {
  737. .pop-up-main,
  738. .paln-box {
  739. width: 100%;
  740. height: 90vh;
  741. overflow: hidden;
  742. position: relative;
  743. }
  744. .movableItem {
  745. // width: 1920PX !important;
  746. // height: 800PX !important;
  747. .svg {
  748. // width: 100%;
  749. // height: 92%;
  750. margin-left: 0;
  751. margin-top: 8%;
  752. }
  753. }
  754. .el-badge__content.is-fixed.is-dot {
  755. right: 0;
  756. top: 10px;
  757. background: #f25656;
  758. animation: twinkle 0.75s infinite;
  759. border-color: transparent;
  760. }
  761. @keyframes twinkle {
  762. 0% {
  763. opacity: 0;
  764. }
  765. 50% {
  766. opacity: 1;
  767. }
  768. 100% {
  769. opacity: 0;
  770. }
  771. }
  772. }
  773. .currentShowTitles {
  774. width: 100%;
  775. position: relative;
  776. .alarIcon {
  777. position: absolute;
  778. right: 50px;
  779. top: 5;
  780. font-size: 20px;
  781. cursor: pointer;
  782. }
  783. }
  784. </style>