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 0605b0a3
authored
May 25, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
0b122471
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
5 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/components/selectCrowd.vue
src/views/customerTransform/addCustomer.vue
View file @
0605b0a
...
...
@@ -13,11 +13,10 @@
<i
class=
"el-icon-plus"
></i>
选择成员
</el-button>
<
!--
<
span
class=
"label-text"
>
已选
择
<span
class=
"label-text"
>
已选
人数:
<span>
{{
basicForm
.
userList
?
basicForm
.
userList
.
length
:
0
}}
</span>
人
</span>
-->
</span>
<div
class=
"sale-select"
v-show=
"basicForm.userList && basicForm.userList.length != 0"
>
<div
:key=
"key"
class=
"el-input-tag input-tag-wrapper"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in basicForm.userList"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
...
...
@@ -42,6 +41,7 @@
<el-radio-group
v-model=
"basicForm.selectType"
@
change=
"radioChange"
>
<el-radio
:label=
"1"
>
全部客户
</el-radio>
<el-radio
:label=
"2"
>
筛选客户
</el-radio>
<el-radio
:label=
"3"
>
人群筛选
</el-radio>
</el-radio-group>
<div
class=
"filter-box"
v-show=
"basicForm.selectType == 2"
>
<div
class=
"filter-memeber"
>
...
...
@@ -82,6 +82,9 @@
</el-form>
</div>
</div>
<div
v-show=
"basicForm.selectType == 3"
style=
"line-height: 32px; padding-bottom: 10px;"
>
<el-button
:size=
"size"
icon=
"el-icon-plus"
@
click=
"selectCrowd"
>
选择人群
</el-button>
</div>
<div
class=
"filter-footer"
>
<!--
<span>
将消息发送给客户符合条件的客户
</span>
-->
<div
class=
"filter-number"
>
...
...
@@ -137,6 +140,7 @@
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
</div>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectCrowd
ref=
"selectCrowd"
></SelectCrowd>
</div>
</
template
>
...
...
@@ -145,6 +149,7 @@ import Vue from 'vue'
import
emoji
from
'@/utils/emo'
import
WelcomeWords
from
'./components/welcomeWords.vue'
import
SelectMember
from
'./components/selectMember.vue'
import
SelectCrowd
from
'./components/selectCrowd.vue'
import
Preview
from
'./components/preview.vue'
import
SelectLabel
from
'./components/selectLabel.vue'
import
*
as
dayjs
from
'dayjs'
...
...
@@ -153,7 +158,8 @@ export default {
WelcomeWords
,
SelectMember
,
Preview
,
SelectLabel
SelectLabel
,
SelectCrowd
},
data
()
{
const
validatorUser
=
(
rule
,
value
,
callback
)
=>
{
...
...
@@ -603,6 +609,10 @@ export default {
this
.
isUpdate
=
true
}
this
.
getGroupList
()
},
// 人群筛选弹窗
selectCrowd
()
{
this
.
$refs
.
selectCrowd
.
dialogVisible
=
true
}
}
}
...
...
src/views/customerTransform/components/selectCrowd.vue
0 → 100644
View file @
0605b0a
<!--
* @Description:
* @Author: huyue
* @Date: 2022-05-24 18:18:53
* @LastEditors: huyue
* @LastEditTime: 2022-05-25 10:15:56
-->
<
template
>
<div>
<glsx-dialog
:title=
"'人群筛选'"
:isVisible=
"crowdVisible"
:width=
"'1080px'"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"crowdVisible = !crowdVisible"
>
<div
class=
"member-wrapper"
>
<div
class=
"member-left"
>
<div
class=
"member-title"
>
人群列表
</div>
<div
class=
"member-content"
>
<el-form
:inline=
"true"
class=
"member-form"
:model=
"searchForm"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"人群名称"
style=
"margin-bottom: 0"
>
<el-input
:size=
"size"
v-model
.
trim=
"searchForm.lordName"
@
keyup
.
enter
.
native=
"search"
clearable
placeholder=
"请输入关键字搜索"
></el-input>
</el-form-item>
<el-form-item
label
style=
"margin-bottom: 0;"
>
<el-button
type=
"primary"
:size=
"size"
@
click=
"search"
>
搜索
</el-button>
</el-form-item>
</el-form>
<div
class=
"table-content"
style=
"max-height: 456px"
>
<!--
<GLTable
v-loading=
"loading"
ref=
"empTable"
:tableData=
"tableEmpData"
:tableParams=
"tableParams"
:hasNum=
"false"
:hasPage=
"false"
:noDataImg=
"url"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
>
<div
slot=
"staffName"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
staffName
}}
</span>
<span
class=
"staff-title"
v-show=
"scope.scope.staffTitle"
>
{{
scope
.
scope
.
staffTitle
}}
</span>
</div>
</GLTable>
-->
</div>
</div>
</div>
<div
class=
"member-right"
>
<div
class=
"member-title"
>
已选
</div>
<div
class=
"member-name"
>
成员名称(
{{
innerTags
.
length
}}
项)
</div>
<div
class=
"input-tag-wrapper"
>
<div
class=
"tag-box"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag)"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
.
staffName
}}
</el-tag>
</div>
</div>
</div>
</div>
</glsx-dialog>
</div>
</
template
>
<
script
>
export
default
{
name
:
'SelectCrowd'
,
data
()
{
return
{
crowdVisible
:
true
,
searchForm
:
{},
innerTags
:
[]
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.member-wrapper
{
display
:
flex
;
.member-title
{
font-size
:
16px
;
color
:
#333
;
font-weight
:
600
;
line-height
:
22px
;
margin-bottom
:
6px
;
span
{
display
:
inline-block
;
padding-left
:
5px
;
font-size
:
12px
;
color
:
#999
;
font-weight
:
500
;
}
}
.member-left
{
width
:
800px
;
.member-content
{
border
:
1px
solid
#eee
;
border-bottom
:
none
;
.member-form
{
padding
:
10px
20px
;
}
.table-content
{
max-height
:
456px
;
overflow
:
auto
;
border
:
1px
solid
#eee
;
}
}
.member-checked
{
text-align
:
right
;
margin-top
:
10px
;
}
}
.member-right
{
width
:
286px
;
margin-left
:
14px
;
.member-name
{
font-size
:
14px
;
color
:
#333
;
line-height
:
20px
;
padding
:
18px
;
border
:
1px
solid
#eee
;
}
}
}
.tag-box
{
height
:
100%
;
}
.input-tag-wrapper
{
position
:
relative
;
font-size
:
14px
;
border
:
1px
solid
#eee
;
border-top
:
none
;
box-sizing
:
border-box
;
color
:
#606266
;
display
:
inline-block
;
padding
:
8px
10px
;
line-height
:
32px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
100%
;
height
:
calc
(
100%
-
86px
);
display
:
flex
;
align-items
:
center
;
max-height
:
500px
;
overflow
:
auto
;
//
margin-bottom
:
10px
;
i
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
/
deep
/
input
{
/* input { */
/* background-color: red!important; 调试用的样式 */
outline
:
none
!important
;
border
:
none
!important
;
}
/
deep
/
.el-input
{
min-width
:
150px
;
width
:
auto
;
flex
:
1
;
}
}
.el-tag
{
margin-right
:
10px
;
line-height
:
22px
;
margin-bottom
:
5px
;
height
:
24px
;
}
/
deep
/
.el-dialog__title
{
font-weight
:
600
;
}
</
style
>
\ No newline at end of file
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