mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 02:46:45 +08:00
-- 项目时间限制
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user