From 8fed98b00dfab9bb93989aebb39489a7948a6a72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E6=99=B6=E5=9C=9F=E8=B1=86?= <水晶土豆@devide> Date: Tue, 21 Nov 2023 21:13:00 +0800 Subject: [PATCH] Tue Nov 21 21:13:00 CST 2023 inscode --- src/component/humanResources/emp.vue | 9 +++++++-- src/component/humanResources/empSelectForm.vue | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/component/humanResources/emp.vue b/src/component/humanResources/emp.vue index b723f82..bd6ac7d 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 9593fe5..06a7ec8 100644 --- a/src/component/humanResources/empSelectForm.vue +++ b/src/component/humanResources/empSelectForm.vue @@ -58,7 +58,6 @@ onMounted(() => { -