|
|
@ -139,6 +139,10 @@
|
|
|
|
<el-form-item label="${comment}" prop="${field}">
|
|
|
|
<el-form-item label="${comment}" prop="${field}">
|
|
|
|
<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 == "uploadImage")
|
|
|
|
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
|
|
|
|
<uploadImage v-model="form.${field}"/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
#elseif($column.htmlType == "editor")
|
|
|
|
#elseif($column.htmlType == "editor")
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
<editor v-model="form.${field}" :min-height="192"/>
|
|
|
|
<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 Treeselect from "@riophae/vue-treeselect";
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
|
|
|
|
#foreach($column in $columns)
|
|
|
|
#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")
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor")
|
|
|
|
import Editor from '@/components/Editor';
|
|
|
|
import Editor from '@/components/Editor';
|
|
|
|
#break
|
|
|
|
#break
|
|
|
@ -236,6 +246,12 @@ export default {
|
|
|
|
name: "${BusinessName}",
|
|
|
|
name: "${BusinessName}",
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
#foreach($column in $columns)
|
|
|
|
#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")
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "editor")
|
|
|
|
Editor,
|
|
|
|
Editor,
|
|
|
|
#break
|
|
|
|
#break
|
|
|
|