P-58 rrule.js from period
This commit is contained in:
1 parent
1f4ecc8fcb
commit
0cd3e1b92c
1 file changed
+13
-13
@@ -39,11 +39,7 @@
|
||||
border
|
||||
no-time
|
||||
:max="order[0] == 2 ? new Date(limitation) : false"
|
||||
:min="
|
||||
order[0] == 2
|
||||
? false
|
||||
: minData()
|
||||
"
|
||||
:min="order[0] == 2 ? false : minData()"
|
||||
/>
|
||||
</v-locale-provider>
|
||||
</v-menu>
|
||||
@@ -154,14 +150,18 @@ export default {
|
||||
|
||||
const minData = () => {
|
||||
let h = `${new Date(props.limitation).getHours()}:${String(
|
||||
new Date(props.limitation).getMinutes()
|
||||
).padStart(2, "0")}`
|
||||
new Date(props.limitation).getMinutes()
|
||||
).padStart(2, "0")}`;
|
||||
let min =
|
||||
h == '0:00'?
|
||||
new Date(props.limitation) :
|
||||
new Date(new Date(props.limitation).setDate(new Date(props.limitation).getDate() - 1))
|
||||
return new Date(min)
|
||||
}
|
||||
h == "0:00"
|
||||
? new Date(props.limitation)
|
||||
: new Date(
|
||||
new Date(props.limitation).setDate(
|
||||
new Date(props.limitation).getDate() - 1
|
||||
)
|
||||
);
|
||||
return new Date(min);
|
||||
};
|
||||
|
||||
return {
|
||||
propsDateEvent,
|
||||
@@ -170,7 +170,7 @@ export default {
|
||||
modelDate,
|
||||
formatComa,
|
||||
timeEvent,
|
||||
minData
|
||||
minData,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user