+ {{- if not .IsTree }}
+
+
+ {{- if .GvaModel }}
+
+
+
+ 创建日期
+
+
+
+
+
+
+ —
+
+
+ {{ end -}}
+ {{- range .Fields}} {{- if .FieldSearchType}} {{- if not .FieldSearchHide }} {{- if eq .FieldType "bool" }}
+
+
+
+
+
+
+
+
+ {{- else if .DictType}}
+
+ {searchInfo.{{.FieldJson}}=undefined}">
+
+
+
+ {{- else if .CheckDataSource}}
+
+
+
+
+
+ {{- else}}
+
+ {{- if eq .FieldType "float64" "int"}}
+ {{if eq .FieldSearchType "BETWEEN" "NOT BETWEEN"}}
+
+ —
+
+ {{- else}}
+
+ {{- end}}
+ {{- else if eq .FieldType "time.Time"}}
+ {{if eq .FieldSearchType "BETWEEN" "NOT BETWEEN"}}
+
+
+ {{.FieldDesc}}
+
+
+
+
+
+
+ —
+
+ {{- else}}
+
+ {{- end}}
+ {{- else}}
+
+ {{- end}}
+ {{ end }}{{ end }}{{ end }}{{ end }}
+
+
+
+ {{- range .Fields}} {{- if .FieldSearchType}} {{- if .FieldSearchHide }} {{- if eq .FieldType "bool" }}
+
+
+
+
+
+
+
+
+ {{- else if .DictType}}
+
+ {searchInfo.{{.FieldJson}}=undefined}">
+
+
+
+ {{- else}}
+
+ {{- if eq .FieldType "float64" "int"}}
+ {{if eq .FieldSearchType "BETWEEN" "NOT BETWEEN"}}
+
+ —
+
+ {{- else}}
+
+ {{- end}}
+ {{- else if eq .FieldType "time.Time"}}
+ {{if eq .FieldSearchType "BETWEEN" "NOT BETWEEN"}}
+
+
+ {{.FieldDesc}}
+
+
+
+
+
+
+ —
+
+ {{- else}}
+
+ {{- end}}
+ {{- else}}
+
+ {{- end}}
+
+
+ {{ end }}{{ end }}{{ end }}{{ end }}
+
+
+
+ 查询
+ 重置
+ 展开
+ 收起
+
+
+
+ {{- end }}
+
+
+ 新增
+ 删除
+ {{ if .HasExcel -}}
+
+
+
+ {{- end }}
+
+
+
+ {{ if .GvaModel }}
+
+ {{ "{{ formatDate(scope.row.CreatedAt) }}" }}
+
+ {{ end }}
+ {{- range .Fields}}
+ {{- if .Table}}
+ {{- if .CheckDataSource }}
+
+
+ {{- if eq .DataSource.Association 2}}
+
+ {{ "{{ item }}" }}
+
+ {{- else }}
+ {{"{{"}} filterDataSource(dataSource.{{.FieldJson}},scope.row.{{.FieldJson}}) {{"}}"}}
+ {{- end }}
+
+
+ {{- else if .DictType}}
+
+
+ {{if eq .FieldType "array"}}
+ {{"{{"}} filterDict(item,{{.DictType}}Options) {{"}}"}}
+ {{- else }}
+ {{"{{"}} filterDict(scope.row.{{.FieldJson}},{{.DictType}}Options) {{"}}"}}
+ {{end}}
+
+
+ {{- else if eq .FieldType "bool" }}
+
+ {{"{{"}} formatBoolean(scope.row.{{.FieldJson}}) {{"}}"}}
+
+ {{- else if eq .FieldType "time.Time" }}
+
+ {{"{{"}} formatDate(scope.row.{{.FieldJson}}) {{"}}"}}
+
+ {{- else if eq .FieldType "picture" }}
+
+
+
+
+
+ {{- else if eq .FieldType "pictures" }}
+
+
+
+
+
+
+
+ {{- else if eq .FieldType "video" }}
+
+
+
+
+
+ {{- else if eq .FieldType "richtext" }}
+
+
+ [富文本内容]
+
+
+ {{- else if eq .FieldType "file" }}
+
+
+
+ {{"{{"}}file.name{{"}}"}}
+
+
+
+ {{- else if eq .FieldType "json" }}
+
+
+ [JSON]
+
+
+ {{- else if eq .FieldType "array" }}
+
+
+
+
+
+ {{- else }}
+
+ {{- end }}
+ {{- end }}
+ {{- end }}
+
+
+ {{- if .IsTree }}
+ 新增子节点
+ {{- end }}
+ 查看
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
{{"{{"}}type==='create'?'新增':'编辑'{{"}}"}}
+
+ 确 定
+ 取 消
+
+
+
+
+
+ {{- if .IsTree }}
+
+
+
+ {{- end }}
+ {{- range .Fields}}
+ {{- if .Form}}
+
+ {{- if .CheckDataSource}}
+
+
+
+ {{- else }}
+ {{- if eq .FieldType "bool" }}
+
+ {{- end }}
+ {{- if eq .FieldType "string" }}
+ {{- if .DictType}}
+
+
+
+ {{- else }}
+
+ {{- end }}
+ {{- end }}
+ {{- if eq .FieldType "richtext" }}
+
+ {{- end }}
+ {{- if eq .FieldType "json" }}
+ // 此字段为json结构,可以前端自行控制展示和数据绑定模式 需绑定json的key为 formData.{{.FieldJson}} 后端会按照json的类型进行存取
+ {{"{{"}} formData.{{.FieldJson}} {{"}}"}}
+ {{- end }}
+ {{- if eq .FieldType "array" }}
+ {{- if .DictType}}
+
+
+
+ {{- else }}
+
+ {{- end }}
+ {{- end }}
+ {{- if eq .FieldType "int" }}
+
+ {{- end }}
+ {{- if eq .FieldType "time.Time" }}
+
+ {{- end }}
+ {{- if eq .FieldType "float64" }}
+
+ {{- end }}
+ {{- if eq .FieldType "enum" }}
+
+
+
+ {{- end }}
+ {{- if eq .FieldType "picture" }}
+
+ {{- end }}
+ {{- if eq .FieldType "pictures" }}
+
+ {{- end }}
+ {{- if eq .FieldType "video" }}
+
+ {{- end }}
+ {{- if eq .FieldType "file" }}
+
+ {{- end }}
+ {{- end }}
+
+ {{- end }}
+ {{- end }}
+
+
+
+
+
+ {{- if .IsTree }}
+
+
+
+ {{- end }}
+ {{- range .Fields}}
+ {{- if .Desc }}
+
+ {{- if .CheckDataSource }}
+ {{- if eq .DataSource.Association 2}}
+
+ {{ "{{ item }}" }}
+
+ {{- else }}
+ {{"{{"}} filterDataSource(dataSource.{{.FieldJson}},detailFrom.{{.FieldJson}}) {{"}}"}}
+ {{- end }}
+ {{- else if .DictType}}
+ {{if eq .FieldType "array"}}
+ {{"{{"}} filterDict(item,{{.DictType}}Options) {{"}}"}}
+ {{- else }}
+ {{"{{"}} filterDict(detailFrom.{{.FieldJson}},{{.DictType}}Options) {{"}}"}}
+ {{end}}
+ {{- else if and (ne .FieldType "picture" ) (ne .FieldType "richtext" ) (ne .FieldType "pictures" ) (ne .FieldType "file" ) (ne .FieldType "array" ) }}
+ {{"{{"}} detailFrom.{{.FieldJson}} {{"}}"}}
+ {{- else }}
+ {{- if eq .FieldType "picture" }}
+
+ {{- end }}
+ {{- if eq .FieldType "array" }}
+
+ {{- end }}
+ {{- if eq .FieldType "pictures" }}
+
+ {{- end }}
+ {{- if eq .FieldType "richtext" }}
+
+ {{- end }}
+ {{- if eq .FieldType "file" }}
+
+
+
+ {{"{{"}}item.name{{"}}"}}
+
+
+ {{- end }}
+ {{- end }}
+
+ {{- end }}
+ {{- end }}
+
+
+
+
+