|
@@ -829,7 +829,6 @@ export default {
|
|
|
},
|
|
},
|
|
|
onLoad: function(opt) {
|
|
onLoad: function(opt) {
|
|
|
this.id = opt.id;
|
|
this.id = opt.id;
|
|
|
- debugger;
|
|
|
|
|
// this.id = 61;
|
|
// this.id = 61;
|
|
|
this.connectMqtt();
|
|
this.connectMqtt();
|
|
|
this.getDetail();
|
|
this.getDetail();
|
|
@@ -2197,6 +2196,7 @@ export default {
|
|
|
if(self.deviceType == 10){
|
|
if(self.deviceType == 10){
|
|
|
self.productImage = self.imgUrl+'/product/YJZ20.png'
|
|
self.productImage = self.imgUrl+'/product/YJZ20.png'
|
|
|
}
|
|
}
|
|
|
|
|
+ heng = self.setImage(self.deviceType);
|
|
|
let typeArr = [7,8,9,10,11,12];
|
|
let typeArr = [7,8,9,10,11,12];
|
|
|
for (let i = 0; i < typeArr.length; i++) {
|
|
for (let i = 0; i < typeArr.length; i++) {
|
|
|
let typeMa = typeArr[i];
|
|
let typeMa = typeArr[i];
|
|
@@ -2228,6 +2228,50 @@ export default {
|
|
|
},50);
|
|
},50);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ setImage(type){
|
|
|
|
|
+ let heng = false;
|
|
|
|
|
+ let self = this;
|
|
|
|
|
+ if(type == 1){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJDX20.png'
|
|
|
|
|
+ }else if(type == 2){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJDJ20-20.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }else if(type == 3){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJCX20-1&1.png'
|
|
|
|
|
+ }else if(type == 4){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJCX20-2&1.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ } else if(type == 5){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJCX20-3&1.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }else if(type == 6){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YB50-300.png'
|
|
|
|
|
+ }else if(type == 7){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJH20.png'
|
|
|
|
|
+ }else if(type == 8){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJH20-20.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }else if(type == 9){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJH20-20-20.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }else if(type == 10){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJZ20.png'
|
|
|
|
|
+ }else if(type == 11){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJZ20-20.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }else if(type == 12){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJZ20-20-20.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }else if(type == 13){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJCL20-1&1.png'
|
|
|
|
|
+ }else if(type == 14){
|
|
|
|
|
+ self.productImage = self.imgUrl+'/product/YJCL20-2&1.png'
|
|
|
|
|
+ heng = true;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ return heng;
|
|
|
|
|
+ },
|
|
|
getNewDeviceStatus(item){
|
|
getNewDeviceStatus(item){
|
|
|
console.log(item);
|
|
console.log(item);
|
|
|
let self = this;
|
|
let self = this;
|