Procházet zdrojové kódy

首页展示设备号

yun
douzhuo před 1 rokem
rodič
revize
b58ef47b9f
2 změnil soubory, kde provedl 11 přidání a 3 odebrání
  1. +9
    -2
      pages/index/index.vue
  2. +2
    -1
      pages/mine/details2.vue

+ 9
- 2
pages/index/index.vue Zobrazit soubor

@@ -9,7 +9,12 @@
<view class="Switching4" v-if="buildingishow" @click="piskbuilding()">切换项目</view>
</view>

<view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">我的工牌</view>
<view class="title" style="margin-top: 30rpx;" v-if="Myworkcard">
我的工牌
<template v-if="equipmentObj.imei">
<text style="margin-left: 20rpx;">{{ equipmentObj.imei }}</text>
</template>
</view>
<view v-if="Myworkcard">
<view class="Workcard" v-if="Whetheroffline==true">
<view class="Workcard-box">
@@ -242,12 +247,13 @@
signalDevicetext: "",
audioStatus: false,
equipmentisshow: false,
equipmentobj: {
equipmentobj: { // 统计设备状态
totalNum: '',
onlineNum: '',
activeNum: '',
lowPowerNum: '',
},
equipmentObj: {}, // 接口返回设备信息2
Menulist: [],
realtimeobj: {
sumCustomer: '',
@@ -616,6 +622,7 @@
if (data.data.data > 100) {
this.percentage = 100;
} else {
this.equipmentObj = data.data.data
if (data.data.data.onLine == 0) {
this.Whetheroffline = false;
} else {


+ 2
- 1
pages/mine/details2.vue Zobrazit soubor

@@ -1683,7 +1683,7 @@
// endTime: this.changanitem.ed, //结束时间
// startTime: this.changanitem.bg, //开始时间
}
// 将数据筛选出来并排序并且翻转数据让后端获取第一条加精的数据在分点加精的学习列表使用
this.dialogList.forEach(items => {
if (items.message && items.message.length > 0) {
items.message.forEach(item => {
@@ -1697,6 +1697,7 @@
})
}
})
objdata.toDigestList.sort((a, b) => { return Number(a.startTime) - Number(b.startTime)}).reverse()

this.isshow3 = false;
this.$u.post(config.service.addATD, objdata).then(res => {


Načítá se…
Zrušit
Uložit