Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
9dd0e1cc
Commit
9dd0e1cc
authored
Sep 08, 2021
by
sixiaofeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
366464d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
add-member.vue
src/views/team/add-member.vue
+4
-4
confirm-join.vue
src/views/team/join-team/confirm-join.vue
+1
-1
team-frame.vue
src/views/team/team-frame.vue
+1
-1
No files found.
src/views/team/add-member.vue
View file @
9dd0e1cc
...
...
@@ -52,7 +52,7 @@
dot
required
title=
"入职时间"
:content=
"formatDate(acceptJoin.joinTime || new Date().getTime(), 'YYYY-MM-DD')"
:content=
"formatDate(acceptJoin.joinTime
*1000
|| new Date().getTime(), 'YYYY-MM-DD')"
@
click=
"show = true"
/>
<van-calendar
...
...
@@ -122,7 +122,7 @@ export default Vue.extend({
depId
:
''
,
entId
:
''
,
hash
:
''
,
joinTime
:
new
Date
().
getTime
(
),
joinTime
:
Math
.
round
(
new
Date
().
getTime
()
/
1000
),
phone
:
''
,
position
:
''
}
...
...
@@ -200,7 +200,7 @@ export default Vue.extend({
},
// 入职日期
selectJoinTime
(
date
:
Date
)
{
this
.
acceptJoin
.
joinTime
=
new
Date
(
date
).
getTime
(
)
this
.
acceptJoin
.
joinTime
=
Math
.
round
(
new
Date
(
date
).
getTime
()
/
1000
)
this
.
show
=
false
this
.
date
=
this
.
formatDate
(
date
)
},
...
...
@@ -215,7 +215,7 @@ export default Vue.extend({
}).
then
(()
=>
{
this
.
acceptJoin
.
entId
=
this
.
entId
this
.
acceptJoin
.
depId
=
this
.
selectedDepId
this
.
acceptJoin
.
expiration
=
this
.
acceptJoin
.
joinTime
+
600000
0
this
.
acceptJoin
.
expiration
=
this
.
acceptJoin
.
joinTime
+
24
*
60
*
6
0
this
.
acceptJoin
.
inviterId
=
process
.
env
.
NODE_ENV
===
'production'
?
getPublicKey
():
"1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR"
this
.
acceptJoin
.
oaServer
=
localStorage
.
getItem
(
'ENT_INFO'
)?
JSON
.
parse
(
localStorage
.
getItem
(
'ENT_INFO'
)
as
any
).
oaServer
:
'http://172.16.101.107:20000'
const
{
depId
,
entId
,
expiration
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
acceptJoin
...
...
src/views/team/join-team/confirm-join.vue
View file @
9dd0e1cc
...
...
@@ -121,7 +121,7 @@ export default Vue.extend({
this
.
loading
=
true
const
{
depId
,
entId
,
expiration
,
hash
,
inviterId
,
joinTime
,
name
,
oaServer
,
phone
,
position
}
=
this
.
info
as
AcceptJoinDTO
let
req
=
{
depId
,
entId
,
expiration
:
Math
.
round
(
Number
(
expiration
)
/
1000
)
,
hash
,
inviterId
,
joinTime
:
Math
.
round
(
Number
(
joinTime
)
/
1000
),
name
,
oaServer
,
phone
,
position
depId
,
entId
,
expiration
:
Number
(
expiration
)
,
hash
,
inviterId
,
joinTime
:
Number
(
joinTime
),
name
,
oaServer
,
phone
,
position
}
this
.
$service
.
enterprise
.
acceptJoin
(
req
)
.
then
((
res
:
any
)
=>
{
...
...
src/views/team/team-frame.vue
View file @
9dd0e1cc
...
...
@@ -100,7 +100,7 @@ export default Vue.extend({
}
},
mounted
()
{
const
res
=
JSON
.
parse
(
getUserInfo
())
const
res
=
JSON
.
parse
(
getUserInfo
()
||
"{}"
)
console
.
log
(
res
,
typeof
res
,
'哈哈哈'
);
this
.
entId
=
process
.
env
.
NODE_ENV
===
'production'
?
res
.
entId
:
'166961152260050944'
...
...
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