【fix】处理JSelectBizComponent查询用户的问题
This commit is contained in:
+1
@@ -810,6 +810,7 @@ public class SysUserController {
|
||||
Page<SysUser> page = new Page<>(pageNo, pageSize);
|
||||
String depId = req.getParameter("depId");
|
||||
String username = req.getParameter(USER_NAME);
|
||||
|
||||
//根据部门ID查询,当前和下级所有的部门IDS
|
||||
List<String> subDepids = new ArrayList<>();
|
||||
//部门id为空时,查询我的部门下所有用户
|
||||
|
||||
@@ -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