@if(Model.QueryWhetherList.Count > 0){
@:
foreach (var column in Model.QueryWhetherList){
if(@column.EffectType == "Input" || @column.EffectType == "InputTextArea"){
@:
@:
@:
}else if(@column.EffectType == "InputTextArea"){
@:
@:
@:
}else if(@column.EffectType == "InputNumber"){
@:
@:
@:
}else if(@column.EffectType == "fk"){
@:
@:
@:
@:
@:
}else if(@column.EffectType == "Select"){
@:
@:
@:
@:
@:
}else if(@column.EffectType == "DatePicker"){
@:
if(@column.QueryType == "~"){
@:
}else
{
@:
}
@:
}
}
@:
@:
@: 查询
@: queryParams = {}"> 重置
@:
@:
@:
@: 新增
@:
@:
}
@foreach (var column in Model.TableField){
if(@column.WhetherTable == "Y"){
if(@column.EffectType == "Upload"||@column.EffectType == "fk"||@column.EffectType == "Switch"||@column.EffectType == "ConstSelector"){
@:
@:
if(@column.EffectType == "Upload"){
@:
}else if(@column.EffectType == "fk"){
@:{{scope.row.@LowerFirstLetter(@column.FkEntityName)@(@column.FkColumnName)}}
}else if(@column.EffectType == "Switch"){
@: 是
@: 否
}else if(@column.EffectType == "ConstSelector"){
@:{{codeToName(scope.row.@(@column.LowerColumnName), '@(@column.DictTypeCode)')}
}
@:
@:
}
else {
@:
}
}
}
编辑
删除
@{
string LowerFirstLetter(string text)
{
return text.ToString()[..1].ToLower() + text[1..]; // 首字母小写
}
}