Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
office-web
Commits
cdae9b79
Commit
cdae9b79
authored
Dec 14, 2018
by
xiaohai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业通讯录公用侧边选择器
parent
6a94ff17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
+25
-1
searchMenu.vue
src/components/contacts/searchMenu.vue
+0
-0
administrativeFrame.vue
src/views/contacts/administrativeFrame.vue
+25
-1
No files found.
src/components/contacts/searchMenu.vue
View file @
cdae9b79
This diff is collapsed.
Click to expand it.
src/views/contacts/administrativeFrame.vue
View file @
cdae9b79
<
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"
);
});
}
}
}
}
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment