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
be3f0c26
Commit
be3f0c26
authored
Apr 15, 2019
by
member
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交合并
parent
0eeec886
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
5 deletions
+45
-5
api.js
src/request/api.js
+9
-0
member-tag.vue
src/view/platformTag/member-tag.vue
+34
-3
tag-container.vue
src/view/platformTag/tag-container.vue
+2
-2
No files found.
src/request/api.js
View file @
be3f0c26
...
...
@@ -129,3 +129,12 @@ export const batchChangeGroup = params =>
method
:
'get'
,
params
:
params
});
// 会员分组新增 /member-tag-group/add
export
const
addNewGroup
=
params
=>
request
({
url
:
'/member-tag-group/add'
,
method
:
'get'
,
params
:
params
});
src/view/platformTag/member-tag.vue
View file @
be3f0c26
...
...
@@ -55,7 +55,14 @@
<el-collapseTransition>
<div
class=
"wapper"
>
<div
class=
"inner"
>
<tags-group-list
:selectedTagsData=
"selectedTags"
:tagsGroupRelation=
"tagsGroupRelation"
@
addTags=
"addTags"
@
editTags=
"editTags"
:activeTagsGroupIndex
.
sync=
"activeTagsGroupIndex"
/>
<tags-group-list
class=
"marginwapper"
:selectedTagsData=
"selectedTags"
:tagsGroupRelation=
"tagsGroupRelation"
@
addTags=
"addTags"
@
editTags=
"editTags"
:activeTagsGroupIndex
.
sync=
"activeTagsGroupIndex"
/>
<div
class=
"form-item"
>
<label
for=
""
>
分组名称
</label>
<el-input
v-model=
"tagConfig.groupName"
:maxlength=
"10"
></el-input>
...
...
@@ -66,12 +73,13 @@
</div>
<div
class=
"form-item"
>
<label
for=
""
>
分组描述
</label>
<el-input
type=
"textarea"
v-model=
"tagConfig.textarea"
:maxlength=
"
1
0"
></el-input>
<el-input
type=
"textarea"
v-model=
"tagConfig.textarea"
:maxlength=
"
20
0"
></el-input>
</div>
<p>
更新频率(更新时间预计选择日期的凌晨0点至6点)
</p>
</div>
<div
class=
"fixed-btn"
>
<el-button
type=
"primary"
@
click=
"createNewGroup"
>
创建会员分组
</el-button>
<el-button
@
click=
"groupShow = false"
>
关闭
</el-button>
</div>
</div>
</el-collapseTransition>
...
...
@@ -86,7 +94,7 @@ import navCrumb from '@/components/nav/nav.vue';
import
TagsGroupList
from
'../memberGroup/tags-group-list'
;
import
TagType
from
'./tag-type'
;
import
TagContainer
from
'./tag-container'
;
import
{
getMemberTag
,
getMemberTagList
}
from
'@/request/api'
;
import
{
getMemberTag
,
getMemberTagList
,
addNewGroup
}
from
'@/request/api'
;
Vue
.
component
(
CollapseTransition
.
name
,
CollapseTransition
);
...
...
@@ -152,6 +160,26 @@ export default {
methods
:
{
createNewGroup
()
{
//
const
param
=
{
groupName
:
this
.
tagConfig
.
groupName
,
isRealTime
:
0
,
describle
:
this
.
tagConfig
.
describle
,
updateType
:
''
,
updateDay
:
''
,
effectiveStatus
:
''
,
requestProject
:
'gic-member-tag-web'
,
json
:
JSON
.
stringify
(
this
.
selectedTags
),
effectiveDateTmp
:
this
.
tagConfig
.
date
};
addNewGroup
(
param
)
.
then
(
res
=>
{
if
(
res
.
errorCode
==
1
)
{
console
.
log
(
res
);
}
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
expendsGroupList
()
{
// if (this.selectedTags && this.selectedTags.length) {
...
...
@@ -466,6 +494,9 @@ export default {
height
:
700px
;
overflow-y
:
auto
;
}
.marginwapper
{
margin-left
:
0px
;
}
.fixed-btn
{
position
:
absolute
;
bottom
:
20px
;
...
...
src/view/platformTag/tag-container.vue
View file @
be3f0c26
...
...
@@ -30,7 +30,7 @@
</el-table>
</div>
<el-dialog
title=
"添加标签"
:visible
.
sync=
"dialogVisible"
width=
"540"
:before-close=
"handleClose"
>
<el-dialog
title=
"添加标签"
:visible
.
sync=
"dialogVisible"
width=
"540"
:before-close=
"handleClose"
:append-to-body=
"true"
>
<div
class=
"dialog-box"
>
<p
class=
"tag-name"
>
{{ tagData.tagName }}
</p>
<p
class=
"tag-desc"
>
根据会员信息扩展字段统计而来
</p>
...
...
@@ -56,7 +56,7 @@
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"
closeTagDialog
"
>
取 消
</el-button>
<el-button
@
click=
"
handleClose
"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmOptions"
>
确 定
</el-button>
</span>
</el-dialog>
...
...
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