Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-drainage
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 1e36e420
authored
Sep 05, 2022
by
xuyl
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发访问记录页面并优化跟进员工选择
1 parent
07218af1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
15 deletions
src/views/businessCard/addCode.vue
src/views/businessCard/components/cardList.vue
src/views/businessCard/components/recordList.vue
src/views/businessCard/addCode.vue
View file @
1e36e42
...
...
@@ -19,13 +19,19 @@
</el-form-item>
<div
class=
"el-form-item is-required"
v-if=
"addCodeForm.type == 1"
>
<label
for=
"codeName"
class=
"el-form-item__label"
style=
"width: 154px"
>
选择专员:
</label>
<div
class=
"el-form-item__content"
style=
"margin-left: 154px"
>
<div
class=
"el-form-item__content"
style=
"margin-left: 154px"
v-show=
"staffInfo.length == 0"
>
<el-button
size=
"small"
@
click=
"handleAddEmp"
>
<i
class=
"el-icon-plus"
></i>
选择专员
</el-button>
<div
class=
"el-form-item__error"
v-if=
"staffStatus"
>
请选择专员
</div>
</div>
<div
class=
"el-form-item__content "
v-if=
"staffInfo.length !== 0"
>
<el-tag
effect=
"plain"
type=
"info"
v-for=
"(tag, idx) in staffInfo"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"removeStaff(idx)"
>
<i
class=
"el-icon-user-solid rareFollowStaff"
></i>
{{
tag
.
staffName
}}
</el-tag>
</div>
</div>
<el-form-item
label=
"代理商姓名:"
prop=
"codeName"
v-if=
"addCodeForm.type == 2"
>
<el-input
size=
"small"
v-model
.
trim=
"addCodeForm.codeName"
placeholder=
"请输入代理商姓名"
maxlength=
"30"
></el-input>
...
...
@@ -222,6 +228,7 @@ export default {
staffName
:
item
.
staffName
}
})
console
.
log
(
this
.
staffInfo
)
},
tagSelected
(
item
)
{
this
.
tagging
=
item
...
...
@@ -340,6 +347,11 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.rareFollowStaff
{
color
:
#75acff
;
margin-right
:
3px
;
font-size
:
14px
;
}
.channel-main
{
margin-bottom
:
16px
;
.upload-panel
{
...
...
src/views/businessCard/components/cardList.vue
View file @
1e36e42
<
template
>
<div>
<div
class=
"form-header"
>
<GLButton
type=
"primary"
size=
"small"
icon=
"el-icon-add"
@
click=
"handleAddCode"
fn=
"新增
活码
"
>
新建智能名片
</GLButton>
<GLButton
type=
"primary"
size=
"small"
icon=
"el-icon-add"
@
click=
"handleAddCode"
fn=
"新增
智能名片
"
>
新建智能名片
</GLButton>
</div>
<div
class=
"form-panel scrm-box-f"
>
<GLCombiForm
:rowNumber=
"1"
ref=
"formSearch"
:formObj=
"tableSearchForm"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
...
...
@@ -93,7 +93,7 @@
</div>
</GLTable>
</div>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisibleDel = false"
type=
"error"
content=
"是否删除?"
:visible
.
sync=
"dialogVisibleDel"
mode=
"small"
></GLDialog>
<GLDialog
title=
"提示"
@
onOk=
"handleSure"
@
onCancel=
"dialogVisibleDel = false"
type=
"error"
content=
"
删除该智能名片将失去该名片统计数据,
是否删除?"
:visible
.
sync=
"dialogVisibleDel"
mode=
"small"
></GLDialog>
<emp-detail
ref=
"empDetailForm"
></emp-detail>
</div>
</template>
...
...
@@ -141,7 +141,7 @@ export default {
name
:
'编辑'
,
attrs
:
{
type
:
'text'
,
fn
:
'
活码编辑
'
fn
:
'
编辑智能名片
'
},
listeners
:
{
click
:
this
.
handleEdit
...
...
src/views/businessCard/components/recordList.vue
View file @
1e36e42
...
...
@@ -20,19 +20,15 @@
</el-form>
</div>
<GLTable
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
>
<div
slot=
"newlyCount"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope, 'day', scope.scope.timeFrame)"
v-if=
"scope.scope.newlyCount"
>
{{
scope
.
scope
.
newlyCount
}}
</div>
<div
v-else
>
0
</div>
</div>
<div
slot=
"newlyKeepCount"
slot-scope=
"scope"
>
<div
class=
"link-dialog"
@
click=
"handleEmpDetail(scope.scope, 'status', scope.scope.timeFrame)"
v-if=
"scope.scope.newlyKeepCount"
>
{{
scope
.
scope
.
newlyKeepCount
}}
</div>
<div
v-else
>
0
</div>
</div>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleEmpDetail(scope.scope)"
>
访问记录
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleEmpDetail(scope.scope)"
>
访问记录
</el-button>
-->
<el-button
type=
"text"
@
click=
"accessToRecords(scope)"
>
访问记录
</el-button>
</div>
</GLTable>
<page-detail
ref=
"empDetailForm"
></page-detail>
<el-dialog
class=
"recordDialog"
title=
"访问记录"
:visible
.
sync=
"dialogTableVisible"
width=
"45%"
:top=
"0"
>
<GLTable
ref=
"tableRecords"
:layout=
"layout"
:tableData=
"tableDataRecords"
:tableTotal=
"tableTotalRecords"
:pageConf=
"pageConfRecords"
:tableParams=
"tableParamsRecords"
@
refreshTable=
"recordSearch"
></GLTable>
</el-dialog>
</div>
</
template
>
...
...
@@ -45,6 +41,7 @@ export default {
},
data
()
{
return
{
dialogTableVisible
:
false
,
timeRadio
:
1
,
trendType
:
1
,
pickerOptions
:
{
...
...
@@ -88,18 +85,35 @@ export default {
prop
:
'timeFrame'
},
{
label
:
'
操作
'
,
label
:
'
访问时间
'
,
prop
:
'optionBtns'
,
width
:
'
8
0px'
,
width
:
'
10
0px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
]
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableParamsRecords
:
{
listName
:
'data'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'访问页面'
,
prop
:
'codeName'
},
{
label
:
'访问时间'
,
prop
:
'codeName'
}
]
},
pageConfRecords
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableData
:
[],
tableDataRecords
:
[],
tableTotal
:
0
,
tableTotalRecords
:
0
,
startTime
:
''
,
endTime
:
''
,
selectItem
:
[],
...
...
@@ -125,6 +139,27 @@ export default {
// }
// },
methods
:
{
accessToRecords
()
{
this
.
dialogTableVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
recordSearch
()
})
},
recordSearch
()
{
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableParamsRecords
)),
pageSize
:
this
.
$refs
.
tableRecords
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
tableRecords
.
page
.
pageNum
,
startTime
:
this
.
startTime
,
endTime
:
this
.
endTime
,
trendType
:
this
.
trendType
}
this
.
$apis
.
overview
.
codeSearch
(
params
).
then
(
res
=>
{
this
.
tableDataRecords
=
res
.
data
console
.
log
(
this
.
tableDataRecords
)
this
.
tableTotalRecords
=
res
.
count
})
},
handleTime
()
{
const
value
=
this
.
createTime
if
(
value
&&
value
.
length
>
0
)
{
...
...
@@ -249,6 +284,13 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
/
deep
/
.recordDialog
{
.el-dialog
{
height
:
100vh
;
overflow
:
auto
;
margin-right
:
0
;
}
}
.channel-main
{
padding
:
20px
;
/deep/
{
...
...
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