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 c6251e4f
authored
Jun 13, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新联调后代码
1 parent
906fac77
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
53 deletions
src/components/selectTag/index.vue
src/views/sop/editSop/baseInfo.vue
src/views/sop/editSop/components/GoupchatPreview/index.vue
src/views/sop/editSop/components/MessagePreview/index.vue
src/views/sop/index.vue
src/views/sop/sopAnalysisList.vue
src/views/sop/viewSop.vue
src/components/selectTag/index.vue
View file @
c6251e4
...
...
@@ -131,6 +131,7 @@ export default {
this
.
querylabeltree
()
},
querylabeltree
(
selectItem
)
{
console
.
log
(
'?????????'
)
this
.
loading
=
true
this
.
$apis
.
common
.
querylabeltree
({
...
...
@@ -159,7 +160,9 @@ export default {
}
})
//回显
console
.
log
(
'????????'
)
selectItem
.
forEach
(
item
=>
{
console
.
log
(
item
)
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelList
=
[]
...
...
src/views/sop/editSop/baseInfo.vue
View file @
c6251e4
...
...
@@ -259,7 +259,7 @@
</div>
</div>
<div
class=
"event-btns"
>
<el-button
v-if=
"
new Date(item.eventStartDate) > new Date()
"
type=
"primary"
size=
"small"
<el-button
v-if=
"
editForm.sopStatus !==1
"
type=
"primary"
size=
"small"
@
click=
"handleEventView(item)"
>
查看
</el-button>
<el-button
v-if=
"new Date(item.eventStartDate) > new Date() || routeInfo.addOrEdit == 'copy'"
...
...
@@ -1041,6 +1041,7 @@ export default {
break
case
1
:
this
.
isTagVisible
=
!
this
.
isTagVisible
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
this
.
$refs
.
selectTagForm
.
init
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
customerDataList
[
idx
].
list
)))
break
case
2
:
...
...
src/views/sop/editSop/components/GoupchatPreview/index.vue
View file @
c6251e4
...
...
@@ -28,9 +28,15 @@
</
template
>
</div>
</template>
<
template
v-else-if=
"!hasAttTypeOne && previewList.length==2 &&(previewList[0].attType==4 ||previewList[0].attType==6 || previewList[0].attType==7) && (previewList[1].attType==4 ||previewList[1].attType==6 || previewList[1].attType==7)"
>
<div
class=
"preview-info"
>
<img
class=
"avatar"
src=
"@/assets/guestCustom/default-customer.png"
alt
/>
<div
class=
"preview-text text"
>
https//dwz.cn/Fk9vs7ri
</div>
</div>
</
template
>
<
template
v-else
>
<div
:class=
"
{'preview-info':true,'isMargin':(previewList
&&
previewList[2]
&&
previewList[2].attType == 6
&&
item.attType ==6) || previewList
&&
previewList[1]
&&
previewList[0].attType == 7
&&
previewList[1].attType ==6
&&
item.attType ==6}"
...
...
@@ -42,13 +48,7 @@
alt
/>
<div
class=
"preview-text text"
v-html=
"textContent"
></div>
</
template
>
<
template
v-if=
"previewList.length ==2 && ((item.attType == 4 || item.attType == 7) && item.attType == 6)"
>
<img
class=
"avatar"
src=
"@/assets/guestCustom/default-customer.png"
alt
/>
<div
class=
"preview-text text"
>
https//dwz.cn/Fk9vs7ri
</div>
</
template
>
<
template
v-if=
"!hasAttTypeOne && (item.attType == 4 || item.attType == 6 || item.attType == 7)"
>
<
template
v-if=
"!hasAttTypeOne && (item.attType == 4 || item.attType == 6 || item.attType == 7) || (item.attType == 6 &&(item.attType == 4||item.attType == 7))"
>
<img
class=
"avatar"
src=
"@/assets/guestCustom/default-customer.png"
alt
/>
...
...
@@ -102,6 +102,7 @@ export default {
this
.
hasSevenType
=
val
.
some
(
item
=>
item
.
attType
==
7
)
this
.
hasFourType
=
val
.
some
(
item
=>
item
.
attType
==
4
)
val
.
forEach
(
item
=>
{
console
.
log
(
item
)
if
(
item
.
attType
==
1
)
{
this
.
hasAttTypeOne
=
true
const
attContent
=
item
.
attContent
...
...
src/views/sop/editSop/components/MessagePreview/index.vue
View file @
c6251e4
...
...
@@ -7,32 +7,9 @@
<div
class=
"preview-box"
v-for=
"item in previewListFilter"
:key=
"item.id"
>
<div
class=
"preview-box-desc"
>
<template
v-if=
"item.attType == 1"
>
<div
class=
"preview-text text"
v-html=
"
item.at
tContent"
></div>
<div
class=
"preview-text text"
v-html=
"
tex
tContent"
></div>
</
template
>
<!-- <template v-if="item.attType == 7">-->
<!-- <div class="preview-text preview-link">-->
<!-- <img src="@/assets/guestCustom/preview-link.png" alt />-->
<!-- <div>{{ item.attContent[0].marketingName }}</div>-->
<!-- </div>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 2" v-for="(imgItem, index) in item.attContent">-->
<!-- <el-image style="width: 52px; height: 52px" class="img-list" :src="imgItem" fit="fit" :key="index" :preview-src-list="item.attContent"></el-image>-->
<!-- </template>-->
<!-- <template v-else-if="item.attType == 3">-->
<!-- <!– <el-image style="width: 100px" :src="item.attContent" fit="contain"></el-image> –>-->
<!-- <div class="video-panel">-->
<!-- <video id="video" width="100%" height="100%" preload loop muted>-->
<!-- <source :src="item.attContent" type="video/mp4" />-->
<!-- </video>-->
<!-- <i-->
<!-- class="el-icon-video-play"-->
<!-- @click="-->
<!-- videoShow = true-->
<!-- videoUrl = item.attContent-->
<!-- "-->
<!-- ></i>-->
<!-- </div>-->
<!-- </template>-->
</div>
</div>
</div>
...
...
@@ -48,14 +25,14 @@ export default {
props
:
{
previewView
:
Array
},
data
()
{
return
{
previewListFilter
:[]
previewListFilter
:[],
textContent
:
''
}
},
watch
:
{
previewView
:
{
handler
(
val
)
{
const
previewVal
=
this
.
$common
.
utils
.
deepClone
(
val
).
filter
(
item
=>
item
)
console
.
log
(
previewVal
)
this
.
previewListFilter
=
[]
for
(
let
i
in
previewVal
)
{
if
(
previewVal
[
i
].
attType
==
1
)
{
...
...
@@ -74,18 +51,16 @@ export default {
})
this
.
previewListFilter
.
push
({
attType
:
1
,
attContent
:
htm
// attContent: htm
})
this
.
textContent
=
htm
}
else
if
(
previewVal
[
i
].
attType
==
4
||
previewVal
[
i
].
attType
==
6
||
previewVal
[
i
].
attType
==
7
)
{
this
.
previewListFilter
.
push
({
attType
:
previewVal
[
i
].
attType
,
// attContent: previewVal[i].attContent
})
}
else
if
(
previewVal
[
i
].
attType
==
2
)
{
const
pindex
=
this
.
previewListFilter
.
findIndex
(
item
=>
item
.
attType
==
2
)
if
(
pindex
==
-
1
)
{
this
.
previewListFilter
.
push
({
attType
:
2
,
attContent
:
[
previewVal
[
i
].
attContent
]
})
}
else
{
this
.
previewListFilter
[
pindex
].
attContent
.
push
(
previewVal
[
i
].
attContent
)
}
let
str
=
'https//dwz.cn/Fk9vs7ri'
this
.
textContent
=
this
.
textContent
?
this
.
textContent
+
str
:
str
}
else
{
this
.
previewListFilter
.
push
({
attType
:
previewVal
[
i
].
attType
,
...
...
src/views/sop/index.vue
View file @
c6251e4
...
...
@@ -155,7 +155,7 @@ export default {
handleJump
(
path
,
row
=
{})
{
this
.
$router
.
push
({
path
:
'/sop/'
+
path
,
query
:
row
?
{
id
:
row
.
id
,
fromPage
:
'/marketing/sop/index'
}
:
''
query
:
row
?
{
id
:
row
.
id
,
fromPage
:
'/marketing/sop/index'
,
sopType
:
row
.
sopType
}
:
''
})
},
...
...
src/views/sop/sopAnalysisList.vue
View file @
c6251e4
...
...
@@ -8,7 +8,7 @@
<el-tab-pane
label=
"触达率分析"
name=
"touchList"
>
<touch-list
v-if=
"activeName == 'touchList'"
:sopId=
"routeInfo.id"
></touch-list>
</el-tab-pane>
<el-tab-pane
label=
"员工完成率分析"
name=
"staffList"
>
<el-tab-pane
label=
"员工完成率分析"
name=
"staffList"
v-if=
" routeInfo.sopType == 1"
>
<staff-list
v-if=
"activeName == 'staffList'"
:sopId=
"routeInfo.id"
></staff-list>
</el-tab-pane>
<el-tab-pane
label=
"效果分析"
name=
"resultList"
>
...
...
@@ -46,7 +46,6 @@ export default {
created
()
{
this
.
routeInfo
=
this
.
$route
.
query
console
.
log
(
this
.
$route
.
query
)
console
.
log
(
this
.
routeInfo
)
},
...
...
src/views/sop/viewSop.vue
View file @
c6251e4
...
...
@@ -52,7 +52,7 @@
<div
v-show=
"editForm.eventList.length"
class=
"event-box"
>
<div
class=
"event-item"
v-for=
"(item, index) in editForm.eventList"
:key=
"index"
>
<div
class=
"flex-default event-title"
>
<p
class=
"m-r-20"
>
{{
item
.
eventTime
}}
</p>
<p
class=
"m-r-20"
>
{{
item
.
firstPushDate
}}
{{
item
.
eventTime
}}
</p>
<p
class=
"m-r-20"
v-show=
"item.repeatFlag == 'Y' && item.repeatMode == 1"
>
每天重复循环至
</p>
<p
class=
"m-r-20"
v-show=
"item.repeatFlag == 'Y' && item.repeatMode == 2"
>
每周
{{
item
.
repeatTime
...
...
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