Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
haoban-3
Commits
7825da39
Commit
7825da39
authored
Aug 19, 2021
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 管理员列表
parent
7ccf1ed3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
53 deletions
+23
-53
adminList.vue
src/views/enterprise/adminList.vue
+23
-53
No files found.
src/views/enterprise/adminList.vue
View file @
7825da39
...
...
@@ -9,69 +9,31 @@
<
template
>
<div
class=
"daily-set-wrap "
>
<div
class=
"daily-set-content border-box"
>
<div
class=
"
admin-tip-body
"
>
<div
class=
"
company-title m-b-20 m-t-26 flex flex-space-between flex-align-center
"
>
<div
role=
"alert"
class=
"el-alert el-alert--info"
>
<i
class=
"el-alert__icon el-icon-info"
></i>
<div
class=
"el-alert__content"
>
<span
class=
"el-alert__title"
>
1.
超级管理员不可新增,默认为企业微信所添加的好办应用管理员,拥有好办所有管理权限;
>
1.
好办管理后台管理员需在企业微信后台添加,详情请见
<br
/>
2.企业微信后台新增管理员后,请
在工作台-
<el-button
type=
"text"
@
click=
"changeRoute"
>
通讯录
</el-button>
中
刷新企业成员,否则不会同步到好办管理员列表
2.企业微信后台新增管理员后,请
点击右侧【刷新】按钮
刷新企业成员,否则不会同步到好办管理员列表
</span>
</div>
</div>
<el-button
type=
"primary"
@
click=
"refresh"
>
刷新
</el-button>
</div>
<div
class=
"admin-table-body m-t-20"
>
<div
class=
"admin-thead bg-ebecf0"
>
<div
class=
"admin-th p-l-85 font-14 color-303133"
>
角色
</div>
</div>
<div
class=
"admin-role-body"
>
<template
v-for=
"(item, index) in roleList"
>
<div
:key=
"index + 'role'"
>
<div
class=
"admin-role-name line-50"
>
<el-row>
<el-col
:span=
"24"
><div
class=
"grid-content cursor-pointer"
@
click=
"changeToggle(item)"
>
<span
style=
"font-size:14px;"
:class=
"['iconfont cursor-pointer font-14 color-606266 p-l-30', item.expand ? 'iconjian' : 'iconjia']"
>
</span><span
class=
"font-14 color-606266 p-l-40"
>
{{
item
.
roleName
}}
</span>
</div></el-col
>
</el-row>
</div>
<div
v-if=
"item.expand"
>
<el-row
class=
"bg-ebecf0"
>
<el-col
:span=
"6"
><div
class=
"grid-content font-14 color-303133 row-th p-l-85"
>
姓名
</div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content font-14 color-303133 row-th"
>
手机号
</div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content font-14 color-303133 row-th"
>
部门
</div></el-col>
<el-col
:span=
"6"
><div
class=
"grid-content font-14 color-303133 row-th"
>
操作
</div></el-col>
</el-row>
<div
class=
"admin-role-user"
>
<el-row
class=
"line-50 border-set"
v-for=
"(child, ind) in item.roleUser"
:key=
"ind"
>
<el-col
class=
"line-one"
:span=
"6"
><div
class=
"grid-content p-l-85 hide-border"
>
{{
child
.
userName
||
'--'
}}
</div></el-col
>
<el-col
:span=
"6"
><div
class=
"grid-content"
>
{{
child
.
userPhone
||
'--'
}}
</div></el-col
>
<el-col
:span=
"6"
><div
class=
"grid-content"
>
{{
child
.
departmentName
||
'--'
}}
</div></el-col
>
<el-col
:span=
"6"
><div
class=
"grid-content"
>
{{
'--'
}}
</div></el-col
>
</el-row>
</div>
</div>
</div>
</
template
>
</div>
</div>
<el-table
:data=
"roleList"
style=
"margin-top:20px"
>
<el-table-column
prop=
"userName"
label=
"姓名"
>
</el-table-column>
<el-table-column
prop=
"userPhone"
label=
"手机号"
>
</el-table-column>
<el-table-column
prop=
"departmentName"
label=
"部门"
>
</el-table-column>
</el-table>
</div>
</div>
</
template
>
<
script
>
import
{
getRequest
}
from
'@/api/api'
;
// import { _debounce } from '@/common/js/public';
//
import showMsg from '@/common/js/showmsg';
import
showMsg
from
'@/common/js/showmsg'
;
import
errMsg
from
'@/common/js/error'
;
export
default
{
props
:
{},
...
...
@@ -99,9 +61,8 @@ export default {
* 获取数据
*/
getData
(
val
)
{
const
that
=
this
;
let
para
=
{
wxEnterpriseId
:
th
at
.
wxEnterpriseId
wxEnterpriseId
:
th
is
.
wxEnterpriseId
};
getRequest
(
'/haoban-manage3-web/admin-list'
,
para
)
.
then
(
res
=>
{
...
...
@@ -112,17 +73,26 @@ export default {
ele
.
expand
=
false
;
});
}
that
.
roleList
=
resData
.
result
||
[];
return
;
resData
.
result
.
forEach
(
i
=>
{
if
(
i
.
roleUser
.
length
)
{
this
.
roleList
=
this
.
roleList
.
concat
(
i
.
roleUser
);
}
});
}
errMsg
.
errorMsg
(
resData
);
})
.
catch
(
function
(
error
)
{
th
at
.
$message
.
error
({
th
is
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
});
});
},
refresh
()
{
getRequest
(
'/haoban-manage3-web/sync-qywx'
,
{}).
then
(
res
=>
{
showMsg
.
showmsg
(
'刷新成功'
,
'success'
);
this
.
getData
();
});
}
},
watch
:
{},
...
...
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