This commit is contained in:
‘937886381’
2025-12-23 08:35:46 +08:00
parent c86d94ac92
commit 89ff79bfd7
6 changed files with 868 additions and 465 deletions

View File

@@ -152,7 +152,30 @@ export default {
.label;
}
});
},
},
dataFormSubmit() {
this.$refs["dataForm"].validate((valid) => {
if (!valid) {
return false;
}
// 修改的提交
if (this.dataForm.id) {
this.urlOptions.updateURL(this.dataForm).then(response => {
this.$modal.msgSuccess("修改成功");
this.visible = false;
this.$emit("refreshDataList");
});
return;
}
// 添加的提交
this.urlOptions.createURL(this.dataForm).then(response => {
// console.log('response',);
this.$modal.msgSuccess("新增成功");
this.visible = false;
this.$emit("refreshDataList");
});
});
},
},
};
</script>