随笔分类 -  Vue

摘要:样式: 代码: <el-table-column type="index" width="40"></el-table-column> 阅读全文
posted @ 2022-07-20 15:42 BBS_自律 阅读(163) 评论(0) 推荐(0) 编辑
摘要:参考:Vue 回调函数中this无效 1、在回调函数之前将 vue 实例 this 赋值给一个变量,在回调函数中使用该变量 equestHistoryList (mobileNumber, channelIndex) { ...... var _that = this this.sendComman 阅读全文
posted @ 2022-07-19 17:02 BBS_自律 阅读(241) 评论(0) 推荐(0) 编辑
摘要:参考: js遍历json数组 for(var i in jsonstr){ alert("src:"+jsonstr[i].src+"value:"+jsonstr[i].name); } 阅读全文
posted @ 2022-07-19 16:10 BBS_自律 阅读(305) 评论(0) 推荐(0) 编辑
摘要:当需要验证的字段是数字类型的时候,需要使用 v-model.number 来绑定,否则验证的时候会当做字符串处理,结果就无法验证 <el-form-item label="可透支额:" prop="overdraw"> <el-input v-model.number="form.overdraw" 阅读全文
posted @ 2022-07-18 10:40 BBS_自律 阅读(429) 评论(0) 推荐(0) 编辑
摘要:效果 富文本编辑后 html格式插入数据库 <el-table v-loading="loading" :data="manageList" @selection-change="handleSelectionChange"> <el-table-column type="selection" wi 阅读全文
posted @ 2022-07-13 14:15 BBS_自律 阅读(2670) 评论(0) 推荐(1) 编辑
摘要:1.java-图片文件与Base64格式之间的互相转换 2.使用 Java 将图片转换成 Base64 编码 3. 修改 回显图片 //alert(this.imageList); //this.imageList.push(new Photo("图片",row.scenseBgimgUrl)); 阅读全文
posted @ 2022-07-12 15:09 BBS_自律 阅读(331) 评论(0) 推荐(0) 编辑
摘要:参考 1.element ui 图片上传与图片删除(手动上传) 2.element ui实现简单上传图片、删除图片、预览图片 3.Vue+Element UI Upload 组件 上传单张图片去除后面的+号 4.Element UI Upload 组件 设置只允许上传单张图片的操作 实现效果: 代码 阅读全文
posted @ 2022-07-12 10:42 BBS_自律 阅读(615) 评论(0) 推荐(0) 编辑
摘要:效果 代码: <el-form-item label="场景名称" prop="scenseName"> <el-input v-model="form.scenseName" placeholder="请输入场景名称" :readonly="selectOnly" :disabled = "sel 阅读全文
posted @ 2022-07-11 15:58 BBS_自律 阅读(452) 评论(0) 推荐(0) 编辑
摘要:最终效果 代码: style="width:100%" <el-form-item label="场景类型" prop="scenseName"> <el-select v-model="value" placeholder="请选择" style="width:100%"> <el-option 阅读全文
posted @ 2022-07-11 15:47 BBS_自律 阅读(753) 评论(0) 推荐(0) 编辑
摘要:如 1.vue的组件 2. <el-table-column label="背景图片查看" align="center" class-name="small-padding fixed-width"> <template slot-scope="scope"> <div class="demo-im 阅读全文
posted @ 2022-07-11 14:23 BBS_自律 阅读(450) 评论(0) 推荐(0) 编辑
摘要:vue formatter 格式化页面展示的数据,如查出来123 ,显示 类型1 2 3 <el-table-column label="场景类型" align="center" prop="scenseType" :formatter="formatterType" /> formatterTyp 阅读全文
posted @ 2022-07-11 10:22 BBS_自律 阅读(147) 评论(0) 推荐(0) 编辑
摘要:1.elementui的table列超出隐藏tooltip悬浮显示 <el-table-column prop="emailForm" label="发件人邮箱" width="150" show-overflow-tooltip></el-table-column>当表格中的某些内容过长会导致表格 阅读全文
posted @ 2022-06-18 14:54 BBS_自律 阅读(327) 评论(0) 推荐(0) 编辑
摘要:1.axios封装请求拦截器设置请求头添加请求token main.js中 Vue.prototype.$http.interceptors.response.use( 阅读全文
posted @ 2022-06-17 09:24 BBS_自律 阅读(153) 评论(0) 推荐(0) 编辑
摘要:1.解决vue项目本地启动时无法携带cookie 换火狐浏览器试一下 2.Java操作Session与Cookie 2.1 seseion 创建好 不用resoonse的 HttpSession session = request.getSession(true); true代表当前没有建立sess 阅读全文
posted @ 2022-06-16 11:10 BBS_自律 阅读(800) 评论(0) 推荐(0) 编辑
摘要:1.vue axios.defaults.withCredentials = true Vue和django的前后端分离项目,之前通过在django中允许跨域访问实现了跨域请求,但为了使每个请求带上session信息,我设置了withCredentials ,即: 阅读全文
posted @ 2022-06-15 18:08 BBS_自律 阅读(143) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示