<div id="app">
<date-picker type="date" :options="options4" format="yyyy/MM/dd" placeholder="选择时间" style="width: 200px" v-model="TableInfo.F_FoShiDate" ></date-picker>
</div>
vm = new Vue({
el: '#app',
data() {
return {
options4: {
//设置不可选日期
disabledDate(date) {
//设置七天后之前的时间都不可选
var myDate = new Date();
myDate.setDate(myDate.getDate() + 7);
return date.valueOf() < myDate;
}
},
TableInfo: {
realname: '',
F_Type: '',
F_FoShiDate: '',
F_FoShiDateTemp: '', //用户修改页面 记录原先选中日期
F_Cause: '',
F_MasterCount: 0,
F_Money: 0,
F_ContentType: '',
F_Contacts: '',
F_ZhiFuLuWei: '',
F_Remarks: '',
F_FoShiTime: '',
},
}
}
});