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 993c4666
authored
May 25, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
清除无用代码
1 parent
79a50449
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
137 deletions
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
src/views/clientDataOverview/GroupOperating/marketingPeople.vue
View file @
993c466
...
@@ -32,40 +32,24 @@
...
@@ -32,40 +32,24 @@
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
{{
item
.
desc
}}
</p>
<p
class=
"peopledesc"
>
{{
item
.
desc
}}
</p>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP()"
>
创建营销SOP
</el-button>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<!-- 滚动条展示 -->
<!-- <div class="rollMarketItem" v-else v-dragscroll>
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<div class="marketItem-border">
<p class="peopleName">人群名称</p>
<div class="itemBox">
<p class="peopleNum">
{{ item.num }}
<span>人</span>
</p>
<p class="peopledesc">{{ item.desc }}</p>
<el-button class="createSOP">创建营销SOP</el-button>
</div>
</div>
</div>
</div> -->
<div
v-show=
"!closeFlag"
>
<div
v-show=
"!closeFlag"
>
<div
class=
"swiper-container"
id=
"swiper"
>
<div
class=
"swiper-container"
id=
"swiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx)"
>
<div
v-for=
"(item, idx) in itemArr"
:key=
"idx"
:class=
"[{ active: isActive == idx }, 'marketItem', 'swiper-slide']"
@
click=
"choickItem(idx)"
>
<div
class=
"marketItem-border"
>
<div
class=
"marketItem-border"
>
<p
class=
"peopleName"
>
人群名称
</p>
<p
class=
"peopleName"
>
{{ item.title }}
</p>
<div
class=
"itemBox"
>
<div
class=
"itemBox"
>
<p
class=
"peopleNum"
>
<p
class=
"peopleNum"
>
{{ item.num }}
{{ item.num }}
<span>
人
</span>
<span>
人
</span>
</p>
</p>
<p
class=
"peopledesc"
>
{{ item.desc }}
</p>
<p
class=
"peopledesc"
>
{{ item.desc }}
</p>
<el-button
class=
"createSOP"
>
创建营销SOP
</el-button>
<el-button
class=
"createSOP"
@
click
.
stop=
"createMarketSOP()"
>
创建营销SOP
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -74,10 +58,6 @@
...
@@ -74,10 +58,6 @@
<div
class=
"swiper-pagination"
></div>
<div
class=
"swiper-pagination"
></div>
</div>
</div>
</div>
</div>
<!-- <div class="progressBar" v-if="!closeFlag">
<div class="progress"></div>
</div> -->
</div>
</div>
<div
class=
"otherPageContent"
>
<div
class=
"otherPageContent"
>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
<GLCombiForm
:formObj=
"searchForm"
:formData=
"marketPeopleFormList"
@
handleOk=
"searchTable"
@
handleRest=
"resetTable"
></GLCombiForm>
...
@@ -103,7 +83,7 @@
...
@@ -103,7 +83,7 @@
<
script
>
<
script
>
import
marketingPlan
from
'./components/marketingPlan.vue'
import
marketingPlan
from
'./components/marketingPlan.vue'
import
Swiper
from
'swiper'
import
Swiper
from
'swiper'
import
util
from
'@/utils/util'
import
'swiper/dist/css/swiper.min.css'
import
'swiper/dist/css/swiper.min.css'
export
default
{
export
default
{
name
:
'marketPeople'
,
name
:
'marketPeople'
,
...
@@ -116,16 +96,16 @@ export default {
...
@@ -116,16 +96,16 @@ export default {
displayNum
:
4
,
//展示的数目
displayNum
:
4
,
//展示的数目
closeFlag
:
false
,
//展开收起
closeFlag
:
false
,
//展开收起
itemArr
:
[
itemArr
:
[
{
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞'
},
// 后台传一个状态回来
{
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑
'
},
{
title
:
'N-23待定保客户'
,
num
:
323
,
desc
:
'我顶着大太阳,只想为你撑伞
'
},
{
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛
'
},
{
title
:
'N-45待定保客户'
,
num
:
1312
,
desc
:
'你专心在画睫毛,我专心在等你笑
'
},
{
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情
'
},
{
title
:
'N-33待定保客户'
,
num
:
43133
,
desc
:
'气球在我手上,牵着你瞎逛
'
},
{
num
:
1233
,
desc
:
'喜欢在人潮中,你只属于我的那画面
'
},
{
title
:
'N-1待定保客户'
,
num
:
123213
,
desc
:
'城堡为爱守着秘密,而我为你守着爱情
'
},
{
num
:
43133
,
desc
:
'但偏偏,风渐渐,把距离吹的好远
'
},
{
title
:
'N-2待定保客户'
,
num
:
1233
,
desc
:
'喜欢在人潮中,你只属于我的那画面
'
},
{
num
:
123213
,
desc
:
'最美的不是下雨天,是曾与你躲过雨的屋檐
'
},
{
title
:
'N-7待定保客户'
,
num
:
43133
,
desc
:
'但偏偏,风渐渐,把距离吹的好远
'
},
{
num
:
12345
,
desc
:
'人群描述人群描述人群描述人群描述人 群描
'
},
{
title
:
'N-6待定保客户'
,
num
:
123213
,
desc
:
'最美的不是下雨天,是曾与你躲过雨的屋檐
'
},
{
num
:
1233
,
desc
:
'美人鱼的眼泪'
},
{
title
:
'N-5待定保客户'
,
num
:
1233
,
desc
:
'美人鱼的眼泪'
},
{
num
:
1233
,
desc
:
'我一路向北,离开有你的季节'
}
{
title
:
'N-4待定保客户'
,
num
:
1233
,
desc
:
'我一路向北,离开有你的季节'
}
],
],
marketPeopleFormList
:
[
marketPeopleFormList
:
[
{
{
...
@@ -302,6 +282,10 @@ export default {
...
@@ -302,6 +282,10 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
// 跳转到营销SOP
createMarketSOP
()
{
util
.
openUrl
(
location
.
origin
+
'/marketing/sop/editSop'
)
},
expandClick
(
val
)
{
expandClick
(
val
)
{
if
(
val
==
'expand'
)
{
if
(
val
==
'expand'
)
{
this
.
closeFlag
=
true
this
.
closeFlag
=
true
...
@@ -313,7 +297,8 @@ export default {
...
@@ -313,7 +297,8 @@ export default {
},
},
// 选择的人群
// 选择的人群
choickItem
(
idx
)
{
choickItem
(
idx
)
{
this
.
isActive
=
idx
this
.
isActive
=
idx
;
// 发送请求查询列表
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
marketPeople
.
data
.
length
?
(
this
.
$refs
.
marketPeople
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketPeople
.
setTableHeightFun
()
this
.
$refs
.
marketPeople
.
data
.
length
?
(
this
.
$refs
.
marketPeople
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketPeople
.
setTableHeightFun
()
...
@@ -324,44 +309,6 @@ export default {
...
@@ -324,44 +309,6 @@ export default {
handleClick
(
tab
)
{
handleClick
(
tab
)
{
console
.
log
(
tab
)
console
.
log
(
tab
)
}
}
},
directives
:
{
dragscroll
:
{
bind
(
el
,
binding
)
{
el
.
onmousedown
=
function
(
ev
)
{
const
disX
=
ev
.
clientX
const
disY
=
ev
.
clientY
const
originalScrollLeft
=
el
.
scrollLeft
const
originalScrollTop
=
el
.
scrollTop
const
originalScrollBehavior
=
el
.
style
[
'scroll-behavior'
]
const
originalPointerEvents
=
el
.
style
[
'pointer-events'
]
let
changWidth
=
(
document
.
querySelector
(
'.rollMarketItem'
).
scrollLeft
/
(
document
.
querySelector
(
'.rollMarketItem'
).
scrollWidth
-
document
.
querySelector
(
'.rollMarketItem'
).
offsetWidth
))
*
100
// auto: 默认值,表示滚动框立即滚动到指定位置。
document
.
querySelector
(
'.progress'
).
style
.
width
=
changWidth
+
'%'
el
.
style
[
'scroll-behavior'
]
=
'auto'
el
.
style
[
'cursor'
]
=
'grabbing'
// 鼠标移动事件是监听的整个document,这样可以使鼠标能够在元素外部移动的时候也能实现拖动
document
.
onmousemove
=
function
(
ev
)
{
ev
.
preventDefault
()
// 计算拖拽的偏移距离
const
distanceX
=
ev
.
clientX
-
disX
const
distanceY
=
ev
.
clientY
-
disY
el
.
scrollTo
(
originalScrollLeft
-
distanceX
,
originalScrollTop
-
distanceY
)
// 在鼠标拖动的时候将点击事件屏蔽掉
el
.
style
[
'pointer-events'
]
=
'none'
document
.
body
.
style
[
'cursor'
]
=
'grabbing'
}
document
.
onmouseup
=
function
()
{
document
.
onmousemove
=
null
document
.
onmouseup
=
null
el
.
style
[
'scroll-behavior'
]
=
originalScrollBehavior
el
.
style
[
'pointer-events'
]
=
originalPointerEvents
el
.
style
[
'cursor'
]
=
'grab'
}
}
}
}
}
}
}
}
</
script
>
</
script
>
...
@@ -437,16 +384,6 @@ export default {
...
@@ -437,16 +384,6 @@ export default {
.active
{
.active
{
border
:
1px
solid
#5850ff
;
border
:
1px
solid
#5850ff
;
}
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
0
;
height
:
0
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
//
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
.topTitle
{
.topTitle
{
.title
{
.title
{
color
:
#333333
;
color
:
#333333
;
...
@@ -532,60 +469,6 @@ export default {
...
@@ -532,60 +469,6 @@ export default {
}
}
}
}
}
}
//
.rollMarketItem
{
//
padding
:
0
20px
;
//
width
:
100%
;
//
display
:
flex
;
//
justify-content
:
space-between
;
//
overflow-x
:
auto
;
//
.marketItem
{
//
width
:
25%
;
//
margin-right
:
16px
;
//
&-border
{
//
width
:
274px
;
//
}
//
.peopleName
{
//
height
:
54px
;
//
line-height
:
54px
;
//
background
:
#f7f7fc
;
//
font-size
:
16px
;
//
font-weight
:
600
;
//
padding-left
:
16px
;
//
vertical-align
:
middle
;
//
}
//
.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
:
#666666
;
//
}
//
.createSOP
{
//
margin
:
24px
0
;
//
border-radius
:
4px
;
//
border
:
1px
solid
#5850ff
;
//
width
:
100%
;
//
color
:
#5850ff
;
//
padding
:
9px
20px
;
//
}
//
}
//
}
//
}
.progressBar
{
.progressBar
{
width
:
40px
;
width
:
40px
;
height
:
4px
;
height
:
4px
;
...
...
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