This commit is contained in:
曹辉 2023-05-26 15:23:07 +08:00
parent b845879057
commit f0e122ac96
2 changed files with 9 additions and 0 deletions

View File

@ -543,6 +543,7 @@
v-if="!lookedit"
v-model="timevalue"
type="daterange"
:picker-options="setDateRange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"

View File

@ -15,6 +15,14 @@ export default {
name: "order",
data() {
return {
setDateRange: {
disabledDate: time => {
// 禁用今天之前的日期【当前天可选】
console.log(Date.now());
console.log(time.getTime());
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000;
}
},
timevalue: [],
map: null,
baseurl: process.env.VUE_APP_BASE_API,