Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
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
Zhang Xiaojie
fns_backend
Commits
f7e01a98
Commit
f7e01a98
authored
Oct 19, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改3
parent
d033ee93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
index.vue
src/views/Root/OutletManagement/index.vue
+34
-2
No files found.
src/views/Root/OutletManagement/index.vue
View file @
f7e01a98
...
@@ -776,8 +776,40 @@ export default Vue.extend({
...
@@ -776,8 +776,40 @@ export default Vue.extend({
if
(
arr2
?.
length
===
2
)
{
if
(
arr2
?.
length
===
2
)
{
const
[
startDate
,
endDate
]
=
arr2
;
const
[
startDate
,
endDate
]
=
arr2
;
this
.
formData
.
startTime
=
moment
(
startDate
,
"HH:mm"
)
var
hour1
=
startDate
.
getHours
();
this
.
formData
.
endTime
=
moment
(
endDate
,
"HH:mm"
);
var
minute1
=
startDate
.
getMinutes
();
let
start
=
hour1
+
''
if
(
hour1
<
10
){
start
=
'0'
+
hour1
}
else
{
start
=
start
}
if
(
minute1
<
10
){
start
=
start
+
':'
+
'0'
+
minute1
}
else
{
start
=
start
+
':'
+
minute1
}
var
hour2
=
endDate
.
getHours
();
var
minute2
=
endDate
.
getMinutes
();
let
end
=
hour2
+
''
if
(
hour2
<
10
){
end
=
'0'
+
hour2
}
else
{
end
=
end
}
if
(
minute2
<
10
){
end
=
end
+
':'
+
'0'
+
minute2
}
else
{
end
=
end
+
':'
+
minute2
}
console
.
log
(
start
,
'start'
);
console
.
log
(
typeof
start
);
console
.
log
(
end
,
'end'
);
console
.
log
(
typeof
end
);
this
.
formData
.
startTime
=
moment
(
start
,
"HH:mm"
)
this
.
formData
.
endTime
=
moment
(
end
,
"HH:mm"
);
console
.
log
(
this
.
formData
.
startTime
,
'this.formData.startTime'
);
console
.
log
(
this
.
formData
.
startTime
,
'this.formData.startTime'
);
console
.
log
(
startDate
,
'is'
);
console
.
log
(
startDate
,
'is'
);
...
...
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