移动储能车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ů.

supply.vue 30KB

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