Commit ee712546 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化部门管理

parent 45436cef
...@@ -386,13 +386,13 @@ export default { ...@@ -386,13 +386,13 @@ export default {
}); });
}, },
// 获取部门列表 // 获取部门列表
async getDeptListData(searchForm = {}) { async getDeptListData() {
this.deptLoading = true; this.deptLoading = true;
let res = await getDeptList({ let res = await getDeptList({
siteId: this.siteId, siteId: this.siteId,
page: 1, page: 1,
size: -1, size: -1,
...searchForm, name: `%${this.deptSearchVal}%`,
}); });
this.deptLoading = false; this.deptLoading = false;
let { code, data } = res.data; let { code, data } = res.data;
...@@ -535,8 +535,8 @@ export default { ...@@ -535,8 +535,8 @@ export default {
}); });
}, },
// 部门搜索 // 部门搜索
onSearch(value) { onSearch() {
this.getDeptListData({ name: `%${value}%` }); this.getDeptListData();
}, },
// 窗口搜索 // 窗口搜索
onSearchRight() { onSearchRight() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment