Skip to content

Commit fb22eb4

Browse files
committed
fixed:修复生成json类文件关闭弹窗后再开启的错误
1 parent 136fb2f commit fb22eb4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

server/resource/autocode_template/web/table.vue.tpl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,9 @@ const closeDialog = () => {
617617
{{- if eq .FieldType "string" }}
618618
{{.FieldJson}}: '',
619619
{{- end }}
620+
{{- if eq .FieldType "richtext" }}
621+
{{.FieldJson}}: '',
622+
{{- end }}
620623
{{- if eq .FieldType "int" }}
621624
{{.FieldJson}}: {{- if .DictType }} undefined{{ else }} 0{{- end }},
622625
{{- end }}
@@ -626,6 +629,21 @@ const closeDialog = () => {
626629
{{- if eq .FieldType "float64" }}
627630
{{.FieldJson}}: 0,
628631
{{- end }}
632+
{{- if eq .FieldType "picture" }}
633+
{{.FieldJson}}: "",
634+
{{- end }}
635+
{{- if eq .FieldType "video" }}
636+
{{.FieldJson}}: "",
637+
{{- end }}
638+
{{- if eq .FieldType "pictures" }}
639+
{{.FieldJson}}: [],
640+
{{- end }}
641+
{{- if eq .FieldType "file" }}
642+
{{.FieldJson}}: [],
643+
{{- end }}
644+
{{- if eq .FieldType "json" }}
645+
{{.FieldJson}}: {},
646+
{{- end }}
629647
{{- end }}
630648
}
631649
}

0 commit comments

Comments
 (0)