Compare commits

...

2 Commits

  1. 5
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue

5
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SolarEnergy/components/DeviceParams.vue

@ -55,8 +55,11 @@ export default {
this.devicesList = []; this.devicesList = [];
let devs = []; let devs = [];
// Promise.all([this.getAc('A1'), this.getAc('A2'), this.getAc('A3'), this.getAc('A4'), this.getAc('A5'), this.getAc('A6')]).then(res => { // Promise.all([this.getAc('A1'), this.getAc('A2'), this.getAc('A3'), this.getAc('A4'), this.getAc('A5'), this.getAc('A6')]).then(res => {
Promise.all([this.getAc()]).then(res => { Promise.all([this.getAc()]).then(async (res) => {
console.log('res', res) console.log('res', res)
if (res[0].code == 500) {
await this.getAc();
}
request({ request({
url: `/business/device/properties/latest/${this.dialogData.iotDeviceId}`, url: `/business/device/properties/latest/${this.dialogData.iotDeviceId}`,
method: "get", method: "get",

Loading…
Cancel
Save