Skip to content

Commit

Permalink
fixed:修复生成json类文件关闭弹窗后再开启的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed May 14, 2024
1 parent 136fb2f commit fb22eb4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server/resource/autocode_template/web/table.vue.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
}
}
Expand Down

0 comments on commit fb22eb4

Please sign in to comment.