zhanghua
2023-12-14 a5eb8bfb3869b0cec349ed795670d355675abd6b
src/components/filePictrue/index.vue
@@ -46,14 +46,19 @@
    let pic = this.filesPictureVo.imageResources;
    pic.forEach((item) => {
      let urls = item.url.split(",");
      item.url = [];
      urls.forEach((o) => {
        o = o.replace("[", "").replace("]", "");
        item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`);
      });
      if (item.url) {
        if (typeof item.url == "string") {
          let urls = item.url.split(",");
          item.url = [];
          urls.forEach((o) => {
            o = o.replace("[", "").replace("]", "");
            item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`);
          });
        }
      } else {
        item.url = [];
      }
    });
    debugger;
    this.imgSource = pic;
    // this.getEventInfo(this.mycode);
  },
@@ -80,14 +85,19 @@
        this.dialogView = true;
        let pic = res.data.filesPictureVo.imageResources;
        pic.forEach((item) => {
          let urls = item.url.split(",");
          item.url = [];
          urls.forEach((o) => {
            o = o.replace("[", "").replace("]", "");
            item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`);
          });
          if (item.url) {
            if (typeof item.url == "string") {
              let urls = item.url.split(",");
              item.url = [];
              urls.forEach((o) => {
                o = o.replace("[", "").replace("]", "");
                item.url.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${o}`);
              });
            }
          } else {
            item.url = [];
          }
        });
        debugger;
        this.imgSource = pic;
      });
    },