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 a893135a
authored
Dec 24, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
素材修改
1 parent
3e395116
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
linkwe-ui/src/views/contacts/organization.vue
linkwe-ui/src/views/material/poster.vue
linkwe-ui/src/views/communityOperating/groupSOP/aev.vue
View file @
a893135
...
@@ -140,21 +140,23 @@
...
@@ -140,21 +140,23 @@
</div>
</div>
<!-- 选择素材弹窗 -->
<!-- 选择素材弹窗 -->
<!-- 文本 -->
<SelectMaterial
<SelectMaterial
v-if=
"activeName === '0'"
v-if=
"activeName === '0'"
:key=
"0"
:key=
"0"
:visible
.
sync=
"dialogVisibleSelectMaterial"
:visible
.
sync=
"dialogVisibleSelectMaterial"
type=
"4"
type=
"4"
@
success=
"
submitSelectMaterial
"
@
success=
"
(data) => submitSelectMaterial(data, 4)
"
>
>
</SelectMaterial>
</SelectMaterial>
<!-- 图片 -->
<SelectMaterial
<SelectMaterial
v-else
v-else
:key=
"1"
:key=
"1"
:visible
.
sync=
"dialogVisibleSelectMaterial"
:visible
.
sync=
"dialogVisibleSelectMaterial"
type=
"0"
type=
"0"
@
success=
"
submitSelectMaterial
"
@
success=
"
(data) => submitSelectMaterial(data, 0)
"
>
>
</SelectMaterial>
</SelectMaterial>
...
@@ -299,17 +301,17 @@ export default {
...
@@ -299,17 +301,17 @@ export default {
})
})
},
},
// 选择素材确认按钮
// 选择素材确认按钮
submitSelectMaterial
(
text
,
image
,
fil
e
)
{
submitSelectMaterial
(
data
,
typ
e
)
{
text
&&
data
.
id
&&
text
.
id
&&
!
this
.
form
.
materialIdList
.
includes
(
data
.
id
)
&&
!
this
.
form
.
materialIdList
.
includes
(
text
.
id
)
&&
this
.
form
.
materialIdList
.
push
(
data
.
id
)
this
.
form
.
materialIdList
.
push
(
text
.
id
)
&&
this
.
textMaterialList
.
push
(
text
)
type
==
4
&&
this
.
textMaterialList
.
push
(
data
)
image
&&
image
.
id
&&
type
==
0
&&
this
.
imageMaterialList
.
push
(
data
)
!
this
.
form
.
materialIdList
.
includes
(
image
.
id
)
&&
//
!this.form.materialIdList.includes(image.id) &&
this
.
form
.
materialIdList
.
push
(
image
.
id
)
&&
//
this.form.materialIdList.push(image.id) &&
this
.
imageMaterialList
.
push
(
image
)
this
.
$refs
.
form
.
validateField
(
'content'
)
this
.
$refs
.
form
.
validateField
(
'content'
)
},
},
// 选择客户群聊确认
// 选择客户群聊确认
...
...
linkwe-ui/src/views/contacts/organization.vue
View file @
a893135
...
@@ -210,7 +210,7 @@ export default {
...
@@ -210,7 +210,7 @@ export default {
this
.
dialogVisibleAvatar
=
true
this
.
dialogVisibleAvatar
=
true
},
},
// 选择素材确认按钮
// 选择素材确认按钮
submitSelectMaterial
(
text
,
image
,
fil
e
)
{
submitSelectMaterial
(
imag
e
)
{
this
.
form
.
headImageUrl
=
image
.
materialUrl
this
.
form
.
headImageUrl
=
image
.
materialUrl
// this.form.imageMessage._materialName = image.materialName
// this.form.imageMessage._materialName = image.materialName
}
}
...
...
linkwe-ui/src/views/material/poster.vue
View file @
a893135
...
@@ -310,7 +310,7 @@ export default {
...
@@ -310,7 +310,7 @@ export default {
this
.
msgSuccess
(
'删除成功'
)
this
.
msgSuccess
(
'删除成功'
)
})
})
},
},
submitSelectMaterial
(
text
,
image
,
fil
e
)
{
submitSelectMaterial
(
imag
e
)
{
if
(
this
.
isBackgroundImage
)
{
if
(
this
.
isBackgroundImage
)
{
this
.
form
.
mediaId
=
image
.
id
this
.
form
.
mediaId
=
image
.
id
this
.
form
.
backgroundImgPath
=
image
.
materialUrl
this
.
form
.
backgroundImgPath
=
image
.
materialUrl
...
...
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