diff --git a/src/component/humanResources/emp.vue b/src/component/humanResources/emp.vue index b723f82411d619fc25ac5bf0892e8b33c276e93f..bd6ac7d616fb10408b25c6783a15c41cfb12a3db 100644 --- a/src/component/humanResources/emp.vue +++ b/src/component/humanResources/emp.vue @@ -23,8 +23,7 @@ onMounted(() => { }))).tree; }) }) -const treeData = ref([ -]); +const treeData = ref([]); const defaultProps = { children: 'children', label: 'label', @@ -40,6 +39,7 @@ const treeInstance = ref([]) const treeValue = ref(["人事部", "财务部", "市场部", "销售一部", "销售三部", "技术部", "产品部", "设计部", "研发部", "客服部", "客服一部", "客服二部"]); const treeCheckChange = () => { treeValue.value = treeInstance.value?.getCheckedKeys(false); + empSelect.value.deptName = JSON.stringify(treeValue.value) getData(); } @@ -127,12 +127,17 @@ const contractSelect = ref({ page: '1', limit: '10' }); + const empSelect = ref({ page: '1', limit: '10', + deptName:'', employeeType: '', empState: '', id: '', + loginAccount:'', + userName:'', + gender:'', }) diff --git a/src/component/humanResources/empSelectForm.vue b/src/component/humanResources/empSelectForm.vue index 9593fe513db5dd5bac5a15f4808b795ecbb73134..06a7ec8757e5789ae06ef2651a03dc36026d594f 100644 --- a/src/component/humanResources/empSelectForm.vue +++ b/src/component/humanResources/empSelectForm.vue @@ -58,7 +58,6 @@ onMounted(() => { -