nitrogenHome_bd.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  1. <template>
  2. <div>{{ Math.random() }}</div>
  3. <div id="nitrogen3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"></div>
  4. <div id="nitrogenCss3D" class="threejs-Object-CSS"
  5. style="width: 100%; height: 100%; position: absolute; pointer-events: none; overflow: hidden; z-index: 2; top: 0px; left: 0px">
  6. <a-spin :spinning="loading" />
  7. <template>
  8. <div v-for="groupNum in 1" :key="groupNum" class="modal-monitor">
  9. <fourBorderBg :class="`kyj${groupNum}`" :id="`nitrogenMonitor${groupNum}`">
  10. <div class="title">{{ monitorData[0]['strname'] }} </div>
  11. <div class="monitor-item">
  12. <span class="monitor-title">实时流量:</span>
  13. <span class="monitor-val" v-if="!refresh"><span class="val">{{
  14. monitorData[0]['flow'] ? monitorData[0]['flow'] : '-' }}</span>
  15. <span class="unit">m³/min</span></span>
  16. </div>
  17. <div class="monitor-item">
  18. <span class="monitor-title">单次流量:</span>
  19. <span class="monitor-val" v-if="!refresh"><span class="val">{{
  20. monitorData[0]['single_flow'] ? monitorData[0]['single_flow'] : '-'
  21. }}</span>
  22. <span class="unit">m³</span></span>
  23. </div>
  24. <div class="monitor-item">
  25. <span class="monitor-title">总流量:</span>
  26. <span class="monitor-val" v-if="!refresh"><span class="val">{{
  27. monitorData[0]['total_flow'] ? monitorData[0]['total_flow'] : '-'
  28. }}</span>
  29. <span class="unit">m³</span></span>
  30. </div>
  31. <div class="monitor-item">
  32. <span class="monitor-title">氧浓度:</span>
  33. <span class="monitor-val" v-if="!refresh"><span class="val">{{
  34. monitorData[0]['oxygen_concentration'] ? monitorData[0]['oxygen_concentration'] : '-'
  35. }}</span>
  36. <span class="unit">%</span></span>
  37. </div>
  38. </fourBorderBg>
  39. </div>
  40. </template>
  41. </div>
  42. <div class="nitrogen-home">
  43. <div class="nitrogen-container">
  44. <div class="top-box">
  45. <!-- 中间区域控制按钮 -->
  46. <div class="center-item-box">
  47. <div class="top-left">
  48. <div class="button-box" @click="handlerDevice(airCompressorState[0], '主机启动')">主机启动</div>
  49. <div class="button-box" @click="handlerDevice(airCompressorState[0], '主机停止')">主机停止</div>
  50. <div class="button-box" @click="handlerDevice(airCompressorState[0], '备机启动')">备机启动</div>
  51. <div class="button-box" @click="handlerDevice(airCompressorState[0], '备机停止')">备机停止</div>
  52. </div>
  53. <div class="top-center">
  54. <div class="top-c-label">通信状态:</div>
  55. <div class="top-c-val">{{ monitorData[0]['netStatus']==1 ? '连接' : monitorData[0]['netStatus']==0 ? '断开' : '未知' }}</div>
  56. </div>
  57. <div class="top-right">
  58. <div class="control-type">
  59. <div class="control-title">运行状态:</div>
  60. <a-radio-group v-model:value="monitorData[0]['overhaul_run']">
  61. <a-radio :value="`1`" disabled>检修</a-radio>
  62. <a-radio :value="`0`" disabled>运行</a-radio>
  63. </a-radio-group>
  64. </div>
  65. <div class="control-type">
  66. <div class="control-title">控制模式:</div>
  67. <a-radio-group v-model:value="monitorData[0]['remote_local']">
  68. <a-radio :value="`1`" disabled>就地</a-radio>
  69. <a-radio :value="`0`" disabled>远程</a-radio>
  70. </a-radio-group>
  71. </div>
  72. </div>
  73. </div>
  74. <!-- 底部区域故障数据 -->
  75. <div class="footer-item-box">
  76. <div class="device-detail">
  77. <div class="device-title">&nbsp</div>
  78. <div class="device-val">主机进气蝶阀</div>
  79. <div class="device-val">主机出气蝶阀</div>
  80. <div class="device-val">备机进气蝶阀</div>
  81. <div class="device-val">备机出气蝶阀</div>
  82. <!-- <div class="device-val">故障</div> -->
  83. </div>
  84. <div v-for="(device, key) in deviceMonitorList" class="device-detail" :key="key">
  85. <div class="device-title">{{ device.title }}</div>
  86. <div v-for="(detailItem, index) in device.dataList" :key="detailItem.code" class="device-val">
  87. <span :style="{ color: monitorData[0][detailItem.code] != '1' ? '#BFBFBF' : '#10BC79' }">{{
  88. monitorData[0][detailItem.code] == '0' ? '正常' : monitorData[0][detailItem.code] == '1' ?
  89. '故障' :
  90. '-'
  91. }}</span>
  92. <!-- <span v-if="index == 1"
  93. :style="{ color: monitorData[0][detailItem.code] != '1' ? '#BFBFBF' : '#10BC79' }">{{
  94. monitorData[0][detailItem.code] == '0' ? '正常' : monitorData[0][detailItem.code] == '1' ? '故障' :
  95. '-'
  96. }}</span> -->
  97. </div>
  98. </div>
  99. </div>
  100. <!-- 左边监测数据 -->
  101. <div class="lr-box left-box">
  102. <div class="item item-l" v-for="(groupNum, ind) in monitorDataGroupNum" :key="groupNum">
  103. <ventBox1>
  104. <template #title>
  105. <!-- <div>{{ monitorData[groupNum - 1]['strname'] }}</div> -->
  106. <div v-if="ind == 0">{{ `${monitorData[0]['strname']}-主` }}</div>
  107. <div v-else>{{ `${monitorData[0]['strname']}-备` }}</div>
  108. </template>
  109. <template #container>
  110. <div class="monitor-box">
  111. <div class="parameter-title group-parameter-title">
  112. <SvgIcon class="icon" size="38" name="device-group-paramer" /><span>进气蝶阀参数</span>
  113. </div>
  114. <div v-if="ind == 0">
  115. <div class="state-item" v-for="(data, index) in groupParameterData" :key="index">
  116. <div class="item-col">
  117. <span class="state-title1">{{ Object.values(data)[0] }} :</span>
  118. <span class="state-val1" v-if="index == 0">{{
  119. (monitorData.length > 0 && monitorData[0][Object.keys(data)[0]])
  120. >= 0
  121. ? monitorData[0][Object.keys(data)[0]] ?
  122. parseFloat(monitorData[0][Object.keys(data)[0]]).toFixed(2) : '-'
  123. : '-'
  124. }}</span>
  125. <span class="state-val" v-else>
  126. <span v-if="monitorData[0][Object.keys(data)[0]] == '0'"
  127. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  128. <span v-else-if="monitorData[0][Object.keys(data)[0]] == '1'"
  129. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  130. <span v-else
  131. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  132. </span>
  133. </div>
  134. <div class="item-col" v-if="Object.keys(data)[1]">
  135. <span class="state-title1">{{ Object.values(data)[1] }} :</span>
  136. <span class="state-val1">
  137. <span v-if="monitorData[0][Object.keys(data)[1]] == '0'"
  138. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  139. <span v-else-if="monitorData[0][Object.keys(data)[1]] == '1'"
  140. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  141. <span v-else
  142. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  143. </span>
  144. </div>
  145. </div>
  146. </div>
  147. <div v-else>
  148. <div class="state-item" v-for="(data, index) in groupParameterData1" :key="index">
  149. <div class="item-col">
  150. <span class="state-title1">{{ Object.values(data)[0] }} :</span>
  151. <span class="state-val1" v-if="index == 0">{{
  152. (monitorData.length > 0 && monitorData[0][Object.keys(data)[0]])
  153. >= 0
  154. ? monitorData[0][Object.keys(data)[0]] ?
  155. parseFloat(monitorData[0][Object.keys(data)[0]]).toFixed(2) : '-'
  156. : '-'
  157. }}</span>
  158. <span class="state-val" v-else>
  159. <span v-if="monitorData[0][Object.keys(data)[0]] == '0'"
  160. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  161. <span v-else-if="monitorData[0][Object.keys(data)[0]] == '1'"
  162. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  163. <span v-else
  164. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  165. </span>
  166. </div>
  167. <div class="item-col" v-if="Object.keys(data)[1]">
  168. <span class="state-title1">{{ Object.values(data)[1] }} :</span>
  169. <span class="state-val1">
  170. <span v-if="monitorData[0][Object.keys(data)[1]] == '0'"
  171. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  172. <span v-else-if="monitorData[0][Object.keys(data)[1]] == '1'"
  173. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  174. <span v-else
  175. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  176. </span>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="monitor-box monitor-box1 ">
  182. <div class="parameter-title device-parameter-title">
  183. <SvgIcon class="icon" size="32" name="device-paramer" /><span>出气蝶阀参数</span>
  184. </div>
  185. <div class="state-box">
  186. <div v-if="ind == 0">
  187. <div class="state-item" v-for="(data, index) in deviceParameterData"
  188. :key="index">
  189. <div class="item-col">
  190. <span class="state-title1">{{ Object.values(data)[0] }} :</span>
  191. <span class="state-val1" v-if="index == 0">{{
  192. (monitorData.length > 0 && monitorData[0][Object.keys(data)[0]])
  193. >= 0
  194. ? monitorData[0][Object.keys(data)[0]] ?
  195. parseFloat(monitorData[0][Object.keys(data)[0]]).toFixed(2) : '-'
  196. : '-'
  197. }}</span>
  198. <span class="state-val" v-else>
  199. <span v-if="monitorData[0][Object.keys(data)[0]] == '0'"
  200. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  201. <span v-else-if="monitorData[0][Object.keys(data)[0]] == '1'"
  202. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  203. <span v-else
  204. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  205. </span>
  206. </div>
  207. <div class="item-col" v-if="Object.keys(data)[1]">
  208. <span class="state-title1">{{ Object.values(data)[1] }} :</span>
  209. <span class="state-val1">
  210. <span v-if="monitorData[0][Object.keys(data)[1]] == '0'"
  211. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  212. <span v-else-if="monitorData[0][Object.keys(data)[1]] == '1'"
  213. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  214. <span v-else
  215. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  216. </span>
  217. </div>
  218. </div>
  219. </div>
  220. <div v-else>
  221. <div class="state-item" v-for="(data, index) in deviceParameterData1"
  222. :key="index">
  223. <div class="item-col">
  224. <span class="state-title1">{{ Object.values(data)[0] }} :</span>
  225. <span class="state-val1" v-if="index == 0">{{
  226. (monitorData.length > 0 && monitorData[0][Object.keys(data)[0]])
  227. >= 0
  228. ? monitorData[0][Object.keys(data)[0]] ?
  229. parseFloat(monitorData[0][Object.keys(data)[0]]).toFixed(2) : '-'
  230. : '-'
  231. }}</span>
  232. <span class="state-val" v-else>
  233. <span v-if="monitorData[0][Object.keys(data)[0]] == '0'"
  234. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  235. <span v-else-if="monitorData[0][Object.keys(data)[0]] == '1'"
  236. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  237. <span v-else
  238. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  239. </span>
  240. </div>
  241. <div class="item-col" v-if="Object.keys(data)[1]">
  242. <span class="state-title1">{{ Object.values(data)[1] }} :</span>
  243. <span class="state-val1">
  244. <span v-if="monitorData[0][Object.keys(data)[1]] == '0'"
  245. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: blue;"></span>
  246. <span v-else-if="monitorData[0][Object.keys(data)[1]] == '1'"
  247. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: greenyellow;"></span>
  248. <span v-else
  249. style="display: inline-block; width: 10px;height: 10px;border-radius: 50%;background-color: #ccc;"></span>
  250. </span>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. </div>
  256. </template>
  257. </ventBox1>
  258. </div>
  259. </div>
  260. <!-- 右边控制状态 -->
  261. <div class="lr-box right-box">
  262. <ventBox1 class="vent-margin-t-10">
  263. <template #title>
  264. <div>设备实时监测曲线</div>
  265. </template>
  266. <template #container>
  267. <BarAndLine v-if="chartsColumns.length > 0" xAxisPropType="readTime" :dataSource="echartData"
  268. height="340px" :chartsColumns="chartsColumns" chartsType="listMonitor"
  269. :option="echatsOption" />
  270. <!-- :option="zhudanOption" -->
  271. </template>
  272. </ventBox1>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <HandleModal :modal-is-show="modalIsShow" :modal-title="modalTitle" :modal-type="modalType" @handle-ok="handleOK"
  278. @handle-cancel="handleCancel" />
  279. </template>
  280. <script lang="ts" setup name="nitrogenHome">
  281. import { onMounted, onUnmounted, ref, watch, reactive, defineProps, nextTick, inject, computed } from 'vue';
  282. import ventBox1 from '/@/components/vent/ventBox1.vue';
  283. import fourBorderBg from '../../../comment/components/fourBorderBg.vue';
  284. import { mountedThree, destroy, setModelType, addText } from '../nitrogen.threejs';
  285. import { getDevice } from '../nitrogen.api';
  286. import { SvgIcon } from '/@/components/Icon';
  287. import BarAndLine from '/@/components/chart/BarAndLine.vue';
  288. import HandleModal from './modal.vue';
  289. import { deviceControlApi } from '/@/api/vent/index';
  290. import { message } from 'ant-design-vue';
  291. import lodash from 'lodash';
  292. const globalConfig = inject('globalConfig');
  293. const props = defineProps({
  294. deviceId: {
  295. type: String,
  296. require: true,
  297. },
  298. modalType: {
  299. type: String,
  300. require: true,
  301. },
  302. });
  303. const refresh = ref(false)
  304. const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
  305. const modalType = ref(''); // 模态框内容显示类型,设备操作类型
  306. const modalIsShow = ref<boolean>(false); // 是否显示模态框
  307. const loading = ref(true);
  308. let kzParam = reactive<any>({
  309. data: {},
  310. isFw: '',
  311. });
  312. const flvURL1 = () => {
  313. // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
  314. return '';
  315. };
  316. const colors = ['#FDB146', '#EE6666', '#9BCB75', '#03C2EC', '#DA3914', '#9C83D9']
  317. const echatsOption = {
  318. grid: {
  319. top: '20%',
  320. left: '0px',
  321. right: '10px',
  322. bottom: '3%',
  323. containLabel: true
  324. },
  325. toolbox: {
  326. feature: {}
  327. }
  328. }
  329. const monitorDataGroupNum = ref(0);
  330. let airCompressorState = reactive<any[]>([]);
  331. //主机进气
  332. const groupParameterData = [
  333. {
  334. m_in_open: '开度',
  335. m_bv_in_remote: '远控',
  336. },
  337. {
  338. m_bv_in_open: '开到位',
  339. m_bv_in_close: '关到位',
  340. },
  341. ];
  342. //备机进气
  343. const groupParameterData1 = [
  344. {
  345. b_in_open: '开度',
  346. b_bv_in_remote: '远控',
  347. },
  348. {
  349. b_bv_in_open: '开到位',
  350. b_bv_in_close: '关到位',
  351. },
  352. ];
  353. //主机出气
  354. const deviceParameterData = [
  355. {
  356. m_out_open: '开度',
  357. m_bv_out_remote: '远控',
  358. },
  359. {
  360. m_bv_out_open: '开到位',
  361. m_bv_out_close: '关到位',
  362. },
  363. ];
  364. //备机出气
  365. const deviceParameterData1 = [
  366. {
  367. b_out_open: '开度',
  368. b_bv_out_remote: '远控',
  369. },
  370. {
  371. b_bv_out_open: '开到位',
  372. b_bv_out_close: '关到位',
  373. },
  374. ];
  375. const deviceMonitorList = reactive([
  376. {
  377. title: '负载短路故障',
  378. dataList: [
  379. {
  380. title: '主机-进',
  381. code: 'm_in_load_short',
  382. },
  383. {
  384. title: '主机-出',
  385. code: 'm_out_load_short',
  386. },
  387. {
  388. title: '备机-进',
  389. code: 'b_in_load_short',
  390. },
  391. {
  392. title: '备机-出',
  393. code: 'b_out_load_short',
  394. },
  395. ],
  396. },
  397. {
  398. title: '电压过低故障',
  399. dataList: [
  400. {
  401. title: '主机-进',
  402. code: 'm_in_low_voltage',
  403. },
  404. {
  405. title: '主机-出',
  406. code: 'm_out_low_voltage',
  407. },
  408. {
  409. title: '备机-进',
  410. code: 'b_in_low_voltage',
  411. },
  412. {
  413. title: '备机-出',
  414. code: 'b_out_low_voltage',
  415. },
  416. ],
  417. },
  418. {
  419. title: '电压过高故障',
  420. dataList: [
  421. {
  422. title: '主机-进',
  423. code: 'm_in_high_voltage',
  424. },
  425. {
  426. title: '主机-出',
  427. code: 'm_out_high_voltage',
  428. },
  429. {
  430. title: '备机-进',
  431. code: 'b_in_high_voltage',
  432. },
  433. {
  434. title: '备机-出',
  435. code: 'b_out_high_voltage',
  436. },
  437. ],
  438. },
  439. {
  440. title: '电机漏电故障',
  441. dataList: [
  442. {
  443. title: '主机-进',
  444. code: 'm_in_motor_leakage',
  445. },
  446. {
  447. title: '主机-出',
  448. code: 'm_out_motor_leakage',
  449. },
  450. {
  451. title: '备机-进',
  452. code: 'b_in_motor_leakage',
  453. },
  454. {
  455. title: '备机-出',
  456. code: 'b_out_motor_leakage',
  457. },
  458. ],
  459. },
  460. {
  461. title: '电源缺相故障',
  462. dataList: [
  463. {
  464. title: '主机-进',
  465. code: 'm_in_supply_phase',
  466. },
  467. {
  468. title: '主机-出',
  469. code: 'm_out_supply_phase',
  470. },
  471. {
  472. title: '备机-进',
  473. code: 'b_in_supply_phase',
  474. },
  475. {
  476. title: '备机-出',
  477. code: 'b_out_supply_phase',
  478. },
  479. ],
  480. },
  481. {
  482. title: '关向过力矩故障',
  483. dataList: [
  484. {
  485. title: '主机-进',
  486. code: 'm_in_closing_overtorque',
  487. },
  488. {
  489. title: '主机-出',
  490. code: 'm_out_closing_overtorque',
  491. },
  492. {
  493. title: '备机-进',
  494. code: 'b_in_closing_overtorque',
  495. },
  496. {
  497. title: '备机-出',
  498. code: 'b_out_closing_overtorque',
  499. },
  500. ],
  501. },
  502. {
  503. title: '开向过力矩故障',
  504. dataList: [
  505. {
  506. title: '主机-进',
  507. code: 'm_in_opening_overtorque',
  508. },
  509. {
  510. title: '主机-出',
  511. code: 'm_out_opening_overtorque',
  512. },
  513. {
  514. title: '备机-进',
  515. code: 'b_in_opening_overtorque',
  516. },
  517. {
  518. title: '备机-出',
  519. code: 'b_out_opening_overtorque',
  520. },
  521. ],
  522. },
  523. {
  524. title: '关向过电流故障',
  525. dataList: [
  526. {
  527. title: '主机-进',
  528. code: 'm_in_closing_overcurrent',
  529. },
  530. {
  531. title: '主机-出',
  532. code: 'm_out_closing_overcurrent',
  533. },
  534. {
  535. title: '备机-进',
  536. code: 'b_in_closing_overcurrent',
  537. },
  538. {
  539. title: '备机出',
  540. code: 'b_out_closing_overcurrent',
  541. },
  542. ],
  543. },
  544. {
  545. title: '开向过电流故障',
  546. dataList: [
  547. {
  548. title: '主机-进',
  549. code: 'm_in_opening_overcurrent',
  550. },
  551. {
  552. title: '主机-出',
  553. code: 'm_out_opening_overcurrent',
  554. },
  555. {
  556. title: '备机-进',
  557. code: 'b_in_opening_overcurrent',
  558. },
  559. {
  560. title: '备机-出',
  561. code: 'b_out_opening_overcurrent',
  562. },
  563. ],
  564. },
  565. {
  566. title: '关向超时故障',
  567. dataList: [
  568. {
  569. title: '主机-进',
  570. code: 'm_in_closing_timeout',
  571. },
  572. {
  573. title: '主机-出',
  574. code: 'm_out_closing_timeout',
  575. },
  576. {
  577. title: '备机-进',
  578. code: 'b_in_closing_timeout',
  579. },
  580. {
  581. title: '备机-出',
  582. code: 'b_out_closing_timeout',
  583. },
  584. ],
  585. },
  586. {
  587. title: '开向超时故障',
  588. dataList: [
  589. {
  590. title: '主机-进',
  591. code: 'm_in_opening_timeout',
  592. },
  593. {
  594. title: '主机-出',
  595. code: 'm_out_opening_timeout',
  596. },
  597. {
  598. title: '备机-进',
  599. code: 'b_in_opening_timeout',
  600. },
  601. {
  602. title: '备机-出',
  603. code: 'b_out_opening_timeout',
  604. },
  605. ],
  606. },
  607. {
  608. title: '阀位故障',
  609. dataList: [
  610. {
  611. title: '主机-进',
  612. code: 'm_in_valve_position',
  613. },
  614. {
  615. title: '主机-出',
  616. code: 'm_out_valve_position',
  617. },
  618. {
  619. title: '备机-进',
  620. code: 'b_in_valve_position',
  621. },
  622. {
  623. title: '备机-出',
  624. code: 'b_out_valve_position',
  625. },
  626. ],
  627. },
  628. {
  629. title: '热过载故障',
  630. dataList: [
  631. {
  632. title: '主机-进',
  633. code: 'm_in_thermal_overload',
  634. },
  635. {
  636. title: '主机-出',
  637. code: 'm_out_thermal_overload',
  638. },
  639. {
  640. title: '备机-进',
  641. code: 'b_in_thermal_overload',
  642. },
  643. {
  644. title: '备机-出',
  645. code: 'b_out_thermal_overload',
  646. },
  647. ],
  648. },
  649. ])
  650. const propTypeArr = ref([])
  651. const chartsColumns = ref([])
  652. watch(monitorDataGroupNum, () => {
  653. const arr = <any[]>[]
  654. const item = {
  655. legend: '实时流量',
  656. seriesName: '(m³/min)',
  657. ymax: 100,
  658. yname: 'm³/min',
  659. linetype: 'line',
  660. yaxispos: 'left',
  661. color: '#FDB146',
  662. sort: 1,
  663. xRotate: 0,
  664. dataIndex: 'flow',
  665. }
  666. const propTypeList = []
  667. let echartLend=1
  668. for (let i = 1; i <= echartLend; i++) {
  669. const lineType = lodash.cloneDeep(item)
  670. lineType.legend = '制氮机实时流量';
  671. lineType.dataIndex = 'flow'
  672. lineType.color = colors[i - 1]
  673. arr.push(lineType)
  674. }
  675. chartsColumns.value = arr
  676. })
  677. const monitorData = ref(
  678. new Array(3).fill({
  679. // strName: '空压机',
  680. // cumulativeFlow: '-',
  681. // centerTemperature: '-',
  682. // outletTemperature: '-',
  683. // Ia: '-',
  684. // Ib: '-',
  685. // Ic: '-',
  686. // Vab: '-',
  687. // Vac: '-',
  688. // Vbc: '-',
  689. // compressGroupName: '',
  690. // compressExhaustPressF1: '-',
  691. // compressSeparatePressF1: '-',
  692. // compressHostTempF1: '-',
  693. // compressCrewTempF1: '-',
  694. // compressRunTimeF1: '-',
  695. // controlModel: 'LOC'
  696. })
  697. );
  698. //图表数据
  699. let echartData = ref<any>([]);
  700. // https获取监测数据
  701. let timer: null | NodeJS.Timeout = null;
  702. async function getMonitor(flag?) {
  703. if (Object.prototype.toString.call(timer) === '[object Null]') {
  704. timer = await setTimeout(
  705. async () => {
  706. if (props.deviceId) {
  707. await getDataSource(props.deviceId);
  708. }
  709. if (timer) {
  710. timer = null;
  711. }
  712. await getMonitor();
  713. },
  714. flag ? 0 : 3000
  715. );
  716. }
  717. }
  718. async function getDataSource(systemID) {
  719. const res = await getDevice({ devicetype: 'sys', systemID, type: 'all' });
  720. if (res) {
  721. const result = res;
  722. if (!result || result.msgTxt.length < 1) return;
  723. result.msgTxt.forEach((item) => {
  724. if (item.type && item.type.startsWith('nitrogen')) {
  725. airCompressorState.length = 0;
  726. monitorData.value = item['datalist'].filter((data) => {
  727. const readData = data.readData;
  728. airCompressorState.push({
  729. id: data.deviceID,
  730. deviceType: data.deviceType,
  731. m_start: readData.m_start,
  732. m_stop: readData.m_stop,
  733. b_start: readData.b_start,
  734. b_stop: readData.b_stop,
  735. });
  736. return Object.assign(data, readData);
  737. });
  738. console.log(monitorData, 'monitorData.value---===')
  739. const airCompressor = { readTime: monitorData.value[0]['readTime'].substring(11) }
  740. const dataArr = lodash.cloneDeep(echartData.value)
  741. //图表数据
  742. if (dataArr.length <4) {
  743. monitorData.value.forEach((el, index) => {
  744. airCompressor['flow'] = el['flow'] || 0
  745. });
  746. dataArr.push(airCompressor)
  747. } else {
  748. dataArr.shift()
  749. // dataArr.push(airCompressor)
  750. monitorData.value.forEach((el, index) => {
  751. airCompressor['flow'] = el['flow'] || 0
  752. });
  753. dataArr.push(airCompressor)
  754. console.log(dataArr,'dataArr---------')
  755. }
  756. echartData.value = dataArr
  757. }
  758. });
  759. // monitorDataGroupNum.value = monitorData.value.length;
  760. monitorDataGroupNum.value = 2;
  761. refresh.value = true
  762. nextTick(() => {
  763. refresh.value = false
  764. })
  765. }
  766. }
  767. function handlerDevice(data, titles) {
  768. kzParam.data = data;
  769. kzParam.isFw = titles
  770. switch (titles) {
  771. case '主机启动':
  772. modalTitle.value = titles;
  773. modalType.value = '1';
  774. modalIsShow.value = true;
  775. kzParam.data.m_start = '1'
  776. break;
  777. case '备机启动':
  778. modalTitle.value = titles;
  779. modalType.value = '2';
  780. modalIsShow.value = true;
  781. kzParam.data.b_start = '1'
  782. break;
  783. case '主机停止':
  784. modalTitle.value = titles;
  785. modalType.value = '1';
  786. modalIsShow.value = true;
  787. kzParam.data.m_stop = '1'
  788. break;
  789. case '备机停止':
  790. modalTitle.value = titles;
  791. modalType.value = '2';
  792. modalIsShow.value = true;
  793. kzParam.data.b_stop = '1'
  794. break;
  795. }
  796. }
  797. function handleOK(passWord, handlerState) {
  798. console.log(kzParam, 'kz----------');
  799. // if (passWord !== '123456') {
  800. // message.warning('密码不正确,请重新输入');
  801. // return;
  802. // }
  803. let data = {};
  804. switch (kzParam.isFw) {
  805. case '主机启动':
  806. data = {
  807. deviceid: kzParam.data.id,
  808. devicetype: kzParam.data.deviceType,
  809. password: passWord,
  810. m_start: kzParam.data.m_start,
  811. };
  812. break;
  813. case '备机启动':
  814. data = {
  815. deviceid: kzParam.data.id,
  816. devicetype: kzParam.data.deviceType,
  817. password: passWord,
  818. b_start: kzParam.data.b_start,
  819. };
  820. break;
  821. case '主机停止':
  822. data = {
  823. deviceid: kzParam.data.id,
  824. devicetype: kzParam.data.deviceType,
  825. password: passWord,
  826. m_stop: kzParam.data.m_stop,
  827. };
  828. break;
  829. case '备机停止':
  830. data = {
  831. deviceid: kzParam.data.id,
  832. devicetype: kzParam.data.deviceType,
  833. password: passWord,
  834. b_stop: kzParam.data.b_stop,
  835. };
  836. break;
  837. }
  838. deviceControlApi(data).then((res) => {
  839. // 模拟时开启
  840. if (res.success) {
  841. modalIsShow.value = false;
  842. getDataSource(props.deviceId);
  843. if (globalConfig.History_Type == 'remote') {
  844. message.success('指令已下发至生产管控平台成功!')
  845. } else {
  846. message.success('指令已下发成功!')
  847. }
  848. }
  849. });
  850. }
  851. function handleCancel() {
  852. modalIsShow.value = false;
  853. modalTitle.value = '';
  854. modalType.value = '';
  855. }
  856. watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
  857. nextTick(() => {
  858. if (newMonitorDataGroupNum && !newLoading) {
  859. setModelType(props.modalType, newMonitorDataGroupNum);
  860. }
  861. });
  862. });
  863. onMounted(async () => {
  864. await getMonitor(true);
  865. await mountedThree().then(() => {
  866. loading.value = false;
  867. });
  868. });
  869. onUnmounted(() => {
  870. destroy();
  871. if (timer) {
  872. clearTimeout(timer);
  873. timer = undefined;
  874. }
  875. });
  876. </script>
  877. <style lang="less" scoped>
  878. @ventSpace: zxm;
  879. .nitrogen-box {
  880. width: 100%;
  881. height: 100%;
  882. display: flex;
  883. justify-content: center;
  884. }
  885. #nitrogenCss3D {
  886. .modal-monitor {
  887. width: 200px;
  888. position: absolute;
  889. left: 0px;
  890. top: 0px;
  891. }
  892. &:deep(.win) {
  893. margin: 0 !important;
  894. background: #00000044;
  895. }
  896. }
  897. .nitrogen-home {
  898. width: 100%;
  899. height: 100%;
  900. position: fixed;
  901. z-index: 9999;
  902. display: flex;
  903. flex-direction: column;
  904. justify-content: center;
  905. align-items: center;
  906. pointer-events: none;
  907. top: 20px;
  908. .nitrogen-container {
  909. width: 100%;
  910. height: calc(100% - 100px);
  911. display: flex;
  912. justify-content: space-between;
  913. margin-bottom: 100px;
  914. .top-box {
  915. // margin-top: 40px; //lxh
  916. position: relative;
  917. width: 100%;
  918. padding: 10px;
  919. overflow: hidden;
  920. display: flex;
  921. justify-content: space-between;
  922. .center-item-box {
  923. position: absolute;
  924. left: 50%;
  925. top: 50px;
  926. transform: translate(-48%, 0);
  927. width: calc(100% - 760px);
  928. height: 50px;
  929. display: flex;
  930. align-items: center;
  931. pointer-events: auto;
  932. .top-left {
  933. display: flex;
  934. flex: 2;
  935. color: #fff;
  936. .button-box {
  937. position: relative;
  938. width: auto;
  939. height: 32px;
  940. display: flex;
  941. align-items: center;
  942. justify-content: center;
  943. border-radius: 5px;
  944. color: #fff;
  945. padding: 10px 15px;
  946. margin: 0px 10px;
  947. box-sizing: border-box;
  948. cursor: pointer;
  949. background: linear-gradient(#1fa6cb, #127cb5);
  950. }
  951. }
  952. .top-center{
  953. display: flex;
  954. flex: 1;
  955. justify-content: center;
  956. align-items: center;
  957. font-size: 20px;
  958. color: #fff;
  959. .top-c-label{
  960. color: yellow;
  961. }
  962. }
  963. .top-right {
  964. display: flex;
  965. flex: 2;
  966. justify-content: right;
  967. align-items: center;
  968. color: #fff;
  969. .control-type {
  970. display: flex;
  971. color: #fff;
  972. .control-title {
  973. color: #73e8fe;
  974. }
  975. }
  976. }
  977. }
  978. .footer-item-box {
  979. width: calc(100% - 20px);
  980. height: auto;
  981. position: absolute;
  982. left: 50%;
  983. bottom: 30px;
  984. transform: translate(-50%);
  985. display: flex;
  986. justify-content: center;
  987. color: #fff;
  988. // box-shadow: 0 0 30px rgb(0, 153, 184) inset;
  989. pointer-events: auto;
  990. .device-detail {
  991. text-align: center;
  992. &:first-child {
  993. background-color: #00bbff11;
  994. }
  995. &:last-child {
  996. .device-val,
  997. .device-title {
  998. border-right: 1px solid #00baffd4;
  999. }
  1000. }
  1001. .device-val {
  1002. line-height: 36px;
  1003. border-top: 1px solid #00baffd4;
  1004. border-left: 1px solid #00baffd4;
  1005. &:last-child {
  1006. border-bottom: 1px solid #00baffd4;
  1007. }
  1008. }
  1009. }
  1010. .device-title {
  1011. width: 110px;
  1012. text-align: center;
  1013. border-top: 1px solid #00baffd4;
  1014. border-left: 1px solid #00baffd4;
  1015. line-height: 46px;
  1016. color: #00e5ff;
  1017. background-color: #00bbff21;
  1018. }
  1019. }
  1020. .lr-box {
  1021. height: fit-content;
  1022. display: flex;
  1023. flex-direction: column;
  1024. position: relative;
  1025. overflow: hidden;
  1026. z-index: 9999;
  1027. pointer-events: auto;
  1028. }
  1029. .item {
  1030. width: 335px;
  1031. height: auto;
  1032. position: relative;
  1033. border-radius: 5px;
  1034. margin-top: 10px;
  1035. margin-bottom: 0px;
  1036. pointer-events: auto;
  1037. color: #fff;
  1038. overflow: hidden;
  1039. &:first-child {
  1040. margin-top: 0px;
  1041. }
  1042. .base-title {
  1043. color: #fff;
  1044. margin-bottom: 8px;
  1045. padding-left: 10px;
  1046. position: relative;
  1047. font-size: 16px;
  1048. &::after {
  1049. content: '';
  1050. position: absolute;
  1051. display: block;
  1052. width: 4px;
  1053. height: 12px;
  1054. top: 7px;
  1055. left: 0px;
  1056. background: #45d3fd;
  1057. border-radius: 4px;
  1058. }
  1059. }
  1060. .state-item {
  1061. display: flex;
  1062. flex-direction: row;
  1063. padding: 5px;
  1064. .item-col {
  1065. width: calc(50% - 5px);
  1066. display: flex;
  1067. justify-content: center;
  1068. align-items: center;
  1069. padding-right: 4px;
  1070. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  1071. &:first-child {
  1072. margin-right: 10px;
  1073. }
  1074. .state-title {
  1075. color: #ffffffcc;
  1076. flex: 9;
  1077. font-size: 14px;
  1078. }
  1079. .state-val {
  1080. flex: 1;
  1081. color: #00eefffe;
  1082. margin-right: 5px;
  1083. text-align: right;
  1084. font-size: 14px;
  1085. }
  1086. .state-title1 {
  1087. color: #ffffffcc;
  1088. flex: 5;
  1089. font-size: 14px;
  1090. }
  1091. .state-val1 {
  1092. display: flex;
  1093. flex: 1;
  1094. justify-content: center;
  1095. align-items: center;
  1096. }
  1097. }
  1098. }
  1099. .signal-box {
  1100. margin: 5px 0;
  1101. display: flex;
  1102. align-items: center;
  1103. .signal-title {
  1104. color: #7af5ff;
  1105. margin: 0 5px;
  1106. }
  1107. &:last-child {
  1108. margin-right: 0px;
  1109. }
  1110. }
  1111. .list-item {
  1112. padding: 0 10px;
  1113. display: flex;
  1114. justify-content: space-between;
  1115. align-items: center;
  1116. .item-data-key {
  1117. color: #ffffff99;
  1118. }
  1119. }
  1120. .item-data-box {
  1121. color: #fff;
  1122. .state-icon {
  1123. display: inline-block;
  1124. width: 12px;
  1125. height: 12px;
  1126. border-radius: 12px;
  1127. }
  1128. .open {
  1129. border: 5px solid #133a56;
  1130. background: #4ecb73;
  1131. }
  1132. .close {
  1133. border: 5px solid #192961;
  1134. background: #6d7898;
  1135. }
  1136. }
  1137. }
  1138. .item-l {
  1139. width: 100%;
  1140. .monitor-box {
  1141. width: 100%;
  1142. .parameter-title {
  1143. position: relative;
  1144. width: 100%;
  1145. height: 14px;
  1146. margin-top: 10px;
  1147. .icon,
  1148. span {
  1149. position: absolute;
  1150. top: -10px;
  1151. }
  1152. }
  1153. .group-parameter-title {
  1154. background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
  1155. .icon {
  1156. left: -12px;
  1157. top: -17px;
  1158. }
  1159. span {
  1160. left: 18px;
  1161. }
  1162. .item-col {
  1163. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  1164. }
  1165. }
  1166. .device-parameter-title {
  1167. background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
  1168. .icon {
  1169. left: -10px;
  1170. top: -14px;
  1171. }
  1172. span {
  1173. left: 18px;
  1174. }
  1175. .item-col {
  1176. background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
  1177. }
  1178. }
  1179. }
  1180. // .monitor-box1 {
  1181. // height: 126px;
  1182. // }
  1183. .state-box {
  1184. height: calc(100% - 24px);
  1185. overflow-y: auto;
  1186. }
  1187. }
  1188. .right-box {
  1189. width: 330px;
  1190. margin-top: 50px;
  1191. .control-group {
  1192. display: flex;
  1193. // justify-content: space-around;
  1194. flex-wrap: wrap;
  1195. height: 262px;
  1196. overflow-y: auto;
  1197. overflow-x: hidden;
  1198. .control-item {
  1199. width: 50%; //lxh
  1200. display: flex;
  1201. flex-direction: column;
  1202. justify-content: center;
  1203. align-items: center;
  1204. padding: 0 4px;
  1205. .control-item-title {
  1206. color: #a6dce9;
  1207. position: relative;
  1208. top: 5px;
  1209. }
  1210. .control-item-state {
  1211. // width: 94px;
  1212. width: 162px;
  1213. // height: 47px;
  1214. height: 36px;
  1215. background: url('/@/assets/images/vent/control-switch-bg.png');
  1216. background-size: 100% 100%;
  1217. display: flex;
  1218. justify-content: center;
  1219. align-items: center;
  1220. color: #fff;
  1221. }
  1222. .button-box {
  1223. position: relative;
  1224. padding: 5px;
  1225. border: 1px transparent solid;
  1226. background-clip: border-box;
  1227. border-radius: 5px;
  1228. margin-left: 8px;
  1229. }
  1230. .a-button {
  1231. pointer-events: auto;
  1232. }
  1233. &::v-deep .a-button--mini {
  1234. padding: 6px 10px;
  1235. }
  1236. &::v-deep .a-button--mini.is-round {
  1237. padding: 6px 10px;
  1238. }
  1239. }
  1240. }
  1241. }
  1242. .left-box {
  1243. width: 365px;
  1244. margin-top: 80px;
  1245. }
  1246. }
  1247. &:deep(.win) {
  1248. width: 100%;
  1249. margin: 0 !important;
  1250. }
  1251. }
  1252. }
  1253. &:deep(.main) {
  1254. .title {
  1255. height: 34px;
  1256. text-align: center;
  1257. font-weight: 600;
  1258. color: #7af5ff;
  1259. // background-image: url('../../../assets/img/yfj/light.png');
  1260. background-repeat: no-repeat;
  1261. background-position-x: center;
  1262. background-position-y: 100%;
  1263. background-size: 80%;
  1264. font-size: 16px;
  1265. }
  1266. .monitor-item {
  1267. width: 200px;
  1268. display: flex;
  1269. flex-direction: row;
  1270. width: auto;
  1271. margin-bottom: 3px;
  1272. .monitor-val {
  1273. color: #ffb700;
  1274. display: flex;
  1275. width: auto;
  1276. .val {
  1277. width: 80px;
  1278. // font-size: 14px;
  1279. font-size: 16px;
  1280. }
  1281. .unit {
  1282. color: #ffffffbb;
  1283. // font-size: 14px;
  1284. font-size: 16px;
  1285. }
  1286. }
  1287. }
  1288. .monitor-title {
  1289. width: 100px;
  1290. color: #7af5ff;
  1291. font-weight: 400;
  1292. // font-size: 14px;
  1293. font-size: 16px;
  1294. }
  1295. .signal-item {
  1296. display: flex;
  1297. justify-content: space-between;
  1298. // margin-bottom: 5px;
  1299. .signal-round {
  1300. display: inline-block;
  1301. width: 8px;
  1302. height: 8px;
  1303. border-radius: 50%;
  1304. margin: 0 10px;
  1305. position: relative;
  1306. &::after {
  1307. display: block;
  1308. content: '';
  1309. position: absolute;
  1310. width: 12px;
  1311. height: 12px;
  1312. top: -2px;
  1313. left: -2px;
  1314. border-radius: 50%;
  1315. }
  1316. }
  1317. .signal-round-gry {
  1318. background-color: #858585;
  1319. &::after {
  1320. background-color: #85858544;
  1321. box-shadow: 0 0 1px 1px #85858599;
  1322. }
  1323. }
  1324. .signal-round-run {
  1325. background-color: #67fc00;
  1326. &::after {
  1327. background-color: #67fc0044;
  1328. box-shadow: 0 0 1px 1px #c6ff77;
  1329. }
  1330. }
  1331. .signal-round-warning {
  1332. background-color: #e9170b;
  1333. &::after {
  1334. background-color: #e9170b44;
  1335. box-shadow: 0 0 1px 1px #e9170b;
  1336. }
  1337. }
  1338. }
  1339. }
  1340. :deep(.zxm-radio-wrapper) {
  1341. color: #fff !important;
  1342. }
  1343. :deep(.zxm-radio-group) {
  1344. color: #fff !important;
  1345. }
  1346. :deep(.zxm-radio-group .zxm-radio-wrapper) {
  1347. color: #fff !important;
  1348. }
  1349. :deep(.zxm-radio-disabled + span){
  1350. color: #fff;
  1351. }
  1352. :deep(.zxm-radio-disabled .zxm-radio-inner::after){
  1353. background-color:#0490a8;
  1354. }
  1355. </style>