mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 22:36:45 +08:00
提交
This commit is contained in:
@@ -182,7 +182,7 @@ const rulesRef = ref({
|
||||
],
|
||||
});
|
||||
|
||||
const { validate } = Form.useForm(formData.info, rulesRef);
|
||||
let validate = Form.useForm(formData.value.info, rulesRef).validate;
|
||||
// 关闭弹窗
|
||||
const closeDrawer = () => {
|
||||
if (step.value > 1) {
|
||||
@@ -192,7 +192,7 @@ const closeDrawer = () => {
|
||||
dateTime.value = [];
|
||||
formData.reset();
|
||||
formData.value.info = {
|
||||
voteStemDtoList:[]
|
||||
voteStemDtoList: [],
|
||||
};
|
||||
}
|
||||
};
|
||||
@@ -211,7 +211,10 @@ async function confirm() {
|
||||
message.warning(errorFields[0].errors.join());
|
||||
throw Error("数据校验不通过");
|
||||
});
|
||||
|
||||
if (dayjs().isAfter(dayjs(formData.value.info.voteEndTime))) {
|
||||
message.warning("考试结束时间不能小于当前时间");
|
||||
return;
|
||||
}
|
||||
// 专业力ID
|
||||
formData.value.growthId = props.growId;
|
||||
// 任务类型
|
||||
@@ -242,6 +245,7 @@ function openDrawer(row) {
|
||||
dayjs(row.info.voteStartTime, "YYYY-MM-DD HH:mm"),
|
||||
dayjs(row.info.voteEndTime, "YYYY-MM-DD HH:mm"),
|
||||
]);
|
||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
||||
visible.value = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user