-- 项目时间限制

This commit is contained in:
yuping
2022-12-26 15:42:36 +08:00
parent 042ba39f6a
commit fa26be2124
2 changed files with 12 additions and 0 deletions

View File

@@ -102,6 +102,7 @@
separator="至"
:show-time="{ format: 'HH:mm' }"
:placeholder="[' 开始时间', ' 结束时间']"
:disabled-date="disabledDate"
v-model:value="projectInfo.rangeTime"
style="width: 100%; height: 40px; border-radius: 5px"
valueFormat="YYYY-MM-DD HH:mm"
@@ -286,6 +287,7 @@ import { changeOwnership, scrollLoad } from "@/api/method";
import { storage } from "../../api/storage";
import * as api2 from "../../api/indexAudit";
import { validateName } from "@/api/index1";
import dayjs from "dayjs";
export default {
name: "projectAdd",
@@ -506,9 +508,13 @@ export default {
state.projectInfo.sourceBelongId = d
state.projectInfo.sourceBelongName = t
}
const disabledDate = (current) => {
return current && current < dayjs().startOf('day');
};
return {
...toRefs(state),
disabledDate,
managerChange,
timeChange,
classificationChange,