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
51b34c9a
Commit
51b34c9a
authored
Aug 05, 2019
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增销售6流程统计
parent
9953eb5c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
490 additions
and
517 deletions
+490
-517
App.vue
src/App.vue
+41
-2
PersonnelManagement.vue
src/components/activity/PersonnelManagement.vue
+449
-515
No files found.
src/App.vue
View file @
51b34c9a
...
...
@@ -30,6 +30,7 @@ var sUserAgent = navigator.userAgent;
}
import
chosenOpenMode
from
'./components/commonPage/chosenOpenMode'
import
mycareer
from
'./components/champion/mycareer'
import
{
clearInterval
}
from
'timers'
;
export
default
{
name
:
'App'
,
components
:
{
...
...
@@ -62,18 +63,52 @@ export default {
dataShow
:
false
,
haveOpenMode
:
false
,
settingSys
:
false
,
timer
:
null
,
useTime
:
0
// sessionStorage.getItem("mazip") ? sessionStorage.getItem("mazip") : true
}
},
methods
:
{
inited
(
viewer
){
this
.
$viewer
=
viewer
},
show
(
data
)
{
this
.
$set
(
this
.
images
,
data
)
this
.
$viewer
.
show
()
},
listeneruser
(){
let
that
=
this
window
.
onblur
=
function
()
{
that
.
plaus
()
if
(
that
.
useTime
)
{
let
params
=
{
CreateBy
:
that
.
getLocalStorage
().
EmployeeId
,
UsedTime
:
that
.
useTime
}
that
.
apipost
(
"user_set_user_usederplog"
,
params
,
r
=>
{
if
(
r
.
data
.
resultCode
==
1
){
this
.
UsedTime
=
0
}
})
}
}
window
.
onfocus
=
function
()
{
that
.
timekeeper
()
}
},
timekeeper
(){
if
(
!
this
.
timer
){
this
.
timer
=
window
.
setInterval
(()
=>
{
this
.
useTime
+=
0.1
},
1000
*
6
);
}
},
plaus
()
{
if
(
this
.
timer
){
window
.
clearInterval
(
this
.
timer
);
this
.
timer
=
null
}
}
},
mounted
()
{
...
...
@@ -81,6 +116,9 @@ export default {
this
.
$router
.
push
({
path
:
'/login'
})
}
else
{
this
.
timekeeper
()
this
.
listeneruser
()
}
this
.
haveOpenMode
=!
localStorage
.
openMode
this
.
MsgBus
.
$on
(
'imgpreviewoverflow'
,
content
=>
{
...
...
@@ -113,6 +151,7 @@ export default {
this
.
MsgBus
.
$on
(
'imgprevclear'
,
content
=>
{
this
.
images
=
[]
})
}
}
</
script
>
...
...
src/components/activity/PersonnelManagement.vue
View file @
51b34c9a
This diff is collapsed.
Click to expand it.
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