zhanghua
2023-12-13 2d7206bc7028a40c836108669c611fd93a571742
src/components/filePictrue/index.vue
@@ -31,7 +31,7 @@
  </div>
</template>
<script>
import { parseTime } from "@/utils/index";
import { parseTime, FILE_ORIGINAL_URL } from "@/utils/index";
export default {
  data() {
    return {
@@ -43,11 +43,17 @@
    const {
      filesPictureVo: { imageResources: imgList },
    } = this;
    let pic = this.filesPictureVo.imageResources;
    pic.forEach((item) => {
      item.url = item.url.split(",");
      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}`);
      });
    });
    debugger;
    this.imgSource = pic;
    // this.getEventInfo(this.mycode);
  },
@@ -74,8 +80,14 @@
        this.dialogView = true;
        let pic = res.data.filesPictureVo.imageResources;
        pic.forEach((item) => {
          item.url = item.url.split(",");
          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}`);
          });
        });
        debugger;
        this.imgSource = pic;
      });
    },