【fix 66410】解决按部门选择用户组件,选择部分之后发请求不带搜索参数

This commit is contained in:
danshihao
2023-03-13 14:35:04 +08:00
parent 0b242c63dd
commit 5c47abe62e
@@ -289,7 +289,8 @@ export default {
// 根据选择的id来查询用户信息 // 根据选择的id来查询用户信息
initQueryUserByDepId (selectedDepIds) { initQueryUserByDepId (selectedDepIds) {
this.loading = true this.loading = true
return queryUserByDepId({ id: selectedDepIds.toString() }).then((res) => { const params = this.getQueryParams()
return queryUserByDepId({ id: selectedDepIds.toString(), ...params }).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result this.dataSource = res.result
this.ipagination.total = res.result.length this.ipagination.total = res.result.length