fix 修复 代码生成 编辑按钮刷新列表问题

feature/model
疯狂的狮子Li 1 year ago
parent d82a753ed5
commit 8df34e50fa

@ -450,7 +450,6 @@ const toggleExpandAll = (data: ${BusinessName}VO[], status: boolean) => {
/** 修改按钮操作 */
const handleUpdate = (row: ${BusinessName}VO) => {
loading.value = true;
dialog.visible = true;
dialog.title = "修改${functionName}";
nextTick(async () => {
@ -460,7 +459,6 @@ const handleUpdate = (row: ${BusinessName}VO) => {
form.value.${treeParentCode} = row.${treeCode};
}
const res = await get${BusinessName}(row.${treeCode});
loading.value = false;
Object.assign(form.value, res.data);
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")

@ -413,14 +413,12 @@ const handleAdd = () => {
/** 修改按钮操作 */
const handleUpdate = (row?: ${BusinessName}VO) => {
loading.value = true
dialog.visible = true;
dialog.title = "修改${functionName}";
nextTick(async () => {
reset();
const _${pkColumn.javaField} = row?.${pkColumn.javaField} || ids.value[0]
const res = await get${BusinessName}(_${pkColumn.javaField});
loading.value = false;
Object.assign(form.value, res.data);
#foreach ($column in $columns)
#if($column.htmlType == "checkbox")

Loading…
Cancel
Save