|
|
@ -153,9 +153,9 @@
|
|
|
|
<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")
|
|
|
|
#elseif($column.htmlType == "imageUpload")
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
<uploadImage v-model="form.${field}"/>
|
|
|
|
<imageUpload v-model="form.${field}"/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
#elseif($column.htmlType == "editor")
|
|
|
|
#elseif($column.htmlType == "editor")
|
|
|
|
<el-form-item label="${comment}">
|
|
|
|
<el-form-item label="${comment}">
|
|
|
@ -244,8 +244,8 @@ 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")
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload")
|
|
|
|
import UploadImage from '@/components/UploadImage';
|
|
|
|
import ImageUpload from '@/components/ImageUpload';
|
|
|
|
#break
|
|
|
|
#break
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
@ -260,8 +260,8 @@ 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")
|
|
|
|
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "imageUpload")
|
|
|
|
UploadImage,
|
|
|
|
ImageUpload,
|
|
|
|
#break
|
|
|
|
#break
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|
#end
|
|
|
|