| | |
| | | return new Date(x.dlCreateTime) - new Date(y.dlCreateTime); // 降序,升序则反之 |
| | | }); |
| | | }, |
| | | async getDeviceImgList() { |
| | | getDeviceImgList() { |
| | | this.deviceImgObjList = []; |
| | | for (const deviceTopTypeElement of this.deviceTopTypes) { |
| | | const topTypeId = deviceTopTypeElement.id; |
| | | await deviceApi.fetchDevices(this.subtask.sceneId, topTypeId).then((result) => { |
| | | this.deviceTopTypes.forEach(e => { |
| | | |
| | | const topTypeId = e.id; |
| | | deviceApi.fetchDevices(this.subtask.sceneId, topTypeId).then((result) => { |
| | | // 标准化属性名 |
| | | for (let i = 0; i < result.data.length; i++) { |
| | | var element = this.convertKeys(result.data[i]); |
| | |
| | | .catch((err) => {}); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | initOptions() { |
| | | if (this.problem == undefined || this.problem == null) { |