提交代码

main
姜玉琦 2024-07-14 23:40:27 +08:00
parent 36bda7c75b
commit 78a072a2a1
1 changed files with 21 additions and 1 deletions

View File

@ -184,7 +184,7 @@
<template #footer>
<div class="dialog-footer">
<el-button @click="dialogFormVisible = false"><i-ep-close />取消</el-button>
<el-button type="primary" @click="handleSubmit">
<el-button type="primary" @click="handleSubmitFile">
<i-ep-check />确认
</el-button>
</div>
@ -312,6 +312,26 @@ const handleSubmit = useThrottleFn(() => {
});
}, 3000);
/** 表单提交 */
const handleSubmitFile = useThrottleFn(() => {
formRef.value.validate((valid: any) => {
if (valid) {
ElMessage.error("缺少接口");
// formLoading.value = true;
// ToolChainshApi.editTool(baseForm.tool_id,baseForm)
// .then((res) => {
// if (res.data.code == 0) {
// ElMessage.success("");
// closeBack();
// }
// })
// .finally(() => {
// formLoading.value = false;
// });
}
});
}, 3000);
/** 添加运行参数 */
function handlePushParams() {
form.value = {};