Browse Source

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

main v2.0.2
QM303176530 5 years ago
parent
commit
cc65d05158
  1. 2
      server/resource/template/te/model.go.tpl
  2. 2
      web/src/view/superAdmin/menu/icon.vue
  3. 1
      web/src/view/superAdmin/menu/menu.vue

2
server/resource/template/te/model.go.tpl

@ -7,5 +7,5 @@ import (
type {{.StructName}} struct { type {{.StructName}} struct {
gorm.Model {{range .Fields}} 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 }}
} }

2
web/src/view/superAdmin/menu/icon.vue

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

1
web/src/view/superAdmin/menu/menu.vue

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

Loading…
Cancel
Save