liding
5 天以前 c16edc131625d4d7dd3624cc1485695bfb89707d
src/views/CNAS/resourceDemand/device/component/check.vue
@@ -516,10 +516,7 @@
    },
    // end
    handleAttachmentClick(row) {
      // 模拟下载附件
      const imageUrl = this.javaApi + '/img/' + row.systemFileName; // 图片 URL
      file.downloadIamge(imageUrl, row.fileName)
      // downloadImage(imageUrl, row.fileName);
      return this.$download.attachment({ fileUrl: row.systemFileName }, row.fileName)
    },
    // 添加核查记录
    add(type) {
@@ -583,14 +580,6 @@
  }
}
function downloadImage(url, name) {
  const link = document.createElement('a');
  link.href = url;
  link.download = name; // 文件名
  document.body.appendChild(link);
  link.click();
  document.body.removeChild(link);
}
</script>
<style scoped>
.dialog-content {