04 2020 档案
摘要://前台代码 <el-button size="medium" type="primary" @click="downloadFile">Test</el-button> //js函数 downloadFile(){ this.axios({ method: "get", url: '/api/do
阅读全文
摘要://vue element-ui <el-button size="medium" type="primary" @click="download">导出</el-button> //js downLoad(){ window.location.href="/api/downLoad"; }, //
阅读全文
摘要://vue element-ui组件 <el-upload style="position: relative;top: -40px;left: 240px;" :show-file-list="false" :on-success="onSuccess" :on-error="onError" :
阅读全文
摘要:private static final boolean isWin = System.getProperty("os.name").toLowerCase().contains("win"); private static final boolean isLinux = System.getPro
阅读全文
摘要:最近在做一个需求,类似和navicat工具差不多的,通过java代码吧数据库表的数据导出来。jdbc获取数据库连接,查询表数据,分批次用流写入文件txt、csv、json、xls、xlsx,搞定之后,老板说,不行,我还纳闷 为啥不行呢?老板说,导是导出来了,但是还得有个文件下载的功能,后来我才反应过
阅读全文
摘要:说明:后台springboot项目 前台vue+element-UI 直接放代码: //别忘了开启springboot的websocket <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot
阅读全文
摘要:// var responseData = response.data.result; for (var r in responseData) { if (responseData[r]["visible"] == 0) { responseData[r]["visible"] = "是"; } e
阅读全文