From fb22eb417893c4f18d7201e1081b443c576faf5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?pixelMax=28=E5=A5=87=E6=B7=BC?= Date: Tue, 14 May 2024 15:29:34 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E4=BF=AE=E5=A4=8D=E7=94=9F=E6=88=90json?= =?UTF-8?q?=E7=B1=BB=E6=96=87=E4=BB=B6=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E5=90=8E=E5=86=8D=E5=BC=80=E5=90=AF=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autocode_template/web/table.vue.tpl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server/resource/autocode_template/web/table.vue.tpl b/server/resource/autocode_template/web/table.vue.tpl index ee5ec6b657..347c471af9 100644 --- a/server/resource/autocode_template/web/table.vue.tpl +++ b/server/resource/autocode_template/web/table.vue.tpl @@ -617,6 +617,9 @@ const closeDialog = () => { {{- if eq .FieldType "string" }} {{.FieldJson}}: '', {{- end }} + {{- if eq .FieldType "richtext" }} + {{.FieldJson}}: '', + {{- end }} {{- if eq .FieldType "int" }} {{.FieldJson}}: {{- if .DictType }} undefined{{ else }} 0{{- end }}, {{- end }} @@ -626,6 +629,21 @@ const closeDialog = () => { {{- if eq .FieldType "float64" }} {{.FieldJson}}: 0, {{- end }} + {{- if eq .FieldType "picture" }} + {{.FieldJson}}: "", + {{- end }} + {{- if eq .FieldType "video" }} + {{.FieldJson}}: "", + {{- end }} + {{- if eq .FieldType "pictures" }} + {{.FieldJson}}: [], + {{- end }} + {{- if eq .FieldType "file" }} + {{.FieldJson}}: [], + {{- end }} + {{- if eq .FieldType "json" }} + {{.FieldJson}}: {}, + {{- end }} {{- end }} } }