diff --git a/src/component/humanResources/emp.vue b/src/component/humanResources/emp.vue index 8143de3739142b9a5517353e2191eeeea406f711..2b2b92a76edee8ef3c6f3e343897c112a1754af1 100644 --- a/src/component/humanResources/emp.vue +++ b/src/component/humanResources/emp.vue @@ -40,6 +40,7 @@ const treeInstance = ref([]) const treeValue = ref(["人事部", "财务部", "市场部", "销售一部", "销售三部", "技术部", "产品部", "设计部", "研发部", "客服部", "客服一部", "客服二部"]); const treeCheckChange = () => { treeValue.value = treeInstance.value?.getCheckedKeys(false); + getData(); } // pagination @@ -51,7 +52,6 @@ const tablePagination = reactive({ const getData = () => { getEmpList({ page: tablePagination.currentPage, limit: tablePagination.pageSize, deptName: JSON.stringify(treeValue.value) }).then((res) => { if (res.data.data.code === 10000) { - console.log(res.data.data); tableData.value = res.data.data.data; tablePagination.total = res.data.data.count; }else{