😎修复代码生成模板错误

This commit is contained in:
zuohuaijun 2025-06-17 15:23:20 +08:00
parent e8acb07c18
commit ccef71e6df
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ const checkTableColumnVisible = (tableColumnName: any) => {
}
}
}
@if(@Model.TableField.Any(t => t.ColumnName == "CreateTime" && t.ColumnName == "UpdateTime" && t.ColumnName == "CreateUserId")){
@if(@Model.TableField.Any(t => t.ColumnName == "CreateTime") && @Model.TableField.Any(t => t.ColumnName == "UpdateTime") && @Model.TableField.Any(t => t.ColumnName == "CreateUserId")){
@:{ title: '修改记录', width: 100, showOverflow: 'tooltip', slots: { default: 'row_record' } },
}
{ title: '操作', fixed: 'right', width: 180, showOverflow: true, slots: { default: 'row_buttons' } },

View File

@ -341,7 +341,7 @@ const checkTableColumnVisible = (tableColumnName: any) => {
}
}
}
@if(@Model.TableField.Any(t => t.ColumnName == "CreateTime" && t.ColumnName == "UpdateTime" && t.ColumnName == "CreateUserId")){
@if(@Model.TableField.Any(t => t.ColumnName == "CreateTime") && @Model.TableField.Any(t => t.ColumnName == "UpdateTime") && @Model.TableField.Any(t => t.ColumnName == "CreateUserId")){
@:{ title: '修改记录', width: 100, showOverflow: 'tooltip', slots: { default: 'row_record' } },
}
{ title: '操作', fixed: 'right', width: 180, showOverflow: true, slots: { default: 'row_buttons' } },