Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e4e14a34
authored
Nov 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
部门回显
1 parent
8f8149b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
438 additions
and
428 deletions
html/employee/detail.html
html/employee/detail.html
View file @
e4e14a3
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"zh"
>
<html
lang=
"zh"
>
<head>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<title>
员工管理
</title>
</head>
<style>
.sub-bg-white
{
width
:
100%
;
background-color
:
#f4f5fa
;
padding-top
:
8px
;
}
<head>
.sub-title
{
<meta
charset=
"utf-8"
/>
margin-top
:
21px
;
<meta
content=
"IE=edge"
/>
}
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"description"
content=
"广联帐户管理中心-员工管理"
/>
<meta
name=
"author"
content=
"GLSX Web Team"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<title>
员工管理
</title>
</head>
<style>
.sub-bg-white
{
width
:
100%
;
background-color
:
#f4f5fa
;
padding-top
:
8px
;
}
.sub
-title
{
.content
-title
{
margin-top
:
21
px
;
margin-bottom
:
20
px
;
}
}
.content-title
{
.fixed-btn
{
margin-bottom
:
20px
;
position
:
fixed
;
}
right
:
10px
;
bottom
:
20px
;
background-color
:
#409eff
;
border-radius
:
20px
;
text-align
:
center
;
}
.fixed-btn
{
.fixed-btn
a
{
position
:
fixed
;
display
:
block
;
right
:
10px
;
width
:
40px
;
bottom
:
20px
;
padding
:
5px
;
background-color
:
#409eff
;
color
:
#fff
;
border-radius
:
20px
;
border-bottom
:
1px
solid
#fff
;
text-align
:
center
;
}
}
.fixed-btn
a
{
.fixed-btn
a
:last-child
{
display
:
block
;
border-bottom
:
none
;
width
:
40px
;
}
padding
:
5px
;
color
:
#fff
;
border-bottom
:
1px
solid
#fff
;
}
.fixed-btn
a
:last-child
{
.topwrap
,
border-bottom
:
none
;
.topmidwrap
,
}
.topbottomwrap
,
.bottomwrap
{
/* margin: 0 20px 0; */
background-color
:
#fff
;
position
:
relative
;
min-height
:
238px
;
}
.topwrap
,
.topwrap
,
.topmidwrap
,
.topmidwrap
{
.topbottomwrap
,
/* min-height: calc(100vh - 480px); */
.bottomwrap
{
padding-bottom
:
10px
;
/* margin: 0 20px 0; */
}
background-color
:
#fff
;
position
:
relative
;
min-height
:
238px
;
}
.topwrap
,
.topbottomwrap
{
.topmidwrap
{
min-height
:
calc
(
100vh
-
200px
);
/* min-height: calc(100vh - 480px); */
}
padding-bottom
:
10px
;
}
.topbottomwrap
{
.grayLine
{
min-height
:
calc
(
100vh
-
200px
);
position
:
absolute
;
}
left
:
0
;
top
:
48px
;
background-color
:
#d8d8d8
;
width
:
100%
;
height
:
1px
;
}
.grayLine
{
.layui-tab-content
{
position
:
absolute
;
position
:
relative
;
left
:
0
;
}
top
:
48px
;
background-color
:
#d8d8d8
;
width
:
100%
;
height
:
1px
;
}
.layui-tab-content
{
.layui-no-data
{
position
:
relative
;
width
:
100%
;
}
height
:
500px
;
}
.layui-no-data
{
.layui-no-data
.no-data
{
width
:
100%
;
position
:
absolute
;
height
:
500px
;
top
:
50%
;
}
height
:
50%
;
width
:
100%
;
text-align
:
center
;
font-size
:
14px
;
line-height
:
22px
;
}
.layui-no-data
.no-data
{
.layui-no-data
.no-data
div
{
position
:
absolute
;
margin-top
:
12px
;
top
:
50%
;
}
height
:
50%
;
width
:
100%
;
text-align
:
center
;
font-size
:
14px
;
line-height
:
22px
;
}
.layui-no-data
.no-data
div
{
.show
{
margin-top
:
12px
;
display
:
inline-block
;
}
}
.show
{
.hide
{
display
:
inline-block
;
display
:
none
;
}
}
.hide
{
.wrapper
.employeeDetail
.layui-this
{
display
:
none
;
color
:
#5850ff
;
}
background-color
:
#f4f6fc
;
}
.wrapper
.employeeDetail
.layui-this
{
.wrapper
,
color
:
#5850ff
;
.detail
{
background-color
:
#f4f6fc
;
padding-bottom
:
100px
;
}
}
</style>
.wrapper
,
<body>
.detail
{
<div
id=
"app"
>
padding-bottom
:
100px
;
<main
class=
"wrapper detail"
>
}
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
</style>
<ul
class=
"layui-tab-title employeeDetail"
>
<li
lay-id=
"1"
style=
"padding: 0; width: 90px; margin-right: 20px"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"2"
style=
"padding: 0; width: 90px; margin-right: 20px"
>
账户权限
</li>
<li
lay-id=
"3"
style=
"padding: 0; width: 90px"
>
修改记录
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"topwrap"
>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"basic"
>
员工基本信息
<div
class=
"title-right"
id=
"merchantName"
></div>
</h3>
<body>
<div
class=
"layui-form-item"
>
<div
id=
"app"
>
<label
class=
"layui-form-label"
>
姓名:
</label>
<main
class=
"wrapper detail"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffName"
></div>
<ul
class=
"layui-tab-title employeeDetail"
>
</div>
<li
lay-id=
"1"
style=
"padding: 0; width: 90px; margin-right: 20px"
class=
"layui-this"
>
基本信息
</li>
<li
lay-id=
"2"
style=
"padding: 0; width: 90px; margin-right: 20px"
>
账户权限
</li>
<li
lay-id=
"3"
style=
"padding: 0; width: 90px"
>
修改记录
</li>
</ul>
<div
class=
"layui-tab-content"
>
<div
class=
"layui-tab-item layui-show"
>
<div
class=
"topwrap"
>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"basic"
>
员工基本信息
<div
class=
"title-right"
id=
"merchantName"
></div>
</h3>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
姓名:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffName"
></div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
登录手机号:
</label
>
<label
class=
"layui-form-label"
>
登录手机号:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffPhone"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"staffPhone"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
企微号:
</label
>
<label
class=
"layui-form-label"
>
企微号:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"entmicroName"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"entmicroName"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
职务:
</label
>
<label
class=
"layui-form-label"
>
职务:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffJob"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"staffJob"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
角色名称:
</label
>
<label
class=
"layui-form-label"
>
角色名称:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"roleName"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"roleName"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
创建人:
</label
>
<label
class=
"layui-form-label"
>
创建人:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"createdAccount"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"createdAccount"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
所属部门:
</label
>
<label
class=
"layui-form-label"
>
所属部门:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"department"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"department"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
员工标签:
</label
>
<label
class=
"layui-form-label"
>
员工标签:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"staffLabel"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"staffLabel"
><
/div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
微信昵称:
</label
>
<label
class=
"layui-form-label"
>
微信昵称:
</label
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"weChatNickName"
></div
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"weChatNickName"
><
/div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
微信手机号:
</label>
<label
class=
"layui-form-label"
>
微信手机号:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"weChatPhone"
></div>
<div
class=
"layui-form-mid layui-word-aux"
id=
"weChatPhone"
></div>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
微信openid:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-form-mid layui-word-aux"
id=
"weChatOpenId"
></div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"topmidwrap"
>
<label
class=
"layui-form-label"
>
微信openid:
</label>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"visibleMerchant"
>
可见下级商户
</h3>
<!-- <ul id="merchantTree" class="ztree wrapper-tree"></ul> -->
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<
div
class=
"layui-form-mid layui-word-aux"
id=
"weChatOpenId"
></div
>
<
ul
id=
"visibleInferiorMerName"
></ul
>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"topmidwrap"
>
<div
class=
"layui-tab-item"
>
<div
class=
"grayLine"
></div>
<div
class=
"topbottomwrap"
>
<h3
class=
"content-title sub-title"
id=
"visibleMerchant"
>
可见下级商户
</h3>
<div
class=
"grayLine"
></div>
<!-- <ul id="merchantTree" class="ztree wrapper-tree"></ul> -->
<h3
class=
"content-title sub-title"
id=
"accountAuth"
>
账户权限
</h3>
<div
class=
"layui-input-block"
>
<div
class=
"layui-tab tabmutiple-content"
style=
"padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px"
lay-filter=
"roleAuth"
>
<ul
id=
"visibleInferiorMerName"
></ul>
<ul
class=
"layui-tab-title"
></ul>
</div>
<div
class=
"layui-tab-content"
></div>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<div
class=
"topbottomwrap"
>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"accountAuth"
>
账户权限
</h3>
<div
class=
"layui-tab tabmutiple-content"
style=
"padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px"
lay-filter=
"roleAuth"
>
<ul
class=
"layui-tab-title"
></ul>
<div
class=
"layui-tab-content"
></div>
</div>
</div>
</div>
</div>
</div
>
<div
class=
"layui-tab-item"
>
<div
class=
"layui-tab-item
"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 80px; padding: 0 20px
"
>
<div
class=
"bottomwrap"
style=
"margin-bottom: 80px; padding: 0 20px"
>
<div
class=
"grayLine"
></div
>
<div
class=
"grayLine"
></div
>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3
>
<h3
class=
"content-title sub-title"
id=
"record"
>
修改记录
</h3
>
<div
class=
"layui-tab tabmutiple-content"
>
<div
class=
"layui-tab tabmutiple-content
"
>
<div
class=
"table-page
"
>
<div
class=
"table-page"
>
<table
class=
"layui-table"
id=
"recordTable"
></table
>
<table
class=
"layui-table"
id=
"recordTable"
></table
>
<div
id=
"recordPage"
class=
"align-left"
></div
>
<
div
id=
"recordPage"
class=
"align-left"
><
/div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"sub-bg-white"
>
<div
class=
"sub-bg-white"
>
<div
class=
"footer-close"
>
<div
class=
"footer-close"
>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"return"
>
关闭
</button>
<button
type=
"button"
class=
"layui-btn layui-btn-normal"
id=
"return"
>
关闭
</button>
</div>
</div>
<!-- <div class="fixed-btn">
<!-- <div class="fixed-btn">
<a id="basicBtn">基本信息</a>
<a id="basicBtn">基本信息</a>
<a id="accountAuthBtn">账户权限</a>
<a id="accountAuthBtn">账户权限</a>
<a id="recordBtn">修改记录</a>
<a id="recordBtn">修改记录</a>
</div> -->
</div> -->
</div>
</div>
</main>
</main>
</div>
</div>
<script
src=
"https://img02.glsx.com.cn/layui/layui.js"
></script>
<script
src=
"https://img02.glsx.com.cn/layui/layui.js"
></script>
<script
src=
"/js/load.js"
></script>
<script
src=
"/js/load.js"
></script>
<script>
<script>
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
layui
.
use
([
'request'
,
'helper'
,
'treeTab'
,
'table'
,
'laypage'
],
function
()
{
/** 变量 */
/** 变量 */
var
$
=
layui
.
$
var
$
=
layui
.
$
var
request
=
layui
.
request
var
request
=
layui
.
request
var
helper
=
layui
.
helper
var
helper
=
layui
.
helper
var
id
=
qs
(
'id'
)
var
id
=
qs
(
'id'
)
var
treeTab
=
layui
.
treeTab
var
treeTab
=
layui
.
treeTab
var
table
=
layui
.
table
var
table
=
layui
.
table
var
laypage
=
layui
.
laypage
var
laypage
=
layui
.
laypage
var
merchantId
=
qs
(
'merchantId'
)
var
merchantId
=
qs
(
'merchantId'
)
var
basicArr
=
[
'staffName'
,
'staffPhone'
,
'entmicroName'
,
'staffJob'
,
'roleName'
,
'roleCode'
,
'merchantName'
,
'createdAccount'
,
'department'
,
'staffLabel'
,
'weChatNickName'
,
'weChatPhone'
,
'weChatOpenId'
]
var
basicArr
=
[
var
employeeData
=
{}
'staffName'
,
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
'staffPhone'
,
'entmicroName'
,
'staffJob'
,
'roleName'
,
'roleCode'
,
'merchantName'
,
'createdAccount'
,
'department'
,
'staffLabel'
,
'weChatNickName'
,
'weChatPhone'
,
'weChatOpenId'
]
var
employeeData
=
{}
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
var
recordPage
=
{
var
recordPage
=
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
pageSize
:
10
}
}
var
recordPageOptions
=
{
var
recordPageOptions
=
{
elem
:
'recordPage'
,
elem
:
'recordPage'
,
groups
:
5
,
groups
:
5
,
layout
:
[
'count'
,
'page'
,
'skip'
],
layout
:
[
'count'
,
'page'
,
'skip'
],
jump
:
function
(
obj
,
first
)
{
jump
:
function
(
obj
,
first
)
{
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageNum
=
obj
.
curr
recordPage
.
pageSize
=
obj
.
limit
recordPage
.
pageSize
=
obj
.
limit
//首次不执行
//首次不执行
if
(
!
first
)
{
if
(
!
first
)
{
//do something
//do something
getRecordTable
()
getRecordTable
()
}
}
}
}
}
}
var
recordTable
=
table
.
render
({
var
recordTable
=
table
.
render
({
elem
:
'#recordTable'
,
elem
:
'#recordTable'
,
page
:
false
,
page
:
false
,
skin
:
'nob'
,
skin
:
'nob'
,
height
:
'full-300'
,
height
:
'full-300'
,
cols
:
[
cols
:
[
[
[
{
{
field
:
'index'
,
field
:
'index'
,
title
:
'序号'
,
title
:
'序号'
,
align
:
'center'
,
align
:
'center'
,
width
:
60
width
:
60
},
},
{
{
field
:
'operator'
,
field
:
'operator'
,
title
:
'登录账户'
,
title
:
'登录账户'
,
align
:
'center'
align
:
'center'
},
},
{
{
field
:
'productName'
,
field
:
'productName'
,
title
:
'登录产品'
,
title
:
'登录产品'
,
align
:
'center'
align
:
'center'
},
},
{
{
field
:
'ip'
,
field
:
'ip'
,
title
:
'登录IP'
,
title
:
'登录IP'
,
align
:
'center'
align
:
'center'
},
},
{
{
field
:
'modifyContent'
,
field
:
'modifyContent'
,
title
:
'修改内容'
,
title
:
'修改内容'
,
align
:
'center'
,
align
:
'center'
,
width
:
220
width
:
220
},
},
{
{
field
:
'userName'
,
field
:
'userName'
,
title
:
'操作人'
,
title
:
'操作人'
,
align
:
'center'
,
align
:
'center'
,
width
:
180
width
:
180
},
},
{
{
field
:
'createdTime'
,
field
:
'createdTime'
,
title
:
'操作时间'
,
title
:
'操作时间'
,
align
:
'center'
,
align
:
'center'
,
width
:
200
width
:
200
}
}
]
]
]
]
})
})
/** 调用方法 */
/** 调用方法 */
getById
()
getById
()
getRecordTable
()
getRecordTable
()
/** 触发事件 */
/** 触发事件 */
$
(
'#return'
).
on
(
'click'
,
function
()
{
$
(
'#return'
).
on
(
'click'
,
function
()
{
if
(
window
.
location
.
hash
)
{
if
(
window
.
location
.
hash
)
{
window
.
history
.
back
(
-
1
)
window
.
location
.
hash
=
''
}
window
.
history
.
back
(
-
1
)
window
.
history
.
back
(
-
1
)
window
.
location
.
hash
=
''
})
}
window
.
history
.
back
(
-
1
)
})
$
(
'#basicBtn'
).
on
(
'click'
,
function
()
{
$
(
'#basicBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#basic'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#basic'
).
scrollIntoView
(
true
)
})
})
$
(
'#accountAuthBtn'
).
on
(
'click'
,
function
()
{
$
(
'#accountAuthBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#accountAuth'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#accountAuth'
).
scrollIntoView
(
true
)
})
})
$
(
'#recordBtn'
).
on
(
'click'
,
function
()
{
$
(
'#recordBtn'
).
on
(
'click'
,
function
()
{
document
.
querySelector
(
'#record'
).
scrollIntoView
(
true
)
document
.
querySelector
(
'#record'
).
scrollIntoView
(
true
)
})
})
/** 定义方法 */
/** 定义方法 */
// 查询员工详情
// 查询员工详情
function
getById
()
{
function
getById
()
{
var
params
=
{
id
:
id
,
method
:
'merchants.api.staff.staffSearchRequest'
}
var
params
=
{
id
:
id
,
method
:
'merchants.api.staff.staffSearchRequest'
}
request
(
params
,
function
(
res
)
{
request
(
params
,
function
(
res
)
{
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
employeeData
=
helper
.
clone
(
true
,
res
.
data
)
for
(
var
i
in
basicArr
)
{
for
(
var
i
in
basicArr
)
{
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
employeeData
[
basicArr
[
i
]]
?
employeeData
[
basicArr
[
i
]]
:
'无'
)
$
(
'#'
+
[
basicArr
[
i
]]).
text
(
employeeData
[
basicArr
[
i
]]
?
employeeData
[
basicArr
[
i
]]
:
'无'
)
}
}
// 所属部门
// 所属部门
if
(
employeeData
.
department
)
{
//
if (employeeData.department) {
switch
(
employeeData
.
department
)
{
switch
(
employeeData
.
department
)
{
case
0
:
case
0
:
$
(
'#department'
).
text
(
'其他'
)
$
(
'#department'
).
text
(
'其他'
)
break
;
break
case
1
:
case
1
:
$
(
'#department'
).
text
(
'销售部'
)
$
(
'#department'
).
text
(
'销售部'
)
break
;
break
case
2
:
case
2
:
$
(
'#department'
).
text
(
'售后部'
)
$
(
'#department'
).
text
(
'售后部'
)
break
;
break
case
3
:
case
3
:
$
(
'#department'
).
text
(
'客服部'
)
$
(
'#department'
).
text
(
'客服部'
)
break
;
break
case
4
:
case
4
:
$
(
'#department'
).
text
(
'续保部'
)
$
(
'#department'
).
text
(
'续保部'
)
break
;
break
default
:
default
:
$
(
'#department'
).
text
(
'无'
)
$
(
'#department'
).
text
(
'无'
)
}
}
// }
}
// 员工标签
// 员工标签
if
(
employeeData
.
staffLabel
)
{
if
(
employeeData
.
staffLabel
)
{
employeeData
.
staffLabel
=
employeeData
.
staffLabel
.
split
(
','
)
employeeData
.
staffLabel
=
employeeData
.
staffLabel
.
split
(
','
)
console
.
log
(
employeeData
.
staffLabel
,
'0'
)
console
.
log
(
employeeData
.
staffLabel
,
'0'
);
employeeData
.
staffLabel
.
map
((
item
,
index
)
=>
{
employeeData
.
staffLabel
.
map
((
item
,
index
)
=>
{
switch
(
item
)
{
switch
(
item
)
{
case
'0'
:
case
'0'
:
employeeData
.
staffLabel
[
index
]
=
'1.0新车权益销售'
employeeData
.
staffLabel
[
index
]
=
'1.0新车权益销售'
break
break
;
case
'1'
:
case
'1'
:
employeeData
.
staffLabel
[
index
]
=
'1.1次新车精品升级'
employeeData
.
staffLabel
[
index
]
=
'1.1次新车精品升级'
break
break
;
case
'2'
:
case
'2'
:
employeeData
.
staffLabel
[
index
]
=
'1.2次新车线上转化'
employeeData
.
staffLabel
[
index
]
=
'1.2次新车线上转化'
break
break
;
case
'3'
:
case
'3'
:
employeeData
.
staffLabel
[
index
]
=
'1.3存量用户众筹'
employeeData
.
staffLabel
[
index
]
=
'1.3存量用户众筹'
break
break
;
default
:
default
:
employeeData
.
staffLabel
[
index
]
=
'无'
employeeData
.
staffLabel
[
index
]
=
'无'
}
})
console
.
log
(
employeeData
.
staffLabel
.
join
(
','
),
'1'
)
$
(
'#staffLabel'
).
text
(
employeeData
.
staffLabel
.
join
(
','
))
}
if
(
employeeData
.
visibleInferiorMerName
)
{
var
visibleName
=
employeeData
.
visibleInferiorMerName
.
split
(
','
)
$
.
each
(
visibleName
,
function
(
idx
,
i
)
{
if
(
employeeData
.
merchantName
.
indexOf
(
i
)
!=
-
1
)
{
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'(本商户)'
+
'</li>'
)
}
else
{
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'</li>'
)
}
})
}
else
{
visibleInferiorMerName
.
remove
()
}
// 账户权限
var
authList
=
employeeData
.
accountTypeTreeResponseList
if
(
authList
&&
authList
.
length
!=
0
)
{
$
.
each
(
authList
,
function
(
index
,
item
)
{
treeTab
.
tabAdd
(
{
title
:
item
.
accounttypeName
,
value
:
item
.
accounttypeId
},
true
)
var
menuData
=
[]
// for (var i = 0; i < item.products)
if
(
item
.
products
&&
item
.
products
.
length
!=
0
)
{
$
.
each
(
item
.
products
,
function
(
idx
,
m
)
{
treeTab
.
treeTabDetail
(
{
name
:
m
.
productName
,
value
:
m
.
productId
},
item
.
accounttypeId
,
m
.
merchantProTreeResponses
)
})
var
filterName
=
'treeTab'
+
item
.
accounttypeId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
item
.
products
[
0
].
productId
treeTab
.
tabChange
(
filterName
,
productId
)
}
})
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
$
(
window
).
resize
()
}
}
})
console
.
log
(
employeeData
.
staffLabel
.
join
(
','
),
'1'
);
$
(
'#staffLabel'
).
text
(
employeeData
.
staffLabel
.
join
(
','
))
}
}
if
(
employeeData
.
visibleInferiorMerName
)
{
})
var
visibleName
=
employeeData
.
visibleInferiorMerName
.
split
(
','
)
}
$
.
each
(
visibleName
,
function
(
idx
,
i
)
{
if
(
employeeData
.
merchantName
.
indexOf
(
i
)
!=
-
1
)
{
// 修改记录
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'(本商户)'
+
'</li>'
)
function
getRecordTable
(
isResetPageNum
)
{
}
else
{
var
params
=
{
visibleInferiorMerName
.
append
(
'<li class="visibleMerchant">'
+
i
+
'</li>'
)
bussinessId
:
id
,
}
moduleName
:
'员工模块'
,
})
pageNum
:
recordPage
.
pageNum
,
}
else
{
pageSize
:
recordPage
.
pageSize
,
visibleInferiorMerName
.
remove
()
method
:
'merchants.api.menu.findLog'
}
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
item
.
index
=
index
+
1
+
recordPage
.
pageSize
*
(
recordPage
.
pageNum
-
1
)
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
})
var
options
=
{
data
:
data
.
data
}
}
// 账户权限
recordPageOptions
.
count
=
data
.
count
var
authList
=
employeeData
.
accountTypeTreeResponseList
if
(
isResetPageNum
)
{
if
(
authList
&&
authList
.
length
!=
0
)
{
recordPageOptions
.
curr
=
1
$
.
each
(
authList
,
function
(
index
,
item
)
{
treeTab
.
tabAdd
(
{
title
:
item
.
accounttypeName
,
value
:
item
.
accounttypeId
},
true
)
var
menuData
=
[]
// for (var i = 0; i < item.products)
if
(
item
.
products
&&
item
.
products
.
length
!=
0
)
{
$
.
each
(
item
.
products
,
function
(
idx
,
m
)
{
treeTab
.
treeTabDetail
(
{
name
:
m
.
productName
,
value
:
m
.
productId
},
item
.
accounttypeId
,
m
.
merchantProTreeResponses
)
})
var
filterName
=
'treeTab'
+
item
.
accounttypeId
var
productId
=
'tab_'
+
item
.
accounttypeId
+
'_'
+
item
.
products
[
0
].
productId
treeTab
.
tabChange
(
filterName
,
productId
)
}
})
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
$
(
window
).
resize
();
}
}
}
laypage
.
render
(
recordPageOptions
)
})
recordTable
.
reload
(
options
)
}
// 修改记录
function
getRecordTable
(
isResetPageNum
)
{
var
params
=
{
bussinessId
:
id
,
moduleName
:
'员工模块'
,
pageNum
:
recordPage
.
pageNum
,
pageSize
:
recordPage
.
pageSize
,
method
:
'merchants.api.menu.findLog'
}
request
(
params
,
function
(
res
)
{
var
data
=
res
.
data
$
.
each
(
data
.
data
,
function
(
index
,
item
)
{
item
.
index
=
index
+
1
+
recordPage
.
pageSize
*
(
recordPage
.
pageNum
-
1
)
data
.
data
[
index
].
modifyContent
=
item
.
module
+
'-'
+
item
.
action
})
})
var
options
=
{
data
:
data
.
data
}
recordPageOptions
.
count
=
data
.
count
if
(
isResetPageNum
)
{
recordPageOptions
.
curr
=
1
}
laypage
.
render
(
recordPageOptions
)
recordTable
.
reload
(
options
)
})
}
})
</script>
</body>
</html>
\ No newline at end of file
\ No newline at end of file
}
})
</script>
</body>
</html>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment