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 d361b82a
authored
Nov 29, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!39
2 parents
15ff08cd
8f2ab6d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
36 deletions
html/employee/add.html
html/employee/detail.html
html/employee/add.html
View file @
d361b82
...
@@ -230,6 +230,7 @@
...
@@ -230,6 +230,7 @@
<label
class=
"layui-form-label"
>
所属部门:
</label>
<label
class=
"layui-form-label"
>
所属部门:
</label>
<div
class=
"layui-input-block"
>
<div
class=
"layui-input-block"
>
<select
name=
"department"
id=
"departmentAuth"
>
<select
name=
"department"
id=
"departmentAuth"
>
<option
value=
"0"
>
其他
</option>
<option
value=
"1"
>
销售部
</option>
<option
value=
"1"
>
销售部
</option>
<option
value=
"2"
>
售后部
</option>
<option
value=
"2"
>
售后部
</option>
<option
value=
"3"
>
客服部
</option>
<option
value=
"3"
>
客服部
</option>
...
...
html/employee/detail.html
View file @
d361b82
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"zh"
>
<html
lang=
"zh"
>
<head>
<head>
<meta
charset=
"utf-8"
/>
<meta
charset=
"utf-8"
/>
<meta
content=
"IE=edge"
/>
<meta
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
...
@@ -10,8 +9,8 @@
...
@@ -10,8 +9,8 @@
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<meta
name=
"keywords"
itemprop=
"keywords"
content=
"广联,帐户管理,员工管理"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/css/main.css"
/>
<title>
员工管理
</title>
<title>
员工管理
</title>
</head>
</head>
<style>
<style>
.sub-bg-white
{
.sub-bg-white
{
width
:
100%
;
width
:
100%
;
background-color
:
#f4f5fa
;
background-color
:
#f4f5fa
;
...
@@ -116,9 +115,9 @@
...
@@ -116,9 +115,9 @@
.detail
{
.detail
{
padding-bottom
:
100px
;
padding-bottom
:
100px
;
}
}
</style>
</style>
<body>
<body>
<div
id=
"app"
>
<div
id=
"app"
>
<main
class=
"wrapper detail"
>
<main
class=
"wrapper detail"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
<div
class=
"layui-tab layui-tab-brief"
lay-filter=
"editTab"
>
...
@@ -216,8 +215,7 @@
...
@@ -216,8 +215,7 @@
<div
class=
"topbottomwrap"
>
<div
class=
"topbottomwrap"
>
<div
class=
"grayLine"
></div>
<div
class=
"grayLine"
></div>
<h3
class=
"content-title sub-title"
id=
"accountAuth"
>
账户权限
</h3>
<h3
class=
"content-title sub-title"
id=
"accountAuth"
>
账户权限
</h3>
<div
class=
"layui-tab tabmutiple-content"
<div
class=
"layui-tab tabmutiple-content"
style=
"padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px"
lay-filter=
"roleAuth"
>
style=
"padding: 0 20px 10px; background-color: #fff; margin-bottom: 80px"
lay-filter=
"roleAuth"
>
<ul
class=
"layui-tab-title"
></ul>
<ul
class=
"layui-tab-title"
></ul>
<div
class=
"layui-tab-content"
></div>
<div
class=
"layui-tab-content"
></div>
</div>
</div>
...
@@ -262,7 +260,21 @@
...
@@ -262,7 +260,21 @@
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
=
[
'staffName'
,
'staffPhone'
,
'entmicroName'
,
'staffJob'
,
'roleName'
,
'roleCode'
,
'merchantName'
,
'createdAccount'
,
'department'
,
'staffLabel'
,
'weChatNickName'
,
'weChatPhone'
,
'weChatOpenId'
]
var
employeeData
=
{}
var
employeeData
=
{}
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
var
visibleInferiorMerName
=
$
(
'#visibleInferiorMerName'
)
...
@@ -371,48 +383,50 @@
...
@@ -371,48 +383,50 @@
$
(
'#'
+
[
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
1
:
case
0
:
$
(
'#department'
).
text
(
'其他'
)
break
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'
);
console
.
log
(
employeeData
.
staffLabel
.
join
(
','
),
'1'
)
$
(
'#staffLabel'
).
text
(
employeeData
.
staffLabel
.
join
(
','
))
$
(
'#staffLabel'
).
text
(
employeeData
.
staffLabel
.
join
(
','
))
}
}
if
(
employeeData
.
visibleInferiorMerName
)
{
if
(
employeeData
.
visibleInferiorMerName
)
{
...
@@ -457,7 +471,7 @@
...
@@ -457,7 +471,7 @@
}
}
})
})
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
treeTab
.
tabChange
(
'roleAuth'
,
authList
[
0
].
accounttypeId
)
$
(
window
).
resize
();
$
(
window
).
resize
()
}
}
}
}
})
})
...
@@ -491,6 +505,5 @@
...
@@ -491,6 +505,5 @@
}
}
})
})
</script>
</script>
</body>
</body>
</html>
</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