【fix】处理JSelectBizComponent查询用户的问题
This commit is contained in:
@@ -10,7 +10,7 @@ export default {
|
||||
methods: {
|
||||
renderQueryItem () {
|
||||
return this.queryConfig.map(queryItem => {
|
||||
const { key, label, placeholder, dictCode, props, customRender } = queryItem
|
||||
const { key, label, queryModel, placeholder, dictCode, props, customRender } = queryItem
|
||||
const options = {
|
||||
props: {},
|
||||
on: {
|
||||
@@ -35,6 +35,8 @@ export default {
|
||||
input = customRender.call(this, { key, options, queryParam: this.queryParam })
|
||||
} else if (dictCode) {
|
||||
input = <j-dict-select-tag {...options} vModel={this.queryParam[key]} dictCode={dictCode} style="width:180px;"/>
|
||||
} else if (queryModel && queryModel === 'eq') {
|
||||
input = <a-input {...options} vModel={this.queryParam[key]}/>
|
||||
} else {
|
||||
input = <j-input {...options} vModel={this.queryParam[key]}/>
|
||||
}
|
||||
|
||||
@@ -587,9 +587,10 @@ export default {
|
||||
value: '3'
|
||||
}],
|
||||
|
||||
// 选择用户查询条件配置
|
||||
// 选择用户查询条件配置,queryModel有eq和like两种,
|
||||
// eq即精准查询,like即模糊查询,默认为like
|
||||
selectUserQueryConfig: [
|
||||
{ key: 'phone', label: '电话' }
|
||||
{ key: 'phone', label: '电话', queryModel: 'eq' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user