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
8ddb50b5
Commit
8ddb50b5
authored
Oct 20, 2021
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 优化
parent
2cd16202
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
23 deletions
+33
-23
manual-tag-value-edit.vue
src/view/manualTag/manual-tag-value-edit.vue
+7
-6
member-tag.vue
src/view/platformTag/member-tag.vue
+26
-16
tag-container.vue
src/view/platformTag/tag-container.vue
+0
-1
No files found.
src/view/manualTag/manual-tag-value-edit.vue
View file @
8ddb50b5
...
...
@@ -233,11 +233,13 @@ export default {
methods
:
{
// 返回手工标签列表
back
()
{
const
levelGroupInfo
=
{
id
:
this
.
tagInfo
.
tagLevelGroupId
,
name
:
this
.
tagInfo
.
tagLevelGroupName
};
localStorage
.
setItem
(
'groupId'
,
JSON
.
stringify
(
levelGroupInfo
));
// console.log(this.tagInfo);
// return
// const levelGroupInfo = {
// id: this.tagInfo.tagLevelGroupId,
// name: this.tagInfo.tagLevelGroupName
// };
// localStorage.setItem('groupId', JSON.stringify(levelGroupInfo));
this
.
$router
.
push
(
'/member-tag'
);
},
...
...
@@ -710,7 +712,6 @@ export default {
},
mounted
()
{
const
tagId
=
this
.
$route
.
query
.
tagId
;
localStorage
.
removeItem
(
'groupId'
);
if
(
tagId
)
{
this
.
tagId
=
tagId
;
this
.
getValueData
();
...
...
src/view/platformTag/member-tag.vue
View file @
8ddb50b5
...
...
@@ -508,7 +508,7 @@ export default {
search
:
opt
.
searchName
||
null
,
// 标签名
tagLevelGroupId
:
opt
.
id
||
''
,
// 标签层级
tagType
:
opt
.
type
||
null
,
// 标签类型
showMemberCount
:
this
.
handTag
?
1
:
(
opt
.
showMemberCount
||
null
),
// 手工标签显示
覆盖人数
showMemberCount
:
1
,
//
覆盖人数
pageNum
:
opt
.
pageNum
||
1
,
pageSize
:
opt
.
pageSize
||
20
,
}
;
...
...
@@ -579,7 +579,6 @@ export default {
this
.
pageSize
=
20
;
this
.
params
.
pageNum
=
1
;
this
.
params
.
pageSize
=
20
;
localStorage
.
setItem
(
'groupId'
,
''
);
this
.
saveHandTagData
(
list
);
this
.
saveTagLevelGroupId
(
list
);
this
.
handTag
=
list
.
handTag
;
...
...
@@ -588,6 +587,13 @@ export default {
this
.
manualTagPop
.
tagTwoLevelGroupId
=
''
;
this
.
manualTagPop
.
tagLevelGroupId
=
''
;
this
.
changeTagTitle
(
list
.
name
);
if
(
list
.
handTag
)
{
const
levelGroupInfo
=
{
id
:
list
.
id
,
name
:
list
.
name
}
;
localStorage
.
setItem
(
'groupId'
,
JSON
.
stringify
(
levelGroupInfo
));
}
}
,
changeTagTitle
(
name
)
{
this
.
tagName
=
name
||
'全部标签'
;
...
...
@@ -691,10 +697,10 @@ export default {
this
.
params
.
type
=
1
;
this
.
params
.
id
=
hangObj
.
id
;
this
.
loadMemberTagList
(
this
.
params
);
this
.
tagName
=
hangObj
.
name
;
this
.
$store
.
commit
(
'modiftTagName'
,
this
.
tagName
);
this
.
handTag
=
true
;
this
.
handTag
=
1
;
this
.
loadMemberTagList
(
this
.
params
);
}
else
{
this
.
loadMemberTagList
(
this
.
params
);
this
.
$store
.
commit
(
'modiftTagName'
,
'我的用户'
);
...
...
@@ -716,12 +722,18 @@ export default {
}
;
this
.
pageNum
=
1
;
this
.
pageSize
=
20
;
localStorage
.
setItem
(
'groupId'
,
''
);
this
.
saveHandTagData
(
list
);
this
.
saveTagLevelGroupId
(
list
);
this
.
handTag
=
list
.
handTag
;
this
.
groupId
=
list
.
id
;
this
.
saveTagLevelGroupId
(
list
);
this
.
loadMemberTagList
(
this
.
params
);
if
(
list
.
handTag
)
{
const
levelGroupInfo
=
{
id
:
list
.
id
,
name
:
list
.
name
}
;
localStorage
.
setItem
(
'groupId'
,
JSON
.
stringify
(
levelGroupInfo
));
}
this
.
manualTagPop
.
tagTwoLevelGroupId
=
list
.
tagLevelGroupId
;
this
.
manualTagPop
.
tagLevelGroupId
=
''
;
this
.
changeTagTitle
(
list
.
name
);
...
...
@@ -742,12 +754,18 @@ export default {
this
.
pageSize
=
20
;
this
.
params
.
pageNum
=
1
;
this
.
params
.
pageSize
=
20
;
localStorage
.
setItem
(
'groupId'
,
''
);
this
.
saveHandTagData
(
list
);
this
.
saveTagLevelGroupId
(
list
);
this
.
loadMemberTagList
(
this
.
params
);
this
.
groupId
=
list
.
id
;
this
.
handTag
=
list
.
handTag
;
this
.
loadMemberTagList
(
this
.
params
);
if
(
list
.
handTag
)
{
const
levelGroupInfo
=
{
id
:
list
.
id
,
name
:
list
.
name
}
;
localStorage
.
setItem
(
'groupId'
,
JSON
.
stringify
(
levelGroupInfo
));
}
this
.
manualTagPop
.
tagTwoLevelGroupId
=
list
.
parentLevelGroupId
;
this
.
manualTagPop
.
tagLevelGroupId
=
list
.
tagLevelGroupId
;
this
.
changeTagTitle
(
list
.
name
);
...
...
@@ -756,14 +774,6 @@ export default {
this
.
getMemberGroupList
();
this
.
getMemberTagGradeEnsure
();
this
.
getSyncFlag
();
// if (localStorage.getItem('jumpThirdTag'))
{
// console.log(1);
// let tagList = JSON.parse(localStorage.getItem('jumpThirdTag'));
// this.params.id = tagList.id;
// this.params.type = 1;
// this.tagName = tagList.name;
// this.loadMemberTagList(this.params);
//
}
}
}
;
<
/script
>
...
...
src/view/platformTag/tag-container.vue
View file @
8ddb50b5
...
...
@@ -95,7 +95,6 @@ export default {
editHandTagValue
(
list
)
{
localStorage
.
setItem
(
'jumpTag'
,
''
);
localStorage
.
setItem
(
'jumpThirdTag'
,
''
);
// this.dispatch('member-tag', 'edit-third-tag');
this
.
$router
.
push
({
path
:
'/manualTagValueEdit'
,
query
:
{
tagId
:
list
.
tagId
}
...
...
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