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
5226c047
Commit
5226c047
authored
Oct 11, 2022
by
dingdang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 会员标签加一个模板
parent
7297dd5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
tag-config-options.vue
src/components/tag/tag-config-options.vue
+12
-0
index.js
src/components/tagDetail/mixin/index.js
+10
-0
No files found.
src/components/tag/tag-config-options.vue
View file @
5226c047
...
...
@@ -1016,6 +1016,11 @@
<el-radio
v-for=
"item in parent.options"
:key=
"item.key"
:label=
"item.key"
>
{{
item
.
value
}}
</el-radio>
</el-radio-group>
</
template
>
<
template
v-if=
"parent.templateCode == 'tag060'"
>
<el-checkbox-group
v-model=
"parent.checked"
>
<el-checkbox
v-for=
"item in parent.options"
:key=
"item.key"
:label=
"item.key"
>
{{
item
.
value
}}
</el-checkbox>
</el-checkbox-group>
</
template
>
<!-- 会员标签嵌入卡券选择器 com024 -->
<!-- v-if="parent.templateCode == 'com024'" -->
...
...
@@ -1432,6 +1437,9 @@ export default {
tag040
:
{
radioType
:
'1100'
,
},
tag060
:
{
checked
:
[]
},
cardListData
:
[],
com024
:
{},
com025
:
{},
...
...
@@ -2442,6 +2450,10 @@ export default {
value
=
tagValue
.
val
[
0
].
data
.
value
;
this
.
templateData
[
i
].
radioType
=
value
;
break
;
case
'tag060'
:
value
=
tagValue
.
val
[
0
].
data
.
value
;
this
.
templateData
[
i
].
checked
=
value
.
split
(
' '
);
break
;
case
'tag024'
:
const
getTag024Data
=
this
.
hasTemplate
(
'tag024'
);
...
...
src/components/tagDetail/mixin/index.js
View file @
5226c047
...
...
@@ -992,6 +992,10 @@ export default {
this
.
postTemplateData
.
selectedVal
.
push
(
abbr
.
join
(
' '
));
this
.
postTemplateData
.
conditionList
=
this
.
com022
.
conditionsList
;
}
if
(
code
==
'tag060'
&&
(
!
Array
.
isArray
(
that
.
templateData
[
0
].
checked
)
||
that
.
templateData
[
0
].
checked
.
length
==
0
))
{
this
.
$message
.
error
(
'请完善标签值'
);
return
false
;
}
/* 属于/不属于+ 选项 */
...
...
@@ -1164,6 +1168,12 @@ 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
==
'tag060'
)
{
tagValue
.
val
[
0
].
data
.
value
=
ele
.
checked
.
join
(
' '
);
ele
.
checked
.
forEach
(
item
=>
{
that
.
postTemplateData
.
selectedVal
.
push
(
ele
.
options
.
find
(
k
=>
item
==
k
.
key
).
value
);
});
}
}
}
...
...
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