Compare commits
No commits in common. "38888f2c83582455a5ec99ccc1cb8d5d053e5c50" and "d360137c93f908ad023f0fa04a27e6a217bda621" have entirely different histories.
38888f2c83
...
d360137c93
@ -135,7 +135,6 @@ export default {
|
|||||||
this.topList.push(el)
|
this.topList.push(el)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.topList.sort(this.compare('equipmentStatu'))
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(this.topList.length)
|
if(this.topList.length)
|
||||||
this.getData(this.topList[0])
|
this.getData(this.topList[0])
|
||||||
@ -143,14 +142,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//排序
|
|
||||||
compare(property) {
|
|
||||||
return function (a, b) {
|
|
||||||
let value1 = a[property];
|
|
||||||
let value2 = b[property];
|
|
||||||
return value1 - value2;
|
|
||||||
};
|
|
||||||
},
|
|
||||||
getData(item) {
|
getData(item) {
|
||||||
// var data={deviceId:item.deviceId}
|
// var data={deviceId:item.deviceId}
|
||||||
this.api.getcontrol_cpermission(item.deviceId).then(res => {
|
this.api.getcontrol_cpermission(item.deviceId).then(res => {
|
||||||
|
@ -118,7 +118,6 @@ export default {
|
|||||||
this.topList.push(el)
|
this.topList.push(el)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.topList.sort(this.compare('equipmentStatu'))
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(this.topList.length)
|
if(this.topList.length)
|
||||||
this.getData(this.topList[0])
|
this.getData(this.topList[0])
|
||||||
@ -126,14 +125,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//排序
|
|
||||||
compare(property) {
|
|
||||||
return function (a, b) {
|
|
||||||
let value1 = a[property];
|
|
||||||
let value2 = b[property];
|
|
||||||
return value1 - value2;
|
|
||||||
};
|
|
||||||
},
|
|
||||||
getData(item){
|
getData(item){
|
||||||
var data={deviceId:item.deviceId}
|
var data={deviceId:item.deviceId}
|
||||||
this.api.selControlPermissions(data).then(res=>{
|
this.api.selControlPermissions(data).then(res=>{
|
||||||
|
@ -110,7 +110,6 @@ export default {
|
|||||||
this.topList.push(el)
|
this.topList.push(el)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.topList.sort(this.compare('equipmentStatu'))
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if(this.topList.length)
|
if(this.topList.length)
|
||||||
this.getData(this.topList[0])
|
this.getData(this.topList[0])
|
||||||
@ -118,14 +117,6 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//排序
|
|
||||||
compare(property) {
|
|
||||||
return function (a, b) {
|
|
||||||
let value1 = a[property];
|
|
||||||
let value2 = b[property];
|
|
||||||
return value1 - value2;
|
|
||||||
};
|
|
||||||
},
|
|
||||||
getData(item) {
|
getData(item) {
|
||||||
var data = { deviceId: item.deviceId }
|
var data = { deviceId: item.deviceId }
|
||||||
this.api.wxgetpermission(data).then(res => {
|
this.api.wxgetpermission(data).then(res => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user