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
6996faa5
Commit
6996faa5
authored
Oct 09, 2021
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 同步微盟弹窗提醒
parent
744fa657
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
manualTagEdit.vue
src/view/manualTag/manualTagEdit.vue
+18
-1
member-tag.vue
src/view/platformTag/member-tag.vue
+3
-1
No files found.
src/view/manualTag/manualTagEdit.vue
View file @
6996faa5
...
...
@@ -84,7 +84,8 @@ export default {
optionsThree
:
[],
// 标签值列表的数据
tagValTableData
:
[]
tagValTableData
:
[],
preSyncWmStatus
:
0
};
},
watch
:
{
...
...
@@ -99,6 +100,9 @@ export default {
this
.
ruleForm
.
tagName
=
''
;
this
.
getOptionsThree
(
newVal
.
tagTwoLevelGroupId
);
}
// 获取初始化分类是否同步至微盟的状态
const
initData
=
this
.
optionsThree
.
find
(
el
=>
el
.
tagLevelGroupId
==
this
.
ruleForm
.
tagLevelGroupId
);
if
(
initData
)
this
.
preSyncWmStatus
=
initData
.
syncWmFlag
;
}
}
},
...
...
@@ -113,7 +117,20 @@ export default {
this
.
ruleForm
.
pending
=
true
;
this
.
$refs
.
ruleForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
const
isSyncWm
=
this
.
optionsThree
.
find
(
el
=>
el
.
tagLevelGroupId
==
this
.
ruleForm
.
tagLevelGroupId
).
syncWmFlag
;
const
isAutoSync
=
this
.
options
.
isSync
;
// 开启手动同步且移动前已同步至微盟,移动后未同步至微盟
if
(
!
isAutoSync
&&
this
.
preSyncWmStatus
&&
!
isSyncWm
)
{
this
.
$confirm
(
'该分类未开启微盟标签同步,修改后标签将不会再同步至微盟,并且已同步至微盟侧的会员标签将从微盟侧删除,是否继续保存?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
this
.
saveApi
();
}).
catch
(()
=>
this
.
ruleForm
.
pending
=
false
);
}
else
{
this
.
saveApi
();
}
}
else
{
this
.
ruleForm
.
pending
=
false
;
}
...
...
src/view/platformTag/member-tag.vue
View file @
6996faa5
...
...
@@ -301,7 +301,8 @@ export default {
// tagId: '6285cee7e2e14dddae3e2322c6ef6089'
tagId
:
''
,
tagLevelGroupId
:
''
,
tagTwoLevelGroupId
:
''
tagTwoLevelGroupId
:
''
,
isSync
:
false
}
,
memberTagGradeEnsure
:
true
,
// 是否开启会员分层
weimId
:
[
'3d11ac15963b4c0790762e6147ea9315'
,
'5bdac971673b4f40a9af981e3c9215bf'
],
...
...
@@ -644,6 +645,7 @@ export default {
isAutomaticSync
({
}
).
then
(
res
=>
{
if
(
res
.
errorCode
===
1
)
{
this
.
isSync
=
res
.
result
;
this
.
manualTagPop
.
isSync
=
res
.
result
;
}
}
)
}
,
...
...
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