Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-3
Commits
735a363e
Commit
735a363e
authored
Aug 03, 2022
by
shaojiawen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:时间选择
parent
2b27f75e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
mixin.js
src/views/salesleads/actCodeManage/components/mixin.js
+2
-1
No files found.
src/views/salesleads/actCodeManage/components/mixin.js
View file @
735a363e
...
@@ -15,6 +15,7 @@ export default {
...
@@ -15,6 +15,7 @@ export default {
return
{
return
{
onPick
(
obj
)
{
onPick
(
obj
)
{
pickerMinDate
=
obj
.
minDate
;
pickerMinDate
=
obj
.
minDate
;
console
.
log
(
obj
);
},
},
disabledDate
(
time
)
{
disabledDate
(
time
)
{
let
start
=
new
Date
();
let
start
=
new
Date
();
...
@@ -27,7 +28,7 @@ export default {
...
@@ -27,7 +28,7 @@ export default {
start
=
start
.
setFullYear
(
start
.
getFullYear
()
-
2
);
start
=
start
.
setFullYear
(
start
.
getFullYear
()
-
2
);
start2
=
start2
.
setDate
(
start2
.
getDate
()
-
59
);
start2
=
start2
.
setDate
(
start2
.
getDate
()
-
59
);
start
=
start
>
start2
?
start
:
start2
;
start
=
start
>
start2
?
start
:
start2
;
end2
=
end2
.
setDate
(
end2
.
getDate
()
+
60
);
end2
=
end2
.
setDate
(
end2
.
getDate
()
+
59
)
+
24
*
60
*
60
*
1000
-
1000
;
// end2算到晚上23:59:59
end
=
end
.
getTime
()
>
end2
?
end2
:
end
.
getTime
();
end
=
end
.
getTime
()
>
end2
?
end2
:
end
.
getTime
();
}
else
{
}
else
{
start
=
start
.
setFullYear
(
start
.
getFullYear
()
-
2
);
start
=
start
.
setFullYear
(
start
.
getFullYear
()
-
2
);
...
...
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