版本:2.3
jeecg 数据字典 使用下拉框 生成的代码没有问题。
使用下拉搜索框 生成的代码发现没有数据。
对比一下下拉框生成的代码
<j-dict-select-tag type="list" v-decorator="['procType', validatorRules.procType]" :trigger-change="true" dictCode="bpm_process_type" placeholder="请选择流程类型" />
然后再看下拉搜索框生成的代码
<j-search-select-tag v-decorator="['billType']" dict="redev_formdesigner,fname,id" placeholder="请选择单据类型" />
很明显 少了这段
:trigger-change="true"
jeecg强调过,如果使用v-decorator 绑定数据,则需要加上 :trigger-change="true",如果使用v-model 绑定数据,则不需要加。加上后问题解决。