|
|
@ -467,7 +467,7 @@ const handleUpdate = (row: ${BusinessName}VO) => {
|
|
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
/** 提交按钮 */
|
|
|
|
const submitForm = () => {
|
|
|
|
const submitForm = () => {
|
|
|
|
${businessName}FormRef.value.validate((valid: boolean) => {
|
|
|
|
${businessName}FormRef.value.validate(async (valid: boolean) => {
|
|
|
|
if (valid) {
|
|
|
|
if (valid) {
|
|
|
|
buttonLoading.value = true;
|
|
|
|
buttonLoading.value = true;
|
|
|
|
#foreach ($column in $columns)
|
|
|
|
#foreach ($column in $columns)
|
|
|
@ -476,9 +476,9 @@ const submitForm = () => {
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
if (form.value.${pkColumn.javaField}) {
|
|
|
|
if (form.value.${pkColumn.javaField}) {
|
|
|
|
update${BusinessName}(form.value).finally(() => buttonLoading.value = false);
|
|
|
|
await update${BusinessName}(form.value).finally(() => buttonLoading.value = false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
add${BusinessName}(form.value).finally(() => buttonLoading.value = false);
|
|
|
|
await add${BusinessName}(form.value).finally(() => buttonLoading.value = false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
proxy?.#[[$modal]]#.msgSuccess("操作成功");
|
|
|
|
proxy?.#[[$modal]]#.msgSuccess("操作成功");
|
|
|
|
dialog.visible = false;
|
|
|
|
dialog.visible = false;
|
|
|
|