| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <template>
- <view>
- <view>
- <view class="item ddflex">
- <view class="label">机柜名称</view>
- <view class="item-input fflex ddflex">
- <view>{{cabInfo.devName}}</view>
- <!-- <view class="state">在线</view> -->
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">机柜编号</view>
- <view class="item-input fflex">
- {{cabInfo.devId}}
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">机柜温度</view>
- <view class="item-input fflex">
- {{cabInfo.cabTemp}}C
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">机柜电压</view>
- <view class="item-input fflex">
- {{cabInfo.cabVol}}V
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">当前电流</view>
- <view class="item-input fflex">
- {{cabInfo.cabCur}}A
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">信号强度</view>
- <view class="item-input fflex">
- {{cabInfo.dbm}}
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">电表度数</view>
- <view class="item-input fflex">
- {{cabInfo.emKwh}}KWH
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">仓门数量</view>
- <view class="item-input fflex">
- {{cabInfo.doorCount}}
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">空仓数量</view>
- <view class="item-input fflex">
- {{cabInfo.nullDoorCount}}
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">可用电池数量</view>
- <view class="item-input fflex">
- {{cabInfo.useDoorCount}}
- </view>
- </view>
- <!-- <view class="item ddflex">
- <view class="label">iccid</view>
- <view class="item-input fflex">
- 89860469092190149474
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">硬件版本</view>
- <view class="item-input fflex">
- V1.2
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">软件版本</view>
- <view class="item-input fflex">
- ZXSCMB-3.25-20220714
- </view>
- </view>
- <view class="item ddflex">
- <view class="label">协议版本</view>
- <view class="item-input fflex">
- V1.2
- </view>
- </view> -->
-
- </view>
-
- <!-- 保存按钮 -->
- <!-- <view class="savepadding" style="height: 150rpx;"></view>
- <view class="savepadding submit-box">
- <view class="submit-btn" @click="jumpUrl('/machineAndCell/machineDetailEdit/machineDetailEdit')">
- 更改机柜地址
- </view>
- </view> -->
-
- </view>
- </template>
- <script>
- const app = getApp();
- const req = require("../../utils/request.js");
- export default {
- components: {
- },
- props: {},
- data() {
- return {
- id:null,
- cabInfo:{}
- }
- },
- onLoad(options) {
- this.id = options.id
- this.getDataInfo()
- },
- onShow() {
-
- },
- methods: {
- jumpUrl(url) {
- if (req.isLogins(true)) {
- uni.navigateTo({
- url: url
- })
- }
- },
- getDataInfo(){
- req.getRequest('/admin/v2/cab/info',{devId:this.id},res=>{
- this.cabInfo = res
- })
- }
- },
- mounted() {
-
- },
- onPageScroll: function(e) {
- }
- }
- </script>
- <style>
- @import "./machineDetail.css";
- </style>
|