闫增涛
2024-10-17 e411aae838823ff5e3eee452188c7227bccf0e33
src/components/examinations/index.vue
@@ -551,7 +551,6 @@
  watch: {
    cardList: {
      handler(newVal) {
        // console.log('新值',newVal);
        this.cardData = this.cardList;
        if (newVal && newVal.length) {
          this.loading = false;
@@ -566,6 +565,17 @@
    this.getErrorList();
  },
  methods: {
    // 获取不受保护的图片
    getPublicImage(md5, width, height) {
      if(md5.includes('http')) return md5
      let src = null;
      if (md5) {
        src = process.env.VUE_APP_API_URL + `/file/GetPreViewImage?md5=${md5}`;
      }
      if (width) src += `&width=${width}`;
      if (height) src += `&height=${height}`;
      return src;
    },
    // 数组转为字符串方法
    arrayToString(data) {
      // 检查是否为数组