Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 e22920a5
authored
Nov 15, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复 外链消息相关模块回显问题
1 parent
46c17fc4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
173 additions
and
486 deletions
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
vue3-lw-pc/src/components/ContentCenter/PreviewInPhone.vue
vue3-lw-pc/src/views/drainageCode/staff/add.vue
vue3-lw-pc/src/views/drainageCode/staff/detail.vue
vue3-lw-pc/src/views/drainageCode/store/base_detail.vue
vue3-lw-pc/src/views/drainageCode/store/guide_code.vue
vue3-lw-pc/src/views/groupMessage/detail.vue
vue3-lw-pc/src/views/operateCenter/liveBroadcast/add.vue
vue3-lw-pc/src/views/operateCenter/liveBroadcast/share.vue
vue3-lw-pc/src/components/ContentCenter/AddMaterial.vue
View file @
e22920a
...
...
@@ -2,15 +2,12 @@
<div>
<!-- 新建欢迎语 -->
<el-row
type=
"flex"
justify=
"space-between"
>
<el-col
:span=
"!showPhone ? 24 : 16"
:class=
"!showPhone ? '
mt10
' : 'boxClass'"
class=
"left radius"
>
<el-col
:span=
"!showPhone ? 24 : 16"
:class=
"!showPhone ? '
g-margin-t
' : 'boxClass'"
class=
"left radius"
>
<div
class=
"g-card"
v-if=
"showModle"
>
<el-button
type=
"primary"
@
click=
"welcomVisible = true"
>
从模板库中选择
</el-button>
</div>
<div
class=
"g-card"
v-if=
"!detail"
>
<div
class=
"g-card-title"
v-if=
"iswelcom || (moduleType === 4 && otherType !== 3)"
style=
"margin-bottom: 20px"
>
<div
class=
"g-card-title g-margin-b"
v-if=
"iswelcom || (moduleType === 4 && otherType !== 3)"
>
{{
titleOne
}}
<el-popover
trigger=
"hover"
content=
"最多发送1条文字信息"
placement=
"top-start"
>
<template
#
reference
>
...
...
@@ -129,7 +126,7 @@
</div>
</div>
</div>
<div
class=
"g-card"
style=
"margin-top: 10px"
v-if=
"talkList?.length"
>
<div
class=
"g-card"
v-if=
"talkList?.length"
>
<DragTable
:tableData2=
"talkList"
@
setData=
"setData"
...
...
@@ -358,18 +355,24 @@ export default {
type
:
Boolean
,
default
:
false
,
},
isTransData
:
Boolean
,
},
watch
:
{
baseData
:
{
handler
(
val
)
{
val
=
JSON
.
parse
(
JSON
.
stringify
(
val
))
if
(
val
.
templateInfo
||
val
.
attachments
)
{
this
.
form
.
templateInfo
=
val
.
templateInfo
?
val
.
templateInfo
:
''
this
.
isTransData
&&
(
val
.
attachments
=
this
.
setEditList
(
val
.
attachments
))
this
.
form
.
templateInfo
=
val
.
templateInfo
||
''
this
.
form
.
attachments
=
val
.
attachments
this
.
talkForm
=
val
this
.
talkList
=
val
.
attachments
// this.$forceUpdate()
if
(
this
.
otherType
===
3
&&
this
.
detail
)
{
this
.
talkForm
=
val
this
.
talkList
=
val
.
attachments
}
//
if (this.otherType === 3 && this.detail) {
//
this.talkForm = val
//
this.talkList = val.attachments
//
}
}
},
deep
:
true
,
...
...
@@ -695,6 +698,72 @@ export default {
}
})
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
let
common
=
{
id
:
dd
.
materialId
,
mediaType
:
dd
.
realType
+
''
}
let
obj
=
undefined
if
(
dd
.
realType
===
0
)
{
obj
=
{
materialUrl
:
dd
.
picUrl
,
}
}
else
if
(
dd
.
realType
===
2
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
3
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
4
)
{
obj
=
{
content
:
dd
.
content
,
}
}
else
if
([
9
,
19
].
includes
(
dd
.
realType
))
{
obj
=
{
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
8
)
{
obj
=
{
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
11
)
{
obj
=
{
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
}
else
if
(
dd
.
realType
===
12
)
{
obj
=
{
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
5
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
,
}
}
obj
&&
arr
.
push
(
Object
.
assign
(
common
,
obj
))
})
}
return
arr
},
dealOtherModleType
(
talkForm
)
{
this
.
talkList
.
forEach
((
item
)
=>
{
let
attachments
=
{}
...
...
@@ -846,11 +915,11 @@ export default {
if
(
this
.
templateType
!=
1
&&
this
.
moduleType
!=
4
)
{
this
.
getTree
()
}
if
(
this
.
form
.
templateInfo
)
{
// this.form.templateInfo = this.baseData.templateInfo
this
.
talkForm
=
this
.
baseData
this
.
talkList
=
this
.
baseData
.
attachments
}
//
if (this.form.templateInfo) {
//
// this.form.templateInfo = this.baseData.templateInfo
//
this.talkForm = this.baseData
//
this.talkList = this.baseData.attachments
//
}
this
.
dealType
()
if
(
this
.
tplType
==
3
)
{
this
.
maxlength
=
1
...
...
vue3-lw-pc/src/components/ContentCenter/PreviewInPhone.vue
View file @
e22920a
...
...
@@ -14,7 +14,7 @@
</div>
</div>
</div>
<div
class=
"item"
v-for=
"(data, key) in list"
:key=
"key"
>
<div
class=
"item"
v-for=
"(data, key) in list
?.length ? list : data
"
:key=
"key"
>
<div
class=
"avatar222"
><img
src=
"../../assets/drainageCode/header.png"
/></div>
<div
class=
"msg"
>
<!-- 文本 -->
...
...
@@ -195,19 +195,21 @@ export default {
type
:
Object
,
default
:
null
,
},
originList
:
{
type
:
Array
,
default
:
()
=>
[],
},
},
watch
:
{
// list: {
// handler(val) {
// // console.log(144, val)
// },
// immediate: true,
// },
},
watch
:
{},
data
()
{
return
{}
},
computed
:
{},
computed
:
{
data
()
{
return
this
.
setEditList
(
this
.
originList
)
},
},
created
()
{},
mounted
()
{},
methods
:
{
...
...
@@ -226,6 +228,72 @@ export default {
return
''
}
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
let
common
=
{
id
:
dd
.
materialId
,
mediaType
:
dd
.
realType
+
''
}
let
obj
=
undefined
if
(
dd
.
realType
===
0
)
{
obj
=
{
materialUrl
:
dd
.
picUrl
,
}
}
else
if
(
dd
.
realType
===
2
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
3
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
4
)
{
obj
=
{
content
:
dd
.
content
,
}
}
else
if
([
9
,
19
].
includes
(
dd
.
realType
))
{
obj
=
{
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
8
)
{
obj
=
{
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
11
)
{
obj
=
{
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
}
else
if
(
dd
.
realType
===
12
)
{
obj
=
{
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
5
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
,
}
}
obj
&&
arr
.
push
(
Object
.
assign
(
common
,
obj
))
})
}
return
arr
},
},
}
</
script
>
...
...
vue3-lw-pc/src/views/drainageCode/staff/add.vue
View file @
e22920a
...
...
@@ -229,6 +229,7 @@
@
update=
"currentActive = 2"
@
submit=
"getWelData"
:baseData=
"materialData"
isTransData
:showModle=
"true"
></AddMaterial>
</div>
...
...
@@ -674,79 +675,13 @@ export default {
}
this
.
materialData
=
{
templateInfo
:
base
.
qrAttachments
?
base
.
qrAttachments
[
0
].
content
:
''
,
attachments
:
base
.
qrAttachments
?
this
.
setEditList
(
base
.
qrAttachments
)
:
[],
attachments
:
base
.
qrAttachments
||
[],
}
// this.materialData.materialMsgList.forEach(ddd => {
// ddd.msgType = Number(ddd.msgType)
// })
})
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
let
common
=
{
id
:
dd
.
materialId
,
mediaType
:
dd
.
realType
+
''
}
let
obj
=
undefined
if
(
dd
.
realType
===
0
)
{
obj
=
{
materialUrl
:
dd
.
picUrl
,
}
}
else
if
(
dd
.
realType
===
2
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
3
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
4
)
{
obj
=
{
content
:
dd
.
content
,
}
}
else
if
([
9
,
19
].
includes
(
dd
.
realType
))
{
obj
=
{
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
8
)
{
obj
=
{
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
11
)
{
obj
=
{
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
}
else
if
(
dd
.
realType
===
12
)
{
obj
=
{
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
}
else
if
(
dd
.
realType
===
5
)
{
obj
=
{
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
,
}
}
obj
&&
arr
.
push
(
Object
.
assign
(
common
,
obj
))
})
}
return
arr
},
// 获取活码分组
getCodeCategoryList
()
{
getCodeCategoryList
({
mediaType
:
6
}).
then
((
res
)
=>
{
...
...
vue3-lw-pc/src/views/drainageCode/staff/detail.vue
View file @
e22920a
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/drainageCode/store/base_detail.vue
View file @
e22920a
...
...
@@ -73,7 +73,7 @@
<
template
v-if=
"codeType === 1"
>
<preview-store-client
:showGuide=
"true"
name=
"专属门店导购"
:value=
"form"
></preview-store-client>
<PreviewInPhone
:
l
ist=
"materialData.attachments"
:
originL
ist=
"materialData.attachments"
:templateInfo=
"materialData.welcomeMsg"
:liveUrl=
"liveUrl"
/>
</
template
>
...
...
@@ -156,95 +156,6 @@ export default {
}
})
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
if
(
dd
.
realType
===
0
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'0'
,
materialUrl
:
dd
.
picUrl
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
2
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'2'
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
3
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'3'
,
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
4
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'4'
,
content
:
dd
.
content
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
9
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'9'
,
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
8
)
{
let
ob
=
{
id
:
dd
.
materialId
,
mediaType
:
'8'
,
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
}
arr
.
push
(
ob
)
}
else
if
(
dd
.
realType
===
11
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'11'
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
12
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'12'
,
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
5
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'5'
,
materialUrl
:
dd
.
picUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
})
}
return
arr
},
init
()
{
getCode
(
this
.
codeType
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
data
)
{
...
...
@@ -259,7 +170,7 @@ export default {
if
(
this
.
form
.
weQrAttachments
&&
this
.
form
.
weQrAttachments
.
length
)
{
this
.
materialData
=
{
welcomeMsg
:
this
.
form
.
weQrAttachments
?
this
.
form
.
weQrAttachments
[
0
].
content
:
''
,
attachments
:
this
.
form
.
weQrAttachments
?
this
.
setEditList
(
this
.
form
.
weQrAttachments
)
:
[]
,
attachments
:
this
.
form
.
weQrAttachments
,
}
}
if
(
this
.
form
.
tagIds
)
{
...
...
vue3-lw-pc/src/views/drainageCode/store/guide_code.vue
View file @
e22920a
...
...
@@ -77,6 +77,7 @@
@
update=
"currentActive = 1"
@
submit=
"getWelData"
:baseData=
"materialData"
isTransData
:showModle=
"true"
></AddMaterial>
</
template
>
<SelectUser
...
...
@@ -251,95 +252,6 @@ export default {
this
.
loading
=
false
})
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
if
(
dd
.
realType
===
0
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'0'
,
materialUrl
:
dd
.
picUrl
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
2
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'2'
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
3
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'3'
,
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
4
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'4'
,
content
:
dd
.
content
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
9
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'9'
,
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
8
)
{
let
ob
=
{
id
:
dd
.
materialId
,
mediaType
:
'8'
,
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
}
arr
.
push
(
ob
)
}
else
if
(
dd
.
realType
===
11
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'11'
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
12
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'12'
,
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
5
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'5'
,
materialUrl
:
dd
.
picUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
})
}
return
arr
},
init
()
{
getCode
(
1
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
data
)
{
...
...
@@ -353,7 +265,7 @@ export default {
}
this
.
materialData
=
{
templateInfo
:
this
.
form
.
weQrAttachments
?
this
.
form
.
weQrAttachments
[
0
].
content
:
''
,
attachments
:
this
.
form
.
weQrAttachments
?
this
.
setEditList
(
this
.
form
.
weQrAttachments
)
:
[]
,
attachments
:
this
.
form
.
weQrAttachments
,
}
if
(
this
.
form
.
tagIds
)
{
this
.
selectedTagList
=
[]
...
...
vue3-lw-pc/src/views/groupMessage/detail.vue
View file @
e22920a
...
...
@@ -138,7 +138,7 @@
</div>
</div>
<div
class=
"g-card"
style=
"width: 425px; margin-top: 0"
>
<PreviewInPhone
:templateInfo=
"form.welcomeMsg"
:
l
ist=
"form.materialMsgList"
></PreviewInPhone>
<PreviewInPhone
:templateInfo=
"form.welcomeMsg"
:
originL
ist=
"form.materialMsgList"
></PreviewInPhone>
</div>
</div>
</div>
...
...
@@ -284,124 +284,6 @@ export default {
this
.
queryMember
.
pageNum
=
e
.
page
this
.
getMemberList
()
},
setEditList
(
list
)
{
// let arr = []
// if (list && list.length) {
// list.forEach(dd => {
// if (dd.msgType === 'image') {
// let obj = {
// msgType: '0',
// materialUrl: dd.picUrl
// }
// arr.push(obj)
// } else if (dd.msgType === 'link') {
// let ob = {
// msgType: '8',
// materialName: dd.title,
// materialUrl: dd.linkUrl
// }
// arr.push(ob)
// } else if (dd.msgType === 'miniprogram') {
// let ff = {
// msgType: '9',
// digest: dd.appId,
// materialName: dd.title,
// coverUrl: dd.picUrl,
// materialUrl: dd.linkUrl
// }
// arr.push(ff)
// }
// })
// }
// return arr
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
if
(
dd
.
realType
===
0
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'0'
,
materialUrl
:
dd
.
picUrl
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
2
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'2'
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
3
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'3'
,
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
4
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'4'
,
content
:
dd
.
content
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
9
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'9'
,
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
8
)
{
let
ob
=
{
id
:
dd
.
materialId
,
mediaType
:
'8'
,
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
}
arr
.
push
(
ob
)
}
else
if
(
dd
.
realType
===
11
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'11'
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
12
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'12'
,
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
5
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'5'
,
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
})
}
return
arr
},
getDetail
()
{
getDetail
(
this
.
msgId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
...
...
@@ -409,7 +291,7 @@ export default {
this
.
form
.
welcomeMsg
=
res
.
data
.
content
// this.form.materialMsgList = res.data.attachments
// this.form.welcomeMsg = res.data.attachments ? res.data.attachments[0].content : '',
this
.
form
.
materialMsgList
=
res
.
data
.
attachments
?
this
.
setEditList
(
res
.
data
.
attachments
)
:
[]
this
.
form
.
materialMsgList
=
res
.
data
.
attachments
||
[]
// this.$forceUpdate()
}
else
{
this
.
msgError
(
res
.
msg
||
'获取失败'
)
...
...
vue3-lw-pc/src/views/operateCenter/liveBroadcast/add.vue
View file @
e22920a
This diff is collapsed.
Click to expand it.
vue3-lw-pc/src/views/operateCenter/liveBroadcast/share.vue
View file @
e22920a
...
...
@@ -176,7 +176,7 @@
<div
class=
"g-card"
style=
"width: 425px; margin-top: 0"
>
<PreviewInPhone
:templateInfo=
"templateInfo"
:
l
ist=
"topData.weLiveAttachments"
:
originL
ist=
"topData.weLiveAttachments"
:liveUrl=
"topData.shareOrJoinUrl"
/>
</div>
</div>
...
...
@@ -348,7 +348,7 @@ export default {
this
.
getList
()
this
.
getFirstList
()
this
.
templateInfo
=
res
.
data
.
weLiveAttachments
[
0
].
content
this
.
topData
.
weLiveAttachments
=
this
.
setEditList
(
res
.
data
.
weLiveAttachments
)
this
.
topData
.
weLiveAttachments
=
res
.
data
.
weLiveAttachments
this
.
topData
.
sendWeuserNames
=
res
.
data
.
sendWeuserNames
?
res
.
data
.
sendWeuserNames
.
split
(
','
)
:
res
.
data
.
sendWeuserNames
...
...
@@ -368,96 +368,6 @@ export default {
return
arr
}
},
setEditList
(
list
)
{
let
arr
=
[]
if
(
list
&&
list
.
length
)
{
list
.
forEach
((
dd
)
=>
{
if
(
dd
.
realType
===
0
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'0'
,
materialUrl
:
dd
.
picUrl
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
2
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'2'
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
3
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'3'
,
materialUrl
:
dd
.
fileUrl
,
digest
:
dd
.
description
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
4
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'4'
,
content
:
dd
.
content
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
9
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'9'
,
content
:
dd
.
content
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
else
if
(
dd
.
realType
===
8
)
{
let
ob
=
{
id
:
dd
.
materialId
,
mediaType
:
'8'
,
materialName
:
dd
.
title
,
materialUrl
:
dd
.
linkUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
ob
)
}
else
if
(
dd
.
realType
===
11
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'11'
,
digest
:
dd
.
appId
,
materialName
:
dd
.
title
,
coverUrl
:
dd
.
picUrl
,
materialUrl
:
dd
.
fileUrl
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
12
)
{
let
ff
=
{
id
:
dd
.
materialId
,
mediaType
:
'12'
,
digest
:
dd
.
description
,
materialUrl
:
dd
.
fileUrl
,
coverUrl
:
dd
.
picUrl
,
content
:
dd
.
content
,
materialName
:
dd
.
title
,
}
arr
.
push
(
ff
)
}
else
if
(
dd
.
realType
===
5
)
{
let
obj
=
{
id
:
dd
.
materialId
,
mediaType
:
'5'
,
materialUrl
:
dd
.
fileUrl
,
materialName
:
dd
.
title
,
}
arr
.
push
(
obj
)
}
})
}
return
arr
},
/** 查询 */
getFirstList
(
page
)
{
page
&&
(
this
.
firstQuery
.
pageNum
=
page
)
...
...
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