提交 b60f1c3e 编写于 作者: yi.li's avatar yi.li

日期选择控制优化

上级 0a145678
......@@ -348,14 +348,9 @@
},
setPickerOption: {
disabledDate(time) {
return time.getTime() > Date.now();
},
// disabledDate(time) {
// let curDate = (new Date()).getTime();
// let three = 90 * 24 * 3600 * 1000;
// let threeMonths = curDate - three;
// return time.getTime() > Date.now() || time.getTime() < threeMonths;;
// }
let old = new Date('1900/1/1');
return time > Date.now() || time < old;
}
},
}
},
......@@ -747,6 +742,13 @@
this.tipsText = '收起录入完整信息';
this.isShowAll = true;
}
},
getDate() {
let old = new Date('1900-01-01 00:00:00');
let n = new Date();
let s = n - old;
return Math.floor(s / (24 * 3600 * 1000));
// return s;
}
},
filters: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册