提交导出

This commit is contained in:
lpq
2023-02-19 20:01:29 +08:00
parent 0f14ed29ae
commit 651a182641
4 changed files with 28 additions and 17 deletions

View File

@@ -449,13 +449,20 @@ const disabledRangeTime = () => ({
});
async function confirm() {
debugger
console.log("确定按钮:")
await validate().catch(({errorFields}) => {
message.warning(errorFields[0].errors.join());
throw Error("数据校验不通过")
});
if (taskIndex.value === -1) {
const list = props.taskList
list.push({name: formData.value.liveName, type: props.type, info: formData.value})
let list = props.taskList
list.push(
{name: formData.value.liveName,
type: props.type,
info: {...formData.value}
})
console.log("list:" + list)
} else {
const data = props.taskList[taskIndex.value]
data.name = formData.value.liveName
@@ -501,9 +508,9 @@ const beforeUpload = (file) => {
console.log(res.data.data,45);
imageUrl.value = process.env.VUE_APP_FILE_PATH +res.data.data
formData.value.liveCover =process.env.VUE_APP_FILE_PATH + res.data.data
// state.hasImgName = file.name;
// emit("src", { id: '', src: res.data.data });
}
@@ -780,4 +787,4 @@ const beforeUpload = (file) => {
}
}
}
</style>
</style>