移动储能车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 32KB

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