@if(Model.QueryWhetherList.Count > 0) {
if(Model.HasLikeQuery) {
@:
@:
@:
@:
@:
}
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 == "ForeignKey") {
@:
@:
@:
@:
@:
}else if(column.EffectType == "ApiTreeSelector"){
@:
@:
@:
@:{{ data.label }}
@: ({{ data.children.length }})
@:
@:
@:
}else if(column.EffectType == "DictSelector" || column.EffectType == "EnumSelector"){
@:
@:
@:
@:
@:
}else if(column.EffectType == "DatePicker"){
@:
if (column.QueryType == "~") {
@:
} else {
@:
}
@:
}
@:
}
}
0?"":"label-width=\"0px\"")>
@(Model.QueryWhetherList.Count > 0 ? "查询" : "刷新")
@if (Model.QueryWhetherList.Count > 0) {
@: queryParams = {}"> 重置
@if (Model.HasLikeQuery) {
@: 高级查询
@: 隐藏
}
}
删除
新增
@if (Model.ImportFieldList.Count > 0) {
@: 导入
}
@* 操作区另起一行
@:
@:
@:
@: 新增
@:
@:
*@
{ selectData = val; }" style="width: 100%" v-loading="loading" tooltip-effect="light" row-key="@Model.PrimaryKeyFieldList.First().LowerPropertyName" @@sort-change="sortChange" border>
@foreach (var column in Model.TableField.Where(u => u.WhetherTable == "Y")){
if(column.EffectType == "Upload" || @column.EffectType == "ForeignKey" || @column.EffectType == "ApiTreeSelector" || @column.EffectType == "Switch" || @column.EffectType == "ConstSelector"){
@:
@:
if(column.EffectType == "Upload"){
@:
}else if(column.EffectType == "ForeignKey" || column.EffectType == "ApiTreeSelector"){
@:{{scope.row.@(column.LowerExtendedPropertyName)}}
}else if(column.EffectType == "Switch"){
@: 是
@: 否
}else if(column.EffectType == "ConstSelector"){
@:{{codeToName(scope.row.@(column.LowerPropertyName), '@(column.DictTypeCode)')}}
}
@:
@:
} else if (column.EffectType == "DictSelector" || column.EffectType == "EnumSelector") {
@:
@:
if (Model.IsStatus(column)) {
@:
} else {
@:
}
@:
@:
} else {
@:
}
}
@if (Model.PrintType == "custom"){
@: 打印
}
编辑
删除
@if (Model.ImportFieldList.Count > 0) {
@:
}