摘要: MyBatis二级缓存使用: 官方建议在service使用缓存,但是你也可以直接在mapper层缓存,这里的二级缓存就是直接在Mapper层进行缓存操作 Mybatis的二级缓存实现也十分简单,只要在springboot的配置文件打开二级缓存,即:mybatis-plus.configuration 阅读全文
posted @ 2020-09-28 18:39 周文豪 阅读(6769) 评论(0) 推荐(0)
摘要: 根据条件导出表格: 前端 <el-form-item label=""> <el-button type="warning" icon="el-icon-lightning" @click="exportExcel">导出</el-button></el-form-item> //导出数据expor 阅读全文
posted @ 2020-09-28 18:10 周文豪 阅读(596) 评论(0) 推荐(0)
摘要: 前端 <el-button type="success" icon="el-icon-download" @click="downloadTemplate">下载模板</el-button> //下载模板downloadTemplate(){ const fileName = '药品清单-模板.xl 阅读全文
posted @ 2020-09-28 17:34 周文豪 阅读(247) 评论(0) 推荐(0)
摘要: 前端 <div style="margin-bottom: 10px"> <el-button :loading="importLoading" type="primary" icon="el-icon-upload" @click="handleImport">导入</el-button> <el 阅读全文
posted @ 2020-09-27 19:55 周文豪 阅读(162) 评论(0) 推荐(0)
摘要: 前言:这篇文件下载的后台代码太繁琐,建议参考https://www.cnblogs.com/zwh0910/p/13745947.html 前端: <el-button type="primary" icon="el-icon-download" @click="downloadTemplate(' 阅读全文
posted @ 2020-09-27 19:46 周文豪 阅读(2394) 评论(0) 推荐(0)
摘要: NOTICE:过滤器写在标签中时时没有参数的。 1、将从后台获取的数据是数字转换成文字 <el-table-column v-if="NameListOfOutConfig.includes('状态')" label="状态" align="center" width="80"> <template 阅读全文
posted @ 2020-09-25 19:19 周文豪 阅读(220) 评论(0) 推荐(0)
摘要: 1、表单验证时由于数据库字段长度限制,进行验证。 <el-col :span="16"> <el-form-item label="家庭住址:" prop="homeAddress"> <el-input v-model="addForm.homeAddress" maxlength="200" s 阅读全文
posted @ 2020-09-25 18:18 周文豪 阅读(141) 评论(0) 推荐(0)
摘要: 1、按照Java语法规范,通常在实体类中的属性,首字母都是小写的。这是由于JavaBean的规范导致的。一般JavaBean属性都是首字母小写,以驼峰命名格式命名,相应的 getter/setter 方法是 get/set 接上首字母大写的属性名。例如:属性名为clientId,其对应的getter 阅读全文
posted @ 2020-09-25 15:16 周文豪 阅读(2420) 评论(0) 推荐(0)
摘要: Power Designer:数据库表设计工具 PowerDesigner是Sybase公司的一款软件,使用它可以方便地对系统进行分析设计,他几乎包括了数据库模型设计的全过程。利用PowerDesigner可以制作数据流程图、概念数据模型、物理数据模型、面向对象模型。今天的课程讲用Power Des 阅读全文
posted @ 2020-09-25 10:34 周文豪 阅读(3135) 评论(0) 推荐(1)
摘要: 1、v-for遍历下拉框 <el-form-item label="审核状态:" prop="status"> <el-select v-model="listQuery.status" clearable filterable placeholder="请选择状态" > <el-option v- 阅读全文
posted @ 2020-09-24 17:07 周文豪 阅读(5672) 评论(0) 推荐(0)