优化代码生成

This commit is contained in:
不做码农
2022-01-05 17:38:06 +08:00
parent 3f0357fe77
commit 9eda5bb74f
7 changed files with 21 additions and 24 deletions

View File

@@ -80,6 +80,7 @@ $end
return SUCCESS(response);
}
$if(replaceDto.ShowBtnAdd)
/// <summary>
/// 添加${genTable.FunctionName}
/// </summary>
@@ -106,7 +107,9 @@ ${end}
});
return ToResponse(response);
}
$end
$if(replaceDto.ShowBtnEdit)
/// <summary>
/// 更新${genTable.FunctionName}
/// </summary>
@@ -135,7 +138,9 @@ ${end}
return ToResponse(response);
}
$end
$if(replaceDto.ShowBtnDelete)
/// <summary>
/// 删除${genTable.FunctionName}
/// </summary>
@@ -152,6 +157,7 @@ ${end}
return ToResponse(response);
}
$end
$if(replaceDto.ShowBtnExport)
/// <summary>

View File

@@ -34,7 +34,7 @@ ${VueViewListContent}
<el-table-column label="操作" align="center" width="140">
<template slot-scope="scope">
<el-button size="mini" v-hasPermi="['${replaceDto.PermissionPrefix}:edit']" type="success" icon="el-icon-edit" title="编辑"
@click="handleUpdate(scope.row)"></el-button>
@click="handleUpdate(scope.row)"></el-button>
<el-button size="mini" v-hasPermi="['${replaceDto.PermissionPrefix}:delete']" type="danger" icon="el-icon-delete" title="删除"
@click="handleDelete(scope.row)"></el-button>
</template>