nitrogenHome2.vue 54 KB

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