摘要: 表单验证规则 <el-form ref="form" :rules="rules" :model="form" label-width="300px"> <el-form-item label="发货人电话" prop="phone"> <el-input class="inp" v-model=" 阅读全文
posted @ 2018-10-23 19:41 M柒七 阅读(729) 评论(0) 推荐(0) 编辑
摘要: <el-form-item label="单价:" prop="price" > <el-input v-model="addform.price" type="number" placeholder="请输入单价" auto-complete="off" class="widc" ></el-in 阅读全文
posted @ 2018-10-23 19:39 M柒七 阅读(2570) 评论(0) 推荐(0) 编辑
摘要: <el-date-picker v-model="seach.before" type="date" placeholder="开始时间" value-format="yyyy-MM-dd" class="wida" :picker-options="pickerBeginDateBefore" @ 阅读全文
posted @ 2018-10-23 19:37 M柒七 阅读(3123) 评论(0) 推荐(0) 编辑
摘要: vue使用富文本编辑器上传图片: <template lang="html"> <div class="editor"> <div ref="toolbar" class="toolbar"> </div> <div ref="editor" class="text"> </div> </div> 阅读全文
posted @ 2018-10-23 19:31 M柒七 阅读(4540) 评论(0) 推荐(0) 编辑
摘要: element ui的upload组件上传图片成功和移除事件: 用getItem取出: <div class="addImg"> <el-upload ref="upload" class="wid" :action="upimg" list-type="picture" :on-preview=" 阅读全文
posted @ 2018-10-23 19:29 M柒七 阅读(8617) 评论(0) 推荐(0) 编辑
摘要: vue项目打包问题:vue中默认的config/index.js的配置的详细理解: 1). 分离部署时,打包需要将config/index.js中 //默认在config/index.js var path = require('path') module.exports = { //打包 buil 阅读全文
posted @ 2018-10-23 19:26 M柒七 阅读(589) 评论(0) 推荐(0) 编辑
摘要: //在script中先引用 import api from './../../api/index' //vue文件方法中 写 del(index, row) { let self=this; // 传的值放para中。 let para = { Rulesid: row.id } //单击后弹出框, 阅读全文
posted @ 2018-10-23 19:24 M柒七 阅读(800) 评论(0) 推荐(0) 编辑