Browse Source

tag添加form 前端icon不存在的属性增加

QM303176530 4 years ago
parent
commit
cc65d05158

+ 1 - 1
server/resource/template/te/model.go.tpl

@@ -7,5 +7,5 @@ import (
 
 type {{.StructName}} struct {
       gorm.Model {{range .Fields}}
-      {{.FieldName}}  {{.FieldType}} `json:"{{.FieldJson}}"{{if .ColumnName}} gorm:"column:{{.ColumnName}}"{{end}}`{{ end }}
+      {{.FieldName}}  {{.FieldType}} `json:"{{.FieldJson}}" form:"{{.FieldJson}}" {{if .ColumnName}} gorm:"column:{{.ColumnName}}"{{end}}`{{ end }}
 }

+ 0 - 2
web/src/view/superAdmin/menu/icon.vue

@@ -2,8 +2,6 @@
   <div>
     <el-form
       :inline="true"
-      :model="form"
-      :rules="rules"
       label-width="85px"
       ref="menuForm"
       label-position="top"

+ 0 - 1
web/src/view/superAdmin/menu/menu.vue

@@ -60,7 +60,6 @@
             路由path
             <el-checkbox style="float:right;margin-left:20px;" v-model="checkFlag">添加参数</el-checkbox>
           </div>
-          
           <el-input
             :disabled="!checkFlag"
             autocomplete="off"