mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 15:26:48 +08:00
提交
This commit is contained in:
@@ -101,7 +101,7 @@ const formData = useResetRef({
|
||||
discussSettings: true,
|
||||
},
|
||||
});
|
||||
const emit = defineEmits(['refresh']);
|
||||
const emit = defineEmits(["refresh"]);
|
||||
const dateTime = ref([]);
|
||||
const rulesRef = ref({
|
||||
discussName: [
|
||||
@@ -118,8 +118,7 @@ const rulesRef = ref({
|
||||
],
|
||||
});
|
||||
|
||||
const { validate } = Form.useForm(formData.info, rulesRef);
|
||||
|
||||
let validate = Form.useForm(formData.value.info, rulesRef).validate
|
||||
const closeDrawer = () => {
|
||||
visible.value = false;
|
||||
dateTime.value = [];
|
||||
@@ -138,8 +137,8 @@ async function confirm() {
|
||||
formData.value.taskType = props.type;
|
||||
// 必修/选修
|
||||
formData.value.type = props.activeKey;
|
||||
// 任务名称
|
||||
formData.value.taskName = formData.value.info.discussName;
|
||||
// 任务名称
|
||||
formData.value.taskName = formData.value.info.discussName;
|
||||
saveTask(formData.value).then((res) => {
|
||||
if (res.data.code == 200) {
|
||||
if (formData.value.id) {
|
||||
@@ -162,6 +161,7 @@ function openDrawer(row) {
|
||||
row.info.discussSettings === "false" || row.info.discussSettings === false
|
||||
? false
|
||||
: true);
|
||||
row && (validate = Form.useForm(formData.value.info, rulesRef).validate);
|
||||
visible.value = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user