From 13112aa4d852fc3166baa34ca1a6a6b06c9d205c Mon Sep 17 00:00:00 2001 From: piexlMax Date: Sun, 10 Sep 2023 00:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4table=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=AE=A9=E8=AF=A6=E6=83=85=E5=8A=9F=E8=83=BD=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=A4=9A=E7=A7=8D=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autocode_template/web/table.vue.tpl | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/server/resource/autocode_template/web/table.vue.tpl b/server/resource/autocode_template/web/table.vue.tpl index 000d7160..26d8ff59 100644 --- a/server/resource/autocode_template/web/table.vue.tpl +++ b/server/resource/autocode_template/web/table.vue.tpl @@ -240,24 +240,28 @@ {{- range .Fields}} - {{- if and (ne .FieldType "picture" ) (ne .FieldType "pictures" ) (ne .FieldType "file" ) }} - {{"{{"}} formData.{{.FieldJson}} {{"}}"}} - {{- else }} - {{- if eq .FieldType "picture" }} + {{- if .DictType}} + {{"{{"}} filterDict(scope.row.{{.FieldJson}},{{.DictType}}Options) {{"}}"}} + {{- else if eq .FieldType "picture" }} - {{- end }} - {{- if eq .FieldType "pictures" }} + {{- else if eq .FieldType "pictures" }} - {{- end }} - {{- if eq .FieldType "file" }} + {{- else if eq .FieldType "file" }}
{{"{{"}} item.name {{"}}"}}
- {{- end }} - {{- end }} + {{- else if eq .FieldType "bool" }} + {{"{{"}} formatBoolean(formData.{{.FieldJson}}) {{"}}"}} + {{- else if eq .FieldType "time.Time" }} + {{"{{"}} formatDate(formData.{{.FieldJson}}) {{"}}"}} + {{- else if eq .FieldType "richtext" }} + [富文本内容] + {{- else}} + {{"{{"}} formData.{{.FieldJson}} {{"}}"}} + {{- end }}
{{- end }}