nitrogenHome2.vue 53 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  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. console.log(data, 'data===---000')
  769. kzParam.data = data;
  770. kzParam.isFw = titles
  771. switch (titles) {
  772. case '主机启动':
  773. modalTitle.value = titles;
  774. modalType.value = '1';
  775. modalIsShow.value = true;
  776. kzParam.data.m_start = '1'
  777. break;
  778. case '备机启动':
  779. modalTitle.value = titles;
  780. modalType.value = '2';
  781. modalIsShow.value = true;
  782. kzParam.data.b_start = '1'
  783. break;
  784. case '主机停止':
  785. modalTitle.value = titles;
  786. modalType.value = '1';
  787. modalIsShow.value = true;
  788. kzParam.data.m_stop = '1'
  789. break;
  790. case '备机停止':
  791. modalTitle.value = titles;
  792. modalType.value = '2';
  793. modalIsShow.value = true;
  794. kzParam.data.b_stop = '1'
  795. break;
  796. }
  797. }
  798. function handleOK(passWord, handlerState) {
  799. console.log(kzParam, 'kz----------');
  800. // if (passWord !== '123456') {
  801. // message.warning('密码不正确,请重新输入');
  802. // return;
  803. // }
  804. let data = {};
  805. switch (kzParam.isFw) {
  806. case '主机启动':
  807. data = {
  808. deviceid: kzParam.data.id,
  809. devicetype: kzParam.data.deviceType,
  810. password: passWord,
  811. m_start: kzParam.data.m_start,
  812. };
  813. break;
  814. case '备机启动':
  815. data = {
  816. deviceid: kzParam.data.id,
  817. devicetype: kzParam.data.deviceType,
  818. password: passWord,
  819. b_start: kzParam.data.b_start,
  820. };
  821. break;
  822. case '主机停止':
  823. data = {
  824. deviceid: kzParam.data.id,
  825. devicetype: kzParam.data.deviceType,
  826. password: passWord,
  827. m_stop: kzParam.data.m_stop,
  828. };
  829. break;
  830. case '备机停止':
  831. data = {
  832. deviceid: kzParam.data.id,
  833. devicetype: kzParam.data.deviceType,
  834. password: passWord,
  835. b_stop: kzParam.data.b_stop,
  836. };
  837. break;
  838. }
  839. deviceControlApi(data).then((res) => {
  840. // 模拟时开启
  841. if (res.success) {
  842. modalIsShow.value = false;
  843. getDataSource(props.deviceId);
  844. if (globalConfig.History_Type == 'remote') {
  845. message.success('指令已下发至生产管控平台成功!')
  846. } else {
  847. message.success('指令已下发成功!')
  848. }
  849. }
  850. });
  851. }
  852. function handleCancel() {
  853. modalIsShow.value = false;
  854. modalTitle.value = '';
  855. modalType.value = '';
  856. }
  857. watch([monitorDataGroupNum, loading], ([newMonitorDataGroupNum, newLoading]) => {
  858. nextTick(() => {
  859. if (newMonitorDataGroupNum && !newLoading) {
  860. setModelType(props.modalType, newMonitorDataGroupNum);
  861. }
  862. });
  863. });
  864. onMounted(async () => {
  865. await getMonitor(true);
  866. await mountedThree().then(() => {
  867. loading.value = false;
  868. });
  869. });
  870. onUnmounted(() => {
  871. destroy();
  872. if (timer) {
  873. clearTimeout(timer);
  874. timer = undefined;
  875. }
  876. });
  877. </script>
  878. <style lang="less" scoped>
  879. @ventSpace: zxm;
  880. .nitrogen-box {
  881. width: 100%;
  882. height: 100%;
  883. display: flex;
  884. justify-content: center;
  885. }
  886. #nitrogenCss3D {
  887. .modal-monitor {
  888. width: 200px;
  889. position: absolute;
  890. left: 0px;
  891. top: 0px;
  892. }
  893. &:deep(.win) {
  894. margin: 0 !important;
  895. background: #00000044;
  896. }
  897. }
  898. .nitrogen-home {
  899. width: 100%;
  900. height: 100%;
  901. position: fixed;
  902. z-index: 9999;
  903. display: flex;
  904. flex-direction: column;
  905. justify-content: center;
  906. align-items: center;
  907. pointer-events: none;
  908. top: 20px;
  909. .nitrogen-container {
  910. width: 100%;
  911. height: calc(100% - 100px);
  912. display: flex;
  913. justify-content: space-between;
  914. margin-bottom: 100px;
  915. .top-box {
  916. // margin-top: 40px; //lxh
  917. position: relative;
  918. width: 100%;
  919. padding: 10px;
  920. overflow: hidden;
  921. display: flex;
  922. justify-content: space-between;
  923. .center-item-box {
  924. position: absolute;
  925. left: 50%;
  926. top: 50px;
  927. transform: translate(-48%, 0);
  928. width: calc(100% - 760px);
  929. height: 50px;
  930. display: flex;
  931. align-items: center;
  932. pointer-events: auto;
  933. .top-left {
  934. display: flex;
  935. flex: 2;
  936. color: #fff;
  937. .button-box {
  938. position: relative;
  939. width: auto;
  940. height: 32px;
  941. display: flex;
  942. align-items: center;
  943. justify-content: center;
  944. border-radius: 5px;
  945. color: #fff;
  946. padding: 10px 15px;
  947. margin: 0px 10px;
  948. box-sizing: border-box;
  949. cursor: pointer;
  950. background: linear-gradient(#1fa6cb, #127cb5);
  951. }
  952. }
  953. .top-center{
  954. display: flex;
  955. flex: 1;
  956. justify-content: center;
  957. align-items: center;
  958. font-size: 20px;
  959. color: #fff;
  960. .top-c-label{
  961. color: yellow;
  962. }
  963. }
  964. .top-right {
  965. display: flex;
  966. flex: 2;
  967. justify-content: right;
  968. align-items: center;
  969. color: #fff;
  970. .control-type {
  971. display: flex;
  972. color: #fff;
  973. .control-title {
  974. color: #73e8fe;
  975. }
  976. }
  977. }
  978. }
  979. .footer-item-box {
  980. width: calc(100% - 20px);
  981. height: auto;
  982. position: absolute;
  983. left: 50%;
  984. bottom: 30px;
  985. transform: translate(-50%);
  986. display: flex;
  987. justify-content: center;
  988. color: #fff;
  989. // box-shadow: 0 0 30px rgb(0, 153, 184) inset;
  990. pointer-events: auto;
  991. .device-detail {
  992. text-align: center;
  993. &:first-child {
  994. background-color: #00bbff11;
  995. }
  996. &:last-child {
  997. .device-val,
  998. .device-title {
  999. border-right: 1px solid #00baffd4;
  1000. }
  1001. }
  1002. .device-val {
  1003. line-height: 36px;
  1004. border-top: 1px solid #00baffd4;
  1005. border-left: 1px solid #00baffd4;
  1006. &:last-child {
  1007. border-bottom: 1px solid #00baffd4;
  1008. }
  1009. }
  1010. }
  1011. .device-title {
  1012. width: 110px;
  1013. text-align: center;
  1014. border-top: 1px solid #00baffd4;
  1015. border-left: 1px solid #00baffd4;
  1016. line-height: 46px;
  1017. color: #00e5ff;
  1018. background-color: #00bbff21;
  1019. }
  1020. }
  1021. .lr-box {
  1022. height: fit-content;
  1023. display: flex;
  1024. flex-direction: column;
  1025. position: relative;
  1026. overflow: hidden;
  1027. z-index: 9999;
  1028. pointer-events: auto;
  1029. }
  1030. .item {
  1031. width: 335px;
  1032. height: auto;
  1033. position: relative;
  1034. border-radius: 5px;
  1035. margin-top: 10px;
  1036. margin-bottom: 0px;
  1037. pointer-events: auto;
  1038. color: #fff;
  1039. overflow: hidden;
  1040. &:first-child {
  1041. margin-top: 0px;
  1042. }
  1043. .base-title {
  1044. color: #fff;
  1045. margin-bottom: 8px;
  1046. padding-left: 10px;
  1047. position: relative;
  1048. font-size: 16px;
  1049. &::after {
  1050. content: '';
  1051. position: absolute;
  1052. display: block;
  1053. width: 4px;
  1054. height: 12px;
  1055. top: 7px;
  1056. left: 0px;
  1057. background: #45d3fd;
  1058. border-radius: 4px;
  1059. }
  1060. }
  1061. .state-item {
  1062. display: flex;
  1063. flex-direction: row;
  1064. padding: 5px;
  1065. .item-col {
  1066. width: calc(50% - 5px);
  1067. display: flex;
  1068. justify-content: center;
  1069. align-items: center;
  1070. padding-right: 4px;
  1071. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  1072. &:first-child {
  1073. margin-right: 10px;
  1074. }
  1075. .state-title {
  1076. color: #ffffffcc;
  1077. flex: 9;
  1078. font-size: 14px;
  1079. }
  1080. .state-val {
  1081. flex: 1;
  1082. color: #00eefffe;
  1083. margin-right: 5px;
  1084. text-align: right;
  1085. font-size: 14px;
  1086. }
  1087. .state-title1 {
  1088. color: #ffffffcc;
  1089. flex: 5;
  1090. font-size: 14px;
  1091. }
  1092. .state-val1 {
  1093. display: flex;
  1094. flex: 1;
  1095. justify-content: center;
  1096. align-items: center;
  1097. }
  1098. }
  1099. }
  1100. .signal-box {
  1101. margin: 5px 0;
  1102. display: flex;
  1103. align-items: center;
  1104. .signal-title {
  1105. color: #7af5ff;
  1106. margin: 0 5px;
  1107. }
  1108. &:last-child {
  1109. margin-right: 0px;
  1110. }
  1111. }
  1112. .list-item {
  1113. padding: 0 10px;
  1114. display: flex;
  1115. justify-content: space-between;
  1116. align-items: center;
  1117. .item-data-key {
  1118. color: #ffffff99;
  1119. }
  1120. }
  1121. .item-data-box {
  1122. color: #fff;
  1123. .state-icon {
  1124. display: inline-block;
  1125. width: 12px;
  1126. height: 12px;
  1127. border-radius: 12px;
  1128. }
  1129. .open {
  1130. border: 5px solid #133a56;
  1131. background: #4ecb73;
  1132. }
  1133. .close {
  1134. border: 5px solid #192961;
  1135. background: #6d7898;
  1136. }
  1137. }
  1138. }
  1139. .item-l {
  1140. width: 100%;
  1141. .monitor-box {
  1142. width: 100%;
  1143. .parameter-title {
  1144. position: relative;
  1145. width: 100%;
  1146. height: 14px;
  1147. margin-top: 10px;
  1148. .icon,
  1149. span {
  1150. position: absolute;
  1151. top: -10px;
  1152. }
  1153. }
  1154. .group-parameter-title {
  1155. background-image: linear-gradient(to right, #39a3ff50, #39a3ff00);
  1156. .icon {
  1157. left: -12px;
  1158. top: -17px;
  1159. }
  1160. span {
  1161. left: 18px;
  1162. }
  1163. .item-col {
  1164. background-image: linear-gradient(to right, #39a3ff00, #39a3ff10);
  1165. }
  1166. }
  1167. .device-parameter-title {
  1168. background-image: linear-gradient(to right, #3df6ff40, #3df6ff00);
  1169. .icon {
  1170. left: -10px;
  1171. top: -14px;
  1172. }
  1173. span {
  1174. left: 18px;
  1175. }
  1176. .item-col {
  1177. background-image: linear-gradient(to right, #3df6ff10, #3df6ff00);
  1178. }
  1179. }
  1180. }
  1181. // .monitor-box1 {
  1182. // height: 126px;
  1183. // }
  1184. .state-box {
  1185. height: calc(100% - 24px);
  1186. overflow-y: auto;
  1187. }
  1188. }
  1189. .right-box {
  1190. width: 330px;
  1191. margin-top: 50px;
  1192. .control-group {
  1193. display: flex;
  1194. // justify-content: space-around;
  1195. flex-wrap: wrap;
  1196. height: 262px;
  1197. overflow-y: auto;
  1198. overflow-x: hidden;
  1199. .control-item {
  1200. width: 50%; //lxh
  1201. display: flex;
  1202. flex-direction: column;
  1203. justify-content: center;
  1204. align-items: center;
  1205. padding: 0 4px;
  1206. .control-item-title {
  1207. color: #a6dce9;
  1208. position: relative;
  1209. top: 5px;
  1210. }
  1211. .control-item-state {
  1212. // width: 94px;
  1213. width: 162px;
  1214. // height: 47px;
  1215. height: 36px;
  1216. background: url('/@/assets/images/vent/control-switch-bg.png');
  1217. background-size: 100% 100%;
  1218. display: flex;
  1219. justify-content: center;
  1220. align-items: center;
  1221. color: #fff;
  1222. }
  1223. .button-box {
  1224. position: relative;
  1225. padding: 5px;
  1226. border: 1px transparent solid;
  1227. background-clip: border-box;
  1228. border-radius: 5px;
  1229. margin-left: 8px;
  1230. }
  1231. .a-button {
  1232. pointer-events: auto;
  1233. }
  1234. &::v-deep .a-button--mini {
  1235. padding: 6px 10px;
  1236. }
  1237. &::v-deep .a-button--mini.is-round {
  1238. padding: 6px 10px;
  1239. }
  1240. }
  1241. }
  1242. }
  1243. .left-box {
  1244. width: 365px;
  1245. margin-top: 80px;
  1246. }
  1247. }
  1248. &:deep(.win) {
  1249. width: 100%;
  1250. margin: 0 !important;
  1251. }
  1252. }
  1253. }
  1254. &:deep(.main) {
  1255. .title {
  1256. height: 34px;
  1257. text-align: center;
  1258. font-weight: 600;
  1259. color: #7af5ff;
  1260. // background-image: url('../../../assets/img/yfj/light.png');
  1261. background-repeat: no-repeat;
  1262. background-position-x: center;
  1263. background-position-y: 100%;
  1264. background-size: 80%;
  1265. font-size: 16px;
  1266. }
  1267. .monitor-item {
  1268. width: 200px;
  1269. display: flex;
  1270. flex-direction: row;
  1271. width: auto;
  1272. margin-bottom: 3px;
  1273. .monitor-val {
  1274. color: #ffb700;
  1275. display: flex;
  1276. width: auto;
  1277. .val {
  1278. width: 80px;
  1279. // font-size: 14px;
  1280. font-size: 16px;
  1281. }
  1282. .unit {
  1283. color: #ffffffbb;
  1284. // font-size: 14px;
  1285. font-size: 16px;
  1286. }
  1287. }
  1288. }
  1289. .monitor-title {
  1290. width: 100px;
  1291. color: #7af5ff;
  1292. font-weight: 400;
  1293. // font-size: 14px;
  1294. font-size: 16px;
  1295. }
  1296. .signal-item {
  1297. display: flex;
  1298. justify-content: space-between;
  1299. // margin-bottom: 5px;
  1300. .signal-round {
  1301. display: inline-block;
  1302. width: 8px;
  1303. height: 8px;
  1304. border-radius: 50%;
  1305. margin: 0 10px;
  1306. position: relative;
  1307. &::after {
  1308. display: block;
  1309. content: '';
  1310. position: absolute;
  1311. width: 12px;
  1312. height: 12px;
  1313. top: -2px;
  1314. left: -2px;
  1315. border-radius: 50%;
  1316. }
  1317. }
  1318. .signal-round-gry {
  1319. background-color: #858585;
  1320. &::after {
  1321. background-color: #85858544;
  1322. box-shadow: 0 0 1px 1px #85858599;
  1323. }
  1324. }
  1325. .signal-round-run {
  1326. background-color: #67fc00;
  1327. &::after {
  1328. background-color: #67fc0044;
  1329. box-shadow: 0 0 1px 1px #c6ff77;
  1330. }
  1331. }
  1332. .signal-round-warning {
  1333. background-color: #e9170b;
  1334. &::after {
  1335. background-color: #e9170b44;
  1336. box-shadow: 0 0 1px 1px #e9170b;
  1337. }
  1338. }
  1339. }
  1340. }
  1341. :deep(.zxm-radio-wrapper) {
  1342. color: #fff !important;
  1343. }
  1344. :deep(.zxm-radio-group) {
  1345. color: #fff !important;
  1346. }
  1347. :deep(.zxm-radio-group .zxm-radio-wrapper) {
  1348. color: #fff !important;
  1349. }
  1350. :deep(.zxm-radio-disabled + span){
  1351. color: #fff;
  1352. }
  1353. :deep(.zxm-radio-disabled .zxm-radio-inner::after){
  1354. background-color:#0490a8;
  1355. }
  1356. </style>