diff --git a/server/resource/template/web/api.js.tpl b/server/resource/template/web/api.js.tpl index 9b771ba986d03f5b2a0d2d829c0d15fb96b42e1f..a8b77cf447d4162d320a7fd3d428d156346b2bca 100644 --- a/server/resource/template/web/api.js.tpl +++ b/server/resource/template/web/api.js.tpl @@ -94,4 +94,4 @@ export const get{{.StructName}}List = (params) => { method: 'get', params }) -} \ No newline at end of file +} diff --git a/server/resource/template/web/form.vue.tpl b/server/resource/template/web/form.vue.tpl index 5a83bdd8eec2ae9a0aafd5f6ed75a93f0429ebe9..5fb3508b9402ae7aebb281bea3b34ea43dc9fac9 100644 --- a/server/resource/template/web/form.vue.tpl +++ b/server/resource/template/web/form.vue.tpl @@ -3,35 +3,35 @@ {{- range .Fields}} - {{ if eq .FieldType "bool" -}} - - {{ end -}} - {{ if eq .FieldType "string" -}} - - {{ end -}} - {{ if eq .FieldType "int" -}} - {{ if .DictType -}} - - - - {{ else -}} - - {{ end -}} - {{ end -}} - {{ if eq .FieldType "time.Time" }} - - {{ end -}} - {{ if eq .FieldType "float64" }} - - {{ end -}} + {{- if eq .FieldType "bool" }} + + {{- end }} + {{- if eq .FieldType "string" }} + + {{- end }} + {{- if eq .FieldType "int" }} + {{- if .DictType }} + + + + {{- else }} + + {{- end }} + {{- end }} + {{- if eq .FieldType "time.Time" }} + + {{- end }} + {{- if eq .FieldType "float64" }} + + {{- end }} - {{ end -}} + {{- end }} 保存 返回 - + \ No newline at end of file + diff --git a/server/resource/template/web/table.vue.tpl b/server/resource/template/web/table.vue.tpl index 52d68967436457e0d340ba54ac586111b00b3759..a8c6f8e48384677f54df5368aa4af59900b86d3e 100644 --- a/server/resource/template/web/table.vue.tpl +++ b/server/resource/template/web/table.vue.tpl @@ -19,8 +19,8 @@ {{- else }} - - {{ end }} {{ end }} {{ end }} + + {{ end }}{{ end }}{{ end }} 查询 新增 @@ -52,15 +52,16 @@ {{- if .DictType}} {{- else if eq .FieldType "bool" }} {{- else }} - {{ end -}} - {{ end -}} + + {{- end }} + {{- end }}