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
02626e0d
Commit
02626e0d
authored
Jul 21, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lishan
parent
fba1b270
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
file.vue
src/views/file.vue
+4
-4
No files found.
src/views/file.vue
View file @
02626e0d
...
...
@@ -30,7 +30,7 @@
<van-field
v-model=
"tel"
type=
"tel"
input-align=
"right"
label=
"手机号"
/>
<!-- 允许输入整数,调起数字键盘 -->
<van-field
v-model=
"digit"
type=
"digit"
input-align=
"right"
label=
"员工编号"
/>
<van-field
v-model=
"digit"
:value=
"date"
input-align=
"right"
label=
"入职时间"
@
click=
"showw = true"
right-icon=
"ellipsis"
/>
<van-field
v-model=
"digit"
:value=
"date"
input-align=
"right"
label=
"入职时间"
@
click=
"showw = true"
right-icon=
"ellipsis"
/>
<van-calendar
v-model=
"showw"
@
confirm=
"onConfirm"
/>
</van-cell-group>
...
...
@@ -110,15 +110,15 @@ export default Vue.extend({
handleClickLeft
()
{
console
.
log
(
'click left'
)
},
onConfir
(
value
)
{
onConfir
(
value
:
string
)
{
this
.
value
=
value
;
this
.
showPicker
=
false
;
},
formatDate
(
date
)
{
formatDate
(
date
:
Date
)
{
return
`
${
date
.
getMonth
()
+
1
}
/
${
date
.
getDate
()}
`
;
},
onConfirm
(
date
)
{
onConfirm
(
date
:
Date
)
{
this
.
showw
=
false
;
this
.
date
=
this
.
formatDate
(
date
);
},
...
...
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