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
af272088
Commit
af272088
authored
May 25, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改tag015的生日标签
parent
53092538
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
tag-config-options.vue
src/components/tag/tag-config-options.vue
+18
-5
index.js
src/components/tagDetail/mixin/index.js
+4
-4
No files found.
src/components/tag/tag-config-options.vue
View file @
af272088
...
...
@@ -1299,7 +1299,6 @@ export default {
let
tagValue
=
JSON
.
parse
(
this
.
templateDataList
.
tagValue
);
let
tagParams
=
JSON
.
parse
(
this
.
templateDataList
.
tagParams
);
let
value
=
null
;
let
radio
=
null
;
let
selectVal
=
null
;
let
checkedCount
=
null
;
...
...
@@ -1372,10 +1371,24 @@ export default {
break
;
case
'tag015'
:
radio
=
tagParams
.
template
[
0
].
radio
;
value
=
tagValue
.
val
[
0
].
data
.
value
.
split
(
','
);
this
.
templateData
[
0
].
radio
=
radio
;
this
.
templateData
[
0
].
monthDayRange
=
value
;
for
(
let
i
=
0
;
i
<
this
.
templateData
.
length
;
i
++
)
{
if
(
this
.
templateData
[
i
].
templateCode
===
'tag015'
)
{
let
templateDate
=
tagParams
.
template
[
0
];
this
.
templateData
[
i
].
radio
=
templateDate
.
radio
;
// 时段
this
.
templateData
[
i
].
timeRadio
=
templateDate
.
timeRadio
;
// 天 月 年
this
.
templateData
[
i
].
timeAfterChecked
=
templateDate
.
timeAfterChecked
;
this
.
templateData
[
i
].
timeChecked
=
templateDate
.
timeChecked
;
if
(
templateDate
.
dateRangeValue
.
length
)
{
this
.
templateData
[
i
].
dateRangeValue
=
templateDate
.
dateRangeValue
;
}
else
{
this
.
templateData
[
i
].
dateRangeValue
=
tagValue
.
val
[
0
].
data
.
value
.
split
(
','
);
}
// 如果有最近选项必有 timeInput
if
(
this
.
templateData
[
i
].
timeAfterChecked
)
{
this
.
templateData
[
i
].
timeInput
=
tagValue
.
val
[
0
].
data
.
value
;
}
}
}
break
;
case
'tag012'
:
...
...
src/components/tagDetail/mixin/index.js
View file @
af272088
...
...
@@ -440,11 +440,11 @@ export default {
}
/* 固定/相对 年月日+最近+之后 年月日+最近 年月日时分秒-年月日时分秒 */
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
)
&&
that
.
templateData
[
0
].
radio
==
1
&&
!
that
.
templateData
[
0
].
dateRangeValue
.
length
)
{
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
||
code
===
'tag015'
)
&&
that
.
templateData
[
0
].
radio
==
1
&&
!
that
.
templateData
[
0
].
dateRangeValue
.
length
)
{
that
.
$message
.
error
({
message
:
'请选择值'
});
return
false
;
}
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
))
{
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
||
code
===
'tag015'
))
{
for
(
let
k
of
this
.
templateData
)
{
if
(
!
k
.
timeChecked
&&
!
k
.
timeAfterChecked
&&
k
.
radio
==
2
)
{
let
tips
=
k
.
timeRadio
==
1
?
'天'
:
k
.
timeRadio
==
2
?
'月'
:
'年'
;
...
...
@@ -467,7 +467,7 @@ export default {
}
}
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
)
&&
that
.
templateData
.
length
===
1
&&
that
.
templateData
[
0
].
radio
==
1
)
{
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
||
code
===
'tag015'
)
&&
that
.
templateData
.
length
===
1
&&
that
.
templateData
[
0
].
radio
==
1
)
{
if
(
that
.
currentComputeType
==
2
)
{
tagValue
.
val
[
0
].
data
.
compute
=
'between'
;
}
else
{
...
...
@@ -485,7 +485,7 @@ export default {
that
.
postTemplateData
.
selectedVal
.
push
(
that
.
templateData
[
0
].
dateRangeValue
[
0
].
split
(
' '
)[
0
]
+
'至'
+
that
.
templateData
[
0
].
dateRangeValue
[
1
].
split
(
' '
)[
0
]);
}
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
)
&&
that
.
templateData
.
length
===
1
&&
that
.
templateData
[
0
].
radio
==
2
)
{
if
((
code
===
'tag014'
||
code
===
'tag017'
||
code
===
'tag019'
||
code
===
'tag020'
||
code
===
'tag015'
)
&&
that
.
templateData
.
length
===
1
&&
that
.
templateData
[
0
].
radio
==
2
)
{
// 天
// timeAfterChecked 最近/之后
// timeChecked 当天/年/月
...
...
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