|
|
@ -187,11 +187,11 @@ |
|
|
|
<el-input v-model="form.${field}" placeholder="请输入${comment}" /> |
|
|
|
<el-input v-model="form.${field}" placeholder="请输入${comment}" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "imageUpload") |
|
|
|
#elseif($column.htmlType == "imageUpload") |
|
|
|
<el-form-item label="${comment}"> |
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
<image-upload v-model="form.${field}"/> |
|
|
|
<image-upload v-model="form.${field}"/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "fileUpload") |
|
|
|
#elseif($column.htmlType == "fileUpload") |
|
|
|
<el-form-item label="${comment}"> |
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
<file-upload v-model="form.${field}"/> |
|
|
|
<file-upload v-model="form.${field}"/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "editor") |
|
|
|
#elseif($column.htmlType == "editor") |
|
|
@ -205,8 +205,11 @@ |
|
|
|
v-for="dict in dict.type.${dictType}" |
|
|
|
v-for="dict in dict.type.${dictType}" |
|
|
|
:key="dict.value" |
|
|
|
:key="dict.value" |
|
|
|
:label="dict.label" |
|
|
|
:label="dict.label" |
|
|
|
#if($column.javaType == "Integer" || $column.javaType == "Long"):value="parseInt(dict.value)"#else:value="dict.value"#end |
|
|
|
#if($column.javaType == "Integer" || $column.javaType == "Long") |
|
|
|
|
|
|
|
:value="parseInt(dict.value)" |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
:value="dict.value" |
|
|
|
|
|
|
|
#end |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -217,7 +220,7 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "checkbox" && "" != $dictType) |
|
|
|
#elseif($column.htmlType == "checkbox" && "" != $dictType) |
|
|
|
<el-form-item label="${comment}"> |
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
<el-checkbox-group v-model="form.${field}"> |
|
|
|
<el-checkbox-group v-model="form.${field}"> |
|
|
|
<el-checkbox |
|
|
|
<el-checkbox |
|
|
|
v-for="dict in dict.type.${dictType}" |
|
|
|
v-for="dict in dict.type.${dictType}" |
|
|
@ -228,24 +231,27 @@ |
|
|
|
</el-checkbox-group> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "checkbox" && $dictType) |
|
|
|
#elseif($column.htmlType == "checkbox" && $dictType) |
|
|
|
<el-form-item label="${comment}"> |
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
<el-checkbox-group v-model="form.${field}"> |
|
|
|
<el-checkbox-group v-model="form.${field}"> |
|
|
|
<el-checkbox>请选择字典生成</el-checkbox> |
|
|
|
<el-checkbox>请选择字典生成</el-checkbox> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-checkbox-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "radio" && "" != $dictType) |
|
|
|
#elseif($column.htmlType == "radio" && "" != $dictType) |
|
|
|
<el-form-item label="${comment}"> |
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
<el-radio-group v-model="form.${field}"> |
|
|
|
<el-radio-group v-model="form.${field}"> |
|
|
|
<el-radio |
|
|
|
<el-radio |
|
|
|
v-for="dict in dict.type.${dictType}" |
|
|
|
v-for="dict in dict.type.${dictType}" |
|
|
|
:key="dict.value" |
|
|
|
:key="dict.value" |
|
|
|
#if($column.javaType == "Integer" || $column.javaType == "Long"):label="parseInt(dict.value)"#else:label="dict.value"#end |
|
|
|
#if($column.javaType == "Integer" || $column.javaType == "Long") |
|
|
|
|
|
|
|
:label="parseInt(dict.value)" |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
:label="dict.value" |
|
|
|
|
|
|
|
#end |
|
|
|
>{{dict.label}}</el-radio> |
|
|
|
>{{dict.label}}</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
#elseif($column.htmlType == "radio" && $dictType) |
|
|
|
#elseif($column.htmlType == "radio" && $dictType) |
|
|
|
<el-form-item label="${comment}"> |
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
<el-radio-group v-model="form.${field}"> |
|
|
|
<el-radio-group v-model="form.${field}"> |
|
|
|
<el-radio label="1">请选择字典生成</el-radio> |
|
|
|
<el-radio label="1">请选择字典生成</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-radio-group> |
|
|
@ -335,7 +341,7 @@ export default { |
|
|
|
#set($comment=$column.columnComment) |
|
|
|
#set($comment=$column.columnComment) |
|
|
|
#end |
|
|
|
#end |
|
|
|
$column.javaField: [ |
|
|
|
$column.javaField: [ |
|
|
|
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select")"change"#else"blur"#end } |
|
|
|
{ required: true, message: "$comment不能为空", trigger: #if($column.htmlType == "select" || $column.htmlType == "radio")"change"#else"blur"#end } |
|
|
|
]#if($foreach.count != $columns.size()),#end |
|
|
|
]#if($foreach.count != $columns.size()),#end |
|
|
|
#end |
|
|
|
#end |
|
|
|
#end |
|
|
|
#end |
|
|
@ -398,10 +404,7 @@ export default { |
|
|
|
reset() { |
|
|
|
reset() { |
|
|
|
this.form = { |
|
|
|
this.form = { |
|
|
|
#foreach ($column in $columns) |
|
|
|
#foreach ($column in $columns) |
|
|
|
#if($column.htmlType == "radio") |
|
|
|
#if($column.htmlType == "checkbox") |
|
|
|
$column.javaField: #if($column.javaType == "Integer" || $column.javaType == "Long")0#else"0"#end#if($foreach.count != $columns.size()),#end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#elseif($column.htmlType == "checkbox") |
|
|
|
|
|
|
|
$column.javaField: []#if($foreach.count != $columns.size()),#end |
|
|
|
$column.javaField: []#if($foreach.count != $columns.size()),#end |
|
|
|
#else |
|
|
|
#else |
|
|
|
$column.javaField: null#if($foreach.count != $columns.size()),#end |
|
|
|
$column.javaField: null#if($foreach.count != $columns.size()),#end |
|
|
|