mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
---项目详情
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
<span style="margin-right: 3px">活动时间:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-range-picker :disabled-date="disabledDate" :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm"
|
||||
<a-range-picker :show-time="{ format: 'HH:mm' }" format="YYYY-MM-DD HH:mm"
|
||||
style="width: 400px; height: 40px; border-radius: 8px" v-model:value="dateTime" @change="timeChange"
|
||||
:placeholder="[' 开始时间', ' 结束时间']" />
|
||||
</div>
|
||||
@@ -208,9 +208,10 @@ const closeDrawer = () => {
|
||||
function timeChange(time, timeStr) {
|
||||
formData.value.activityStartTime = timeStr[0]
|
||||
formData.value.activityEndTime = timeStr[1]
|
||||
formData.activityDuration || (formData.activityDuration = dayjs(timeStr[1]).diff(dayjs(timeStr(0)),'minute'))
|
||||
}
|
||||
|
||||
const disabledDate = (current) => {
|
||||
const disabledDate = (current) => {¡¡
|
||||
return current && current < dayjs().startOf('day');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user