时间禁用

This commit is contained in:
zhangsir
2024-02-27 14:41:44 +08:00
parent 4646ac81ee
commit 57acbf4fdc
2 changed files with 4 additions and 6 deletions

View File

@@ -170,6 +170,7 @@
@select="onDateEnd"
:open="openEnd"
@ok="onOkEnd"
:disabled-date="disabledDate"
/>
</div>
</div>
@@ -906,8 +907,7 @@ function openDrawer(row) {
nextTick(tableRef.value.fetch);
}
const disabledDate = (current) => current && current < dayjs().startOf("day");
const disabledDate = (current) => current && current < dayjs(dateTime.value[0]);
// 删除文件返回参数
const changevalue = (e) => {
let arr = formData.value.attach.split(",");

View File

@@ -984,6 +984,7 @@
@select="onDateEnd"
:open="openEnd"
@ok="onOkEnd"
:disabled-date="disabledDate"
/>
</div>
</div>
@@ -5066,10 +5067,7 @@ function onFocusEnd(){
console.log("执行");
getTableDate();
};
const disabledDate = (current) => {
// Can not select days before today and today
return current && current < dayjs().startOf("day");
};
const disabledDate = (current) => current && current < dayjs(state.xjkkinputV3[0]);
const disabledDateTime = () => {
return {