riku
2024-10-15 e38ea524ec4107ed7f8b1d7491a4177632dd3402
src/views/fysp/check/components/CompProblemAddOrUpd.vue
@@ -311,11 +311,12 @@
        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]);
@@ -355,7 +356,7 @@
              .catch((err) => {});
          }
        });
      }
      });
    },
    initOptions() {
      if (this.problem == undefined || this.problem == null) {