随笔分类 - Vue
摘要:KStarForm.initFormDataAfter = function () { var userAccount = ApplicantAccount; axios.post('/XXXX/Service001', { UserAccount: userAccount, BeginDate:
阅读全文
摘要:<el-form-item :prop="BeginDate" :rules="formContentRules.BeginDate" style="width:150px;float:left;margin-right:10px;"> <el-date-picker v-model="BeginD
阅读全文
摘要:let year = new Date().getFullYear();//年 let month = new Date().getMonth() + 1;//注意!月份是从0月开始获取的,所以要+1; let day = new Date().getDate();//日 //获取本月1号 cons
阅读全文
摘要:<el-form-item> <div v-for="(item,index) in absDate" :key="index" :label="item.date" style="float:left;padding-right:10px;"> <p>{{item.date}}</p> <p st
阅读全文
摘要:实现的效果 <el-date-picker :disabled="!isEdit" v-model="scope.row.BeginDate" type="date" format="yyyy-MM-dd" placeholder="选择日期" size="mini" style="width:15
阅读全文
摘要:实现的效果如下图: 可以根据当前日期,设置组件可选的开始日期 <el-date-picker v-if="isEdit" v-model="vmFormContent.BeginDate " type="date" value-format="yyyy-MM-dd" :picker-options=
阅读全文
摘要:1、点击右下角的管理按钮,找到设置 2、搜索: vetur.format.defaultFormatter.html 3、选择js-beautify-html 设置完,就可以对Vue文件进行格式化了
阅读全文
摘要:设置默认属性ct_month: null 方法: //默认显示今天getdatatime(){ this.ct_month= new Date(); }, //默认显示昨天getdatatime(){ this.ct_month= new Date(); this.ct_month.setTime(
阅读全文
摘要:1、点击列表的文件——>首选项——>键盘快捷方式,在里面查看 Ctrl+/ 是否有冲突 2、查看右下角的选择语言模式是否是Vue,如下图
阅读全文
报错:[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the paren
摘要:今天在做Vue的时候,子组件关闭的时候,报如下错误 报错:vue.esm.js?65d7:610 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent co
阅读全文
摘要:selectMethodChange(item))"> {{ item.value }} ...
阅读全文
摘要:var Enumerable = require('linq'); // 使用linq 按照RegisterID排序listJust是自己定义的数组,来接收数据。listJust: []
阅读全文
摘要:上传控件: <el-upload class="upload-demo" :on-change="filesChange"> filesChange方法:
阅读全文