修复性别字典初始数据为空的问题

修复字典作废无效问题 #791
变更字典初始值为undefined #792
This commit is contained in:
piexl
2021-11-08 14:36:40 +08:00
parent cd41d3b5c7
commit e12c1b7b8d
4 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export default {
{{.FieldJson}}: '',
{{- end }}
{{- if eq .FieldType "int" }}
{{.FieldJson}}: 0,
{{.FieldJson}}: {{- if .DictType }} undefined{{ else }} 0{{- end }},
{{- end }}
{{- if eq .FieldType "time.Time" }}
{{.FieldJson}}: new Date(),
+2 -2
View File
@@ -158,7 +158,7 @@ export default {
{{.FieldJson}}: '',
{{- end }}
{{- if eq .FieldType "int" }}
{{.FieldJson}}: 0,
{{.FieldJson}}: {{- if .DictType}} undefined{{ else }} 0{{- end }},
{{- end }}
{{- if eq .FieldType "time.Time" }}
{{.FieldJson}}: new Date(),
@@ -249,7 +249,7 @@ export default {
{{.FieldJson}}: '',
{{- end }}
{{- if eq .FieldType "int" }}
{{.FieldJson}}: 0,
{{.FieldJson}}: {{- if .DictType }} undefined{{ else }} 0{{- end }},
{{- end }}
{{- if eq .FieldType "time.Time" }}
{{.FieldJson}}: new Date(),