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
53ab996e
Commit
53ab996e
authored
Apr 21, 2022
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 分组
parent
6ccdd939
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+16
-16
tag-config-options.vue
src/components/tag/tag-config-options.vue
+5
-7
index.js
src/components/tagDetail/mixin/index.js
+7
-5
member-tag.vue
src/view/platformTag/member-tag.vue
+4
-4
No files found.
src/components/tag/tag-config-options.vue
View file @
53ab996e
...
...
@@ -713,12 +713,10 @@
<div
class=
"checkboxOption-wrap__body__checkAll border-box tag-mode"
>
<el-checkbox
:indeterminate=
"parent.isIndeterminate"
v-model=
"parent.checkAll"
@
change=
"handleCheckAllChange($event, parent)"
>
全选
</el-checkbox>
</div>
<div
class=
"checkboxOption-wrap__body__options border-box tag-options"
>
<div
class=
"checkboxOption-wrap__body__options border-box tag-options"
style=
"padding: 20px 0"
>
<el-checkbox-group
v-model=
"parent.checkeditems"
@
change=
"handleCheckedCitiesChange"
>
<el-checkbox
v-for=
"(item, index) in parent.options"
:label=
"item.memberTagGradeId"
:key=
"item.memberTagGradeId + index"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"item.aliasName | aliasTips"
placement=
"top-start"
>
<span>
{{
item
.
aliasName
}}
</span>
</el-tooltip>
<el-checkbox
style=
"width: 170px; margin: 0 16px 16px"
v-for=
"(item, index) in parent.options"
:label=
"item.memberTagGroupId"
:key=
"item.memberTagGroupId + index"
>
<span>
{{
item
.
groupName
}}
</span>
</el-checkbox>
</el-checkbox-group>
</div>
...
...
@@ -1541,9 +1539,9 @@ export default {
* 会员分层
*/
if
(
data
.
templateCode
==
'tag021'
)
{
this
.
axios
.
get
(
`
${
this
.
baseUrl
}
/gic-member-tag-web/memberTagGrade/grade
List
?requestProject=gic-member-tag-web&type=1`
).
then
(
res
=>
{
this
.
axios
.
get
(
`
${
this
.
baseUrl
}
/gic-member-tag-web/memberTagGrade/grade
GroupListV2
?requestProject=gic-member-tag-web&type=1`
).
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
1
)
{
this
.
templateData
[
0
].
options
=
res
.
data
.
result
;
this
.
templateData
[
0
].
options
=
res
.
data
.
result
.
result
||
[]
;
}
});
}
...
...
src/components/tagDetail/mixin/index.js
View file @
53ab996e
...
...
@@ -437,9 +437,9 @@ export default {
tagValue
.
val
[
0
].
data
.
compute
=
that
.
templateData
[
0
].
compute
;
const
checkeditems
=
this
.
templateData
[
0
].
checkeditems
.
map
(
el
=>
el
);
this
.
templateData
[
0
].
options
.
forEach
((
ele
,
index
)
=>
{
if
(
checkeditems
.
indexOf
(
ele
.
memberTagGr
ade
Id
)
!=
-
1
)
{
this
.
postTemplateData
.
selectedVal
.
push
(
ele
.
alias
Name
);
itemArr
.
push
(
ele
.
memberTagGr
ade
Id
);
if
(
checkeditems
.
indexOf
(
ele
.
memberTagGr
oup
Id
)
!=
-
1
)
{
this
.
postTemplateData
.
selectedVal
.
push
(
ele
.
group
Name
);
itemArr
.
push
(
ele
.
memberTagGr
oup
Id
);
}
});
this
.
templateData
[
0
].
checkeditems
=
itemArr
;
...
...
@@ -1290,9 +1290,11 @@ export default {
if
(
val
)
{
item
.
checkeditems
=
[];
item
.
options
.
forEach
(
function
(
el
,
index
)
{
if
(
item
.
templateCode
===
'tag021'
||
item
.
templateCode
===
'tag022'
)
{
if
(
item
.
templateCode
===
'tag021'
)
{
item
.
checkeditems
.
push
(
el
.
memberTagGroupId
);
}
else
if
(
item
.
templateCode
==
'tag022'
)
{
item
.
checkeditems
.
push
(
el
.
memberTagGradeId
);
}
else
{
}
else
{
item
.
checkeditems
.
push
(
el
.
key
);
}
});
...
...
src/view/platformTag/member-tag.vue
View file @
53ab996e
...
...
@@ -472,10 +472,10 @@ export default {
return
;
}
if
(
param
.
isRealTime
===
0
&&
param
.
updateType
!==
1
&&
param
.
updateDay
===
''
)
{
this
.
$message
.
warning
({
message
:
'会员分组更新频率不能为空!'
});
return
;
}
//
if (param.isRealTime === 0 && param.updateType !== 1 && param.updateDay === '') {
//
this.$message.warning({ message: '会员分组更新频率不能为空!' });
//
return;
//
}
// if (param.fixedType === 2 && new Date(this.tagConfig.fixedTime) > new Date(this.tagConfig.fixedEndTime)) {
// this.$message.error({ message: '固化开始时间不允许晚于结束时间!' });
...
...
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