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
1ddbab01
Commit
1ddbab01
authored
Oct 20, 2021
by
lshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mac时间
parent
27f3372c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
index.vue
src/views/Root/OutletManagement/index.vue
+12
-3
No files found.
src/views/Root/OutletManagement/index.vue
View file @
1ddbab01
...
...
@@ -776,9 +776,16 @@ export default Vue.extend({
if
(
arr2
?.
length
===
2
)
{
const
[
startDate
,
endDate
]
=
arr2
;
this
.
formData
.
startTime
=
moment
(
startDate
)
this
.
formData
.
endTime
=
moment
(
endDate
);
const
starh
=
startDate
.
getHours
()
<
10
?
'0'
+
startDate
.
getHours
():
startDate
.
getHours
()
const
starm
=
startDate
.
getMinutes
()
<
10
?
'0'
+
startDate
.
getMinutes
():
startDate
.
getMinutes
()
const
endh
=
endDate
.
getHours
()
<
10
?
'0'
+
endDate
.
getHours
():
endDate
.
getHours
()
const
endm
=
endDate
.
getMinutes
()
<
10
?
'0'
+
endDate
.
getMinutes
():
endDate
.
getMinutes
()
this
.
formData
.
startTime
=
moment
(
starh
+
':'
+
starm
,
"HH:mm"
)
this
.
formData
.
endTime
=
moment
(
endh
+
':'
+
endm
,
"HH:mm"
)
// this.formData.startTime = moment(startDate,"HH:mm")
// this.formData.endTime = moment(endDate);
console
.
log
(
this
.
formData
.
startTime
,
' this.formData.startTime'
);
}
const
ret
=
await
AddressService
.
getInstance
().
note
(
record
.
id
);
if
(
ret
.
code
===
200
)
{
...
...
@@ -1049,10 +1056,12 @@ export default Vue.extend({
clickAddOutlet
()
{
this
.
formData
.
startTime
=
moment
(
"00:00"
,
"HH:mm"
);
this
.
formData
.
endTime
=
moment
(
"23:00"
,
"HH:mm"
);
(
this
.
$refs
.
headerselect3
as
any
)?.
init
();
this
.
visible
=
true
;
this
.
modalType
=
eModalType
.
create
;
console
.
log
(
this
.
formData
.
startTime
,
' this.formData.startTime'
);
},
},
computed
:
{
...
...
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