index.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299
  1. <template>
  2. <view class="content">
  3. <!-- 第一排盒子开始 -->
  4. <view class="box-first">
  5. <view class="machineStatus">
  6. <SubTitle title="机器人状态" titleEng="ROBOT STATUS"></SubTitle>
  7. <view class="bottom">
  8. <view class="list">
  9. <view class="plcConnect">
  10. <PannelItem show="true" words="PLC通讯" :status="robotInfoVo.plcState ? '正常' : '异常'"
  11. :flag="robotInfoVo.plcState" />
  12. </view>
  13. <view class="plcModel">
  14. <PannelItem show="true" words="机器人模式" :status="PlcMode" :flag="robotInfoVo.exchangeMode" />
  15. </view>
  16. </view>
  17. <view class="status-only">
  18. <view class="circle">
  19. <image :src="PlcState[0]"></image>
  20. </view>
  21. <view class="descript">机器人状态</view>
  22. <view class="frame">
  23. <span :class="PlcState[1]">{{PlcState[2] || '—'}}</span>
  24. <view class="shinning"></view>
  25. </view>
  26. </view>
  27. <PannelItem show="true" words="急停状态" :status="robotInfoVo.emergencyMode == 1 ? '急停' : robotInfoVo.emergencyMode == 0 ?'未急停' :'—'"
  28. :flag="robotInfoVo.emergencyMode == 0" />
  29. <PannelItem show="true" words="暂停状态" :status="robotInfoVo.pause == 1 ? '暂停' : robotInfoVo.pause == 0?'未暂停':'—' " handle="true"
  30. @ExchangeMessage='ExchangeMessage' :flag="robotInfoVo.pause == 0" />
  31. </view>
  32. </view>
  33. <view class="machineStatus carInfo">
  34. <SubTitle title="车辆信息" titleEng="VEHICLE INFORMATION"></SubTitle>
  35. <view class="bottom">
  36. <view class="list">
  37. <view class="carLeft">
  38. <PannelTitle words="车牌号" :value="vehicleInfo.plate" Isblue="true" :circle="true"
  39. :flag="vehicleInfo.plateState" @ShowCarline="ShowCarline" />
  40. </view>
  41. <view class="carRight">
  42. <PannelTitle words="在线车辆" circle="false" :value="vehicleInfo.onlineNum" flag="true"
  43. @ShowCarline="ShowCarline" />
  44. </view>
  45. </view>
  46. <view class="list">
  47. <view class="carLeft">
  48. <PannelTitle words="车辆识别" :value="vehicleInfo.plateState == 1 ? '成功' : '未识别'"
  49. :flag="vehicleInfo.plateState" @handleStatusShow="handleStatusShow"/>
  50. </view>
  51. <view class="carRight">
  52. <PannelTitle words="鉴权状态" :value="vehicleInfo.authState ? '已通过' : '未通过'"
  53. :flag="vehicleInfo.authState" />
  54. </view>
  55. </view>
  56. <view class="list">
  57. <view class="carLeft">
  58. <PannelTitle words="连接状态" :value="vehicleInfo.conState == 1 ? '已连接' : vehicleInfo.conState == 0 ?'未连接':'—'"
  59. :flag="vehicleInfo.conState == 1" />
  60. </view>
  61. <view class="carRight">
  62. <PannelTitle words="车辆到位" :value="vehicleInfo.sensorState ? '已到位' : '未到位'"
  63. :flag="vehicleInfo.sensorState" />
  64. </view>
  65. </view>
  66. <view class="list">
  67. <view class="carLeft">
  68. <PannelTitle circle="false" words="解锁状态"
  69. :value="vehicleInfo.lockState==null ? '—': vehicleInfo.lockState?'已上锁' : '已解锁'"
  70. @ExchangeMessage="ExchangeMessage" :flag="vehicleInfo.lockState == 0" />
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 第一排盒子结束-->
  77. <!-- 选电模式开始 -->
  78. <view class="getModel">
  79. <view class="subtilte-only">
  80. <view class="title">
  81. <view class="icon"></view>
  82. <view class="name">选电模式</view>
  83. <view class="letter">POWER SELECTION MODE</view>
  84. <view class="handle-model">
  85. <view class="leftBtn" :class="[pamars.batChooseMode===0 ? 'active' : '']"
  86. @click="ChangeModel(0)">自动选电</view>
  87. <view class="leftBtn Rbtn" :class="[pamars.batChooseMode===1 ? 'active' : '']"
  88. @click="ChangeModel(1)">手动选电</view>
  89. </view>
  90. <view class="freeze">
  91. <view class="active" @click="HandleFreeze(1)">冻结</view>
  92. <view @click="HandleFreeze(0)">解冻</view>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="storeList">
  97. <scroll-view scroll-x="true" class="scroll_x">
  98. <view v-for="(item, index) in storeInfoList">
  99. <!-- 电池列表信息 -->
  100. <BatteryInfo :soc="item.soc"
  101. :chgState="item.chargerInfoVo.chgState" :chgEstimatedTime="item.chargerInfoVo.chgEstimatedTime"
  102. :key="index" :storeState="item.storeState" :storeCode="item.storeCode"
  103. :freezeState="item.freezeState" :comState="item.comState" :lineType="item.chargerInfoVo.linktype"
  104. :chargerComState="item.chargerInfoVo.comState" :BatterySelectAllArr="BatterySelectAllArr"
  105. :BatterySelected="BatterySelected" :IsSelect="BatteryIsSelectArr[index]" />
  106. <!-- 电池信息结束 -->
  107. </view>
  108. </scroll-view>
  109. </view>
  110. </view>
  111. <!-- 选电模式结束-->
  112. <!-- 底部开始 -->
  113. <view class="box-last">
  114. <view class="Exchange-done">
  115. <view class="subtilte-only">
  116. <view class="title">
  117. <view class="icon"></view>
  118. <view class="name">换电操作</view>
  119. <view class="letter">POWER EXCHANGE OPERATION</view>
  120. <view class="switch">
  121. <view class="uni-list-cell-db">{{powerChangeStatus?'开启中':'已关闭'}}</view>
  122. <switch color="#91FDB9" style="transform:scale(0.6)" @change="switchChange" :checked="powerChangeStatus" />
  123. </view>
  124. </view>
  125. </view>
  126. <view class="Exchange-bottom">
  127. <view class="Exchange-times">
  128. <view class="Progress-btn" :class='!powerChangeStatus?"isshowactive":""' @click="BeginChangePower">开始换电</view>
  129. <view class="Exchange-status" v-if="!TcInfoVoData.sourceCode && !TcInfoVoData.targetCode && !xfTargetCodeData.xfTargetCode">
  130. <view class="lock">
  131. <span>{{ forbidLockState ? '锁止已屏蔽' : '锁止已放开'}}</span>
  132. <span class="time">换电时长:<font>{{PlcChangerTime || '—'}}</font></span>
  133. </view>
  134. <view class="percent">
  135. <view class="percent-bar">
  136. <view class="bar">
  137. <view class="bar-green" :style="{ 'width': swapPercent + '%' }">
  138. <view class="bar-percent" :class="[swapPercent <15 ? 'bar-ten' : '']">
  139. {{ swapPercent }}%
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <view class="count-step">
  145. <font>{{swapProcess.step || 0}}</font>/{{swapProcess.plcStep || 0}}
  146. </view>
  147. </view>
  148. <view class="lock">
  149. <span></span>
  150. <span class="time">机器人工作时长:<font>{{PlcWorkTime || '—'}}</font></span>
  151. </view>
  152. </view>
  153. <view class="Exchange-status" v-if="TcInfoVoData.sourceCode && TcInfoVoData.targetCode">
  154. <view class="Exchange-status-left">
  155. <view class="Exchange-status-left-box">
  156. <text class="text1">仓位</text><text
  157. class="text2">{{TcInfoVoData.sourceCode}}—>{{TcInfoVoData.targetCode}}号仓位</text>
  158. </view>
  159. <view class="Exchange-status-left-box">
  160. <text class="text1">电池状态</text><text
  161. class="text2">{{TcInfoVoData.chargerState?'充电中':'未充电'}}</text>
  162. </view>
  163. </view>
  164. <view class="Exchange-status-left">
  165. <view class="Exchange-status-left-box">
  166. <text class="text1">动作流程</text><text
  167. class="text2">{{TcInfoVoData.actionFlow || '-'}}</text>
  168. </view>
  169. <view class="Exchange-status-left-box">
  170. <text class="text1">工作时长</text><text class="text2">{{warehouse || '-'}}</text>
  171. </view>
  172. </view>
  173. </view>
  174. <view class="Exchange-status" v-if="xfTargetCodeData.xfTargetCode">
  175. <view class="Exchange-status-left">
  176. <view class="Exchange-status-left-box change-store">
  177. <text class="text1">仓位</text><text
  178. class="text2">{{xfTargetCodeData.xfTargetCode}}号仓位</text>
  179. </view>
  180. <view class="Exchange-status-left-box">
  181. <text class="text1">电池状态</text><text
  182. class="text2">{{xfTargetCodeData.chargerState?'充电中':'未充电'}}</text>
  183. </view>
  184. </view>
  185. <view class="Exchange-status-left">
  186. <view class="Exchange-status-left-box">
  187. <text class="text1">动作流程</text><text
  188. class="text2">{{xfTargetCodeData.actionFlow || '-'}}</text>
  189. </view>
  190. <view class="Exchange-status-left-box">
  191. <text class="text1">工作时长</text><text class="text2">{{changeWareHouse || '-'}}</text>
  192. </view>
  193. </view>
  194. </view>
  195. </view>
  196. <view class="Exchange-handle">
  197. <view class="handle" :class='!powerChangeStatus?"isshowactive":""' @click="HandleIsLock(1)">锁止屏蔽</view>
  198. <view class="handle" :class='!powerChangeStatus?"isshowactive":""' @click="HandleChangeStore">调仓</view>
  199. <view class="handle" :class='!powerChangeStatus?"isshowactive":""' @click="PausePLC(1)">急停</view>
  200. <view class="handle" :class='!powerChangeStatus?"isshowactive":""' @click="HandleFireStore">消防换仓</view>
  201. <view class="handle" :class='!powerChangeStatus?"isshowactive":""' @click="HandleIsLock(0)">锁止放开</view>
  202. <view class="handle" :class='!powerChangeStatus?"isshowactive":""' @click="PausePLC(6)">中止</view>
  203. </view>
  204. </view>
  205. </view>
  206. <view class="Exchange-log">
  207. <view class="subtilte-only">
  208. <view class="title">
  209. <view class="icon"></view>
  210. <view class="name">换电日志</view>
  211. <view class="letter">POWER EXCHANGE OPERATION</view>
  212. <!-- <view class="log-descript">支持手动急停充电机,倒计时1分钟</view> -->
  213. </view>
  214. </view>
  215. <view class="log_bottom">
  216. <scroll-view scroll-y="true" class="scroll_x">
  217. <view class="log-list" v-for="item in logList" :key="item.id">
  218. <view class="log-times" :class="[item.remark=='error'?'logRed':'']">{{item.createTime}}</view>
  219. <view class="log-info" :class="[item.remark=='error'?'logRed':'']">{{item.content}}</view>
  220. </view>
  221. </scroll-view>
  222. </view>
  223. </view>
  224. </view>
  225. <!-- 底部结束 -->
  226. <!-- 顶部公共提示信息 -->
  227. <uni-popup ref="Exchangepopup" type="message">
  228. <uni-popup-message :type="popupType" :message="popupMessage" :duration="2000"></uni-popup-message>
  229. </uni-popup>
  230. <uni-popup ref="popup" :mask-click="false">
  231. <view class="popup-container">
  232. <view class="popup-title">
  233. <view class="title-text">
  234. 车辆识别设备
  235. </view>
  236. <view class="title-close" @click="closePopup">
  237. 关闭
  238. </view>
  239. </view>
  240. <view class="popup-content">
  241. <PannelTitle words="车牌识别器" :value="vehicleInfo.plateComState == 1 ? '已连接' : '未连接'" :flag="vehicleInfo.plateComState"/>
  242. </view>
  243. <view class="popup-content">
  244. <PannelTitle words="RFID识别器" :value="vehicleInfo.rfidConnState ? '已连接' : '未连接'" :flag="vehicleInfo.rfidConnState"/>
  245. </view>
  246. </view>
  247. </uni-popup>
  248. <!-- 顶部提示信息结束-->
  249. <!--在线、编辑车辆抽屉 -->
  250. <uni-drawer ref="carlineDrawer" mode="right" :width="400" :mask-click="true">
  251. <scroll-view style="height: 100%;" scroll-y="true">
  252. <PublicDrawer :flag="isDrawer" title="在线车辆" @closeDrawer="closeDrawer" v-if="isDrawer">
  253. <view class="carPosition">
  254. <view class="CarnoData" v-if="CarlineList.length==0"></view>
  255. <view class="Carlist" v-for="item in CarlineList" :key="item.id">
  256. <view class="carDetail">
  257. <view class="plateNumber">
  258. <view class="icon">
  259. <image src="/static/change/car.png"></image>
  260. </view>
  261. <view class="pNumber">{{item.vehiclePlate}}</view>
  262. </view>
  263. <view class="vinMa">
  264. <view>VIN码</view>
  265. <view>{{item.vehicleVin}}</view>
  266. </view>
  267. <view class="vinMa">
  268. <view>熄火状态</view>
  269. <view>{{item.keyState}}</view>
  270. </view>
  271. <view class="vinMa">
  272. <view>解锁状态</view>
  273. <view>{{item.lockState?'已上锁':'已解锁'}}</view>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. </PublicDrawer>
  279. <PublicDrawer :flag="isDrawer" title="编辑车牌" @HandleEditPlate="HandleEditPlate"
  280. :plate="vehicleInfo.plate" @closeDrawer="closeDrawer" v-if="!isDrawer">
  281. <view class="carPosition">
  282. <view class="carForm">
  283. <view>编辑车牌号:</view>
  284. <input class="uni-input" type="text" v-model="plate" placeholder="请输入车牌号" />
  285. </view>
  286. </view>
  287. </PublicDrawer>
  288. </scroll-view>
  289. </uni-drawer>
  290. <!-- 在线、编辑车辆抽屉结束-->
  291. </view>
  292. </template>
  293. <script>
  294. export default {
  295. data() {
  296. return {
  297. popupMessage: '成功消息',
  298. popupType: 'success',
  299. robotInfoVo: {}, //机器人状态对象
  300. vehicleInfo: {}, //车辆信息对象
  301. batteryInfo: {}, //电池信息对象
  302. swapProcess: {}, //换电进度对象
  303. storeInfoList: [], //电池仓列表数组
  304. logList: [], //日志列表
  305. BatteryIsSelectArr: [false, false, false, false, false, false, false, false], //存储电池的选中状态
  306. BatteryFullStatus: true, //切换满电、亏点电池状态
  307. BatterySelectAllArr: [], //存储所有选中的电池仓位号
  308. CarlineList: [], //在线车辆列表
  309. pamars: {
  310. batChooseMode: 0,
  311. batChosenIndex: 0,
  312. startMode: 0,
  313. userId: 1,
  314. userName: 'admin'
  315. }, //开始换电参数
  316. ws: null, //ws连接对象
  317. timer: null, //ws连接
  318. isDrawer: true, //切换抽屉显示内容
  319. plate: '—', //弹窗车牌号
  320. powerChangeStatus: false,
  321. isSelectstoreState: [], //选择的仓位存储电池状态
  322. TcInfoVoData: {}, //调仓信息对象
  323. xfTargetCodeData: {}, //消防换仓对象
  324. heartbeatTimer:null,
  325. onMessageTime:null,
  326. TcNumber:0,//调仓计数器 大于5时显示换电页面
  327. XfNumber:0,//消防调仓计数器 大于5时显示换电页面
  328. forbidLockState:true,//锁止状态
  329. }
  330. },
  331. mounted() {
  332. this.onMessageTime = new Date();
  333. this.InitWs()
  334. this.heartbeatTimer = setInterval(()=>{
  335. let newDate = new Date();
  336. if(newDate-this.onMessageTime>3000){
  337. if(this.ws!=null){
  338. this.ws.close()
  339. this.ws=null
  340. }
  341. }
  342. },3000)
  343. },
  344. destroyed(){
  345. clearInterval(this.timer)
  346. this.ws.close()
  347. },
  348. onUnload() {
  349. if(this.timer!=null){
  350. clearInterval(this.timer)
  351. this.timer = null
  352. }
  353. if(this.ws!=null){
  354. this.ws.close()
  355. this.ws=null
  356. }
  357. if(this.heartbeatTimer!=null){
  358. this.heartbeatTimer.close()
  359. this.heartbeatTimer=null
  360. }
  361. },
  362. computed: {
  363. //换电时长
  364. PlcChangerTime() {
  365. if (this.swapProcess.swapStartTime) {
  366. let end_time = this.$moment()
  367. let seconds = end_time.diff(this.swapProcess.swapStartTime, "seconds")
  368. return parseInt(seconds / 60) + '分' + (seconds % 60) + '秒'
  369. }
  370. },
  371. //机器人工作时长
  372. PlcWorkTime() {
  373. if (this.swapProcess.plcStartTime) {
  374. let end_time = this.$moment()
  375. let seconds = end_time.diff(this.swapProcess.plcStartTime, "seconds")
  376. return parseInt(seconds / 60) + '分' + (seconds % 60) + '秒'
  377. }
  378. },
  379. //调仓工作时长
  380. warehouse() {
  381. if (this.TcInfoVoData.startTime) {
  382. let end_time = this.$moment()
  383. let seconds = end_time.diff(this.TcInfoVoData.startTime, "seconds")
  384. return parseInt(seconds / 60) + '分' + (seconds % 60) + '秒'
  385. }
  386. },
  387. //消防换仓工作时长
  388. changeWareHouse() {
  389. if (this.xfTargetCodeData.startTime) {
  390. let end_time = this.$moment()
  391. let seconds = end_time.diff(this.xfTargetCodeData.startTime, "seconds")
  392. return parseInt(seconds / 60) + '分' + (seconds % 60) + '秒'
  393. }
  394. },
  395. //换电百分比
  396. swapPercent() {
  397. if (this.swapProcess.plcPercentage) {
  398. return this.swapProcess.plcPercentage
  399. } else {
  400. return 0
  401. }
  402. },
  403. //换电解锁状态
  404. swapIsLock() {
  405. switch (this.swapProcess.lockState) {
  406. case true:
  407. return '已上锁'
  408. case false:
  409. return '已解锁'
  410. default:
  411. return '—'
  412. }
  413. },
  414. //机器人状态
  415. PlcState() {
  416. switch (this.robotInfoVo.robotState) {
  417. case 1:
  418. return ['/static/change/green.png', '', '就绪']
  419. case 2:
  420. return ['/static/change/blue.png', 'isblue', '运行']
  421. case 3:
  422. return ['/static/change/yellow.png', 'isflag', '完成']
  423. case 4:
  424. return ['/static/change/yellow.png', 'isflag', '故障']
  425. case 5:
  426. return ['/static/change/yellow.png', 'isflag', '中止']
  427. default:
  428. return ['/static/change/yellow.png', 'isflag', '未就绪']
  429. }
  430. },
  431. //机器人模式
  432. PlcMode() {
  433. switch (this.robotInfoVo.exchangeMode) {
  434. case 0:
  435. return '无效';
  436. case 1:
  437. return '手动模式';
  438. case 2:
  439. return '自动模式';
  440. case 3:
  441. return '单步模式';
  442. }
  443. },
  444. },
  445. methods: {
  446. handleStatusShow() {
  447. this.$refs.popup.open('center');
  448. },
  449. closePopup() {
  450. this.$refs.popup.close();
  451. },
  452. //修改车牌号提交
  453. HandleEditPlate(plate) {
  454. let that = this
  455. if (this.$checks.validateLicensePlateNumber(this.plate)) {
  456. this.$http.EditPlate(this.plate)
  457. .then(res => {
  458. if (res.code === 0) {
  459. that.ExchangeMessage('success', '修改成功!')
  460. that.closeDrawer()
  461. } else {
  462. that.ExchangeMessage('error', '修改失败!')
  463. }
  464. }).catch(err => {
  465. console.error(err)
  466. })
  467. } else {
  468. that.ExchangeMessage('warn', '请填写新能源车牌号!')
  469. }
  470. },
  471. closeDrawer() {
  472. this.$refs.carlineDrawer.close();
  473. },
  474. //顶部公共消息提示
  475. ExchangeMessage(type, message) {
  476. this.popupType = type
  477. this.popupMessage = message ? message : '后端接口404错误!'
  478. this.$refs.Exchangepopup.open()
  479. },
  480. //切换换电模式(0自动、1手动)
  481. ChangeModel(id) {
  482. let that = this
  483. let modelText = id === 1 ? '手动' : '自动'
  484. uni.showModal({
  485. title: `请确认选电模式切换为${modelText}?`,
  486. content: '',
  487. success: function(res) {
  488. if (res.confirm) {
  489. that.$http.setMode(id + '').then(res => {
  490. if (res.code === 0) {
  491. that.pamars.batChooseMode = id === 1 ? 1 : 0
  492. }
  493. that.ExchangeMessage(res.code === 0 ? 'success' : 'error',
  494. res.code === 0 ? '选电模式切换成功!' : '选电模式切换失败!')
  495. })
  496. } else if (res.cancel) {
  497. return false
  498. //用户点击取消按钮触发
  499. }
  500. }
  501. })
  502. },
  503. //冻结、解冻
  504. HandleFreeze(isFree) {
  505. let that=this
  506. const text = isFree === 1 ? '冻结' : '解冻'
  507. if (this.BatterySelectAllArr.length !== 1 || this.BatterySelectAllArr[0].storeState!==1) {
  508. this.ExchangeMessage('warn',`请选择一个电池进行${text}!`)
  509. }
  510. else if(isFree === 1 && this.BatterySelectAllArr[0].freezeState==1){
  511. this.ExchangeMessage('warn',`选择电池已冻结,无需再次冻结!`)
  512. }
  513. else if(isFree === 0 && !this.BatterySelectAllArr[0].freezeState){
  514. this.ExchangeMessage('warn',`选择电池已冻结,无需再次冻结!`)
  515. }
  516. else {
  517. const pamars={
  518. code:this.BatterySelectAllArr[0].storeCode,
  519. type:isFree
  520. }
  521. uni.showModal({
  522. title: `请确认${text}【${this.BatterySelectAllArr[0].storeCode}】号电池?`,
  523. content: '',
  524. success: function(res) {
  525. if (res.confirm) {
  526. that.$http.batteryfreeze(pamars).then(res => {
  527. if (res.code === 0) {
  528. that.clearStore()
  529. that.ExchangeMessage('warn',isFree===1?'冻结成功':'解冻成功')
  530. }else{
  531. that.ExchangeMessage('warn',isFree===1?'冻结失败':'解冻失败')
  532. }
  533. })
  534. } else if (res.cancel) {
  535. return false
  536. //用户点击取消按钮触发
  537. }
  538. }
  539. })
  540. }
  541. },
  542. //开始换电
  543. BeginChangePower() {
  544. if (this.powerChangeStatus) {
  545. if (this.pamars.batChooseMode === 1) {
  546. //手动模式下传仓位号参数
  547. if (this.BatterySelectAllArr.length !== 1 || this.BatterySelectAllArr[0].storeState !== 1) {
  548. this.ExchangeMessage('warn', '请手动选择一个电池进行换电!')
  549. return
  550. } else {
  551. this.pamars.batChosenIndex = this.BatterySelectAllArr[0].storeCode
  552. }
  553. } else {
  554. this.pamars.batChosenIndex = 0
  555. if (this.BatterySelectAllArr.length !== 0) {
  556. this.ExchangeMessage('warn', '自动换电不用选择电池,请取消选中的电池!')
  557. return
  558. }
  559. }
  560. const pamars = this.pamars
  561. let that = this
  562. uni.showModal({
  563. title: '请确认站控发起换电?',
  564. content: '',
  565. success: function(res) {
  566. if (res.confirm) {
  567. // that.ExchangeMessage('success', '换电指令已下发,请等待!')
  568. that.$http.beginSwap(pamars)
  569. .then(res => {
  570. that.clearStore()
  571. that.ExchangeMessage(res.code === 0 ? 'success' : 'error',
  572. res.code === 0 ? '发起换电成功!' : res.msg)
  573. })
  574. .catch(err => {
  575. console.error(err)
  576. })
  577. } else if (res.cancel) {
  578. return false
  579. //用户点击取消按钮触发
  580. }
  581. }
  582. })
  583. } else {
  584. this.PowerChangeStatusTips()
  585. }
  586. },
  587. //switch开关
  588. switchChange(e) {
  589. this.powerChangeStatus = e.detail.value
  590. },
  591. //实时车辆弹窗
  592. ShowCarline(pamars) {
  593. this.$refs.carlineDrawer.open();
  594. if (pamars == 'line') {
  595. this.getCarOnline()
  596. this.isDrawer = true
  597. } else {
  598. this.isDrawer = false
  599. this.plate = pamars
  600. }
  601. },
  602. //已连接站控车辆列表
  603. getCarOnline() {
  604. this.$http.CarOnline().then(res => {
  605. this.CarlineList = res.data; //[{vehicleVin:123,keyState:2,vehiclePlate:"渝AFB3182"}]
  606. this.CarlineList.forEach(item => {
  607. if (item.keyState == 0) {
  608. item.keyState = '熄火'
  609. } else if (item.keyState == 1) {
  610. item.keyState = '未点火'
  611. } else if (item.keyState == 2) {
  612. item.keyState = '启动'
  613. } else {
  614. item.keyState = '-'
  615. }
  616. })
  617. })
  618. },
  619. //切换满电、亏电电池信息
  620. ChangeBattery(id) {
  621. this.BatteryFullStatus = id === 1 ? true : false
  622. },
  623. //锁止屏蔽、放开
  624. HandleIsLock(islock) {
  625. if (this.powerChangeStatus) {
  626. let that = this
  627. let lockTest = islock ? '锁止屏蔽' : '锁止放开'
  628. uni.showModal({
  629. title: `请确认${lockTest}`,
  630. content: '',
  631. success: function(res) {
  632. if (res.confirm) {
  633. that.$http.EditforbidLock(islock + '')
  634. .then(res => {
  635. if (res.code === 0) {
  636. that.ExchangeMessage('success', islock ? '屏蔽成功' : '放开成功')
  637. } else {
  638. that.ExchangeMessage('error', islock ? '屏蔽失败' : '放开失败')
  639. }
  640. }).catch(err => {
  641. console.error(err)
  642. })
  643. } else if (res.cancel) {
  644. return false
  645. //用户点击取消按钮触发
  646. }
  647. }
  648. })
  649. } else {
  650. this.PowerChangeStatusTips()
  651. }
  652. },
  653. //急停、中止
  654. PausePLC(isStop) {
  655. if (this.powerChangeStatus) {
  656. let that = this
  657. const text = isStop == 1 ? '急停机器人' : '中止机器人'
  658. uni.showModal({
  659. title: `请确认${text}?`,
  660. content: '',
  661. success: function(res) {
  662. if (res.confirm) {
  663. that.$http.plcStop(isStop + '')
  664. .then(res => {
  665. if (res.code === 0) {
  666. that.ExchangeMessage('success', isStop == 1 ? '急停指令下发成功' : '中止指令下发成功')
  667. } else {
  668. that.ExchangeMessage('error', isStop == 1 ? '急停指令下发失败' : '中止指令下发失败')
  669. }
  670. }).catch(err => {
  671. console.error(err)
  672. })
  673. } else if (res.cancel) {
  674. return false
  675. //用户点击取消按钮触发
  676. }
  677. }
  678. })
  679. } else {
  680. this.PowerChangeStatusTips()
  681. }
  682. },
  683. //选择电池仓位数
  684. BatterySelected(CurrentStore) {
  685. this.$set(this.BatteryIsSelectArr, CurrentStore.storeCode - 1, !this.BatteryIsSelectArr[CurrentStore
  686. .storeCode - 1]) //选中电池取反
  687. if (this.BatteryIsSelectArr[CurrentStore.storeCode - 1]) {
  688. this.BatterySelectAllArr = [...this.BatterySelectAllArr, CurrentStore] //将选中的电池放入数组中
  689. } else {
  690. this.BatterySelectAllArr = this.BatterySelectAllArr.filter(item => item.storeCode != CurrentStore
  691. .storeCode) //将取消选中的电池从数组中移除
  692. }
  693. if (this.BatterySelectAllArr.length === 3) {
  694. this.$set(this.BatteryIsSelectArr, this.BatterySelectAllArr[0].storeCode - 1, false)
  695. this.BatterySelectAllArr.shift() //删除第一个元素
  696. }
  697. // console.log(this.BatterySelectAllArr)
  698. },
  699. //开始调仓
  700. HandleChangeStore() {
  701. let that = this
  702. if (this.powerChangeStatus) {
  703. let source = 0
  704. let target = 0
  705. if (this.BatterySelectAllArr.length === 2) {
  706. source = this.BatterySelectAllArr[0].storeState ? 1 : 0
  707. target = this.BatterySelectAllArr[1].storeState ? 1 : 0
  708. }
  709. if (this.BatterySelectAllArr.length !== 2 || source == target) {
  710. that.ExchangeMessage('warn', '请选择一个电池和一个空仓位!')
  711. return
  712. } else if (this.BatterySelectAllArr[0].getChgState == 2 || this.BatterySelectAllArr[1].getChgState ==
  713. 2) {
  714. that.ExchangeMessage('warn',
  715. `【${this.BatterySelectAllArr[0].storeState===1?this.BatterySelectAllArr[0].storeCode:this.BatterySelectAllArr[1].storeCode}】号仓位电池未断电,请断电后在进行调仓!`
  716. )
  717. } else {
  718. const params = {
  719. sourceCode: this.BatterySelectAllArr[0].storeState === 1 ? this.BatterySelectAllArr[0]
  720. .storeCode : this.BatterySelectAllArr[1].storeCode, //选有电池的仓位号
  721. targetCode: this.BatterySelectAllArr[1].storeState !== 1 ? this.BatterySelectAllArr[1]
  722. .storeCode : this.BatterySelectAllArr[0].storeCode //选空仓的仓位号
  723. }
  724. uni.showModal({
  725. title: '',
  726. content: `请确认将【${params.sourceCode}】号仓位电池移至【${params.targetCode}号】仓位?`,
  727. success: function(res) {
  728. if (res.confirm) {
  729. // that.ExchangeMessage('success', '调仓指令已下发,请等待!')
  730. that.$http.RuleChangestorage(params)
  731. .then(res => {
  732. if (res.code === 0) {
  733. that.clearStore()
  734. }
  735. that.ExchangeMessage(res.code === 0 ? 'success' : 'error', res
  736. .code === 0 ? '调仓指令下发成功!' : res.msg)
  737. }).catch(err => {
  738. console.error(err)
  739. })
  740. } else if (res.cancel) {
  741. return false
  742. //用户点击取消按钮触发
  743. }
  744. }
  745. })
  746. }
  747. } else {
  748. this.PowerChangeStatusTips()
  749. }
  750. },
  751. //消防换仓
  752. HandleFireStore() {
  753. let that = this
  754. if (this.powerChangeStatus) {
  755. if (this.BatterySelectAllArr.length !== 1 || this.BatterySelectAllArr[0].storeState !== 1) {
  756. this.ExchangeMessage('warn', '请选择一个电池操作消防换仓!')
  757. } else if (this.BatterySelectAllArr[0].getChgState == 2) {
  758. that.ExchangeMessage('warn', `【${this.BatterySelectAllArr[0].storeCode}】号仓位电池未断电,请断电后在进行消防换仓!`)
  759. } else {
  760. const params = {
  761. targetCode: this.BatterySelectAllArr[0].storeCode
  762. }
  763. uni.showModal({
  764. title: '',
  765. content: `请确认消防换仓,将【${that.BatterySelectAllArr[0].storeCode}】号仓位电池移至消防仓?`,
  766. success: function(res) {
  767. if (res.confirm) {
  768. // that.ExchangeMessage('success', '消防换仓指令已下发,请等待!')
  769. that.$http.FireChangestorage(params)
  770. .then(res => {
  771. if (res.code === 0) {
  772. that.clearStore()
  773. }
  774. that.ExchangeMessage(res.code === 0 ? 'success' : 'error',
  775. res.code === 0 ? '消防换仓指令下发成功!' : '消防换仓指令下发失败!')
  776. }).catch(err => {
  777. console.error(err)
  778. })
  779. } else if (res.cancel) {
  780. return false
  781. //用户点击取消按钮触发
  782. }
  783. }
  784. })
  785. }
  786. } else {
  787. this.PowerChangeStatusTips()
  788. }
  789. },
  790. //换电操作开关提示公用方法
  791. PowerChangeStatusTips() {
  792. this.ExchangeMessage('warn', '请先开启换电操作!')
  793. },
  794. //清空选择的仓位
  795. clearStore() {
  796. this.BatterySelectAllArr = []
  797. this.BatteryIsSelectArr = [false, false, false, false, false, false, false, false]
  798. },
  799. //websocket连接函数
  800. InitWs() {
  801. uni.showLoading({
  802. title:'数据加载中...'
  803. })
  804. if (this.ws != null) {
  805. this.ws.close()
  806. this.ws = null
  807. }
  808. if (this.timer != null) {
  809. clearInterval(this.timer)
  810. this.timer = null
  811. }
  812. let token = this.$storage.getJson('token');
  813. if (token == null) {
  814. uni.navigateTo({
  815. url: '/pages/login/index'
  816. })
  817. return false;
  818. }
  819. this.ws = uni.connectSocket({
  820. url: this.$config.web_socket_url + token,
  821. header: {
  822. 'content-type': 'application/json'
  823. },
  824. complete: () => {}
  825. })
  826. this.ws.onOpen(() => {
  827. console.log('socket连接成功')
  828. let msg = {
  829. type: "page",
  830. payload: "power-change-monitoring"
  831. }
  832. this.ws.send({
  833. data: JSON.stringify(msg)
  834. })
  835. })
  836. this.ws.onMessage((res) => {
  837. this.onMessageTime = new Date();
  838. let d = JSON.parse(res.data)
  839. // console.log(d)
  840. // uni.hideLoading()
  841. //电池仓位列表
  842. if (d.storeInfoList) {
  843. this.storeInfoList = d.storeInfoList
  844. uni.hideLoading()
  845. }
  846. //日志列表
  847. if (d.logList) {
  848. this.logList = d.logList.reverse()
  849. }
  850. // 车辆信息
  851. if (d.vehicleInfo) {
  852. this.vehicleInfo = d.vehicleInfo
  853. }
  854. // 电池信息
  855. if (d.batteryInfo) {
  856. this.batteryInfo = d.batteryInfo
  857. }
  858. //机器人状态
  859. if (d.robotInfoVo) {
  860. this.robotInfoVo = d.robotInfoVo
  861. }
  862. //换电进度
  863. if (d.swapProcess) {
  864. this.swapProcess = d.swapProcess
  865. //清空调仓数据
  866. if(d.swapProcess.swapId){
  867. this.xfTargetCodeData={}//消防调仓
  868. this.TcInfoVoData={}//调仓
  869. }
  870. }
  871. //选电模式
  872. if (d.batChooseMode >= 0) {
  873. this.pamars.batChooseMode = d.batChooseMode
  874. //锁止状态
  875. }
  876. if(d.hasOwnProperty('forbidLockState')){
  877. this.forbidLockState=d.forbidLockState
  878. }
  879. //调仓
  880. if (d.sourceCode && d.targetCode) {
  881. this.TcInfoVoData = {
  882. sourceCode: d.sourceCode,
  883. targetCode: d.targetCode,
  884. actionFlow: d.actionFlow,
  885. startTime: d.startTime,
  886. chargerState: d.chargerState,
  887. }
  888. this.xfTargetCodeData={}
  889. this.TcNumber=0
  890. }else{
  891. if(this.TcNumber<=5){
  892. this.TcNumber=this.TcNumber+1
  893. }else{
  894. this.TcInfoVoData={}//调仓
  895. }
  896. }
  897. //消防换仓
  898. if (d.xfTargetCode) {
  899. this.xfTargetCodeData = {
  900. xfTargetCode: d.xfTargetCode,
  901. chargerState: d.chargerState,
  902. startTime: d.startTime,
  903. actionFlow: d.actionFlow,
  904. }
  905. this.TcInfoVoData={}
  906. this.XfNumber=0
  907. }else{
  908. if(this.XfNumber<=5){
  909. this.XfNumber=this.XfNumber+1
  910. }else{
  911. this.xfTargetCodeData={}//调仓
  912. }
  913. }
  914. })
  915. // 监听WebSocket关闭事件
  916. this.ws.onClose(() => {
  917. console.log('WebSocket连接已关闭!')
  918. })
  919. this.ws.onError(() => {
  920. console.log("WebSocket连接错误")
  921. })
  922. if(this.timer == null){
  923. //检查断开重连
  924. this.timer = setInterval(() => {
  925. // if (this.ws==null || this.ws.readyState != 1) {
  926. // this.ws.close()
  927. // this.ws = null
  928. // console.log('检查断开重连')
  929. // this.InitWs()
  930. // }
  931. if(this.ws==null){
  932. console.log('ws为null,检查断开重连')
  933. this.InitWs()
  934. }else if(this.ws.readyState != 1){
  935. this.ws.close()
  936. this.ws = null
  937. console.log('未连接成功,检查断开重连')
  938. this.InitWs()
  939. }
  940. }, 2000)
  941. }
  942. },
  943. },
  944. }
  945. </script>
  946. <style lang="scss" scoped>
  947. @import './index.scss';
  948. .popup-container {
  949. width: 300px;
  950. height: 200px;
  951. background: #263042;
  952. .popup-title {
  953. height: 60px;
  954. display: flex;
  955. padding: 0 15px;
  956. border-bottom: 1px solid #C7D2DF;
  957. position: relative;
  958. .title-text {
  959. text-align: left;
  960. background: #263042;
  961. font-weight: 500;
  962. color: #FFFFFF;
  963. font-size: 20px;
  964. line-height: 60px;
  965. width: 200px;
  966. }
  967. .title-close {
  968. text-align: right;
  969. background: #263042;
  970. font-weight: 500;
  971. color: #FFFFFF;
  972. font-size: 20px;
  973. line-height: 60px;
  974. width: 60px;
  975. }
  976. }
  977. .popup-content {
  978. display: flex;
  979. margin-top: 20px;
  980. padding: 0 20px 0 10px;
  981. }
  982. }
  983. .carPosition {
  984. // margin-top: 76px;
  985. .carForm {
  986. display: flex;
  987. justify-items: flex-end;
  988. view:first-child {
  989. font-weight: 400;
  990. color: rgba(153, 174, 197, 0.65);
  991. font-size: 14px;
  992. flex: 1;
  993. text-align: right;
  994. line-height: 34px;
  995. }
  996. .uni-input {
  997. width: 245px;
  998. height: 34px;
  999. background: rgba(255, 255, 255, 0);
  1000. border-radius: 2px;
  1001. border: 1px solid #263042;
  1002. text-indent: 15px;
  1003. font-size: 14px;
  1004. font-weight: 400;
  1005. color: #FFFFFF;
  1006. }
  1007. }
  1008. .CarnoData {
  1009. width: 274px;
  1010. height: 227px;
  1011. background-image: url('/static/change/noData.png');
  1012. background-size: 100% 100%;
  1013. margin: 20px 43px;
  1014. }
  1015. .Carlist {
  1016. display: flex;
  1017. flex-direction: column;
  1018. width: 100%;
  1019. .carDetail {
  1020. width: 360px;
  1021. height: 169px;
  1022. border-radius: 8px;
  1023. margin-bottom: 16px;
  1024. background-image: url('/static/change/car-bg.png');
  1025. background-size: 100% 100%;
  1026. box-sizing: border-box;
  1027. padding: 20px;
  1028. display: flex;
  1029. flex-direction: column;
  1030. justify-content: space-between;
  1031. .plateNumber {
  1032. display: flex;
  1033. align-items: center;
  1034. height: 24px;
  1035. line-height: 24px;
  1036. .icon {
  1037. margin-right: 8px;
  1038. }
  1039. .pNumber {
  1040. font-size: 16px;
  1041. font-weight: 600;
  1042. color: #FFFFFF;
  1043. }
  1044. image {
  1045. width: 18px;
  1046. height: 18px;
  1047. vertical-align: middle;
  1048. margin-bottom: 3px;
  1049. }
  1050. }
  1051. .vinMa {
  1052. display: flex;
  1053. view:first-child {
  1054. width: 60px;
  1055. font-size: 14px;
  1056. font-weight: 400;
  1057. color: rgba(153, 174, 197, 0.65);
  1058. }
  1059. view:last-child {
  1060. flex: 1;
  1061. font-size: 14px;
  1062. font-weight: 400;
  1063. color: rgba(255, 255, 255, 0.85);
  1064. }
  1065. }
  1066. }
  1067. }
  1068. }
  1069. .status-only {
  1070. display: flex;
  1071. width: 100%;
  1072. align-items: center;
  1073. .circle {
  1074. width: 24px;
  1075. height: 24px;
  1076. margin-right: 4px;
  1077. image {
  1078. width: 24px;
  1079. height: 24px;
  1080. }
  1081. }
  1082. .descript {
  1083. font-size: 14px;
  1084. font-weight: 500;
  1085. width: 78px;
  1086. color: rgba(153, 174, 197, 0.65);
  1087. text-shadow: 0px 0px 4px rgba(39, 69, 201, 0.5);
  1088. }
  1089. .carTitle {
  1090. width: 68px !important;
  1091. }
  1092. .frameText {
  1093. color: #C7D2DF;
  1094. text-shadow: 0px 0px 4px #0027D8;
  1095. }
  1096. .frame {
  1097. flex: 1;
  1098. position: relative;
  1099. height: 32px;
  1100. text-indent: 15px;
  1101. font-size: 14px;
  1102. font-weight: 500;
  1103. color: #91FDB9;
  1104. line-height: 32px;
  1105. text-shadow: 0px 0px 4px #0027D8;
  1106. border: 1px solid #334568;
  1107. box-sizing: border-box;
  1108. .shinning {
  1109. position: absolute;
  1110. border: 1px solid #c9f8ff;
  1111. border-radius: 1px;
  1112. left: -1px;
  1113. top: -1px;
  1114. }
  1115. .editCar {
  1116. cursor: pointer;
  1117. position: absolute;
  1118. right: 20px;
  1119. top: 3px;
  1120. width: 18px;
  1121. height: 18px;
  1122. img {
  1123. width: 18px;
  1124. height: 18px;
  1125. }
  1126. }
  1127. .isflag {
  1128. color: #ED7735;
  1129. text-shadow: 0px 0px 4px rgba(39, 69, 201, 0.5);
  1130. }
  1131. .isblue {
  1132. color: #148CFA;
  1133. }
  1134. .btn {
  1135. display: flex;
  1136. position: absolute;
  1137. right: 15px;
  1138. top: 5px;
  1139. button {
  1140. width: 48px;
  1141. height: 28px;
  1142. background: #91FDB9;
  1143. border-radius: 2px 2px 2px 2px;
  1144. font-size: 16px;
  1145. font-weight: 400;
  1146. line-height: 28px;
  1147. text-align: center;
  1148. border: none;
  1149. padding: 0;
  1150. color: black;
  1151. }
  1152. button:hover {
  1153. background: #69b889;
  1154. }
  1155. }
  1156. }
  1157. }
  1158. .subtilte-only {
  1159. display: flex;
  1160. flex-direction: column;
  1161. border-top: $lineColor solid 1px;
  1162. border-bottom: $lineColor solid 1px;
  1163. width: 100%;
  1164. .title {
  1165. width: 100%;
  1166. background-color: $titColor;
  1167. margin: 1px 0px;
  1168. height: 24px;
  1169. display: flex;
  1170. .icon {
  1171. width: 17px;
  1172. height: 10px;
  1173. background-image: url('/static/public/ico2.png');
  1174. background-size: 100% 100%;
  1175. margin-left: 2px;
  1176. }
  1177. .name {
  1178. font-size: 16px;
  1179. margin-left: -5px;
  1180. height: 24px;
  1181. line-height: 22px;
  1182. font-weight: 600;
  1183. letter-spacing: 1px;
  1184. text-shadow: 0 0 2px #1753ce, 0 0 2px #1753ce, 0 0 2px #1753ce, 0 0 2px #1753ce;
  1185. color: white;
  1186. }
  1187. .letter {
  1188. color: #2A3855;
  1189. font-size: 10px;
  1190. margin-left: 5px;
  1191. padding-top: 5px;
  1192. font-weight: 600;
  1193. }
  1194. .freeze{
  1195. margin-left: auto;
  1196. display: flex;
  1197. view{
  1198. padding: 3px 0;
  1199. width: 48px;
  1200. text-align: center;
  1201. background: #263042;
  1202. font-weight: 400;
  1203. color: #FFFFFF;
  1204. font-size: 14px;
  1205. height: 24px;
  1206. box-sizing: border-box;
  1207. line-height: 18px;
  1208. border-radius: 2px;
  1209. margin-right: 12px;
  1210. }
  1211. .active{
  1212. background: #91FDB9;
  1213. color: #000000;
  1214. }
  1215. }
  1216. .switch {
  1217. margin-left: auto;
  1218. color: white;
  1219. height: 20px;
  1220. font-size: 12px;
  1221. width: 100px;
  1222. display: flex;
  1223. align-items: center;
  1224. uni-switch {
  1225. margin-top: 3px;
  1226. }
  1227. }
  1228. .log-descript {
  1229. margin-left: auto;
  1230. font-size: 12px;
  1231. font-weight: 400;
  1232. color: rgba(153, 174, 197, 0.65);
  1233. line-height: 22px;
  1234. padding-right: 26px;
  1235. }
  1236. }
  1237. }
  1238. .carLeft{
  1239. color: #fff !important;
  1240. }
  1241. .carRight{
  1242. color: #fff !important;
  1243. }
  1244. .isshowactive{
  1245. color: rgba(153, 174, 197, 0.65) !important;
  1246. }
  1247. </style>