Commit cdae9b79 by xiaohai

企业通讯录公用侧边选择器

parent 6a94ff17
<template> <template>
<div class="administrative-estrutura-container"> <div class="administrative-estrutura-container">
<search-menu @handleSearchKey="handleSearchKey" @handleTreeSelection="handleTreeSelection"></search-menu> <search-menu @handleSearchKey="handleSearchKey" @handleTreeSelection="handleTreeSelection" :treeData="menuData"></search-menu>
<div class="af-right-container"> <div class="af-right-container">
<div class="af-right-header"> <div class="af-right-header">
<span class="title-span">人事部(5人)</span> <span class="title-span">人事部(5人)</span>
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
</template> </template>
<script> <script>
import searchMenu from "components/contacts/searchMenu"; import searchMenu from "components/contacts/searchMenu";
import { getRequest, postRequest, postJsonRequest } from '@/api/api';
export default { export default {
name: "administrativeEstrutura", name: "administrativeEstrutura",
components: { components: {
...@@ -70,9 +71,13 @@ ...@@ -70,9 +71,13 @@
data() { data() {
return { return {
showChildMember: false, showChildMember: false,
menuData: [],
pageSize: 100, pageSize: 100,
currentPage: 1, currentPage: 1,
total: 0, total: 0,
groupInfo: {
groupName: ""
},
employeeList: [ employeeList: [
{ {
employeeClerkId: 222, employeeClerkId: 222,
...@@ -113,6 +118,9 @@ ...@@ -113,6 +118,9 @@
] ]
}; };
}, },
beforeMount() {
this.getGroupData();
},
methods: { methods: {
handleSizeChange() {}, handleSizeChange() {},
handleCurrentChange() {}, handleCurrentChange() {},
...@@ -128,6 +136,22 @@ ...@@ -128,6 +136,22 @@
*/ */
handleTreeSelection(obj, node) { handleTreeSelection(obj, node) {
console.log(obj, node, "selection"); console.log(obj, node, "selection");
},
/**
* 获取分组架构
*/
getGroupData() {
let params = {
isStoreGroup: 0
};
getRequest("/haoban-manage-web/dept/deptListForCompany", params)
.then(res => {
this.menuData = res.data.result;
})
.catch(e => {
console.log(e, "error");
});
} }
} }
}; };
......
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