|
|
|
|
@ -23,11 +23,17 @@
|
|
|
|
|
<#assign form_tree_select = false>
|
|
|
|
|
<#assign form_switch=false>
|
|
|
|
|
<#assign pidFieldName = "">
|
|
|
|
|
|
|
|
|
|
<#assign form_select_search = false>
|
|
|
|
|
<#assign form_cat_tree = false>
|
|
|
|
|
<#assign form_cat_back = "">
|
|
|
|
|
<#assign form_pca = false>
|
|
|
|
|
<#assign form_editor = false>
|
|
|
|
|
<#assign form_md = false>
|
|
|
|
|
<#assign form_sel_tree = false>
|
|
|
|
|
<#list columns as po>
|
|
|
|
|
<#if po.isShow =='Y'>
|
|
|
|
|
<#assign form_field_dictCode="">
|
|
|
|
|
<#if po.dictTable?default("")?trim?length gt 1>
|
|
|
|
|
<#if po.dictTable?default("")?trim?length gt 1 && po.dictText?default("")?trim?length gt 1 && po.dictField?default("")?trim?length gt 1>
|
|
|
|
|
<#assign form_field_dictCode="${po.dictTable},${po.dictText},${po.dictField}">
|
|
|
|
|
<#elseif po.dictField?default("")?trim?length gt 1>
|
|
|
|
|
<#assign form_field_dictCode="${po.dictField}">
|
|
|
|
|
@ -87,10 +93,51 @@
|
|
|
|
|
<#elseif po.classType=='image'>
|
|
|
|
|
<#assign form_image = true>
|
|
|
|
|
<j-image-upload isMultiple <#if po.uploadnum??>:number=${po.uploadnum}</#if> v-decorator="['${po.fieldName}'${autoWriteRules(po)}]" <#if po.readonly=='Y'>disabled</#if>></j-image-upload>
|
|
|
|
|
<#elseif po.classType=='sel_search'>
|
|
|
|
|
<#assign form_select_search = true>
|
|
|
|
|
<j-search-select-tag v-decorator="['${po.fieldName}'${autoWriteRules(po)}]" dict="${form_field_dictCode}" <#if po.readonly=='Y'>disabled</#if> />
|
|
|
|
|
<#elseif po.classType=='cat_tree'>
|
|
|
|
|
<#assign form_cat_tree = true>
|
|
|
|
|
<j-category-select v-decorator="['${po.fieldName}'${autoWriteRules(po)}]" pcode="${po.dictField?default("")}" placeholder="请选择${po.filedComment}" <#if po.dictText?default("")?trim?length gt 1>back="${po.dictText}" @change="handleCategoryChange"</#if> <#if po.readonly=='Y'>disabled</#if>/>
|
|
|
|
|
<#if po.dictText?default("")?trim?length gt 1>
|
|
|
|
|
<#assign form_cat_back = "${po.dictText}">
|
|
|
|
|
</#if>
|
|
|
|
|
<#elseif po.classType =='pca'>
|
|
|
|
|
<#assign form_pca=true>
|
|
|
|
|
<j-area-linkage type="cascader" v-decorator="['${po.fieldName}'${autoWriteRules(po)}]" placeholder="请输入省市区" <#if po.readonly=='Y'>disabled</#if> />
|
|
|
|
|
<#elseif po.classType=='umeditor'>
|
|
|
|
|
<#assign form_editor = true>
|
|
|
|
|
<j-editor v-decorator="['${po.fieldName}',{trigger:'input'}]" <#if po.readonly=='Y'>disabled</#if>/>
|
|
|
|
|
<#elseif po.classType =='markdown'>
|
|
|
|
|
<#assign form_md=true>
|
|
|
|
|
<j-markdown-editor v-decorator="['${po.fieldName}']" id="${po.fieldName}"></j-markdown-editor>
|
|
|
|
|
<#elseif po.classType == 'sel_tree'>
|
|
|
|
|
<#assign form_tree_select = true>
|
|
|
|
|
<j-tree-select
|
|
|
|
|
ref="treeSelect"
|
|
|
|
|
placeholder="请选择${po.filedComment}"
|
|
|
|
|
v-decorator="['${po.fieldName}'${autoWriteRules(po)}]"
|
|
|
|
|
<#if po.dictText??>
|
|
|
|
|
<#if po.dictText?split(',')[2]?? && po.dictText?split(',')[0]??>
|
|
|
|
|
dict="${po.dictTable},${po.dictText?split(',')[2]},${po.dictText?split(',')[0]}"
|
|
|
|
|
<#elseif po.dictText?split(',')[1]??>
|
|
|
|
|
pidField="${po.dictText?split(',')[1]}"
|
|
|
|
|
<#elseif po.dictText?split(',')[3]??>
|
|
|
|
|
hasChildField="${po.dictText?split(',')[3]}"
|
|
|
|
|
</#if>
|
|
|
|
|
</#if>
|
|
|
|
|
pidValue="${po.dictField}"
|
|
|
|
|
<#if po.readonly=='Y'>disabled</#if>>
|
|
|
|
|
</j-tree-select>
|
|
|
|
|
<#else>
|
|
|
|
|
<a-input v-decorator="['${po.fieldName}'${autoWriteRules(po)}]" placeholder="请输入${po.filedComment}" <#if po.readonly=='Y'>disabled</#if>></a-input>
|
|
|
|
|
</#if>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
<#if form_cat_tree && form_cat_back?length gt 1>
|
|
|
|
|
<a-form-item v-show="false">
|
|
|
|
|
<a-input v-decorator="['${form_cat_back}']"></a-input>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</#if>
|
|
|
|
|
</#if>
|
|
|
|
|
</#list>
|
|
|
|
|
|
|
|
|
|
@ -131,7 +178,21 @@
|
|
|
|
|
<#if form_switch==true >
|
|
|
|
|
import JSwitch from '@/components/jeecg/JSwitch'
|
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
|
|
<#if form_select_search>
|
|
|
|
|
import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_cat_tree>
|
|
|
|
|
import JCategorySelect from '@/components/jeecg/JCategorySelect'
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_pca>
|
|
|
|
|
import JAreaLinkage from '@comp/jeecg/JAreaLinkage'
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_editor>
|
|
|
|
|
import JEditor from '@/components/jeecg/JEditor'
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_md>
|
|
|
|
|
import JMarkdownEditor from '@/components/jeecg/JMarkdownEditor/index'
|
|
|
|
|
</#if>
|
|
|
|
|
export default {
|
|
|
|
|
name: "${entityName}Modal",
|
|
|
|
|
components: {
|
|
|
|
|
@ -160,8 +221,23 @@
|
|
|
|
|
JSwitch,
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_tree_select>
|
|
|
|
|
JTreeSelect
|
|
|
|
|
JTreeSelect,
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_select_search>
|
|
|
|
|
JSearchSelectTag,
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_cat_tree>
|
|
|
|
|
JCategorySelect,
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_pca>
|
|
|
|
|
JAreaLinkage,
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_editor>
|
|
|
|
|
JEditor,
|
|
|
|
|
</#if>
|
|
|
|
|
<#if form_md>
|
|
|
|
|
JMarkdownEditor,
|
|
|
|
|
</#if>
|
|
|
|
|
},
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
|