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 7cf880c1
authored
Mar 23, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
ac19adc6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
4 deletions
src/views/sop/editSop/components/materialModel.vue
src/views/sop/editSop/components/nicknameModel.vue
src/views/sop/editSop/editEvent.vue
src/views/sop/editSop/components/materialModel.vue
View file @
7cf880c
...
@@ -19,9 +19,37 @@
...
@@ -19,9 +19,37 @@
</div>
-->
</div>
-->
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item"
:class=
"
{ checked: selectItem.id == item.id }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div
class=
"model-item"
:class=
"
{ checked: selectItem.id == item.id }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<!--
<span
class=
"hide-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
-->
<div
class=
"model-item-title"
:title=
"item.materialContentRpcResponse.materialName"
>
{{
item
.
materialContentRpcResponse
?
item
.
materialContentRpcResponse
.
materialName
:
'-'
}}
</div>
<div
class=
"model-item-title"
:title=
"item.materialContentRpcResponse.materialName"
>
{{
item
.
materialContentRpcResponse
?
item
.
materialContentRpcResponse
.
materialName
:
'-'
}}
</div>
<img
:src=
"item.groupName"
/>
</el-tooltip>
<!--
<img
:src=
"item.materialContentRpcResponse.materialUrl"
/>
-->
<!-- 素材内容 -->
<!--
<div
slot=
"materialContentRpcResponse"
slot-scope=
"scope"
style=
"text-align: center"
>
-->
<!-- 素材为PDF -->
<span
v-if=
"item.materialType == 1"
class=
"material-content"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<span
class=
"hide-content"
>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
-->
<img
src=
"@/assets/material/pdf.png"
alt=
""
>
<!--
<span>
{{
item
.
materialContentRpcResponse
.
materialName
}}
.png
</span>
-->
</span>
<!-- 素材为自定义链接 -->
<span
v-if=
"item.materialType == 2"
></span>
<!-- 图文 -->
<span
v-if=
"item.materialType == 3"
class=
"material-content"
>
<!--
<el-tooltip
effect=
"dark"
placement=
"top"
:content=
"item.materialContentRpcResponse.materialName"
:disabled=
"item.materialContentRpcResponse.materialName.length
< 16
"
>
<span>
{{
item
.
materialContentRpcResponse
.
materialName
}}
</span>
</el-tooltip>
-->
<el-popover
placement=
"top"
trigger=
"click"
>
<div>
<img
class=
"img-plus"
src=
"@/assets/material/car.png"
alt=
""
/>
</div>
<img
slot=
"reference"
src=
"@/assets/material/car.png"
alt=
""
/>
</el-popover>
</span>
</div>
</div>
<!--
</div>
-->
</div>
</div>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<div
class=
"model-item-empty"
v-else
v-loading=
"loading"
>
<img
src=
"@/assets/empty.png"
/>
<img
src=
"@/assets/empty.png"
/>
...
@@ -153,6 +181,7 @@ export default {
...
@@ -153,6 +181,7 @@ export default {
getModelList
()
{
getModelList
()
{
var
params
=
{
var
params
=
{
...
this
.
searchForm
,
...
this
.
searchForm
,
status
:
0
,
pageNum
:
this
.
pageNum
,
pageNum
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}
}
...
...
src/views/sop/editSop/components/nicknameModel.vue
View file @
7cf880c
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item-panel"
v-if=
"modelList.length > 0"
v-loading=
"loading"
>
<div
class=
"model-item"
:class=
"
{ checked: selectItem.id == item.id }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div
class=
"model-item"
:class=
"
{ checked: selectItem.id == item.id }" v-for="(item, index) in modelList" :key="index" @click="handleSelectItem(item)">
<div
v-if=
"item.showVideoContent.length"
>
<div
v-if=
"item.showVideoContent.length"
>
<video
class=
"model-item-img"
:src=
"item.showVideoContent[0].attContent"
controls=
"controls"
/>
<video
class=
"model-item-img"
:src=
"item.showVideoContent[0].attContent"
controls=
"controls"
/>
</div>
</div>
<div
v-if=
"!item.showVideoContent.length && item.showImgContent.length"
>
<div
v-if=
"!item.showVideoContent.length && item.showImgContent.length"
>
<img
class=
"model-item-img"
:src=
"item.showImgContent[0].attContent"
/>
<img
class=
"model-item-img"
:src=
"item.showImgContent[0].attContent"
/>
</div>
</div>
<div
class=
"model-item-content"
:title=
"item.showTxtContent"
>
{{
item
.
showTxtContent
}}
</div>
<div
class=
"model-item-content"
:title=
"item.showTxtContent"
>
{{
item
.
showTxtContent
}}
</div>
</div>
</div>
...
@@ -77,6 +77,7 @@ export default {
...
@@ -77,6 +77,7 @@ export default {
getModelList
()
{
getModelList
()
{
var
params
=
{
var
params
=
{
materialType
:
this
.
activeName
,
materialType
:
this
.
activeName
,
status
:
3
,
pageNum
:
this
.
pageNum
,
pageNum
:
this
.
pageNum
,
pageSize
:
this
.
pageSize
pageSize
:
this
.
pageSize
}
}
...
...
src/views/sop/editSop/editEvent.vue
View file @
7cf880c
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<el-input
type=
"textarea"
:disabled=
"editForm.object.additionalType == '4'"
:rows=
"9"
maxlength=
"280"
show-word-limit
v-model=
"editForm.eventContent"
@
input=
"textInput"
style=
"-webkit-user-modify: read-write-plaintext-only !important; width: 656px"
placeholder=
"请输入营销文案"
></el-input>
<el-input
type=
"textarea"
:disabled=
"editForm.object.additionalType == '4'"
:rows=
"9"
maxlength=
"280"
show-word-limit
v-model=
"editForm.eventContent"
@
input=
"textInput"
style=
"-webkit-user-modify: read-write-plaintext-only !important; width: 656px"
placeholder=
"请输入营销文案"
></el-input>
<div
v-for=
"(itm, index) in previewList"
:key=
"itm.id"
>
<div
v-for=
"(itm, index) in previewList"
:key=
"itm.id"
>
<!-- additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) -->
<!-- additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) -->
<div
class=
"welcome-file"
>
<div
v-if=
"itm.additionalType"
class=
"welcome-file"
>
<template>
<template>
<img
:src=
"require(`@/assets/sop/icon-$
{btnList.find(k => k.id == itm.additionalType).type}.png`)" alt />
<img
:src=
"require(`@/assets/sop/icon-$
{btnList.find(k => k.id == itm.additionalType).type}.png`)" alt />
<div
v-if=
"itm.additionalType == 4"
>
<div
v-if=
"itm.additionalType == 4"
>
...
...
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