Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
0dbc4c2b
Commit
0dbc4c2b
authored
Nov 19, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
72804a71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
27 deletions
+35
-27
performance_ranking.js
public/resource/js/performance_ranking.js
+35
-27
No files found.
public/resource/js/performance_ranking.js
View file @
0dbc4c2b
...
@@ -287,35 +287,43 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
...
@@ -287,35 +287,43 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
data
:
params
,
data
:
params
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
$
(
'#tbody'
).
empty
();
if
(
data
.
code
==
200
){
that
.
loadTable
(
data
.
data
.
list
,
data
.
data
.
grade
);
$
(
'#tbody'
).
empty
();
var
grade
=
data
.
data
.
grade
;
that
.
loadTable
(
data
.
data
.
list
,
data
.
data
.
grade
);
var
index
=
data
.
data
.
grade
;
var
grade
=
data
.
data
.
grade
;
var
indexTimes
=
0
;
var
index
=
data
.
data
.
grade
;
if
(
grade
<
27
){
var
indexTimes
=
0
;
index
=
data
.
data
.
grade
if
(
grade
<
27
){
index
=
data
.
data
.
grade
}
else
{
index
=
data
.
data
.
grade
%
26
;
indexTimes
=
parseInt
(
data
.
data
.
grade
/
26
)
}
var
str
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
;
var
value
=
str
[
index
]
+
""
+
(
indexTimes
>
0
?
indexTimes
+
""
:
""
);
var
name
=
data
.
data
.
position
;
var
text
=
""
;
if
(
name
==
0
){
text
=
"新人职称"
+
value
+
"档"
}
else
if
(
name
==
1
){
text
=
"店长职称"
+
value
+
"档"
}
else
if
(
name
==
2
){
text
=
"经理职称"
+
value
+
"档"
}
else
if
(
name
==
3
){
text
=
"主任职称"
+
value
+
"档"
}
else
if
(
name
==
4
){
text
=
"顾问职称"
+
value
+
"档"
}
else
if
(
name
==
5
){
text
=
"无职称职称"
+
value
+
"档"
}
$
(
'#table-title'
).
text
(
text
);
}
else
{
}
else
{
index
=
data
.
data
.
grade
%
26
;
$
(
'#table-title'
).
text
(
'职称排行'
);
indexTimes
=
parseInt
(
data
.
data
.
grade
/
26
)
var
tableDat
=
'<tr><td colspan="4" >您还没有职称</td></tr>'
;
tableDat
+=
"<tr></tr>"
$
(
'#tbody'
).
append
(
tableDat
);
$
(
'#overlay'
).
fadeOut
(
''
)
}
}
var
str
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
;
var
value
=
str
[
index
]
+
""
+
(
indexTimes
>
0
?
indexTimes
+
""
:
""
);
var
name
=
data
.
data
.
position
;
var
text
=
""
;
if
(
name
==
0
){
text
=
"新人职称"
+
value
+
"档"
}
else
if
(
name
==
1
){
text
=
"店长职称"
+
value
+
"档"
}
else
if
(
name
==
2
){
text
=
"经理职称"
+
value
+
"档"
}
else
if
(
name
==
3
){
text
=
"主任职称"
+
value
+
"档"
}
else
if
(
name
==
4
){
text
=
"顾问职称"
+
value
+
"档"
}
else
if
(
name
==
5
){
text
=
"无职称职称"
+
value
+
"档"
}
$
(
'#table-title'
).
text
(
text
);
},
},
error
:
function
(
data
){
error
:
function
(
data
){
$
(
'#table-title'
).
text
(
'职称排行'
);
$
(
'#table-title'
).
text
(
'职称排行'
);
...
...
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