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 9887409f
authored
Jan 13, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v3.3.1.1' into 'v3.3.1'
修复多个图片bug See merge request
!417
2 parents
bfcfb905
3ba567f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/baseInfo.vue
View file @
9887409
...
@@ -96,11 +96,12 @@
...
@@ -96,11 +96,12 @@
</div>
</div>
<div>
<div>
<div
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
class=
"textHidden"
:title=
"obj.attContent"
v-if=
"obj.attType == 1"
v-html=
"tramWord(obj.attContent)"
></div>
<div
class=
"textHidden"
:title=
"obj.attContent"
v-if=
"obj.attType == 1"
v-html=
"tramWord(obj.attContent)"
></div>
</div>
</div>
<div
class=
"event-inline"
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
class=
"event-inline"
v-for=
"(obj,index) in backupContentJson(item.backupContent)"
:key=
"index"
>
<div
>
<div>
<div
v-if=
"obj.attType == 2"
>
<div
v-if=
"obj.attType == 2"
>
<img
class=
"model-item-img"
<img
class=
"model-item-img"
:src=
"obj.attContent"
alt
/>
:src=
"obj.attContent"
alt
/>
</div>
</div>
...
@@ -934,9 +935,9 @@ export default {
...
@@ -934,9 +935,9 @@ export default {
followerTypeId
:
item
.
followerTypeId
,
followerTypeId
:
item
.
followerTypeId
,
followerTypeName
:
item
.
followerTypeName
,
followerTypeName
:
item
.
followerTypeName
,
reachesType
:
item
.
reachesType
,
reachesType
:
item
.
reachesType
,
reachesTypeSet
:
item
.
reachesTypeSet
reachesTypeSet
:
item
.
reachesTypeSet
,
resourceList
:
[]
})
})
console
.
log
(
item
.
id
)
if
(
item
.
id
)
{
if
(
item
.
id
)
{
params
.
eventList
[
index
].
id
=
item
.
id
params
.
eventList
[
index
].
id
=
item
.
id
}
}
...
@@ -948,7 +949,6 @@ export default {
...
@@ -948,7 +949,6 @@ export default {
if
(
backupContent
&&
backupContent
.
length
<=
2
)
{
if
(
backupContent
&&
backupContent
.
length
<=
2
)
{
backupContent
.
forEach
(
obj
=>
{
backupContent
.
forEach
(
obj
=>
{
if
(
obj
&&
obj
.
attType
==
1
)
{
if
(
obj
&&
obj
.
attType
==
1
)
{
console
.
log
(
params
.
eventList
[
index
])
params
.
eventList
[
index
].
eventContent
=
obj
.
attContent
params
.
eventList
[
index
].
eventContent
=
obj
.
attContent
}
}
if
(
obj
&&
obj
.
attType
==
2
)
{
if
(
obj
&&
obj
.
attType
==
2
)
{
...
@@ -995,7 +995,6 @@ export default {
...
@@ -995,7 +995,6 @@ export default {
params
.
eventList
[
index
].
additionalType
=
1
params
.
eventList
[
index
].
additionalType
=
1
params
.
eventList
[
index
].
objectType
=
10
params
.
eventList
[
index
].
objectType
=
10
let
backupattContent
=
typeof
(
obj
.
attContent
)
==
'string'
?
JSON
.
parse
(
obj
.
attContent
)
:
obj
.
attContent
let
backupattContent
=
typeof
(
obj
.
attContent
)
==
'string'
?
JSON
.
parse
(
obj
.
attContent
)
:
obj
.
attContent
console
.
log
(
backupattContent
)
params
.
eventList
[
index
].
objectId
=
backupattContent
.
objectId
params
.
eventList
[
index
].
objectId
=
backupattContent
.
objectId
}
}
})
})
...
@@ -1007,8 +1006,7 @@ export default {
...
@@ -1007,8 +1006,7 @@ export default {
if
(
obj
&&
obj
.
attType
==
2
)
{
if
(
obj
&&
obj
.
attType
==
2
)
{
params
.
eventList
[
index
].
additionalType
=
5
params
.
eventList
[
index
].
additionalType
=
5
params
.
eventList
[
index
].
objectType
=
11
params
.
eventList
[
index
].
objectType
=
11
videoImageStorage
.
push
(
obj
.
attContent
)
params
.
eventList
[
index
].
resourceList
.
push
(
obj
.
attContent
)
params
.
eventList
[
index
].
resourceList
=
videoImageStorage
}
}
if
(
obj
&&
obj
.
attType
==
6
)
{
if
(
obj
&&
obj
.
attType
==
6
)
{
params
.
eventList
[
index
].
additionalType
=
6
params
.
eventList
[
index
].
additionalType
=
6
...
@@ -1037,7 +1035,7 @@ export default {
...
@@ -1037,7 +1035,7 @@ export default {
})
})
}
}
idx
=
idx
+
1
idx
=
idx
+
1
}
else
{
}
else
{
params
.
eventList
.
push
(
item
)
params
.
eventList
.
push
(
item
)
params
.
eventList
[
index
].
isDelete
=
true
params
.
eventList
[
index
].
isDelete
=
true
}
}
...
@@ -1047,6 +1045,7 @@ export default {
...
@@ -1047,6 +1045,7 @@ export default {
params
.
eventList
=
[]
params
.
eventList
=
[]
this
.
editForm
.
eventList
.
forEach
((
item
,
index
)
=>
{
this
.
editForm
.
eventList
.
forEach
((
item
,
index
)
=>
{
params
.
eventList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
item
)))
params
.
eventList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
item
)))
params
.
eventList
[
index
].
resourceList
=
[]
if
(
item
.
object
&&
item
.
object
.
length
<=
2
)
{
if
(
item
.
object
&&
item
.
object
.
length
<=
2
)
{
item
.
object
.
forEach
(
obj
=>
{
item
.
object
.
forEach
(
obj
=>
{
if
(
obj
&&
obj
.
attType
==
1
)
{
if
(
obj
&&
obj
.
attType
==
1
)
{
...
@@ -1104,8 +1103,7 @@ export default {
...
@@ -1104,8 +1103,7 @@ export default {
if
(
obj
&&
obj
.
attType
==
2
)
{
if
(
obj
&&
obj
.
attType
==
2
)
{
params
.
eventList
[
index
].
additionalType
=
5
params
.
eventList
[
index
].
additionalType
=
5
params
.
eventList
[
index
].
objectType
=
11
params
.
eventList
[
index
].
objectType
=
11
videoImageStorage
.
push
(
obj
.
attContent
)
params
.
eventList
[
index
].
resourceList
.
push
(
obj
.
attContent
)
params
.
eventList
[
index
].
resourceList
=
videoImageStorage
}
}
if
(
obj
&&
obj
.
attType
==
6
)
{
if
(
obj
&&
obj
.
attType
==
6
)
{
params
.
eventList
[
index
].
additionalType
=
6
params
.
eventList
[
index
].
additionalType
=
6
...
@@ -1145,17 +1143,16 @@ export default {
...
@@ -1145,17 +1143,16 @@ 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
)
}
}
if
(
item
.
isDelete
){
if
(
item
.
isDelete
)
{
delete
batchEditParams
.
editList
[
indx
]
delete
batchEditParams
.
editList
[
indx
]
}
}
delete
item
.
isDelete
delete
item
.
isDelete
})
})
batchEditParams
.
editList
=
batchEditParams
.
editList
.
filter
(
current
=>
{
batchEditParams
.
editList
=
batchEditParams
.
editList
.
filter
(
current
=>
{
return
current
!==
undefined
return
current
!==
undefined
})
})
// 事件进行时,批量编辑sop事件
// 事件进行时,批量编辑sop事件
...
@@ -1444,7 +1441,8 @@ export default {
...
@@ -1444,7 +1441,8 @@ export default {
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.event-inline
{
.event-inline
{
margin-top
:
8px
;
margin-top
:
8px
;
display
:
inline-block
display
:
inline-block
}
}
...
...
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