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

perf: 优化部门管理

parent 45436cef
......@@ -386,13 +386,13 @@ export default {
});
},
// 获取部门列表
async getDeptListData(searchForm = {}) {
async getDeptListData() {
this.deptLoading = true;
let res = await getDeptList({
siteId: this.siteId,
page: 1,
size: -1,
...searchForm,
name: `%${this.deptSearchVal}%`,
});
this.deptLoading = false;
let { code, data } = res.data;
......@@ -535,8 +535,8 @@ export default {
});
},
// 部门搜索
onSearch(value) {
this.getDeptListData({ name: `%${value}%` });
onSearch() {
this.getDeptListData();
},
// 窗口搜索
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