|
@@ -12,7 +12,7 @@
|
|
|
<view class="list_item" v-for="(item,index) in eqlistdata" :key="index" @click="historys(item)">
|
|
<view class="list_item" v-for="(item,index) in eqlistdata" :key="index" @click="historys(item)">
|
|
|
<view class="list_item_top">
|
|
<view class="list_item_top">
|
|
|
<p class="p1">
|
|
<p class="p1">
|
|
|
- <image :src="images[current].path" mode=""></image>
|
|
|
|
|
|
|
+ <image :src="images[indexs-2].path" mode=""></image>
|
|
|
{{item.device_name==''?"--":item.device_name}}
|
|
{{item.device_name==''?"--":item.device_name}}
|
|
|
</p>
|
|
</p>
|
|
|
<p :class="[item.is_online?'p2':'p_out']">{{item.is_online?"在线":"离线"}}</p>
|
|
<p :class="[item.is_online?'p2':'p_out']">{{item.is_online?"在线":"离线"}}</p>
|
|
@@ -43,7 +43,6 @@
|
|
|
return {
|
|
return {
|
|
|
imports: '',
|
|
imports: '',
|
|
|
eqlistdata: [],
|
|
eqlistdata: [],
|
|
|
- current: 0,
|
|
|
|
|
images: [{
|
|
images: [{
|
|
|
path: "../../static/image/fourMoodBase/scd.png",
|
|
path: "../../static/image/fourMoodBase/scd.png",
|
|
|
id: 2
|
|
id: 2
|
|
@@ -83,6 +82,7 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
this.eqlistdata = this.eqlistdata.concat(res.data)
|
|
this.eqlistdata = this.eqlistdata.concat(res.data)
|
|
|
|
|
+ console.log(this.eqlistdata)
|
|
|
if (this.eqlistdata.length == 0) {
|
|
if (this.eqlistdata.length == 0) {
|
|
|
this.eqlistdatatf = true
|
|
this.eqlistdatatf = true
|
|
|
} else {
|
|
} else {
|
|
@@ -112,7 +112,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
historys(item) {
|
|
historys(item) {
|
|
|
- switch (this.indexs) {
|
|
|
|
|
|
|
+ switch (Number(this.indexs)) {
|
|
|
case 2:
|
|
case 2:
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: "../prevention/equipmentdetails?shebei=" + JSON.stringify(item)
|
|
url: "../prevention/equipmentdetails?shebei=" + JSON.stringify(item)
|
|
@@ -148,6 +148,7 @@
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
this.indexs = option.id
|
|
this.indexs = option.id
|
|
|
|
|
+ console.log(this.indexs)
|
|
|
},
|
|
},
|
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
|
this.page++
|
|
this.page++
|