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
b8a35988
Commit
b8a35988
authored
Oct 12, 2022
by
dingdang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 会员标签
parent
5226c047
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
139 additions
and
4 deletions
+139
-4
tag-config-options.vue
src/components/tag/tag-config-options.vue
+17
-3
index.js
src/components/tagDetail/mixin/index.js
+122
-1
No files found.
src/components/tag/tag-config-options.vue
View file @
b8a35988
...
...
@@ -632,7 +632,7 @@
</div>
</template>
<
template
v-if=
"parent.templateCode == 'tag050'"
>
<div
class=
"m-b-20"
:key=
"'tag17' + pindex"
>
<div
:key=
"'tag17' + pindex"
>
<label
class=
"inline-block m-r-20 label-unit"
style=
"width: 108px;text-align: right"
>
最近关联时间
<el-tooltip
placement=
"top"
open-delay=
"100"
>
...
...
@@ -1005,7 +1005,7 @@
</div>
</template>
<
template
v-if=
"parent.templateCode == 'tag040'"
>
<label
class=
"inline-block m-r-20 label-unit"
style=
"width: 108px;text-align: right"
>
<label
class=
"inline-block m-r-20
m-b-20
label-unit"
style=
"width: 108px;text-align: right"
>
关联渠道
<el-tooltip
placement=
"top"
open-delay=
"100"
>
<div
slot=
"content"
>
关联渠道为当前客户关联的线上渠道,根据关联状态实时变化
</div>
...
...
@@ -1853,9 +1853,22 @@ export default {
key
:
[
1
,
2
].
includes
(
this
.
tagData
.
tagType
)
?
this
.
tagData
.
tagId
:
this
.
currentKey
,
requestProject
:
'gic-member-tag-web'
};
if
(
data
.
templateCode
==
'tag040'
)
{
this
.
templateData
.
push
(
data
);
}
this
.
axios
.
post
(
`
${
this
.
baseUrl
}${
url
}
`
,
qs
.
stringify
(
para
))
.
then
(
res
=>
{
let
resData
=
res
;
if
(
data
.
templateCode
==
'tag040'
)
{
data
.
options
=
resData
.
data
.
result
;
const
index
=
this
.
templateData
.
findIndex
(
el
=>
el
.
esScreeningWidgetId
==
data
.
esScreeningWidgetId
);
if
(
index
>=
0
)
{
this
.
templateData
.
splice
(
index
,
1
,
data
);
}
else
{
this
.
templateData
.
push
(
data
);
}
return
;
}
if
(
this
.
tagData
.
tagType
!=
1
&&
this
.
currentKey
!=
'tag'
)
{
if
(
resData
.
data
.
errorCode
==
0
)
{
data
.
options
=
resData
.
data
.
result
;
...
...
@@ -2249,7 +2262,8 @@ export default {
case
'tag050'
:
for
(
let
i
=
0
;
i
<
this
.
templateData
.
length
;
i
++
)
{
if
(
this
.
templateData
[
i
].
templateCode
===
'tag050'
)
{
let
templateDate
=
tagParams
.
template
[
0
];
const
index
=
tagParams
.
template
.
findIndex
(
el
=>
el
.
templateCode
==
'tag050'
);
let
templateDate
=
tagParams
.
template
[
index
];
// 判断是那个时间段
// 固定时段
this
.
templateData
[
i
].
radio
=
templateDate
.
radio
;
// 时段
...
...
src/components/tagDetail/mixin/index.js
View file @
b8a35988
...
...
@@ -564,7 +564,7 @@ export default {
}
}
}
if
(
code
==
'tag050'
&&
that
.
templateData
.
length
>
0
)
{
if
(
code
==
'tag050'
)
{
switch
(
Number
(
that
.
templateData
[
0
].
radio
))
{
case
0
:
tagValue
.
time
[
0
].
compute
=
'all'
;
...
...
@@ -1168,6 +1168,127 @@ export default {
tagValue
.
val
[
0
].
data
.
value
=
ele
.
radioType
;
that
.
postTemplateData
.
selectedVal
.
push
(
ele
.
options
.
find
(
item
=>
item
.
key
==
ele
.
radioType
).
value
);
}
if
(
ele
.
templateCode
==
'tag050'
)
{
switch
(
Number
(
ele
.
radio
))
{
case
0
:
tagValue
.
time
[
0
].
compute
=
'all'
;
tagValue
.
time
[
0
].
value
=
''
;
that
.
postTemplateData
.
selectedVal
.
push
(
'所有时间'
);
break
;
case
1
:
tagValue
.
time
[
0
].
compute
=
'between'
;
tagValue
.
time
[
0
].
value
=
ele
.
dateRangeValue
.
join
(
','
)
that
.
postTemplateData
.
selectedVal
.
push
(
ele
.
dateRangeValue
[
0
].
split
(
' '
)[
0
]
+
'至'
+
ele
.
dateRangeValue
[
1
].
split
(
' '
)[
0
]);
break
;
case
2
:
// tagValue.time[0].compute = 'lastday';
// tagValue.time[0].value = that.templateData[0].dateRangeValue
// 天
// timeAfterChecked 最近/之后
// timeChecked 当天/年/月
if
(
ele
.
timeRadio
==
1
)
{
/** 同时选择
* lastdayHasToday 最近几天包含今天
* afterdayHasToday 之后几天包含今天
*/
if
(
ele
.
timeChecked
&&
ele
.
timeAfterChecked
)
{
if
(
ele
.
timeSelect
==
1
)
{
tagValue
.
time
[
0
].
compute
=
'lastdayHasToday'
;
tagValue
.
time
[
0
].
value
=
String
(
ele
.
timeInput
);
that
.
postTemplateData
.
selectedVal
.
push
(
`最近
${
ele
.
timeInput
}
天包含当天`
);
ele
.
timeInput
=
''
;
}
that
.
postTemplateData
.
template
=
that
.
templateData
;
tagParams
=
that
.
postTemplateData
;
}
//天 当天
if
(
ele
.
timeChecked
&&
!
ele
.
timeAfterChecked
)
{
tagValue
.
time
[
0
].
compute
=
'today'
tagValue
.
time
[
0
].
value
=
'1'
;
that
.
postTemplateData
.
selectedVal
.
push
(
'当天'
);
ele
.
timeInput
=
''
;
}
if
(
ele
.
timeAfterChecked
&&
!
ele
.
timeChecked
)
{
if
(
ele
.
timeSelect
==
1
)
{
// 最近
tagValue
.
time
[
0
].
compute
=
'lastday'
;
tagValue
.
time
[
0
].
value
=
String
(
ele
.
timeInput
);
that
.
postTemplateData
.
selectedVal
.
push
(
`最近
${
ele
.
timeInput
}
天`
);
}
}
}
// 月
if
(
ele
.
timeRadio
==
2
)
{
/**
* lastmonthHasCurrentMonth 最近几月包含当月
* aftermonthHasCurrentMonth 之后几月包含当月
*/
if
(
ele
.
timeChecked
&&
ele
.
timeAfterChecked
)
{
if
(
ele
.
timeSelect
==
1
)
{
tagValue
.
time
[
0
].
compute
=
'lastmonthHasCurrentMonth'
;
tagValue
.
time
[
0
].
value
=
String
(
ele
.
timeInput
);
that
.
postTemplateData
.
selectedVal
.
push
(
`最近
${
ele
.
timeInput
}
月包含当月`
);
ele
.
timeInput
=
''
;
}
that
.
postTemplateData
.
template
=
that
.
templateData
;
tagParams
=
that
.
postTemplateData
;
}
//月 当月
if
(
ele
.
timeChecked
&&
!
ele
.
timeAfterChecked
)
{
tagValue
.
time
[
0
].
compute
=
'currentMonth'
;
tagValue
.
time
[
0
].
value
=
'1'
;
that
.
postTemplateData
.
selectedVal
.
push
(
'当月'
);
ele
.
timeInput
=
''
;
}
// 最近/之后
if
(
ele
.
timeAfterChecked
&&
!
ele
.
timeChecked
)
{
if
(
ele
.
timeSelect
==
1
)
{
// 最近
tagValue
.
time
[
0
].
compute
=
'lastmonth'
;
tagValue
.
time
[
0
].
value
=
String
(
ele
.
timeInput
);
that
.
postTemplateData
.
selectedVal
.
push
(
`最近
${
ele
.
timeInput
}
月`
);
}
}
}
// 年
if
(
ele
.
timeRadio
==
3
)
{
/**
* lastyearHasCurrentYear 最近几年包含当年
* afteryearHasCurrentYear 之后几年包含当年
*/
if
(
ele
.
timeChecked
&&
ele
.
timeAfterChecked
)
{
if
(
ele
.
timeSelect
==
1
)
{
tagValue
.
time
[
0
].
compute
=
'lastyearHasCurrentYear'
;
tagValue
.
time
[
0
].
value
=
String
(
ele
.
timeInput
);
that
.
postTemplateData
.
selectedVal
.
push
(
`最近
${
ele
.
timeInput
}
年包含当年`
);
ele
.
timeInput
=
''
;
}
that
.
postTemplateData
.
template
=
that
.
templateData
;
tagParams
=
that
.
postTemplateData
;
}
//年 当年
if
(
ele
.
timeChecked
&&
!
ele
.
timeAfterChecked
)
{
tagValue
.
time
[
0
].
compute
=
'currentYear'
;
tagValue
.
time
[
0
].
value
=
'1'
;
that
.
postTemplateData
.
selectedVal
.
push
(
'当年'
);
ele
.
timeInput
=
''
;
}
// 最近/之后
if
(
ele
.
timeAfterChecked
&&
!
ele
.
timeChecked
)
{
if
(
ele
.
timeSelect
==
1
)
{
// 最近
tagValue
.
time
[
0
].
compute
=
'lastyear'
;
tagValue
.
time
[
0
].
value
=
String
(
ele
.
timeInput
);
that
.
postTemplateData
.
selectedVal
.
push
(
`最近
${
ele
.
timeInput
}
年`
);
}
}
}
break
;
}
}
if
(
ele
.
templateCode
==
'tag060'
)
{
tagValue
.
val
[
0
].
data
.
value
=
ele
.
checked
.
join
(
' '
);
ele
.
checked
.
forEach
(
item
=>
{
...
...
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