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