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
8aaadb05
Commit
8aaadb05
authored
Apr 28, 2022
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 标签规则
parent
ff5794f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
tag-config-options.vue
src/components/tag/tag-config-options.vue
+1
-2
index.js
src/components/tagDetail/mixin/index.js
+5
-1
No files found.
src/components/tag/tag-config-options.vue
View file @
8aaadb05
...
...
@@ -183,7 +183,6 @@
<label
class=
"inline-block middle label-unit m-r-8"
>
最近
</label
><el-input
v-model=
"parent.fixedRecentTimeRecent"
placeholder=
"请输入1-730"
class=
"m-r-8"
style=
"width: 120px"
@
blur=
"value => toEditInput(value, 'fixedRecentTimeRecent', parent)"
></el-input
><label
class=
"inline-block middle label-unit"
>
天
</label>
<span
class=
"tips m-l-8 middle"
>
(输入1则统计昨天获取的积分)
</span>
</div>
</div>
</div>
...
...
@@ -626,7 +625,7 @@
></el-input>
<
template
v-if=
"parent.timeRadio == 1"
>
<label
class=
"inline-block middle label-unit m-l-8"
>
天
</label>
<label
class=
"inline-block middle label-tip"
>
正整数,最大
365
</label>
<label
class=
"inline-block middle label-tip"
>
正整数,最大
730
</label>
</
template
>
<
template
v-if=
"parent.timeRadio == 2"
>
<label
class=
"inline-block middle label-unit m-l-8"
>
月
</label>
...
...
src/components/tagDetail/mixin/index.js
View file @
8aaadb05
...
...
@@ -1398,15 +1398,19 @@ export default {
* 天/月/年输入
*/
toEditDateInput
(
e
,
radio
,
parent
)
{
const
code
=
parent
.
templateCode
;
let
newNum
;
newNum
=
!!
parseInt
(
String
(
e
.
target
.
value
).
replace
(
/
[^\d]
/g
,
''
))
?
parseInt
(
String
(
e
.
target
.
value
).
replace
(
/
[^\d]
/g
,
''
))
:
1
;
if
(
newNum
<=
0
)
{
newNum
=
1
;
}
// 天
if
(
newNum
>
365
&&
radio
==
1
)
{
if
(
code
!=
'tag020'
&&
newNum
>
365
&&
radio
==
1
)
{
newNum
=
365
;
}
if
(
code
==
'tag020'
&&
newNum
>
730
&&
radio
==
1
)
{
newNum
=
730
;
}
// 月
if
(
newNum
>
24
&&
radio
==
2
)
{
newNum
=
24
;
...
...
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