移动储能车V1版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 31KB

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