摘要: 前端代码 store 中的js文件 import {excelExportTemplate } from '@/api/xxxxx' async excelExportTemplate ({commit}, fieldConfig) { var res =await new Promise((res 阅读全文
posted @ 2024-12-02 17:07 小海葵 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 前端代码如下: importExcelBtn : function(){ if(this.dialogImportExcel.fileList==null || this.dialogImportExcel.fileList.length==0){ this.$message.error('文件必须 阅读全文
posted @ 2024-12-02 16:44 小海葵 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 由于导入excel插入数据,遍历方式插入数据非常慢,所以修改成批量插入数据,代码如下: 批量插入配置类 @Repository public class BatchData { @Autowired private SqlSessionTemplate sqlSessionTemplate; pub 阅读全文
posted @ 2024-12-02 15:56 小海葵 阅读(9) 评论(0) 推荐(0) 编辑