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
5c22e59c
Commit
5c22e59c
authored
Sep 07, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
01bd501b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
index.ts
src/util/FormatDate/index.ts
+1
-1
confirm-join.vue
src/views/team/join-team/confirm-join.vue
+11
-9
two-code.vue
src/views/team/two-code.vue
+2
-2
No files found.
src/util/FormatDate/index.ts
View file @
5c22e59c
import
moment
from
'moment'
export
function
formatDate
(
date
:
Date
,
type
:
string
=
'YYYY-MM-DD HH:mm:ss'
)
{
export
function
formatDate
(
date
:
Date
|
number
,
type
:
string
=
'YYYY-MM-DD HH:mm:ss'
)
{
return
moment
(
date
).
format
(
type
)
}
src/views/team/join-team/confirm-join.vue
View file @
5c22e59c
...
...
@@ -31,7 +31,7 @@
</div>
</div>
<div
class=
"px-4 pt-16 pb-20"
>
<group-cell
title=
"
个人信息
"
>
<group-cell
title=
""
>
<c-cell
title=
"真实姓名"
title-class=
"text-sm text-text-secondary"
...
...
@@ -54,7 +54,7 @@
title=
"入职时间"
title-class=
"text-sm text-text-secondary"
>
<div
slot=
"content"
class=
"text-text-primary"
>
{{
formatDate
(
info
.
joinTime
,
'YYYY-MM-DD'
)
}}
</div>
<div
slot=
"content"
class=
"text-text-primary"
>
{{
formatDate
(
Number
(
info
.
joinTime
)
,
'YYYY-MM-DD'
)
}}
</div>
</c-cell>
<c-cell
title=
"手机号"
...
...
@@ -89,7 +89,7 @@ export default Vue.extend({
'c-cell'
:
()
=>
import
(
'@/components/common/c-cell.vue'
)
},
data
()
{
const
info
:
AcceptJoinDTO
=
{
const
info
:
AcceptJoinDTO
=
{
expiration
:
0
,
inviterId
:
''
,
name
:
''
,
...
...
@@ -109,9 +109,11 @@ export default Vue.extend({
}
},
created
()
{
const
query
=
this
.
$route
.
query
.
query
||
'{}'
this
.
info
=
JSON
.
parse
(
query
as
string
)
this
.
getDepInfo
()
this
.
info
=
this
.
$route
.
query
as
unknown
as
AcceptJoinDTO
// item = JSON.parse(query as string)
this
.
getDepInfo
(
this
.
info
)
},
methods
:
{
submit
()
{
...
...
@@ -130,11 +132,11 @@ export default Vue.extend({
})
},
getDepInfo
()
{
getDepInfo
(
item
:
AcceptJoinDTO
)
{
this
.
loading
=
true
this
.
$service
.
department
.
getDep
({
entId
:
this
.
info
.
entId
,
id
:
this
.
info
.
depId
entId
:
item
.
entId
,
id
:
item
.
depId
}).
then
((
res
:
any
)
=>
{
this
.
loading
=
false
const
{
data
}
=
res
...
...
src/views/team/two-code.vue
View file @
5c22e59c
...
...
@@ -39,9 +39,9 @@
<div
class=
" flex-initial mx-3"
>
<code-icon
:path=
"require('@/assets/icons/y-chat33.png')"
class-name=
"h-9 w-9"
/>
Chat33
</div>
<div
class=
"flex-initial mx-3"
>
<
!--
<
div
class=
"flex-initial mx-3"
>
<code-icon
:path=
"require('@/assets/icons/y-weixin.png')"
class-name=
"h-9 w-9"
/>
微信
</div>
</div>
-->
<div
class=
"flex-initial mx-3"
@
click=
"saveQrcode"
>
<code-icon
:path=
"require('@/assets/icons/y-downlode.png')"
class-name=
"h-9 w-9"
/>
保存
</div>
...
...
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