摘要: downloadFile(url, "电子作业票APP.jpg"); // fileRealPath 文件全路径 // fileName 文件名带格式的 export function downloadFile(fileRealPath, fileName) { let link = documen 阅读全文
posted @ 2022-11-04 11:47 ThisCall 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 调用 this.$download.url('/api/v1/org/question/exportData', datVal, `${this.questMess.name}.xlsx`); js文件 import { saveAs } from 'file-saver' import axios 阅读全文
posted @ 2022-11-04 11:38 ThisCall 阅读(209) 评论(0) 推荐(0) 编辑
摘要: import axios from 'axios' import { getToken } from '@/utils/util' // 文件流转blob对象下载 var baseURL = '' if (process.env.NODE_ENV == 'production') { baseURL 阅读全文
posted @ 2022-11-04 11:31 ThisCall 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1.通用组件封装dialogImg.vue <template> <div> <el-dialog v-show="isShow" :visible.sync="isShow" width="50%" @close="seePicUrl = ''" append-to-body style="tex 阅读全文
posted @ 2022-11-04 11:29 ThisCall 阅读(652) 评论(0) 推荐(0) 编辑