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 d35be384
authored
May 08, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
09e98b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
22 deletions
html/employee/detail.html
html/employee/detail.html
View file @
d35be38
...
@@ -174,7 +174,7 @@
...
@@ -174,7 +174,7 @@
<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
Name
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-form-item"
>
...
@@ -269,7 +269,7 @@
...
@@ -269,7 +269,7 @@
'roleCode'
,
'roleCode'
,
'merchantName'
,
'merchantName'
,
'createdAccount'
,
'createdAccount'
,
'department'
,
'department
Name
'
,
'staffLabel'
,
'staffLabel'
,
'weChatNickName'
,
'weChatNickName'
,
'weChatPhone'
,
'weChatPhone'
,
...
@@ -382,27 +382,32 @@
...
@@ -382,27 +382,32 @@
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
]]
:
'无'
)
}
}
// 所属部门
// 所属部门
const
text
=
employeeData
.
departmentName
?
employeeData
.
departmentName
:
'无'
$
(
'#departmentName'
).
text
(
text
)
// 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
:
// case 5:
$
(
'#department'
).
text
(
'无'
)
// $('#department').text('交付部')
}
// break
// default:
// $('#department').text('无')
// }
// }
// }
// 员工标签
// 员工标签
if
(
employeeData
.
staffLabel
)
{
if
(
employeeData
.
staffLabel
)
{
...
...
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