Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 60db009f
authored
Jan 11, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决重复新增
1 parent
d6aaae62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/baseInfo.vue
View file @
60db009
...
@@ -936,8 +936,9 @@ export default {
...
@@ -936,8 +936,9 @@ export default {
reachesType
:
item
.
reachesType
,
reachesType
:
item
.
reachesType
,
reachesTypeSet
:
item
.
reachesTypeSet
reachesTypeSet
:
item
.
reachesTypeSet
})
})
console
.
log
(
item
.
id
)
if
(
item
.
id
)
{
if
(
item
.
id
)
{
params
.
eventList
[
i
d
x
].
id
=
item
.
id
params
.
eventList
[
i
nde
x
].
id
=
item
.
id
}
}
if
(
item
.
repeatFlag
==
'Y'
)
{
if
(
item
.
repeatFlag
==
'Y'
)
{
params
.
eventList
[
idx
].
repeatTime
=
item
.
repeatTime
params
.
eventList
[
idx
].
repeatTime
=
item
.
repeatTime
...
@@ -1132,6 +1133,7 @@ export default {
...
@@ -1132,6 +1133,7 @@ export default {
deleteIdList
:
this
.
deleteIdList
,
deleteIdList
:
this
.
deleteIdList
,
editList
:
params
.
eventList
editList
:
params
.
eventList
}
}
console
.
log
(
batchEditParams
.
editList
)
batchEditParams
.
editList
.
forEach
((
item
,
indx
)
=>
{
batchEditParams
.
editList
.
forEach
((
item
,
indx
)
=>
{
if
(
item
.
backupContent
instanceof
Array
){
if
(
item
.
backupContent
instanceof
Array
){
item
.
backupContent
=
JSON
.
stringify
(
item
.
backupContent
)
item
.
backupContent
=
JSON
.
stringify
(
item
.
backupContent
)
...
@@ -1151,9 +1153,9 @@ export default {
...
@@ -1151,9 +1153,9 @@ export default {
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
this
.
$tracker
.
track
(
Object
.
assign
({},
{
pageName
:
'营销SOP'
,
name
:
'编辑sop事件'
,
params
}))
this
.
$tracker
.
track
(
Object
.
assign
({},
{
pageName
:
'营销SOP'
,
name
:
'编辑sop事件'
,
params
}))
if
(
res
.
code
==
'0'
)
{
//
if (res.code == '0') {
this
.
cancelJump
()
//
this.cancelJump()
}
//
}
})
})
}
else
{
}
else
{
params
.
eventList
=
JSON
.
stringify
(
params
.
eventList
)
params
.
eventList
=
JSON
.
stringify
(
params
.
eventList
)
...
@@ -1164,9 +1166,9 @@ export default {
...
@@ -1164,9 +1166,9 @@ export default {
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
this
.
$tracker
.
track
(
Object
.
assign
({},
{
pageName
:
'营销SOP'
,
name
:
'创建sop事件'
,
params
}))
this
.
$tracker
.
track
(
Object
.
assign
({},
{
pageName
:
'营销SOP'
,
name
:
'创建sop事件'
,
params
}))
if
(
res
.
code
==
'0'
)
{
//
if (res.code == '0') {
this
.
cancelJump
()
//
this.cancelJump()
}
//
}
})
})
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment