|
@@ -32,7 +32,7 @@
|
|
|
:rules="[{ required: true, message: '请选择发送时间' }]">
|
|
|
<DatePicker v-model:value="form.sendTimeStr" placeholder="请选择发送时间" format="YYYY-MM-DD HH:mm:ss"
|
|
|
:disabled-date="disabledDate" :show-time="{ defaultValue: dayjs('00:00:00', 'HH:mm:ss') }"
|
|
|
- :disabled="btnDisabled" />
|
|
|
+ :disabled="btnDisabled" />
|
|
|
</FormItem>
|
|
|
</Form>
|
|
|
</div>
|
|
@@ -154,9 +154,25 @@ onMounted(async () => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+// const disabledDate = (current: Dayjs) => {
|
|
|
+// return current && current < dayjs().endOf('day');
|
|
|
+// };
|
|
|
const disabledDate = (current: Dayjs) => {
|
|
|
- return current && current < dayjs().endOf('day');
|
|
|
+ return current && current < dayjs().startOf('day');
|
|
|
};
|
|
|
+// const disabledTime = (current: Dayjs) => {
|
|
|
+// if (current && current.isSame(dayjs(), 'day')) {
|
|
|
+// const now = dayjs();
|
|
|
+// return {
|
|
|
+// disabledHours: () => [...Array(now.hour()).keys()],
|
|
|
+// disabledMinutes: () => [...Array(now.minute()).keys()],
|
|
|
+// disabledSeconds: () => [...Array(now.second()).keys()],
|
|
|
+// };
|
|
|
+// }
|
|
|
+// return {};
|
|
|
+// };
|
|
|
+
|
|
|
+
|
|
|
|
|
|
function nextStep() {
|
|
|
if (currentStep.value === 0) {
|