Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
ec449be9
Commit
ec449be9
authored
Oct 21, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3f31f7d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
10 deletions
+65
-10
PersonnelManagement.vue
src/components/activity/PersonnelManagement.vue
+65
-10
No files found.
src/components/activity/PersonnelManagement.vue
View file @
ec449be9
...
...
@@ -84,6 +84,7 @@
v-model=
"monthVal"
type=
"month"
value-format=
"yyyyM"
@
change=
"init"
placeholder=
"请选择月"
>
</el-date-picker>
</div>
...
...
@@ -92,6 +93,7 @@
v-model=
"yearVal"
align=
"right"
type=
"year"
@
change=
"init"
value-format=
"yyyy"
placeholder=
"请选择年"
>
</el-date-picker>
...
...
@@ -157,6 +159,12 @@
<th
@
click=
"sort"
data-key=
"SeeOldClient"
>
拜访老客户
</th>
<th
@
click=
"sort"
data-key=
"ClientSelfOrders"
>
同行自行报名
</th>
<th
@
click=
"sort"
data-key=
"Balance"
>
幸福存折余额
</th>
<th
@
click=
"sort"
data-key=
"AppUserActive"
>
激活APP
</th>
<th
@
click=
"sort"
data-key=
"SuerOrderShare"
>
确认单分享
</th>
<th
@
click=
"sort"
data-key=
"ShareIdear"
>
分享意见表
</th>
<th
@
click=
"sort"
data-key=
"UseBankBookCount"
>
客户使用存折
</th>
<th
@
click=
"sort"
data-key=
"CutCount"
>
预售切位
</th>
</tr>
</thead>
</table>
...
...
@@ -389,6 +397,37 @@
@
click=
"chosen(index,34)"
class=
"even"
>
{{
item
.
Balance
}}
</td>
<td
@
mouseleave=
"outTable"
@
mouseover=
"activeTd(index,35)"
@
click=
"chosen(index,35)"
class=
"even"
>
{{
item
.
AppUserActive
}}
</td>
<td
@
mouseleave=
"outTable"
@
mouseover=
"activeTd(index,36)"
@
click=
"chosen(index,36)"
class=
"even"
>
{{
item
.
SuerOrderShare
}}
</td>
<td
@
mouseleave=
"outTable"
@
mouseover=
"activeTd(index,37)"
@
click=
"chosen(index,37)"
class=
"even"
>
{{
item
.
ShareIdear
}}
</td>
<td
@
mouseleave=
"outTable"
@
mouseover=
"activeTd(index,38)"
@
click=
"chosen(index,38)"
class=
"even"
>
{{
item
.
UseBankBookCount
}}
</td>
<td
@
mouseleave=
"outTable"
@
mouseover=
"activeTd(index,39)"
@
click=
"chosen(index,39)"
class=
"even"
>
{{
item
.
CutCount
}}
</td>
</tr>
</tbody>
</table>
...
...
@@ -444,7 +483,7 @@ export default {
this
.
monthVal
=
date
.
getFullYear
()
+
''
+
(
date
.
getMonth
()
+
1
);
let
Height
=
document
.
body
.
clientHeight
;
this
.
listHeight
=
Height
-
470
;
this
.
getNewWeek
(
date
)
this
.
getNewWeek
(
date
,
0
)
},
computed
:
{
text
()
{
...
...
@@ -468,7 +507,7 @@ export default {
document
.
onkeydown
=
null
;
},
methods
:
{
getNewWeek
(
time
){
getNewWeek
(
time
,
temp
){
let
dateNow
=
time
?
new
Date
(
time
)
:
new
Date
(
this
.
weekVal
);
let
dateFirst
=
new
Date
(
dateNow
.
getFullYear
(),
0
,
1
);
let
dataNumber
=
Math
.
round
((
dateNow
.
valueOf
()
-
dateFirst
.
valueOf
())
/
86400000
);
...
...
@@ -477,6 +516,9 @@ export default {
if
(
time
)
{
this
.
weekVal
=
time
}
if
(
!
temp
){
this
.
init
()
}
},
showCareer
(){
let
temp
=
this
.
tableData
[
this
.
chosenTD
.
row
].
EmployeeId
...
...
@@ -564,18 +606,31 @@ export default {
},
init
()
{
this
.
isLoadingTableData
=
true
;
let
period
=
''
if
(
this
.
index1
+
1
==
1
){
period
=
this
.
NewWeekVal
}
else
if
(
this
.
index1
+
1
==
2
){
period
=
this
.
monthVal
}
else
if
(
this
.
index1
+
1
==
3
){
period
=
this
.
yearVal
}
console
.
log
(
this
.
yearVal
,
this
.
weekVal
,
this
.
monthVal
)
let
msg
=
{
timeRange
:
this
.
index1
+
1
,
userRange
:
this
.
index2
+
1
userRange
:
this
.
index2
+
1
,
period
};
console
.
log
(
msg
)
this
.
apipost
(
"user_get_usedsixSatistics"
,
msg
,
r
=>
{
this
.
tableData
=
this
.
orderBy
(
r
.
data
.
data
,
[
'SumScore'
],
'desc'
).
results
;
if
(
this
.
chosenTD
.
row
>=
this
.
tableData
.
length
){
this
.
chosen
(
this
.
tableData
.
length
-
1
,
this
.
chosenTD
.
col
);
if
(
r
.
data
.
data
&&
r
.
data
.
data
.
length
>
0
){
this
.
tableData
=
this
.
orderBy
(
r
.
data
.
data
,
[
'SumScore'
],
'desc'
).
results
;
if
(
this
.
chosenTD
.
row
>=
this
.
tableData
.
length
){
this
.
chosen
(
this
.
tableData
.
length
-
1
,
this
.
chosenTD
.
col
);
}
}
this
.
isLoadingTableData
=
false
;
});
...
...
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