Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 cce3a68f
authored
Jun 16, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新v2.4.0代码
1 parent
dc03ee38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
31 deletions
src/views/clientDataOverview/components/marketingPlan.vue
src/views/clientDataOverview/marketingPeople.vue
src/views/crowdManage/crowdAdd.vue
src/views/clientDataOverview/components/marketingPlan.vue
View file @
cce3a68
...
...
@@ -2,7 +2,7 @@
<div
class=
"scrm-sub-client-container"
>
<div
class=
"pageContent"
>
<GLCombiForm
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"searchFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLTable
:hasNum=
"true"
@
setTableFinishFun=
"setTableFinishFun"
:beforeSearchFn=
"beforeSearchFn"
ref=
"marketingPlan"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<GLTable
:hasNum=
"true"
@
setTableFinishFun=
"setTableFinishFun"
:beforeSearchFn=
"beforeSearchFn"
ref=
"marketingPlan"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<template
slot=
"options"
slot-scope=
"scope"
>
<el-button
v-if=
"scope.scope.sopStatus != 1"
type=
"text"
@
click=
"handleJump(scope.scope.id)"
>
SOP分析
</el-button>
<el-button
v-if=
"scope.scope.sopStatus == 2"
type=
"text"
@
click=
"handleEnd(scope.scope)"
>
结束
</el-button>
...
...
@@ -10,6 +10,9 @@
<el-button
v-if=
"scope.scope.sopStatus == 1"
type=
"text"
@
click=
"handleDelete(scope.scope)"
>
删除
</el-button>
</
template
>
</GLTable>
<GLFooter
class=
"gl-footer"
>
<el-button
type=
"primary"
@
click=
"goback()"
>
返回
</el-button>
</GLFooter>
</div>
</div>
</template>
...
...
@@ -121,8 +124,14 @@ export default {
}
}
},
mounted
()
{},
mounted
()
{
//没数据的时候要算高度
},
methods
:
{
// 返回
goback
()
{
this
.
$router
.
go
(
-
1
)
},
// 结束
handleEnd
(
row
)
{
this
.
secondConfirm
(
'结束'
,
'结束SOP后,将不再进行营销任务自动推送,且不可恢复。是否确定结束?'
,
'clientDataOverview'
,
'endSopEventApi'
,
{
sopId
:
row
.
id
})
...
...
@@ -191,6 +200,12 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.gl-footer
{
z-index
:
100
;
}
/
deep
/
.el-tabs__content
{
margin-bottom
:
64px
;
}
.pageContent
{
padding
:
20px
20px
30px
;
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
...
...
src/views/clientDataOverview/marketingPeople.vue
View file @
cce3a68
...
...
@@ -11,7 +11,7 @@
<div
class=
"pageContent"
>
<div
class=
"markPeople"
>
<span>
营销人群
</span>
<span
v-if=
"itemArr && itemArr.length >
4
&& !closeFlag"
@
click=
"expandClick('expand')"
>
<span
v-if=
"itemArr && itemArr.length >
displayNum
&& !closeFlag"
@
click=
"expandClick('expand')"
>
展开营销人群
<i
class=
"el-icon-arrow-down color-58"
></i>
</span>
...
...
@@ -22,7 +22,7 @@
</div>
<el-divider></el-divider>
<!-- 营销人群展示 -->
<div
class=
"bigMarketItem
"
v-if=
"closeFlag"
>
<div
:class=
"
{ secondBigMarketItem: isSecondBigMarketItem, bigMarketItem: isBigMarketItem }
" v-if="closeFlag">
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[
{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx, item.crowdName, item.crowdId)">
<template
v-if=
"idx
< displayNum
"
>
<p
class=
"peopleName"
>
{{
item
.
crowdName
}}
</p>
...
...
@@ -95,6 +95,9 @@
</div>
</GLTable>
</div>
<GLFooter
class=
"gl-footer"
>
<el-button
type=
"primary"
@
click=
"goback()"
>
返回
</el-button>
</GLFooter>
</el-tab-pane>
<el-tab-pane
label=
"营销计划"
name=
"second"
>
<
template
v-if=
"activeName == 'second'"
><marketing-plan
:crowdGroupId=
"crowdGroupId"
></marketing-plan></
template
>
...
...
@@ -114,6 +117,9 @@ export default {
components
:
{
marketingPlan
},
data
()
{
return
{
isSecondBigMarketItem
:
''
,
isBigMarketItem
:
''
,
screenWidth
:
null
,
selectTab
:
1
,
queryTab
:
''
,
crowdGroupId
:
''
,
...
...
@@ -124,7 +130,9 @@ export default {
},
backupCrowdId
:
''
,
isActive
:
0
,
displayNum
:
4
,
//展示的数目
displayNum
:
''
,
//展示的数目
displayNumCopy
:
''
,
//展示的数目
closeFlag
:
false
,
//展开收起
showTitle
:
''
,
// 展示的标题
itemArr
:
[],
...
...
@@ -282,6 +290,7 @@ export default {
status
:
true
}
},
created
()
{
this
.
crowdGroupId
=
this
.
$route
.
query
.
crowdId
||
''
// 判断营销SOP返回来的页面
...
...
@@ -298,28 +307,27 @@ export default {
this
.
getStaffList
()
},
mounted
()
{
this
.
screenWidth
=
document
.
body
.
clientWidth
window
.
addEventListener
(
'resize'
,
()
=>
{
this
.
screenWidth
=
document
.
body
.
clientWidth
})
let
previewSwiper
=
new
Swiper
(
'.swiper-container'
,
{
grabCursor
:
true
,
spaceBetween
:
16
,
// spaceBetween: 20
,
mousewheel
:
true
,
slidesPerView
:
'auto'
,
//
slidesPerView: 'auto',
observer
:
true
,
//修改swiper自己或子元素时,自动初始化
observeParents
:
true
,
//修改swiper的父元素时,自动初始化swiper
breakpoints
:
{
//当宽度大于等于1280
1280
:
{
slidesPerView
:
4
,
spaceBetween
:
16
},
//当宽度大于等于1440
//当宽度小于等于1919
1440
:
{
slidesPerView
:
4
,
spaceBetween
:
16
spaceBetween
:
20
},
//当宽度大于等于1920
1920
:
{
2800
:
{
slidesPerView
:
5
,
spaceBetween
:
16
spaceBetween
:
20
}
},
pagination
:
{
...
...
@@ -327,17 +335,33 @@ export default {
type
:
'progressbar'
}
})
this
.
$nextTick
(()
=>
{
setTimeout
(
function
()
{
previewSwiper
.
slideTo
(
0
,
0
,
false
)
},
5
00
)
},
7
00
)
})
// let clientWidth = document.documentElement.clientWidth
// let breakpointsArr = previewSwiper.passedParams.breakpoints
// console.log(breakpointsArr)
},
watch
:
{
screenWidth
:
{
handler
:
function
(
val
)
{
if
(
val
>=
1440
)
{
this
.
displayNumCopy
=
this
.
displayNum
=
5
this
.
isBigMarketItem
=
false
this
.
isSecondBigMarketItem
=
true
}
else
{
this
.
displayNumCopy
=
this
.
displayNum
=
4
this
.
isBigMarketItem
=
true
this
.
isSecondBigMarketItem
=
false
}
},
// immediate: true,
deep
:
true
}
},
methods
:
{
goback
()
{
this
.
$router
.
go
(
-
1
)
},
// 导出
handleExport
()
{
var
params
=
{
...
...
@@ -424,10 +448,9 @@ export default {
},
//重置表格
resetTable
()
{
console
.
log
(
this
.
backupCrowdId
)
this
.
searchForm
=
{
customCrowd
:
true
,
crowdId
:
this
.
backupCrowdId
?
this
.
backupCrowdId
:
this
.
theFirstGroudId
crowdId
:
this
.
backupCrowdId
?
this
.
backupCrowdId
:
this
.
theFirstGroudId
}
this
.
$refs
.
marketPeople
.
refreshTable
()
},
...
...
@@ -461,7 +484,7 @@ export default {
this
.
displayNum
=
this
.
itemArr
.
length
||
''
}
else
{
this
.
closeFlag
=
false
this
.
displayNum
=
4
this
.
displayNum
=
this
.
displayNumCopy
}
},
// 选择的人群
...
...
@@ -490,6 +513,9 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.el-tabs__content
{
margin-bottom
:
64px
;
}
.expandImg
{
display
:
flex
;
.smallFontSize
{
...
...
@@ -512,12 +538,13 @@ export default {
color
:
#fb8f28
;
}
/
deep
/
.swiper-container-horizontal
>
.swiper-pagination-progressbar
{
width
:
5%
;
width
:
60px
;
height
:
5px
;
bottom
:
0px
;
top
:
auto
;
right
:
0
;
margin
:
auto
;
border-radius
:
3
px
;
border-radius
:
5
px
;
background
:
#dddee0
;
.swiper-pagination-progressbar-fill
{
background
:
#5850ff
;
...
...
@@ -624,8 +651,8 @@ export default {
display
:
grid
;
grid-template-columns
:
25%
25%
25%
25%
;
.marketItem
{
margin-right
:
16
px
;
margin-bottom
:
16
px
;
margin-right
:
20
px
;
margin-bottom
:
20
px
;
//
width
:
25%
;
&:nth-child(4n)
{
margin-right
:
0
;
...
...
@@ -660,6 +687,65 @@ export default {
font-size
:
14px
;
color
:
#999999
;
line-height
:
20px
;
height
:
40px
;
}
.createSOP
{
margin
:
24px
0
;
border-radius
:
4px
;
border
:
1px
solid
#5850ff
;
width
:
100%
;
color
:
#5850ff
;
padding
:
9px
20px
;
}
.isDisableSOP
{
color
:
#c0bcff
;
border
:
1px
solid
#c0bcff
;
}
}
}
}
.secondBigMarketItem
{
padding
:
0
20px
;
display
:
grid
;
grid-template-columns
:
20%
20%
20%
20%
20%
;
.marketItem
{
margin-right
:
20px
;
margin-bottom
:
20px
;
//
width
:
25%
;
&:nth-child(5n)
{
margin-right
:
0
;
}
.peopleName
{
height
:
54px
;
line-height
:
54px
;
background
:
#f7f7fc
;
font-size
:
16px
;
font-weight
:
600
;
padding-left
:
16px
;
vertical-align
:
middle
;
overflow
:
hidden
;
}
.itemBox
{
border-left
:
1px
solid
#ededf0
;
border-right
:
1px
solid
#ededf0
;
border-bottom
:
1px
solid
#ededf0
;
padding
:
0
16px
;
box-sizing
:
border-box
;
.peopleNum
{
padding
:
24px
0
;
font-size
:
26px
;
font-weight
:
600
;
color
:
#333333
;
span
{
font-size
:
14px
;
font-weight
:
400
;
}
}
.peopledesc
{
font-size
:
14px
;
color
:
#999999
;
line-height
:
20px
;
height
:
40px
;
}
.createSOP
{
margin
:
24px
0
;
...
...
@@ -690,6 +776,9 @@ export default {
}
}
}
.gl-footer
{
z-index
:
100
;
}
.otherPageContent
{
padding
:
20px
20px
30px
;
margin-top
:
16px
;
...
...
@@ -713,7 +802,7 @@ export default {
}
.marketSOP
{
color
:
#666666
;
border
:
1px
solid
#
696969
;
border
:
1px
solid
#
d1d1d1
;
}
}
}
...
...
src/views/crowdManage/crowdAdd.vue
View file @
cce3a68
...
...
@@ -607,7 +607,7 @@ export default {
this
.
getLabelData
()
},
handleCancel
()
{
this
.
$router
.
push
(
'/crowdManage/index'
)
this
.
$router
.
push
(
`/crowdManage/index?selectTab=2`
)
},
checkName
(
value
)
{
// 一个汉字2个字符,字母数字1个字符
...
...
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