diff --git a/server/like-generator/src/main/resources/vue/edit.vue.vm b/server/like-generator/src/main/resources/vue/edit.vue.vm index a7fd3288..16a36137 100644 --- a/server/like-generator/src/main/resources/vue/edit.vue.vm +++ b/server/like-generator/src/main/resources/vue/edit.vue.vm @@ -31,14 +31,8 @@ - #elseif($column.htmlType=="number") - -
- -
-
#elseif($column.htmlType=="textarea") - + #if($column.dictType!="") {{ item.name }} @@ -135,9 +129,10 @@ }) const formData = reactive({ - ${primaryKey}: '', #foreach ($column in $columns) - #if($column.isEdit) + #if($column.javaField==$primaryKey) + ${primaryKey}: '', + #elseif($column.isEdit) #if($column.htmlType=="checkbox") ${column.javaField}: [], #else diff --git a/server/like-generator/src/main/resources/vue/index-tree.vue.vm b/server/like-generator/src/main/resources/vue/index-tree.vue.vm index 5aed7967..dbc16914 100644 --- a/server/like-generator/src/main/resources/vue/index-tree.vue.vm +++ b/server/like-generator/src/main/resources/vue/index-tree.vue.vm @@ -2,42 +2,42 @@
- #foreach ($column in $columns) - #if($column.isQuery==1) - #if($column.htmlType=="datetime") - - - - #elseif($column.htmlType=="select") - - - #if($column.dictType=="") - - #else - - - #end - - - #elseif($column.htmlType=="input") - - - - #end - #end + #foreach ($column in $columns) + #if($column.isQuery==1) + #if($column.htmlType=="datetime") + + + + #elseif($column.htmlType=="select") + + + #if($column.dictType=="") + + #else + + + #end + + + #elseif($column.htmlType=="input") + + + #end + #end + #end 查询 重置 @@ -63,27 +63,27 @@ row-key="${table.treePrimary}" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" > - #foreach ($column in $columns) - #if($column.isList) - #if($column.htmlType=="imageUpload") - #if($column.htmlType=="select" || $column.htmlType=="radio" || $column.htmlType=="checkbox") - - - - #elseif($column.htmlType=="imageUpload") - - - - #else - - #end + #foreach ($column in $columns) + #if($column.isList) + #if($column.htmlType=="imageUpload") + #if($column.htmlType=="select" || $column.htmlType=="radio" || $column.htmlType=="checkbox") + + + + #elseif($column.htmlType=="imageUpload") + + + + #else + #end #end - #end + #end + #end