|
|
|
@ -421,9 +421,6 @@ const resetQuery = () => {
|
|
|
|
|
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
const handleAdd = (row?: ${BusinessName}VO) => {
|
|
|
|
|
dialog.visible = true;
|
|
|
|
|
dialog.title = "添加${functionName}";
|
|
|
|
|
nextTick(() => {
|
|
|
|
|
reset();
|
|
|
|
|
getTreeselect();
|
|
|
|
|
if (row != null && row.${treeCode}) {
|
|
|
|
@ -431,7 +428,8 @@ const handleAdd = (row?: ${BusinessName}VO) => {
|
|
|
|
|
} else {
|
|
|
|
|
form.value.${treeParentCode} = 0;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
dialog.visible = true;
|
|
|
|
|
dialog.title = "添加${functionName}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 展开/折叠操作 */
|
|
|
|
@ -449,10 +447,7 @@ const toggleExpandAll = (data: ${BusinessName}VO[], status: boolean) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
const handleUpdate = (row: ${BusinessName}VO) => {
|
|
|
|
|
dialog.visible = true;
|
|
|
|
|
dialog.title = "修改${functionName}";
|
|
|
|
|
nextTick(async () => {
|
|
|
|
|
const handleUpdate = async (row: ${BusinessName}VO) => {
|
|
|
|
|
reset();
|
|
|
|
|
await getTreeselect();
|
|
|
|
|
if (row != null) {
|
|
|
|
@ -465,7 +460,8 @@ const handleUpdate = (row: ${BusinessName}VO) => {
|
|
|
|
|
form.value.$column.javaField = form.value.${column.javaField}.split(",");
|
|
|
|
|
#end
|
|
|
|
|
#end
|
|
|
|
|
});
|
|
|
|
|
dialog.visible = true;
|
|
|
|
|
dialog.title = "修改${functionName}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|