mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 代码生成 编辑按钮刷新列表问题
This commit is contained in:
		@@ -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")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user