---项目详情

This commit is contained in:
yuping
2023-06-08 17:16:19 +08:00
parent fe0e9f2651
commit 914d9a09d1
22 changed files with 20 additions and 46 deletions

View File

@@ -47,7 +47,7 @@
<span style="margin-right: 3px">直播时间</span>
</div>
<div class="btnbox">
<a-range-picker :show-time="{ format: 'HH:mm' }" :disabled-date="disabledDate"
<a-range-picker :show-time="{ format: 'HH:mm' }"
style="width: 400px; height: 40px; border-radius: 8px" v-model:value="dateTime" format="YYYY-MM-DD HH:mm"
valueFormat="YYYY-MM-DD HH:mm" @change="timeChange" :placeholder="[' 开始时间', ' 结束时间']" />
</div>
@@ -336,6 +336,7 @@ const closeDrawer = () => {
function timeChange(time, timeStr) {
formData.value.liveStartTime = timeStr[0];
formData.value.liveEndTime = timeStr[1];
formData.liveDuration || (formData.liveDuration = dayjs(timeStr[1]).diff(dayjs(timeStr(0)),'minute'))
}
const disabledDate = (current) => {
return current && current < dayjs().startOf("day");