mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
调整代码生成器模版
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
check-strictly
|
||||
/>
|
||||
</el-form-item>
|
||||
#end
|
||||
#if($column.htmlType=="input")
|
||||
#elseif($column.htmlType=="input")
|
||||
<el-form-item label="${column.columnComment}" prop="${column.javaField}">
|
||||
<el-input v-model="formData.name" placeholder="请输入${column.columnComment}" />
|
||||
</el-form-item>
|
||||
|
||||
@@ -19,15 +19,15 @@
|
||||
clearable
|
||||
>
|
||||
#if($column.dictType=="")
|
||||
<el-option label="请选择字典生成" value="" />
|
||||
<el-option label="请选择字典生成" value="" />
|
||||
#else
|
||||
<el-option label="全部" value="" />
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.${column.dictType}"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
<el-option label="全部" value="" />
|
||||
<el-option
|
||||
v-for="(item, index) in dictData.${column.dictType}"
|
||||
:key="index"
|
||||
:label="item.name"
|
||||
:value="item.value"
|
||||
/>
|
||||
#end
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -63,9 +63,8 @@
|
||||
row-key="${table.treePrimary}"
|
||||
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
|
||||
>
|
||||
#foreach ($column in $columns)
|
||||
#if($column.isList)
|
||||
#if($column.htmlType=="imageUpload")
|
||||
#foreach ($column in $columns)
|
||||
#if($column.isList)
|
||||
#if($column.htmlType=="select" || $column.htmlType=="radio" || $column.htmlType=="checkbox")
|
||||
<el-table-column label="${column.columnComment}" prop="${column.javaField}" min-width="100">
|
||||
<template #default="{ row }">
|
||||
@@ -82,8 +81,7 @@
|
||||
<el-table-column label="${column.columnComment}" prop="${column.javaField}" min-width="100" />
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
#end
|
||||
<el-table-column label="操作" width="160" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button
|
||||
|
||||
Reference in New Issue
Block a user