<#include "/common/utils.ftl"> <#-- update-begin---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- --> <#if po.isShow =='Y' && po.fieldName != 'id' && po.fieldName !='delFlag' && isNotPidField(tableVo, po.fieldDbName)> <#-- update-end---author:chenrui ---date:20240108 for:[issues/5755]vue代码不加入逻辑删除字段---------- --> <#assign form_field_dictCode=""> <#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}"> <#if po.classType =='date'> picker="${po.extendParams.picker}" v-model:value="formData.${po.fieldName}" value-format="YYYY-MM-DD" style="width: 100%" <#if po.readonly=='Y'>disabled allow-clear /> <#elseif po.classType =='datetime'> disabled allow-clear /> <#elseif po.classType =='time'> <#assign need_time = true> disabled allow-clear /> <#elseif po.classType =='popup'> <#assign need_popup = true> <#assign sourceFields = po.dictField?default("")?trim?split(",")/> <#assign targetFields = po.dictText?default("")?trim?split(",")/> disabled<#rt> allow-clear /> <#elseif po.classType =='popup_dict'> <#assign need_popup_dict = true> <#assign sourceFields = po.dictField?default("")?trim?split(",")/> <#assign targetFields = po.dictText?default("")?trim?split(",")/> disabled /> <#elseif po.classType =='sel_depart'> <#assign need_dept = true> labelKey="${po.extendParams.text}" <#if po.extendParams?exists && po.extendParams.store?exists>rowKey="${po.extendParams.store}" <#if po.readonly=='Y'>disabled :multiple="${po.extendParams.multi?default('true')}" checkStrictly <#if po.readonly=='Y'>disabled allow-clear /> <#elseif po.classType =='switch'> <#assign need_switch = true> :options="${po.dictField}" <#if po.readonly=='Y'>disabled> <#elseif po.classType =='pca'> <#assign need_pca = true> disabled allow-clear /> <#elseif po.classType =='markdown'> <#assign need_markdown = true> disabled> <#elseif po.classType =='password'> disabled allow-clear /> <#elseif po.classType =='sel_user'> <#assign need_dept_user = true> <#-- update-begin---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> labelKey="${po.extendParams.text}" <#if po.extendParams?exists && po.extendParams.store?exists>rowKey="${po.extendParams.store}" <#if po.readonly=='Y'>disabled allow-clear /> <#-- update-end---author:chenrui ---date:20240102 for:[issue/#5711]修复用户选择组件在生成代码后变成部门用户选择组件---------- --> <#elseif po.classType =='textarea'> disabled/> <#elseif po.classType=='radio'> <#assign need_select_tag = true> disabled allow-clear /> <#elseif po.classType=='list'> <#assign need_select_tag = true> disabled allow-clear /> <#elseif po.classType=='list_multi'> <#assign need_multi = true> disabled :triggerChange="false"/> <#elseif po.classType=='checkbox'> <#assign need_checkbox = true> disabled allow-clear /> <#elseif po.classType=='sel_search'> <#assign need_search = true> disabled allow-clear /> <#elseif po.classType=='cat_tree'> <#assign need_category = true> back="${dashedToCamel(po.dictText)}" <#if po.readonly=='Y'>disabled @change="(value) => handleFormChange('${po.fieldName}', value)" allow-clear /> <#elseif po.fieldDbType=='int' || po.fieldDbType=='double' || po.fieldDbType=='BigDecimal'> disabled/> <#elseif po.classType=='file'> <#assign need_upload = true> disabled <#if po.uploadnum??>:maxCount=${po.uploadnum}> <#elseif po.classType=='image'> <#assign need_image_upload = true> :fileMax=${po.uploadnum}<#else>:fileMax="0" v-model:value="formData.${po.fieldName}" <#if po.readonly=='Y'>disabled> <#elseif po.classType=='umeditor'> <#assign need_editor = true> disabled :autoFocus="false"/> <#elseif po.fieldDbType=='Blob'> disabled allow-clear > <#elseif po.classType == 'sel_tree'> <#assign need_select_tree = true> <#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]}" pidValue="${po.dictField}" <#if po.readonly=='Y'>disabled v-model:value="formData.${po.fieldName}" @change="(value) => handleFormChange('${po.fieldName}', value)" allow-clear > <#else> disabled allow-clear >