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
11265599
Commit
11265599
authored
Jul 19, 2022
by
shaojiawen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:时间设置
parent
e79f7c5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mixin.js
src/views/salesleads/actCodeManage/components/mixin.js
+5
-3
No files found.
src/views/salesleads/actCodeManage/components/mixin.js
View file @
11265599
...
...
@@ -80,21 +80,23 @@ export default {
// 近三个月
setDate
=
endDate
=>
{
endDate
.
setMonth
(
endDate
.
getMonth
()
-
3
);
endDate
.
setDate
(
endDate
.
getDate
()
+
1
);
endDate
.
setDate
(
1
);
return
new
Date
(
endDate
);
};
}
else
if
(
index
==
3
)
{
// 近半年
setDate
=
endDate
=>
{
endDate
.
setMonth
(
endDate
.
getMonth
()
-
6
);
endDate
.
setDate
(
endDate
.
getDate
()
+
1
);
endDate
.
setDate
(
1
);
// 以1号为开端
// endDate.setDate(endDate.getDate() + 1);
return
new
Date
(
endDate
);
};
}
else
{
// 近一年
setDate
=
endDate
=>
{
endDate
.
setFullYear
(
endDate
.
getFullYear
()
-
1
);
endDate
.
setDate
(
endDate
.
getDate
()
+
1
);
endDate
.
setDate
(
1
);
// endDate.setDate(endDate.getDate() + 1);
return
new
Date
(
endDate
);
};
}
...
...
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