|
|
|
@ -139,6 +139,10 @@ |
|
|
|
|
<el-form-item label="${comment}" prop="${field}"> |
|
|
|
|
<el-input v-model="form.${field}" placeholder="请输入${comment}" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
#elseif($column.htmlType == "uploadImage") |
|
|
|
|
<el-form-item label="${comment}"> |
|
|
|
|
<uploadImage v-model="form.${field}"/> |
|
|
|
|
</el-form-item> |
|
|
|
|
#elseif($column.htmlType == "editor") |
|
|
|
|
<el-form-item label="${comment}"> |
|
|
|
|
<editor v-model="form.${field}" :min-height="192"/> |
|
|
|
@ -226,6 +230,12 @@ import { list${BusinessName}, get${BusinessName}, del${BusinessName}, add${Busin |
|
|
|
|
import Treeselect from "@riophae/vue-treeselect"; |
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; |
|
|
|
|
#foreach($column in $columns) |
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "uploadImage") |
|
|
|
|
import UploadImage from '@/components/UploadImage'; |
|
|
|
|
#break |
|
|
|
|
#end |
|
|
|
|
#end |
|
|
|
|
#foreach($column in $columns) |
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor") |
|
|
|
|
import Editor from '@/components/Editor'; |
|
|
|
|
#break |
|
|
|
@ -236,6 +246,12 @@ export default { |
|
|
|
|
name: "${BusinessName}", |
|
|
|
|
components: { |
|
|
|
|
#foreach($column in $columns) |
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "uploadImage") |
|
|
|
|
UploadImage, |
|
|
|
|
#break |
|
|
|
|
#end |
|
|
|
|
#end |
|
|
|
|
#foreach($column in $columns) |
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor") |
|
|
|
|
Editor, |
|
|
|
|
#break |
|
|
|
|