随笔分类 -  Ruoyi

摘要:1.在data中新建一个变量 alarmLevelOptions:[] 2.获取字典信息 this.getDicts("alarm_level").then(response => { this.alarmLevelOptions = response.data; }); 3.在页面中使用 <el- 阅读全文
posted @ 2020-11-29 16:03 xl4ng 阅读(5695) 评论(0) 推荐(1) 编辑
摘要:http://localhost/dev-api/common/download/resource?name=/profile/avatar/2020/05/27/fd7a23f212cda2805b83cf3f90c4af36.jpeg /** * 本地资源通用下载 * * @param name 阅读全文
posted @ 2020-05-27 22:12 xl4ng 阅读(346) 评论(0) 推荐(0) 编辑
摘要:1.前端 <el-upload action="#" :http-request="requestUpload" :show-file-list="false" :before-upload="beforeUpload"> <el-button size="small"> 上传 <i class=" 阅读全文
posted @ 2020-05-27 22:01 xl4ng 阅读(161) 评论(0) 推荐(0) 编辑