{{- range $index, $column := .Columns -}}
{{- if and (eq $column.IsQuery "1") (ne $column.IsPk "1") (ne $column.JsonField "updateTime") (ne $column.JsonField "deleteTime") -}}
{{- if eq $column.HtmlType "input" "textarea" }}
{{- else if and (eq $column.HtmlType "switch" "select" "radio" "checkbox") (ne $column.DictType "") }}
{{- else if eq $column.HtmlType "datetime" }}
{{- end -}}
{{- end -}}
{{- end }}
搜索
重置
{{- range $index, $column := .Columns -}}
{{- if eq $column.IsPk "1"}}
{{- else if and (eq $column.IsList "1") (eq $column.HtmlType "datetime")}}
{{- if ne $column.ColumnComment "" }}
{{"{{"}} dateStrFormat(scope.row.{{$column.JsonField}}) {{"}}"}}
{{- end -}}
{{- else if and (eq $column.IsList "1") (ne $column.DictType "") }}
{{"{{"}} {{$column.JsonField}}Format(scope.row) || '-- --' {{"}}"}}
{{- else if and (eq $column.IsList "1") (ne $column.JsonField "") (ne $column.JsonField "createTime") (ne $column.JsonField "updateTime") (ne $column.JsonField "deleteTime") }}
{{- if ne $column.ColumnComment "" }}
{{- end -}}
{{- end -}}
{{- end }}
修改
删除