Commit 9bad4fad authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent 85630821
...@@ -342,13 +342,13 @@ export default { ...@@ -342,13 +342,13 @@ export default {
} }
}, },
}, },
watch: { // watch: {
deptSearchVal(newVal) { // deptSearchVal(newVal) {
if (newVal === "") { // if (newVal === "") {
this.getDeptListData(); // this.getDeptListData();
} // }
}, // },
}, // },
// 进入路由前 // 进入路由前
beforeRouteEnter(to, from, next) { beforeRouteEnter(to, from, next) {
if (from.path === "/department/adddepartment") { if (from.path === "/department/adddepartment") {
...@@ -386,13 +386,13 @@ export default { ...@@ -386,13 +386,13 @@ export default {
}); });
}, },
// 获取部门列表 // 获取部门列表
async getDeptListData(searchForm = {}) { async getDeptListData(searchForm = {}) {
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 ...searchForm,
}); });
this.deptLoading = false; this.deptLoading = false;
let { code, data } = res.data; let { code, data } = res.data;
......
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