移动储能车V1版本
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.vue 30KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <image class="top_logo" src="../../static/logo.png" mode=""></image>
  5. <image class="tite" src="../../static/tite.png" mode=""></image>
  6. <view class="time">
  7. <view class="time_top">
  8. {{formattedTime}}
  9. </view>
  10. <view class="time_bottom">
  11. <view>
  12. </view>
  13. <view class="time_bottom1">
  14. 连接状态:
  15. <view class="time_state" v-if="status=='ok'">
  16. 在线
  17. </view>
  18. <view class="time_state1" v-else>
  19. 离线
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="parameter">
  26. <view class="parameter_left">
  27. <view class="parameter_left1">
  28. <jerry-gauge></jerry-gauge>
  29. <view class="parameter_canvas">
  30. <view class="parameter_canvas1">
  31. 0
  32. </view>
  33. <view class="parameter_canvas2">
  34. 100%
  35. </view>
  36. </view>
  37. </view>
  38. <image class="parameter_leftdian1" src="../../static/dian1.png" alt="" />
  39. <view class="parameter_lef2">
  40. <image src="../../static/dian2.png" mode=""></image>
  41. </view>
  42. <image class="parameter_leftche1" src="../../static/fang.png" mode=""></image>
  43. <view class="parameter_leftview">交流供电</view>
  44. </view>
  45. <view class="parameter_right">
  46. <view class="parameter_righttop">
  47. <view class="parameter_1">
  48. <view class="parameter_2">
  49. <view class="parameter_31">
  50. <view class="parameter_4">
  51. <image src="../../static/y8.png" mode="" v-if="uidatasdata.AC_Out_380V_125A_Status==0.00"></image>
  52. <image src="../../static/y6.png" mode="" v-else></image>
  53. 125A状态
  54. </view>
  55. <view class="parameter_51" v-if="uidatasdata.AC_Out_380V_125A_Status==0.00">
  56. 连接
  57. </view>
  58. <view class="parameter_5" v-else>
  59. 断开
  60. </view>
  61. </view>
  62. <view class="parameter_31">
  63. <view class="parameter_4">
  64. <image src="../../static/y8.png" mode="" v-if="uidatasdata.AC_Out_380V_63A_Status==0.00"></image>
  65. <image src="../../static/y6.png" mode="" v-else></image>
  66. 63A状态
  67. </view>
  68. <view class="parameter_51" v-if="uidatasdata.AC_Out_380V_63A_Status==0.00">
  69. 连接
  70. </view>
  71. <view class="parameter_5" v-else>
  72. 断开
  73. </view>
  74. </view>
  75. <view class="parameter_31">
  76. <view class="parameter_4">
  77. <image src="../../static/y8.png" mode="" v-if="uidatasdata.AC_Out_220V_16A_Status==0.00"></image>
  78. <image src="../../static/y6.png" mode="" v-else></image>
  79. 16A状态
  80. </view>
  81. <view class="parameter_51" v-if="uidatasdata.AC_Out_220V_16A_Status==0.00">
  82. 连接
  83. </view>
  84. <view class="parameter_5" v-else>
  85. 断开
  86. </view>
  87. </view>
  88. </view>
  89. <view class="parameter_SOC">
  90. <image src="../../static/SOC.png" mode=""></image>
  91. <view class="parameter_SOCright">
  92. <view class="parameter_SOCright1">
  93. SOC
  94. </view>
  95. <view>
  96. <text class="parameter_SOCright2">{{uidatasdata.SOC}}</text><text> %</text>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="parameter_Battery">
  101. <image src="../../static/Battery.png" mode=""></image>
  102. <view class="parameter_SOCright">
  103. <view class="parameter_SOCright1">
  104. 电池状态
  105. </view>
  106. <view class="parameter_Batterystate">
  107. <view v-if="uidatasdata.bms_BatSysState==5">
  108. 故障
  109. </view>
  110. <view v-if="uidatasdata.bms_BatSysState==0">
  111. 出始化
  112. </view>
  113. <view v-if="uidatasdata.bms_BatSysState==1">
  114. 未上高压
  115. </view>
  116. <view v-if="uidatasdata.bms_BatSysState==2">
  117. 上高压中
  118. </view>
  119. <view v-if="uidatasdata.bms_BatSysState==3">
  120. 已上高压
  121. </view>
  122. <view v-if="uidatasdata.bms_BatSysState==4">
  123. 下高压中
  124. </view>
  125. <!-- {{uidatasdata.bms_BatSysState==0.00?'无效':'有效'}} -->
  126. </view>
  127. </view>
  128. </view>
  129. <view class="parameter_state">
  130. <image src="../../static/setup.png" mode=""></image>
  131. <view class="parameter_SOCright">
  132. <view class="parameter_SOCright1">
  133. 系统状态
  134. </view>
  135. <view class="parameter_Batterystate">
  136. <!-- {{uidatasdata.bms_ChgLinkSt==0.00?'无效':'有效'}} -->
  137. <view v-if="uidatasdata.bms_ChargeStatus==0">
  138. 未充电
  139. </view>
  140. <view v-if="uidatasdata.bms_ChargeStatus==1">
  141. 充电中
  142. </view>
  143. <view v-if="uidatasdata.bms_ChargeStatus==2">
  144. 充电故障
  145. </view>
  146. <view v-if="uidatasdata.bms_ChargeStatus==3">
  147. 充满
  148. </view>
  149. <view v-if="uidatasdata.bms_ChargeStatus==4">
  150. 充电停止
  151. </view>
  152. <view v-if="uidatasdata.bms_ChargeStatus==5">
  153. 保留
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. <view class="parameter_tap">
  161. <view :class="segmented==1?'parameter_tap1':'parameter_tap2'" @click="ontap(1)">
  162. 交流信息
  163. </view>
  164. <view :class="segmented==2?'parameter_tap1':'parameter_tap2'" @click="ontap(2)">
  165. 电池信息
  166. </view>
  167. <view :class="segmented==3?'parameter_tap1':'parameter_tap2'" @click="ontap(3)">
  168. 统计信息
  169. </view>
  170. <view :class="segmented==4?'parameter_tap1':'parameter_tap2'" @click="ontap(4)">
  171. 液冷信息
  172. </view>
  173. </view>
  174. <view class="parameter_zheng">
  175. <view class="parameter_box" v-if="segmented==1">
  176. <view class="parameter_zheng1">
  177. <view class="parameter_zheng11">
  178. <view class="parameter_zheng12">
  179. A相电压
  180. </view>
  181. <view class="parameter_zheng13">
  182. {{uidatasdata.PCSPortAPhaseVoltage}} <text class="parameter_zheng14">V</text>
  183. </view>
  184. </view>
  185. <view class="parameter_zheng11">
  186. <view class="parameter_zheng12">
  187. B相电压
  188. </view>
  189. <view class="parameter_zheng13">
  190. {{uidatasdata.PCSPortBPhaseVoltage}} <text class="parameter_zheng14">V</text>
  191. </view>
  192. </view>
  193. <view class="parameter_zheng11">
  194. <view class="parameter_zheng12">
  195. C相电压
  196. </view>
  197. <view class="parameter_zheng13">
  198. {{uidatasdata.PCSPortCPhaseVoltage}} <text class="parameter_zheng14">V</text>
  199. </view>
  200. </view>
  201. <view class="parameter_zheng11">
  202. <view class="parameter_zheng12">
  203. 放电电量
  204. </view>
  205. <view class="parameter_zheng13">
  206. {{uidatasdata.PCSACDisChargeEnergy}} <text class="parameter_zheng14">kWh</text>
  207. </view>
  208. </view>
  209. </view>
  210. <view class="parameter_zheng2">
  211. <view class="parameter_zheng11">
  212. <view class="parameter_zheng12">
  213. A相电流
  214. </view>
  215. <view class="parameter_zheng13">
  216. {{uidatasdata["PCSOutputA-phaseCurrent"]}} <text class="parameter_zheng14">A</text>
  217. </view>
  218. </view>
  219. <view class="parameter_zheng11">
  220. <view class="parameter_zheng12">
  221. B相电流
  222. </view>
  223. <view class="parameter_zheng13">
  224. {{uidatasdata["PCSOutputB-phaseCurrent"]}} <text class="parameter_zheng14">A</text>
  225. </view>
  226. </view>
  227. <view class="parameter_zheng11">
  228. <view class="parameter_zheng12">
  229. C相电流
  230. </view>
  231. <view class="parameter_zheng13">
  232. {{uidatasdata["PCSOutputC-phaseCurrent"]}}<text class="parameter_zheng14">A</text>
  233. </view>
  234. </view>
  235. <view class="parameter_zheng11">
  236. <view class="parameter_zheng12">
  237. 放电功率
  238. </view>
  239. <view class="parameter_zheng13">
  240. {{uidatasdata.PCSTotalOutputReactivePower}} <text class="parameter_zheng14">kW</text>
  241. </view>
  242. </view>
  243. </view>
  244. </view>
  245. <view class="parameter_box" v-if="segmented==2">
  246. <view class="parameter_zheng1">
  247. <view class="parameter_zheng11">
  248. <view class="parameter_zheng12">
  249. 电池功率
  250. </view>
  251. <view class="parameter_zheng13">
  252. {{uidatasdata.BatSysSt2_BatPower}} <text class="parameter_zheng14">kW</text>
  253. </view>
  254. </view>
  255. <view class="parameter_zheng11">
  256. <view class="parameter_zheng12">
  257. 电池内总压
  258. </view>
  259. <view class="parameter_zheng13">
  260. {{uidatasdata.BatSysSt2_BatSumVInt}} <text class="parameter_zheng14">V</text>
  261. </view>
  262. </view>
  263. <view class="parameter_zheng11">
  264. <view class="parameter_zheng12">
  265. 允许放电功率
  266. </view>
  267. <view class="parameter_zheng13">
  268. {{uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit}} <text
  269. class="parameter_zheng14">kW</text>
  270. </view>
  271. </view>
  272. <view class="parameter_zheng11">
  273. <view class="parameter_zheng12">
  274. 最大单体电压
  275. </view>
  276. <view class="parameter_zheng13">
  277. {{uidatasdata.BatCellVPeak_ValMaxCellVoltage}} <text
  278. class="parameter_zheng14">V</text>
  279. </view>
  280. </view>
  281. <view class="parameter_zheng11">
  282. <view class="parameter_zheng12">
  283. 最大单体温度
  284. </view>
  285. <view class="parameter_zheng13">
  286. {{uidatasdata.BatSysLimitVal_MaxCellTemperatureLimit}} <text
  287. class="parameter_zheng14">℃</text>
  288. </view>
  289. </view>
  290. </view>
  291. <view class="parameter_zheng2">
  292. <view class="parameter_zheng11">
  293. <view class="parameter_zheng12">
  294. 电池电流
  295. </view>
  296. <view class="parameter_zheng13">
  297. {{uidatasdata.BatSysSt2_BatCur}} <text class="parameter_zheng14">A</text>
  298. </view>
  299. </view>
  300. <view class="parameter_zheng11">
  301. <view class="parameter_zheng12">
  302. 电池外总压
  303. </view>
  304. <view class="parameter_zheng13">
  305. {{uidatasdata.BatSysSt2_BatSumVOut}} <text class="parameter_zheng14">V</text>
  306. </view>
  307. </view>
  308. <view class="parameter_zheng11">
  309. <view class="parameter_zheng12">
  310. 允许放电电流
  311. </view>
  312. <view class="parameter_zheng13">
  313. {{uidatasdata.ChargingInformation_Chg_Max_Cur}} <text
  314. class="parameter_zheng14">A</text>
  315. </view>
  316. </view>
  317. <view class="parameter_zheng11">
  318. <view class="parameter_zheng12">
  319. 最小单体电压
  320. </view>
  321. <view class="parameter_zheng13">
  322. {{uidatasdata.BatCellVPeak_ValMinCellVoltage}} <text
  323. class="parameter_zheng14">V</text>
  324. </view>
  325. </view>
  326. <view class="parameter_zheng11">
  327. <view class="parameter_zheng12">
  328. 最小单体温度
  329. </view>
  330. <view class="parameter_zheng13">
  331. {{uidatasdata.CellTemperatureLimitsStatus_MinTemp}} <text
  332. class="parameter_zheng14">℃</text>
  333. </view>
  334. </view>
  335. </view>
  336. </view>
  337. <view class="parameter_box" v-if="segmented==3">
  338. <view class="parameter_zheng10">
  339. <view class="parameter_zheng11">
  340. <view class="parameter_zheng12">
  341. 电池功率
  342. </view>
  343. <view class="parameter_zheng13">
  344. {{uidatasdata.BatSysSt2_BatPower}} <text class="parameter_zheng14">kW</text>
  345. </view>
  346. </view>
  347. <view class="parameter_zheng11 parameter_zheng101">
  348. <view class="parameter_zheng12">
  349. 电池内总压
  350. </view>
  351. <view class="parameter_zheng13">
  352. {{uidatasdata.BatSysSt2_BatSumVInt}} <text class="parameter_zheng14">V</text>
  353. </view>
  354. </view>
  355. </view>
  356. </view>
  357. <view class="parameter_box" v-if="segmented==4">
  358. <view class="parameter_zheng1">
  359. <view class="parameter_zheng11">
  360. <view class="parameter_zheng12">
  361. 工作模式
  362. </view>
  363. <view class="parameter_Batterystate">
  364. <!-- {{uidatasdata.TMS_Status_TMS_WORK_MODE}} <text class="parameter_zheng14">kW</text> -->
  365. <!-- {{uidatasdata.TMS_Status_TMS_WORK_MODE==1.00?'有效':'无效'}} -->
  366. <view v-if="uidatasdata.TMS_Status_TMS_WORK_MODE==0">
  367. 关机模式
  368. </view>
  369. <view v-if="uidatasdata.TMS_Status_TMS_WORK_MODE==1">
  370. 制冷模式
  371. </view>
  372. <view v-if="uidatasdata.TMS_Status_TMS_WORK_MODE==2">
  373. 自热模式
  374. </view>
  375. <view v-if="uidatasdata.TMS_Status_TMS_WORK_MODE==3">
  376. 自循环模式
  377. </view>
  378. </view>
  379. </view>
  380. <view class="parameter_zheng11">
  381. <view class="parameter_zheng12">
  382. 出水温度
  383. </view>
  384. <view class="parameter_zheng13">
  385. {{uidatasdata.TMS_Status_TMS_WATEROUT_TEMP}} <text
  386. class="parameter_zheng14">℃</text>
  387. </view>
  388. </view>
  389. <view class="parameter_zheng11">
  390. <view class="parameter_zheng12">
  391. 需求功率
  392. </view>
  393. <view class="parameter_zheng13">
  394. {{uidatasdata.TMS_Status_TMS_POWER_REQ}} <text class="parameter_zheng14">kW</text>
  395. </view>
  396. </view>
  397. </view>
  398. <view class="parameter_zheng2">
  399. <view class="parameter_zheng11">
  400. <view class="parameter_zheng12">
  401. 高压继电器状态
  402. </view>
  403. <view class="parameter_Batterystate">
  404. <!-- {{uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0.00?'无效':'有效'}} -->
  405. <view v-if="uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==0">
  406. 断开状态
  407. </view>
  408. <view v-if="uidatasdata.TMS_Status_TMS_HV_CONTACT_ST==1">
  409. 闭合状态
  410. </view>
  411. </view>
  412. </view>
  413. <view class="parameter_zheng11">
  414. <view class="parameter_zheng12">
  415. 入水温度
  416. </view>
  417. <view class="parameter_zheng13">
  418. {{uidatasdata.TMS_Status_TMS_WATERIN_TEMP}} <text class="parameter_zheng14">℃</text>
  419. </view>
  420. </view>
  421. <view class="parameter_zheng11">
  422. <view class="parameter_zheng12">
  423. 故障等级
  424. </view>
  425. <view class="parameter_Batterystate">
  426. <!-- {{uidatasdata.TMS_Status_TMS_ERR_LEVEL==0.00?'无效':'有效'}} -->
  427. <view v-if="uidatasdata.TMS_Status_TMS_ERR_LEVEL==0">
  428. 无故障
  429. </view>
  430. <view v-if="uidatasdata.TMS_Status_TMS_ERR_LEVEL==1">
  431. 1级故障
  432. </view>
  433. <view v-if="uidatasdata.TMS_Status_TMS_ERR_LEVEL==2">
  434. 2级故障
  435. </view>
  436. <view v-if="uidatasdata.TMS_Status_TMS_ERR_LEVEL==3">
  437. 3级故障
  438. </view>
  439. </view>
  440. </view>
  441. </view>
  442. </view>
  443. <view class="parameter_zheng3">
  444. <view class="parameter_zheng31111" v-if="uidatasdata.SysControl_RunCmd==1">
  445. <view class="parameter_zheng31">
  446. <view class="parameter_zheng32ccc">
  447. 开启
  448. </view>
  449. </view>
  450. </view>
  451. <view class="parameter_zheng31111" v-else @click="dialogToggle">
  452. <view class="parameter_zheng31">
  453. <view class="parameter_zheng32">
  454. 开启
  455. </view>
  456. </view>
  457. </view>
  458. <view class="parameter_zheng31111" v-if="uidatasdata.SysControl_RunCmd==0">
  459. <view class="parameter_zheng31">
  460. <view class="parameter_zheng32ccc">
  461. 停止
  462. </view>
  463. </view>
  464. </view>
  465. <view class="parameter_zheng31111" v-else @click="onstopit">
  466. <view class="parameter_zheng31">
  467. <view class="parameter_zheng33">
  468. 停止
  469. </view>
  470. </view>
  471. </view>
  472. </view>
  473. </view>
  474. <view class="parameter_home">
  475. <view class="parameter_home1" @click="onreturn">
  476. <image src="../../static/home.png" mode=""></image><text
  477. class="parameter_hometext">返回模式选择</text>
  478. </view>
  479. <view class="parameter_home2">
  480. <image src="../../static/home1.png" mode=""></image>
  481. <swiper class="swiper" circular :autoplay="true" :interval="2000"
  482. :duration="500" :vertical="true">
  483. <swiper-item v-for="(item, index) in faultsdata" :key="index">
  484. <view class="parameter_home3">{{ item["CONTENT"] }}</view>
  485. </swiper-item>
  486. </swiper>
  487. </view>
  488. </view>
  489. </view>
  490. </view>
  491. <uni-popup ref="alertDialog">
  492. <uni-popup-dialog :mode="modeinput" placeholder="请输入内容" v-model="value" :type="successtype"
  493. cancelText="取消返回" :confirmText="confirmText" :title="title" :content="content" :beforeClose="true" @confirm="dialogConfirm"
  494. @close="dialogClose"></uni-popup-dialog>
  495. </uni-popup>
  496. <uni-popup ref="message" type="message">
  497. <uni-popup-message type="error" :message="messageText" :duration="3000"></uni-popup-message>
  498. </uni-popup>
  499. </view>
  500. </template>
  501. <script>
  502. import JerryGauge from "../../uni_modules/jerry-gauge/index.vue";
  503. import {
  504. getuidatas,
  505. control,
  506. getfaultsList
  507. } from "../../api/api.js";
  508. import {getTime} from "../../utils/index.js";
  509. import { mapState } from 'vuex';
  510. export default {
  511. components:{
  512. JerryGauge
  513. },
  514. data() {
  515. return {
  516. successtype: 'success',
  517. confirmText: '确认启动',
  518. title: '你确定要开启该设备吗?',
  519. content: '启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!',
  520. value: '',
  521. modeinput: '',
  522. segmented: 1,
  523. uidatas: '',
  524. formatTimeid:'',
  525. faultsdata:[],
  526. messageText:''
  527. }
  528. },
  529. onLoad() {
  530. },
  531. computed: {
  532. // 使用 mapState 映射多个状态到组件的计算属性
  533. ...mapState(['formattedTime','status']),
  534. ...mapState({
  535. uidatasdata: state => state.uidatasdata
  536. })
  537. },
  538. mounted() {
  539. this.onfaultsdata();
  540. },
  541. beforeUnmount() {
  542. },
  543. methods: {
  544. onfaultsdata(){
  545. let data ={
  546. page:1,
  547. rows:1000,
  548. device: '',
  549. starttime: '',
  550. endtime: '',
  551. rt: 1,
  552. type:''
  553. }
  554. getfaultsList(data).then(res => {
  555. console.log(res);
  556. if(res.status=='ok'){
  557. this.faultsdata= res.data.list
  558. }else{
  559. }
  560. });
  561. },
  562. // 返回首页
  563. onreturn() {
  564. uni.redirectTo({
  565. url: '/pages/index/index'
  566. });
  567. },
  568. // 启动设备弹窗
  569. dialogToggle() {
  570. this.modeinput = 'base'
  571. this.successtype = 'success'
  572. this.confirmText = '确认启动'
  573. this.title = '你确定要开启该设备吗?'
  574. this.content = '启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!'
  575. this.$refs.alertDialog.open()
  576. },
  577. onstopit() {
  578. this.modeinput = 'base'
  579. this.successtype = 'error'
  580. this.confirmText = '确认停止'
  581. this.title = '你确定要停止该设备吗?'
  582. this.content = '设备完全停止后,方能进行后续操作,否则可能危及生命安全!'
  583. this.$refs.alertDialog.open()
  584. },
  585. // 确认弹窗
  586. dialogConfirm() {
  587. let uidatasdata = this.$store.state.uidatasdata
  588. let data = {
  589. id: "c35c4db0-113f-442a-9e26-728489265fdb",
  590. issaveinitvalue:false,
  591. value: this.confirmText=='确认启动'?'1':'0'
  592. }
  593. if(this.confirmText=='确认启动'){
  594. if(uidatasdata.AC_In_380V_63A1_Status==0||uidatasdata.AC_In_380V_63A2_Status==0){
  595. this.messageText = 'AC供电时AC输入端应全部断开'
  596. this.$refs.message.open()
  597. return
  598. }
  599. }
  600. control(data).then(data => {
  601. // console.log(data);
  602. if (data.status == 'ok') {
  603. this.$refs.alertDialog.close()
  604. uni.showToast({
  605. title:'操作成功',
  606. icon: 'none',
  607. duration: 2000, // 显示时长,单位为毫秒
  608. });
  609. } else {
  610. this.$refs.alertDialog.close()
  611. uni.showToast({
  612. title: '操作失败',
  613. icon: 'none', // 使用 'none' 图标来表示失败
  614. duration: 2000, // 显示时长,单位为毫秒
  615. });
  616. }
  617. });
  618. },
  619. dialogClose() {
  620. console.log(this.value);
  621. this.$refs.alertDialog.close()
  622. },
  623. ontap(e) {
  624. console.log(e);
  625. this.segmented = e;
  626. }
  627. }
  628. }
  629. </script>
  630. <style lang="scss" scoped>
  631. .content {
  632. width: 100%;
  633. height: 100vh;
  634. opacity: 1;
  635. background: linear-gradient(180deg, rgba(215, 230, 245, 0) 0%, rgba(196, 229, 255, 1) 100%);
  636. box-sizing: border-box;
  637. }
  638. .top {
  639. width: 100%;
  640. height: 100px;
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. background-size: 100% 100%;
  645. background-repeat: no-repeat;
  646. box-sizing: border-box;
  647. background-color: #fff;
  648. padding: 0px 46px;
  649. }
  650. .top_logo {
  651. width: 426px;
  652. height: 68px;
  653. }
  654. .tite {
  655. width: 277px;
  656. height: 48px;
  657. }
  658. .time {
  659. text-align: right;
  660. }
  661. .time_top {
  662. font-size: 17px;
  663. }
  664. .time_bottom {
  665. display: flex;
  666. font-size: 17px;
  667. justify-content: space-between;
  668. }
  669. .time_bottom1 {
  670. display: flex;
  671. }
  672. .time_state {
  673. font-size: 17px;
  674. font-weight: 600;
  675. color: rgba(22, 68, 144, 1);
  676. }
  677. .time_state1 {
  678. font-size: 17px;
  679. font-weight: 600;
  680. color: rgba(217, 22, 22, 1);
  681. }
  682. .parameter {
  683. width: 100%;
  684. padding-bottom: 20px;
  685. display: flex;
  686. padding: 20px 20px;
  687. box-sizing: border-box;
  688. }
  689. .parameter_left {
  690. width: 262.85px;
  691. height: 630px;
  692. opacity: 1;
  693. border-radius: 24.47px;
  694. background: linear-gradient(180deg, rgba(42, 150, 212, 0.1) 0%, rgba(42, 146, 209, 0) 100%);
  695. border: 2.94px solid rgba(242, 248, 252, 1);
  696. display: flex;
  697. flex-direction: column;
  698. align-items: center;
  699. padding: 20rpx 0px;
  700. }
  701. .parameter_left1 {
  702. width: 100%;
  703. height: 170px;
  704. box-sizing: border-box;
  705. display: flex;
  706. flex-direction: column;
  707. justify-content: space-between;
  708. align-items: center;
  709. padding-bottom: 10px;
  710. }
  711. .canvas {
  712. width: 180px;
  713. margin: 8px auto auto auto;
  714. }
  715. .parameter_canvas {
  716. width: 100%;
  717. display: flex;
  718. justify-content: space-around;
  719. box-sizing: border-box;
  720. }
  721. .parameter_canvas1 {
  722. margin-left: -20px;
  723. margin-top: -40px;
  724. }
  725. .parameter_canvas2 {
  726. margin-right: -20px;
  727. margin-top: -40px;
  728. }
  729. .parameter_leftdian1 {
  730. width: 97.9px;
  731. height: 97.9px;
  732. opacity: 1;
  733. }
  734. .parameter_lef2 {
  735. width: 100%;
  736. height: 210px;
  737. display: flex;
  738. justify-content: center;
  739. align-items: center;
  740. background-image: url("../../static/heng.png");
  741. background-size: auto 100%;
  742. background-repeat: no-repeat;
  743. background-position: center center;
  744. margin: 10px 0px;
  745. image {
  746. width: 100px;
  747. height: 100px;
  748. margin-top: -10px;
  749. }
  750. }
  751. .parameter_leftche {
  752. width: 115.52px;
  753. height: 78.32px;
  754. opacity: 1;
  755. }
  756. .parameter_leftche1 {
  757. width: 77px;
  758. height: 81px;
  759. opacity: 1;
  760. }
  761. .parameter_leftche2 {
  762. width: 77px;
  763. height: 62px;
  764. }
  765. .parameter_leftview {
  766. font-size: 19.58px;
  767. font-weight: 400;
  768. letter-spacing: 0px;
  769. line-height: 28.35px;
  770. color: rgba(0, 0, 0, 1);
  771. margin-top: 8px;
  772. }
  773. .parameter_right {
  774. flex: 1;
  775. margin-left: 10px;
  776. display: flex;
  777. flex-direction: column;
  778. justify-content: space-between;
  779. }
  780. .parameter_righttop {
  781. width: 100%;
  782. }
  783. .parameter_1 {
  784. display: flex;
  785. }
  786. .parameter_2 {
  787. width: 339.21px;
  788. display: flex;
  789. flex-direction: column;
  790. justify-content: space-between;
  791. margin-right: 16px;
  792. }
  793. .parameter_3 {
  794. width: 339.21px;
  795. display: flex;
  796. align-items: center;
  797. justify-content: space-between;
  798. padding: 12px 20px;
  799. box-sizing: border-box;
  800. border-radius: 9.79px;
  801. background: linear-gradient(180deg, rgba(93, 189, 245, 0.15) 0%, rgba(31, 141, 209, 0.15) 100%);
  802. image {
  803. width: 7.83px;
  804. height: 7.83px;
  805. margin-right: 6px;
  806. }
  807. }
  808. .parameter_31 {
  809. width: 339.21px;
  810. display: flex;
  811. align-items: center;
  812. justify-content: space-between;
  813. padding: 3px 20px;
  814. box-sizing: border-box;
  815. border-radius: 9.79px;
  816. background: linear-gradient(180deg, rgba(93, 189, 245, 0.15) 0%, rgba(31, 141, 209, 0.15) 100%);
  817. image {
  818. width: 7.83px;
  819. height: 7.83px;
  820. margin-right: 6px;
  821. }
  822. }
  823. .parameter_4 {
  824. /** 文本1 */
  825. font-size: 23.5px;
  826. font-weight: 700;
  827. color: rgba(38, 38, 38, 1);
  828. display: flex;
  829. align-items: center;
  830. }
  831. .parameter_5 {
  832. font-size: 24.47px;
  833. font-weight: 700;
  834. color: rgba(217, 22, 22, 1);
  835. }
  836. .parameter_51 {
  837. font-size: 24.47px;
  838. font-weight: 700;
  839. color: rgba(7, 123, 67, 1);
  840. }
  841. .parameter_SOC {
  842. display: flex;
  843. align-items: center;
  844. justify-content: space-around;
  845. width: 195.11px;
  846. height: 130px;
  847. /* opacity: 0.15; */
  848. border-radius: 9.79px;
  849. margin-right: 16px;
  850. background: linear-gradient(180deg, rgba(240, 209, 137, 0.15) 0%, rgba(186, 141, 56, 0.15) 100%);
  851. image {
  852. width: 37.2px;
  853. height: 37.2px;
  854. }
  855. }
  856. .parameter_state {
  857. display: flex;
  858. align-items: center;
  859. justify-content: space-around;
  860. width: 195.11px;
  861. height: 130px;
  862. /* opacity: 0.15; */
  863. border-radius: 9.79px;
  864. background: linear-gradient(180deg, rgba(93, 149, 245, 0.15) 0%, rgba(41, 71, 204, 0.15) 100%);
  865. image {
  866. width: 37.2px;
  867. height: 37.2px;
  868. }
  869. }
  870. .parameter_Battery {
  871. display: flex;
  872. align-items: center;
  873. justify-content: space-around;
  874. width: 195.11px;
  875. height: 130px;
  876. /* opacity: 0.15; */
  877. margin-right: 16px;
  878. border-radius: 9.79px;
  879. background: linear-gradient(180deg, rgba(133, 242, 133, 0.15)0%, rgba(82, 209, 75, 0.15)100%);
  880. image {
  881. width: 37.2px;
  882. height: 37.2px;
  883. }
  884. }
  885. .parameter_SOCright {
  886. display: flex;
  887. flex-direction: column;
  888. }
  889. .parameter_SOCright1 {
  890. font-size: 23.5px;
  891. font-weight: 700;
  892. letter-spacing: 0px;
  893. line-height: 32.24px;
  894. color: rgba(38, 38, 38, 1);
  895. text-align: right;
  896. }
  897. .parameter_SOCright2 {
  898. font-size: 29.37px;
  899. font-weight: 700;
  900. color: rgba(186, 141, 56, 1);
  901. }
  902. .parameter_Batterystate {
  903. font-size: 23.5px;
  904. font-weight: 500;
  905. color: rgba(38, 38, 38, 1);
  906. text-align: right;
  907. }
  908. .parameter_tap {
  909. width: 100%;
  910. display: flex;
  911. margin-top: 18px;
  912. }
  913. .parameter_tap1 {
  914. flex: 1;
  915. height: 55.8px;
  916. opacity: 1;
  917. background: linear-gradient(180deg, rgba(30, 131, 189, 1) 0%, rgba(69, 168, 230, 0.92) 100%);
  918. box-shadow: inset 0px 0px 9.79px rgba(0, 0, 0, 0.1);
  919. display: flex;
  920. align-items: center;
  921. justify-content: center;
  922. font-size: 23.5px;
  923. font-weight: 500;
  924. color: rgba(255, 255, 255, 1);
  925. }
  926. .parameter_tap2 {
  927. flex: 1;
  928. height: 55.8px;
  929. opacity: 1;
  930. background: rgba(242, 242, 242, 1);
  931. box-shadow: inset 0px 0px 9.79px rgba(0, 0, 0, 0.1);
  932. display: flex;
  933. align-items: center;
  934. justify-content: center;
  935. font-size: 23.5px;
  936. font-weight: 500;
  937. }
  938. .parameter_zheng {
  939. width: 100%;
  940. height: 313px;
  941. background-image: url("../../static/z16.png");
  942. background-size: 100% 100%;
  943. margin-top: 10px;
  944. padding: 20px 0px;
  945. display: flex;
  946. }
  947. .parameter_zheng1 {
  948. width: 387px;
  949. height: 100%;
  950. border-right: 0.49px solid rgba(0, 0, 0, 1);
  951. display: flex;
  952. flex-direction: column;
  953. justify-content: space-between;
  954. }
  955. .parameter_zheng11 {
  956. display: flex;
  957. padding: 0px 20px;
  958. justify-content: space-between;
  959. }
  960. .parameter_zheng12 {
  961. font-size: 23.5px;
  962. font-weight: 400;
  963. color: rgba(0, 0, 0, 1);
  964. }
  965. .parameter_zheng13 {
  966. font-size: 29.37px;
  967. font-weight: 700;
  968. color: rgba(20, 105, 201, 1);
  969. }
  970. .parameter_zheng14 {
  971. font-size: 23.5px;
  972. font-weight: 400;
  973. color: rgba(0, 0, 0, 1);
  974. }
  975. .parameter_zheng2 {
  976. width: 387px;
  977. height: 100%;
  978. border-right: 0.49px solid rgba(0, 0, 0, 1);
  979. display: flex;
  980. flex-direction: column;
  981. justify-content: space-between;
  982. }
  983. .parameter_zheng3 {
  984. flex: 1;
  985. height: 100%;
  986. display: flex;
  987. flex-direction: column;
  988. align-items: center;
  989. justify-content: center;
  990. }
  991. .parameter_zheng31 {
  992. width: 90px;
  993. height: 90px;
  994. background-image: url("../../static/y4.png");
  995. background-size: 100% 100%;
  996. display: flex;
  997. align-items: center;
  998. justify-content: center;
  999. padding-bottom: 3px;
  1000. box-sizing: border-box;
  1001. }
  1002. .parameter_zheng31111{
  1003. width: 120px;
  1004. height: 120px;
  1005. display: flex;
  1006. align-items: center;
  1007. justify-content: center;
  1008. }
  1009. .parameter_zheng32 {
  1010. width: 74px;
  1011. height: 74px;
  1012. background-image: url("../../static/y1.png");
  1013. background-size: 100% 100%;
  1014. display: flex;
  1015. align-items: center;
  1016. justify-content: center;
  1017. font-size: 19.58px;
  1018. font-weight: 700;
  1019. color: rgba(255, 255, 255, 1);
  1020. }
  1021. .parameter_zheng32ccc {
  1022. width: 68px;
  1023. height: 68px;
  1024. /* background-image: url("../../static/y1.png"); */
  1025. background-color: #cccccc;
  1026. background-size: 100% 100%;
  1027. display: flex;
  1028. align-items: center;
  1029. justify-content: center;
  1030. font-size: 19px;
  1031. font-weight: 700;
  1032. color: rgba(255, 255, 255, 1);
  1033. border-radius: 100%;
  1034. }
  1035. .parameter_zheng33 {
  1036. width: 74px;
  1037. height: 74px;
  1038. background-image: url("../../static/y6.png");
  1039. background-size: 100% 100%;
  1040. display: flex;
  1041. align-items: center;
  1042. justify-content: center;
  1043. font-size: 19px;
  1044. font-weight: 700;
  1045. color: rgba(255, 255, 255, 1);
  1046. }
  1047. .parameter_zheng34 {
  1048. width: 68px;
  1049. height: 68px;
  1050. background-image: url("../../static/y8.png");
  1051. background-size: 100% 100%;
  1052. font-size: 18px;
  1053. font-weight: 700;
  1054. color: rgba(255, 255, 255, 1);
  1055. display: flex;
  1056. flex-direction: column;
  1057. align-items: center;
  1058. justify-content: center;
  1059. }
  1060. .parameter_home {
  1061. width: 100%;
  1062. display: flex;
  1063. margin-top: 0px;
  1064. justify-content: space-between;
  1065. }
  1066. .parameter_home1 {
  1067. display: flex;
  1068. align-items: center;
  1069. image {
  1070. width: 32.8px;
  1071. height: 32.31px;
  1072. margin-right: 10px;
  1073. }
  1074. }
  1075. .parameter_hometext {
  1076. font-size: 19.58px;
  1077. font-weight: 400;
  1078. color: rgba(0, 0, 0, 1);
  1079. }
  1080. .parameter_home2 {
  1081. width: 636.33px;
  1082. height: 39.16px;
  1083. opacity: 0.8;
  1084. border-radius: 0.98px;
  1085. background: rgba(242, 242, 242, 1);
  1086. border: 0.49px solid rgba(161, 161, 161, 1);
  1087. box-shadow: inset 0px 0px 9.79px rgba(0, 0, 0, 0.1);
  1088. display: flex;
  1089. align-items: center;
  1090. padding: 0px 10px;
  1091. box-sizing: border-box;
  1092. image {
  1093. width: 26.92px;
  1094. height: 29.86px;
  1095. }
  1096. }
  1097. .swiper {
  1098. width: 100%;
  1099. height: 40px;
  1100. }
  1101. .parameter_home3 {
  1102. height: 40px; /* 每条消息的高度 */
  1103. line-height: 40px; /* 垂直居中 */
  1104. font-size: 17.62px;
  1105. font-weight: 400;
  1106. margin-left: 10px;
  1107. color: rgba(0, 0, 0, 1);
  1108. }
  1109. .uni-dialog-title-text {
  1110. font-size: 70.89px !important;
  1111. font-weight: 500;
  1112. color: rgba(5, 5, 5, 1);
  1113. }
  1114. .parameter_box {
  1115. display: flex;
  1116. }
  1117. .parameter_zheng10 {
  1118. width: 687px;
  1119. height: 100%;
  1120. border-right: 0.49px solid rgba(0, 0, 0, 1);
  1121. display: flex;
  1122. flex-direction: column;
  1123. /* justify-content: space-around; */
  1124. }
  1125. .parameter_zheng101{
  1126. margin-top: 10px;
  1127. }
  1128. </style>