+
+
+ {{- 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 -}}
+
+ {{ end -}}
+
+
+ 保存
+ 返回
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server/resource/template/fe/table.vue.tpl b/server/resource/template/web/table.vue.tpl
similarity index 99%
rename from server/resource/template/fe/table.vue.tpl
rename to server/resource/template/web/table.vue.tpl
index a184bca3..02018627 100644
--- a/server/resource/template/fe/table.vue.tpl
+++ b/server/resource/template/web/table.vue.tpl
@@ -149,11 +149,13 @@ export default {
type: "",
deleteVisible: false,
multipleSelection: [],
+
{{- range .Fields}}
{{- if .DictType }}
{{ .DictType }}Options:[],
{{ end -}}
{{end -}}
+
formData: {
{{range .Fields}}
{{- if eq .FieldType "bool" -}}
diff --git a/server/service/sys_auto_code.go b/server/service/sys_auto_code.go
index df158535..41668ba7 100644
--- a/server/service/sys_auto_code.go
+++ b/server/service/sys_auto_code.go
@@ -46,7 +46,7 @@ func CreateTemp(autoCode model.AutoCodeStruct) (err error) {
}
// 生成文件路径,填充 autoCodePath 字段,readme.txt.tpl不符合规则,需要特殊处理
- // resource/template/fe/api.js.tpl -> autoCode/fe/autoCode.PackageName/api/autoCode.PackageName.js
+ // resource/template/web/api.js.tpl -> autoCode/web/autoCode.PackageName/api/autoCode.PackageName.js
// resource/template/readme.txt.tpl -> autoCode/readme.txt
autoPath := "autoCode/"
for index, value := range dataList {
diff --git a/web/src/style/main.scss b/web/src/style/main.scss
index 99803297..f56af3b4 100644
--- a/web/src/style/main.scss
+++ b/web/src/style/main.scss
@@ -1066,6 +1066,8 @@ $mainHight: 100vh;
.layout-cont {
.right-box {
+ height: $height-header;
+ line-height: $height-header;
text-align: center;
vertical-align: middle;
margin-right: 40px;
@@ -1088,8 +1090,8 @@ $mainHight: 100vh;
padding: 0 24px;
}
.fl-right {
- height: $height-header;
- line-height: $height-header;
+ // height: $height-header;
+ // line-height: $height-header;
}
&.el-main {
overflow: auto;