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
f6d36a1f
Commit
f6d36a1f
authored
May 05, 2019
by
member
Browse files
Options
Browse Files
Download
Plain Diff
合并master
parents
893b9972
6fdddcce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
66 additions
and
14 deletions
+66
-14
batch-list.vue
src/components/tag/batch-list.vue
+19
-6
tag-config-options.vue
src/components/tag/tag-config-options.vue
+0
-0
index.js
src/components/tagDetail/mixin/index.js
+0
-0
edit-tag.vue
src/view/memberGroup/edit-tag.vue
+7
-3
memberGroupEdit.vue
src/view/memberGroup/memberGroupEdit.vue
+2
-0
memberGroupList.vue
src/view/memberGroup/memberGroupList.vue
+16
-4
member-tag.vue
src/view/platformTag/member-tag.vue
+6
-1
index.less
static/css/index.less
+16
-0
No files found.
src/components/tag/batch-list.vue
View file @
f6d36a1f
<
template
>
<el-dialog
title=
"批量操作分组数据"
width=
"340px"
top=
"30vh"
:visible
.
sync=
"batchDialog"
center
:modal-append-to-body=
"false"
:before-close=
"closeBatch"
>
<el-dialog
title=
""
width=
"400px"
top=
"30vh"
custom-class=
"cre-dialog"
:visible
.
sync=
"batchDialog"
center
:modal-append-to-body=
"false"
:before-close=
"closeBatch"
>
<p
class=
"tips"
slot=
"title"
>
提示
</p>
<div
class=
"batch-content"
>
<div
v-if=
"operNum == 0"
>
<div
class=
"el-message-box__status el-icon-warning"
></div>
...
...
@@ -10,7 +12,10 @@
<p
class=
"batch-txt"
>
是否确定批量删除分组!
</p>
</div>
<div
v-if=
"operNum == 2"
>
我的会员分组
<p
class=
"title"
>
我的会员分组
</p>
<ul
class=
"batch-ul"
>
<li
v-for=
"item in groupList"
:key=
"item.memberTagGroupClassifyId"
class=
"batch-li"
@
click=
"chooseGroup(item)"
>
{{
item
.
classifyName
}}
...
...
@@ -20,10 +25,14 @@
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<div
class=
"cre-btn"
>
<el-button
@
click=
"closeBatch"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmBatch"
>
确 定
</el-button>
</div>
<!--
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"closeBatch"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmBatch"
>
确 定
</el-button>
</span>
</span>
-->
</el-dialog>
</
template
>
...
...
@@ -120,8 +129,8 @@ export default {
})
.
then
(
res
=>
{
if
(
res
.
errorCode
===
1
)
{
this
.
groupList
=
res
.
result
.
map
(
el
=>
({
...
el
,
this
.
groupList
=
res
.
result
.
filter
(
el
=>
el
.
classifyName
!=
'未分类'
).
map
(
item
=>
({
...
item
,
edit
:
false
}));
}
...
...
@@ -159,6 +168,10 @@ export default {
padding-left
:
35px
;
padding-top
:
7px
;
}
.batch-title
{
color
:
#333
;
font-size
:
18px
;
}
.batch-ul
{
margin-top
:
10px
;
.batch-li
{
...
...
src/components/tag/tag-config-options.vue
View file @
f6d36a1f
This diff is collapsed.
Click to expand it.
src/components/tagDetail/mixin/index.js
View file @
f6d36a1f
This diff is collapsed.
Click to expand it.
src/view/memberGroup/edit-tag.vue
View file @
f6d36a1f
...
...
@@ -82,11 +82,15 @@ export default {
handleSave
()
{
const
ret
=
this
.
$refs
.
tagConfig
.
getTemplateData
();
this
.
templateData
=
JSON
.
parse
(
JSON
.
stringify
(
ret
));
this
.
tagId
=
this
.
tagDataAssgin
.
tagId
;
this
.
$refs
.
tagConfig
.
saveConfirm
().
then
(
_
=>
{
this
.
$emit
(
'update:showEditTagPop'
,
false
);
this
.
$emit
(
'refersh'
,
this
.
tagDataAssgin
);
this
.
$refs
.
tagConfig
.
saveConfirm
().
then
(
res
=>
{
if
(
res
)
{
this
.
$emit
(
'update:showEditTagPop'
,
false
);
this
.
$emit
(
'refersh'
,
this
.
tagDataAssgin
);
}
});
},
returnTagData
(
list
)
{
...
...
src/view/memberGroup/memberGroupEdit.vue
View file @
f6d36a1f
...
...
@@ -317,6 +317,7 @@ export default {
this
.
showEditTagPop
=
true
;
this
.
$nextTick
(()
=>
{
this
.
tagData
=
Object
.
assign
({},
this
.
tagData
,
this
.
ruleForm
.
selectedTags
[
this
.
activeTagsGroupIndex
][
this
.
activeTagIndex
]);
this
.
tagData
.
editCondition
=
true
;
});
},
...
...
@@ -324,6 +325,7 @@ export default {
selectedTag
(
tagData
)
{
this
.
showEditTagPop
=
true
;
this
.
tagData
=
Object
.
assign
({},
this
.
tagData
,
tagData
);
this
.
tagData
.
editCondition
=
false
;
},
// 保存选择的标签数据
returnTagData
(
data
)
{
...
...
src/view/memberGroup/memberGroupList.vue
View file @
f6d36a1f
...
...
@@ -16,7 +16,7 @@
<el-option
key=
""
label=
"全部"
value=
""
>
</el-option>
</el-select>
<div
class=
"batch-option"
>
<el-select
v-model=
"batchSelect"
@
change=
"batchHandleSelect"
style=
"width: 150px;"
placeholder=
"批量操作"
class=
"w-220 m-l-0"
>
<el-select
v-model=
"batchSelect"
@
change=
"batchHandleSelect"
@
focus=
"handleFocus"
style=
"width: 150px;"
placeholder=
"批量操作"
class=
"w-220 m-l-0"
>
<el-option
:key=
"0"
label=
"失效"
:value=
"0"
>
</el-option>
<el-option
:key=
"1"
label=
"删除"
:value=
"1"
>
</el-option>
<el-option
:key=
"2"
label=
"修改所属分类"
:value=
"2"
>
</el-option>
...
...
@@ -375,16 +375,28 @@ export default {
/**
* 批量操作
*/
handleFocus
()
{
if
(
!
this
.
multipleSelection
.
length
)
{
this
.
batchSelect
=
''
;
this
.
$message
.
warning
({
message
:
'请先勾选分组'
,
duration
:
2000
});
return
false
;
}
},
batchHandleSelect
(
val
)
{
this
.
operateNumber
=
val
;
if
(
!
this
.
multipleSelection
.
length
)
{
this
.
batchSelect
=
''
;
this
.
$message
.
warning
({
message
:
'请先勾选分组'
,
duration
:
2000
});
return
;
return
false
;
}
else
{
this
.
operateNumber
=
val
;
this
.
batchVisiable
=
true
;
}
this
.
batchVisiable
=
true
;
},
setRowClassName
({
row
,
rowIndex
})
{
...
...
src/view/platformTag/member-tag.vue
View file @
f6d36a1f
...
...
@@ -18,7 +18,12 @@
<div
class=
"tag-all"
>
<p
class=
"tag-name"
>
{{
tagName
}}
<span
v-if=
"tagName == '全部标签'"
>
{{
tagName
}}
</span>
<span
v-else
>
【
{{
tagName
}}
】搜索结果
</span>
<el-button
type=
"primary"
class=
"add-newtag"
@
click=
"addNewTag"
v-show=
"handTag == 1"
>
新增标签
</el-button>
</p>
...
...
static/css/index.less
View file @
f6d36a1f
...
...
@@ -71,4 +71,19 @@
li {
background-color: #f7faff;
}
}
.cre-dialog {
.el-dialog__body {
padding: 10px 20px;
}
.cre-btn {
padding-top: 20px;
text-align: right;
}
.tips {
text-align: left;
font-size: 18px;
color: #303133;
}
}
\ No newline at end of file
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