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