|
@@ -166,8 +166,8 @@
|
|
|
month = month<10?"0"+month:month
|
|
month = month<10?"0"+month:month
|
|
|
var date = times.getDate()<10?"0"+times.getDate():times.getDate()
|
|
var date = times.getDate()<10?"0"+times.getDate():times.getDate()
|
|
|
this.yxchangetime = times.getFullYear() + "-" + month + "-" + date
|
|
this.yxchangetime = times.getFullYear() + "-" + month + "-" + date
|
|
|
- }
|
|
|
|
|
- this.Chistory(this.equipInfo.device_id)
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ // this.Chistory(this.equipInfo.device_id)
|
|
|
},
|
|
},
|
|
|
async getSim(d_id) {
|
|
async getSim(d_id) {
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
@@ -270,8 +270,6 @@
|
|
|
status: "pest"
|
|
status: "pest"
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- console.log(res)
|
|
|
|
|
- console.log(this.newState.decoy)
|
|
|
|
|
if(res.data[0]){
|
|
if(res.data[0]){
|
|
|
//***********************************************************
|
|
//***********************************************************
|
|
|
// if(this.newState.decoy=="草地贪夜蛾"){
|
|
// if(this.newState.decoy=="草地贪夜蛾"){
|
|
@@ -283,10 +281,15 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
|
- this.equipInfo = JSON.parse(option.info)
|
|
|
|
|
|
|
+ this.equipInfo = JSON.parse(option.info)
|
|
|
|
|
+ if (!this.equipInfo.device_id) {
|
|
|
|
|
+ this.equipInfo.device_id = this.equipInfo.imei
|
|
|
|
|
+ }
|
|
|
console.log(this.equipInfo)
|
|
console.log(this.equipInfo)
|
|
|
- this.getState(this.equipInfo.d_id)
|
|
|
|
|
- this.getSim(this.equipInfo.d_id)
|
|
|
|
|
|
|
+ this.getState(this.equipInfo.d_id)
|
|
|
|
|
+ if (this.equipInfo.type != 21) {
|
|
|
|
|
+ this.getSim(this.equipInfo.d_id)
|
|
|
|
|
+ }
|
|
|
var times = new Date()
|
|
var times = new Date()
|
|
|
this.date = times.getFullYear()+1 + "-" + Number(times.getMonth()+1) + "-" + times.getDate()
|
|
this.date = times.getFullYear()+1 + "-" + Number(times.getMonth()+1) + "-" + times.getDate()
|
|
|
console.log(this.date)
|
|
console.log(this.date)
|