提交 8fed98b0 编写于 作者: 水晶土豆

Tue Nov 21 21:13:00 CST 2023 inscode

上级 2f6e59e8
...@@ -23,8 +23,7 @@ onMounted(() => { ...@@ -23,8 +23,7 @@ onMounted(() => {
}))).tree; }))).tree;
}) })
}) })
const treeData = ref([ const treeData = ref([]);
]);
const defaultProps = { const defaultProps = {
children: 'children', children: 'children',
label: 'label', label: 'label',
...@@ -40,6 +39,7 @@ const treeInstance = ref([]) ...@@ -40,6 +39,7 @@ const treeInstance = ref([])
const treeValue = ref(["人事部", "财务部", "市场部", "销售一部", "销售三部", "技术部", "产品部", "设计部", "研发部", "客服部", "客服一部", "客服二部"]); const treeValue = ref(["人事部", "财务部", "市场部", "销售一部", "销售三部", "技术部", "产品部", "设计部", "研发部", "客服部", "客服一部", "客服二部"]);
const treeCheckChange = () => { const treeCheckChange = () => {
treeValue.value = treeInstance.value?.getCheckedKeys(false); treeValue.value = treeInstance.value?.getCheckedKeys(false);
empSelect.value.deptName = JSON.stringify(treeValue.value)
getData(); getData();
} }
...@@ -127,12 +127,17 @@ const contractSelect = ref({ ...@@ -127,12 +127,17 @@ const contractSelect = ref({
page: '1', page: '1',
limit: '10' limit: '10'
}); });
const empSelect = ref({ const empSelect = ref({
page: '1', page: '1',
limit: '10', limit: '10',
deptName:'',
employeeType: '', employeeType: '',
empState: '', empState: '',
id: '', id: '',
loginAccount:'',
userName:'',
gender:'',
}) })
......
...@@ -58,7 +58,6 @@ onMounted(() => { ...@@ -58,7 +58,6 @@ onMounted(() => {
</template> </template>
</el-input> </el-input>
</el-form-item> </el-form-item>
</template> </template>
<style scoped> <style scoped>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册