Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
memberTag-web
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
memberTag
memberTag-web
Commits
3b5cd90c
Commit
3b5cd90c
authored
May 07, 2019
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加默认有效期
parent
5a0f5c70
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
member-tag.vue
src/view/platformTag/member-tag.vue
+9
-0
No files found.
src/view/platformTag/member-tag.vue
View file @
3b5cd90c
...
...
@@ -254,6 +254,14 @@ export default {
},
methods
:
{
// 设置默认的分组有效期
defaultDate
()
{
let
date
=
new
Date
(
new
Date
().
getTime
()
+
365
*
24
*
3600
*
1000
);
let
Y
=
date
.
getFullYear
()
+
'-'
;
let
M
=
(
date
.
getMonth
()
+
1
<
10
?
'0'
+
(
date
.
getMonth
()
+
1
)
:
date
.
getMonth
()
+
1
)
+
'-'
;
let
D
=
(
date
.
getDate
()
<
10
?
'0'
+
date
.
getDate
()
:
date
.
getDate
())
+
' '
;
this
.
tagConfig
.
date
=
Y
+
M
+
D
+
'23:59:59'
;
},
// 收起右边的
collapseRightList
(
eve
)
{
console
.
log
(
eve
.
target
.
className
);
...
...
@@ -571,6 +579,7 @@ export default {
this
.
handTag
=
list
.
handTag
;
this
.
changeTagTitle
(
list
.
name
);
});
this
.
defaultDate
();
}
};
</
script
>
...
...
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