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 500e4fd9
authored
Mar 18, 2022
by
wuwx
Committed by
杨北旺
Mar 19, 2022
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
弹窗
1 parent
954b834b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
13 deletions
src/api/modules/sop.js
src/views/sop/editSop/components/materialModel.vue
src/views/sop/editSop/components/nicknameModel.vue
src/views/sop/editSop/editEvent.vue
src/api/modules/sop.js
View file @
500e4fd
...
...
@@ -147,4 +147,26 @@ const getSopInfoDetailApi = params => {
})
}
export
default
{
getCustomerByTagListApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEditSopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
}
// 获取素材组列表
const
getGroupListApi
=
params
=>
{
params
.
method
=
'marketing.api.material.group.list'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 获取素材列表
const
getMaterialListApi
=
params
=>
{
params
.
method
=
'marketing.api.material.page'
return
http
({
url
:
'rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
getCustomerByTagListApi
,
getSopInfoListApi
,
getSopBaseInfoApi
,
getEventListApi
,
getSopCustomerStatisticsListApi
,
getSopStaffTaskListApi
,
parseEventCountApi
,
deleteSopEventApi
,
endSopEventApi
,
batchEditSopEventApi
,
insertOrUpdateSopApi
,
getSopInfoDetailApi
,
getGroupListApi
,
getMaterialListApi
}
src/views/sop/editSop/components/materialModel.vue
0 → 100644
View file @
500e4fd
This diff is collapsed.
Click to expand it.
src/views/sop/editSop/components/nicknameModel.vue
0 → 100644
View file @
500e4fd
This diff is collapsed.
Click to expand it.
src/views/sop/editSop/editEvent.vue
View file @
500e4fd
...
...
@@ -45,16 +45,15 @@
<el-input
type=
"textarea"
: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
class=
"welcome-file"
v-if=
"itm.attType != 1"
>
<template
v-if=
"itm.attType == 2"
>
<
!--
<
template
v-if=
"itm.attType == 2"
>
<i
v-show=
"index == previewList.length - 1 && loading"
class=
"el-icon-loading"
></i>
<!--
<img
v-show=
"!loading"
src=
"@/assets/sop/icon-img.png"
alt
/>
-->
<span
:title=
"itm.attContent"
>
{{
itm
.
attContent
}}
</span>
</
template
>
</
template
>
-->
<!-- <template v-else-if="itm.attType == 3">
<img src="@/assets/sop/icon-img.png" alt />
<span :title="itm.attContent">{{ itm.attContent }}</span>
</template> -->
<
template
v-
else-
if=
"itm.attType == 7"
>
<
template
v-if=
"itm.attType == 7"
>
<img
src=
"@/assets/sop/icon-applet.png"
alt
/>
<span
:title=
"itm.attContent.objectName"
>
{{
itm
.
attContent
.
objectName
}}
</span>
</
template
>
...
...
@@ -73,7 +72,7 @@
<span>
{{ item.name }}
</span>
<!-- <input v-if="item.type == 'img'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input upload-img" :accept="item.accept || 'image/png, image/jpeg, image/jpg'" @change="e => handleImgChange(e, item)" />
<input v-else-if="item.type == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="welcome-input" :accept="item.accept || 'video/*'" @change="e => handleVideoChange(e, item)" /> -->
<el-link
v-if=
"item.type == 'nickname' || item.type == 'activity' || item.type == 'coupon'"
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
<el-link
style=
"opacity: 0"
@
click=
"handleFun(item.funName)"
>
{{ item.name }}
</el-link>
</div>
</div>
</div>
...
...
@@ -90,6 +89,8 @@
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
<ActivityModel
ref=
"activity"
@
selectActivity=
"selectActivity"
></ActivityModel>
<material-model
v-if=
"isMaterialVisible"
:isMaterialVisible
.
sync=
"isMaterialVisible"
@
handleMaterialConfirm=
"handleMaterialConfirm"
@
handleMaterialClose=
"handleMaterialClose"
></material-model>
<nickname-model
v-if=
"isNicknameVisible"
:isNicknameVisible
.
sync=
"isNicknameVisible"
@
handleNicknameConfirm=
"handleNicknameConfirm"
@
handleNicknameClose=
"handleNicknameClose"
></nickname-model>
<!-- <MessageModel ref="message" @selectItem="selectMessage"></MessageModel> -->
</div>
</template>
...
...
@@ -105,6 +106,8 @@ const ATT_TYPE = {
ACTIVITY
:
7
}
import
ActivityModel
from
'./components/activityModel'
import
materialModel
from
'./components/materialModel'
import
nicknameModel
from
'./components/nicknameModel'
import
*
as
moment
from
'moment'
export
default
{
name
:
'editGift'
,
...
...
@@ -114,6 +117,8 @@ export default {
footerLeft
:
'0'
,
footerWidth
:
'0'
,
editChildRef
:
'editChildRef'
,
isMaterialVisible
:
false
,
isNicknameVisible
:
false
,
// routeInfo: {
// // add-新增;edit-编辑;look-查看
// addOrEdit: 'add',
...
...
@@ -153,6 +158,12 @@ export default {
// limitSize: 10
// },
{
id
:
1
,
name
:
'素材'
,
type
:
'material'
,
funName
:
'material'
},
{
id
:
3
,
name
:
'活动'
,
type
:
'activity'
,
...
...
@@ -163,13 +174,13 @@ export default {
name
:
'优惠券'
,
type
:
'coupon'
,
funName
:
'coupon'
},
{
id
:
5
,
name
:
'朋友圈模板'
,
type
:
'nickname'
,
funName
:
'nickname'
}
// {
// id: 5,
// name: '模板',
// type: 'nickname',
// funName: 'message'
// }
],
editRule
:
{
sopName
:
[{
required
:
true
,
message
:
'请输入sop名字'
,
trigger
:
'change'
}],
...
...
@@ -368,7 +379,9 @@ export default {
},
components
:
{
ActivityModel
ActivityModel
,
materialModel
,
nicknameModel
},
watch
:
{
...
...
@@ -450,14 +463,38 @@ export default {
this
.
recoveryEndTime
()
},
// 素材
handleMaterialConfirm
()
{
this
.
handleMaterialClose
()
},
handleMaterialClose
()
{
this
.
isMaterialVisible
=
!
this
.
isMaterialVisible
},
// 朋友圈模板
handleNicknameConfirm
()
{
this
.
handleMaterialClose
()
},
handleNicknameClose
()
{
this
.
isNicknameVisible
=
!
this
.
isNicknameVisible
},
// 营销内容
handleFun
(
name
)
{
// if (name == 'nickname') {
// this.$refs.textContent.addTag('@昵称')
// } else
if
(
name
==
'material'
)
{
this
.
handleMaterialClose
()
}
if
(
name
==
'activity'
||
name
==
'coupon'
)
{
this
.
$refs
.
activity
.
init
(
name
==
'coupon'
?
'2'
:
'3'
)
}
if
(
name
==
'nickname'
)
{
this
.
handleNicknameClose
()
}
// else if (name == 'message') {
// this.$refs.message.init()
// }
...
...
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