Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity
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 12cb5fac
authored
May 27, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
5961268d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
227 deletions
src/App.vue
src/views/activity/components/selectMember.vue
src/views/activity/components/selectMembers.vue
src/views/activity/distribution.vue
src/views/activityConfig/index.vue
src/App.vue
View file @
12cb5fa
...
...
@@ -30,4 +30,3 @@ export default {
line-height
:
36px
;
}
</
style
>
>
src/views/activity/components/selectMember.vue
View file @
12cb5fa
...
...
@@ -26,7 +26,7 @@
<el-input
v-model=
"searchForm.department"
slot=
"reference"
:size=
"size"
readonly
placeholder=
"请选择所在门店/部门"
:class=
"
{ rotate: popoverVisible }" suffix-icon="el-icon-arrow-down" @keyup.enter.native="search">
</el-input>
</el-popover>
</el-form-item>
<el-form-item
label=
"姓名"
style=
"margin-bottom: 0;"
size=
"small"
>
<el-form-item
label=
"姓名"
style=
"margin-bottom: 0;
margin-left:20px
"
size=
"small"
>
<el-input
:size=
"size"
v-model
.
trim=
"searchForm.name"
@
keyup
.
enter
.
native=
"search"
clearable
placeholder=
"请输入姓名搜索"
></el-input>
</el-form-item>
<!--
<el-form-item>
...
...
src/views/activity/components/selectMembers.vue
deleted
100644 → 0
View file @
5961268
<
template
>
<div
class=
"drawer-sale-panel"
>
<el-form
label-width=
"100px"
:model=
"addForm"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"请选择成员"
>
<div
class=
"sale-select"
>
<div
class=
"el-input-tag input-tag-wrapper"
@
click=
"foucusTagInput"
>
<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>
<el-input
size=
"small"
v-model
.
trim=
"newTag"
placeholder=
"选择员工"
@
input=
"inputTag"
style=
"outline: none; border: none"
@
keyup
.
enter
.
native=
"searchEmp"
></el-input>
</div>
<div>
<el-button
size=
"small"
class=
"sale-select-btn"
type=
"primary"
@
click=
"searchEmp"
>
查询
</el-button>
</div>
</div>
<div>
<div
class=
"select-sale-panel"
>
<select-emp
:selectData=
"selectData"
:islord=
"islord"
@
selectTable=
"selectTable"
ref=
"selectEmpTabel"
></select-emp>
<div
class=
"popper__arrow"
></div>
</div>
</div>
</el-form-item>
</el-form>
</div>
</
template
>
<
script
>
import
selectEmp
from
'./selectEmp.vue'
export
default
{
name
:
'SelectMembers'
,
props
:
[
'selectData'
,
'islord'
],
components
:
{
selectEmp
},
data
()
{
return
{
addForm
:
{},
typeIndex
:
0
,
empType
:
[],
// empTypeValue: '',
newTag
:
''
,
innerTags
:
[],
dialog_temp
:
{}
}
},
methods
:
{
init
()
{
this
.
newTag
=
''
this
.
innerTags
=
[]
this
.
empTypeValue
=
''
if
(
this
.
$refs
.
selectEmpTabel
.
listTree
.
length
!=
0
)
{
this
.
$refs
.
selectEmpTabel
.
listEntmicroStaff
()
this
.
$refs
.
selectEmpTabel
.
clearSelection
()
}
},
selectTable
(
val
)
{
this
.
innerTags
=
val
},
foucusTagInput
()
{
if
(
this
.
readOnly
||
!
this
.
$el
.
querySelector
(
'.tag-input'
))
{
return
}
else
{
this
.
$el
.
querySelector
(
'.tag-input'
).
focus
()
}
},
remove
(
row
)
{
this
.
$refs
.
selectEmpTabel
.
clearSelect
(
row
)
},
//查询
searchEmp
()
{
this
.
$refs
.
selectEmpTabel
.
searchTable
(
this
.
newTag
)
},
onSubmit
()
{
if
(
this
.
innerTags
.
length
==
0
)
{
this
.
$message
({
message
:
'请选择成员'
,
type
:
'error'
})
return
}
let
userIds
=
[]
this
.
innerTags
.
forEach
(
item
=>
{
userIds
.
push
(
item
.
userId
)
})
// this.$emit('handSelectdEmp', this.empType[this.typeIndex].id, userIds)
}
// onCancel() {
// this.$emit('closeDrawer')
// }
},
mounted
()
{}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.drawer-sale-panel
{
padding
:
0px
20px
;
.sale-reload
{
margin-bottom
:
10px
;
}
.sale-select
{
display
:
flex
;
align-items
:
center
;
}
.sale-select-btn
{
margin-left
:
8px
;
}
.sale-type-desc
{
font-size
:
14px
;
font-weight
:
400
;
color
:
#adadad
;
line-height
:
17px
;
margin-top
:
10px
;
}
}
.emp-type
{
margin-bottom
:
10px
;
&-btn
{
cursor
:
pointer
;
display
:
inline-block
;
padding
:
8px
10px
;
margin-bottom
:
10px
;
margin-right
:
10px
;
position
:
relative
;
background
:
#ffffff
;
border-radius
:
4px
;
border
:
1px
solid
#e8e8ea
;
line-height
:
1
;
font-size
:
14px
;
color
:
#7d7d7d
;
&.checked
{
border
:
1px
solid
#5850ff
;
color
:
#5850ff
;
}
i
{
position
:
absolute
;
right
:
-6px
;
top
:
-6px
;
font-size
:
12px
;
color
:
#999999
;
}
}
}
.tag-box
{
max-height
:
66px
;
overflow
:
auto
;
}
.input-tag-wrapper
{
position
:
relative
;
font-size
:
14px
;
background-color
:
#fff
;
background-image
:
none
;
border-radius
:
4px
;
border
:
1px
solid
#dcdfe6
;
box-sizing
:
border-box
;
color
:
#606266
;
display
:
inline-block
;
outline
:
none
;
padding
:
0
0
0
5px
;
flex-wrap
:
wrap
;
line-height
:
32px
;
transition
:
border-color
0.2s
cubic-bezier
(
0.645
,
0.045
,
0.355
,
1
);
width
:
100%
;
display
:
flex
;
align-items
:
center
;
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
:
4px
;
height
:
26px
;
line-height
:
24px
;
}
.tag-input
{
background
:
transparent
;
border
:
none
!important
;
font-size
:
14px
;
height
:
32px
;
outline
:
none
;
padding-left
:
0
;
width
:
100px
;
}
.el-input-tag--mini
.tag-input
{
height
:
24px
;
line-height
:
24px
;
}
.el-input-tag--small
.tag-input
{
height
:
32px
;
line-height
:
32px
;
}
.el-input-tag--medium
.tag-input
{
height
:
32px
;
line-height
:
32px
;
}
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
6px
;
height
:
4px
;
}
::-webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
border-radius
:
4px
;
background-color
:
rgba
(
144
,
147
,
153
,
0.3
);
}
</
style
>
src/views/activity/distribution.vue
View file @
12cb5fa
...
...
@@ -11,7 +11,7 @@
<div>
<span>
客户列表
</span>
</div>
<el-button
size=
"small"
@
click=
"handleDistribution"
fn=
"导出"
>
分配任务
</el-button>
<el-button
size=
"small"
@
click=
"handleDistribution"
>
分配任务
</el-button>
</div>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
ref=
"clientManage"
:hasNum=
"true"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
>
<span
slot=
"customerName"
slot-scope=
"scope"
>
...
...
@@ -31,7 +31,7 @@
</el-tooltip>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 2 && idx == 2"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
>
<div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div>
<div
class=
"entmicro-hover"
>
<el-tag
style=
"margin-left:4px"
type=
"info"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
...
...
src/views/activityConfig/index.vue
View file @
12cb5fa
<
template
>
<div
class=
"activity-main"
>
<div
class=
"activity-main-header"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"新增营销"
>
<el-button
data-title=
"新增营销"
type=
"primary"
size=
"small"
@
click=
"handleAdd"
fn=
"新增营销"
>
<i
class=
"el-icon-plus"
></i>
创建活动
</el-button>
...
...
@@ -174,7 +174,7 @@ export default {
},
handleImport
()
{},
handleAdd
()
{
this
.
$router
.
push
(
'/activity/addActivity'
)
//
this.$router.push('/activity/addActivity')
},
setTableFinishFun
()
{
if
(
this
.
$refs
.
taskForm
.
data
.
length
)
{
...
...
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