|
@@ -123,7 +123,7 @@
|
|
|
// console.log(e)
|
|
// console.log(e)
|
|
|
},
|
|
},
|
|
|
//forecast.forecast_system.equip_photofo
|
|
//forecast.forecast_system.equip_photofo
|
|
|
- async imglistdata(time_begin, time_end) { //获取图片列表
|
|
|
|
|
|
|
+ async imglistdata(time_begin, time_end,isInit) { //获取图片列表
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.forecast_system.device_photo_list',
|
|
url: '/api/api_gateway?method=forecast.forecast_system.device_photo_list',
|
|
|
data: {
|
|
data: {
|
|
@@ -136,7 +136,11 @@
|
|
|
time_end: time_end, //结束时间
|
|
time_end: time_end, //结束时间
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- this.imglists = this.imglists.concat(res.data)
|
|
|
|
|
|
|
+ if(isInit){
|
|
|
|
|
+ this.imglists = res.data
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.imglists = this.imglists.concat(res.data)
|
|
|
|
|
+ }
|
|
|
console.log(this.imglists)
|
|
console.log(this.imglists)
|
|
|
if (this.imglists.length == 0) {
|
|
if (this.imglists.length == 0) {
|
|
|
this.tishi = true
|
|
this.tishi = true
|
|
@@ -145,7 +149,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 孢子仪的图片列表
|
|
// 孢子仪的图片列表
|
|
|
- async imglistdataBzy(time_begin, time_end) { //获取图片列表
|
|
|
|
|
|
|
+ async imglistdataBzy(time_begin, time_end,isInit) { //获取图片列表
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.forecast_system.equip_photo',
|
|
url: '/api/api_gateway?method=forecast.forecast_system.equip_photo',
|
|
|
data: {
|
|
data: {
|
|
@@ -158,7 +162,11 @@
|
|
|
time_end: time_end, //结束时间
|
|
time_end: time_end, //结束时间
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
- this.imglists = this.imglists.concat(res.data)
|
|
|
|
|
|
|
+ if(isInit){
|
|
|
|
|
+ this.imglists = res.data
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.imglists = this.imglists.concat(res.data)
|
|
|
|
|
+ }
|
|
|
console.log(this.imglists)
|
|
console.log(this.imglists)
|
|
|
if (this.imglists.length == 0) {
|
|
if (this.imglists.length == 0) {
|
|
|
this.tishi = true
|
|
this.tishi = true
|
|
@@ -201,7 +209,7 @@
|
|
|
const res = await this.$myRequest({
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.send_control.admin_device_control',
|
|
url: '/api/api_gateway?method=forecast.send_control.admin_device_control',
|
|
|
data: {
|
|
data: {
|
|
|
- device_type_id: 3,
|
|
|
|
|
|
|
+ device_type_id: this.device_type,
|
|
|
d_id: this.d_id,
|
|
d_id: this.d_id,
|
|
|
cmd: "takephoto"
|
|
cmd: "takephoto"
|
|
|
}
|
|
}
|
|
@@ -215,9 +223,9 @@
|
|
|
var that = this
|
|
var that = this
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
if(that.device_type == 7) {
|
|
if(that.device_type == 7) {
|
|
|
- that.imglistdataBzy(parseInt(that.timestate), parseInt(that.timeend))
|
|
|
|
|
|
|
+ that.imglistdataBzy(parseInt(that.timestate), parseInt(that.timeend),true)
|
|
|
} else {
|
|
} else {
|
|
|
- that.imglistdata(parseInt(that.timestate), parseInt(that.timeend))
|
|
|
|
|
|
|
+ that.imglistdata(parseInt(that.timestate), parseInt(that.timeend),true)
|
|
|
}
|
|
}
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
} else {
|
|
} else {
|