Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 f6528489
authored
Aug 10, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
获客助手详情调试
1 parent
9f1d5abf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
7 deletions
vue3-lw-pc/src/views/drainageCode/customerAssistant/add.vue
vue3-lw-pc/src/views/drainageCode/customerAssistant/api.js
vue3-lw-pc/src/views/drainageCode/customerAssistant/info-table.vue
vue3-lw-pc/src/views/drainageCode/customerAssistant/info-total.vue
vue3-lw-pc/src/views/drainageCode/customerAssistant/add.vue
View file @
f652848
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
</div>
</div>
</
template
>
</
template
>
</div>
</div>
<div
class=
"g-card ac"
>
<div
class=
"g-card ac
g-footer-sticky
"
>
<
template
v-if=
"active === 0"
>
<
template
v-if=
"active === 0"
>
<el-button
@
click=
"$router.back()"
>
取消
</el-button>
<el-button
@
click=
"$router.back()"
>
取消
</el-button>
<el-button
type=
"primary"
v-loading=
"loading"
:disabled=
"loading"
@
click=
"submit"
>
确定
</el-button>
<el-button
type=
"primary"
v-loading=
"loading"
:disabled=
"loading"
@
click=
"submit"
>
确定
</el-button>
...
...
vue3-lw-pc/src/views/drainageCode/customerAssistant/api.js
View file @
f652848
...
@@ -75,7 +75,7 @@ export function getTableData(data) {
...
@@ -75,7 +75,7 @@ export function getTableData(data) {
// 导出
// 导出
export
function
getTableExport
(
data
)
{
export
function
getTableExport
(
data
)
{
return
request
({
return
request
({
url
:
service
+
''
,
url
:
service
+
'
/exportLinkCount
'
,
params
:
data
params
:
data
})
})
}
}
vue3-lw-pc/src/views/drainageCode/customerAssistant/info-table.vue
View file @
f652848
...
@@ -5,6 +5,50 @@
...
@@ -5,6 +5,50 @@
<el-input
:model-value=
"userNames"
readonly
@
click=
"dialogVisible = true"
placeholder=
"请选择添加员工"
/>
<el-input
:model-value=
"userNames"
readonly
@
click=
"dialogVisible = true"
placeholder=
"请选择添加员工"
/>
</
template
>
</
template
>
</search-title>
</search-title>
<div
class=
"mt20"
>
<el-table
ref=
"table"
:data=
"list"
tooltip-effect=
"dark"
highlight-current-row
>
<!-- -->
<el-table-column
label=
"客户"
prop=
"customerName"
header-align=
"center"
align=
""
width=
"180"
>
<
template
#
default=
"{ row }"
>
<div
class=
"cp flex aic"
@
click=
"goRoute(row)"
>
<el-image
class=
"avatar"
:src=
"row.avatar"
fit=
"fill"
></el-image>
<div
class=
"ml10"
>
<p
class=
"blod"
>
{{
row
.
customerName
}}
</p>
<el-icon-Avatar
:class=
"['el-icon-Avatar',
{ 1: 'man', 2: 'woman' }[row.gender]]" />
<span
:style=
"
{ color: row.customerType === 1 ? '#4bde03' : '#f9a90b' }">
{{
{
1
:
'@微信'
,
2
:
'@企业微信'
}
[
row
.
customerType
]
}}
<
/span
>
<
/div
>
<
/div
>
<
/template
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
prop
=
"tagNames"
label
=
"客户标签"
align
=
"center"
width
=
"220"
>
<
template
#
default
=
"
{
row
}
">
<div v-if="
row
.
tagNames
">
<TagEllipsis :list="
row
.
tagNames
"></TagEllipsis>
</div>
<span v-else>无标签</span>
</template>
</el-table-column> -->
<el-table-column prop="
userName
" label="
跟进员工
" align="
center
"> </el-table-column>
<el-table-column prop="
firstAddTime
" label="
添加时间
" align="
center
"> </el-table-column>
<el-table-column label="
操作
" width="
200
" align="
center
">
<template #default="
{
row
}
">
<el-button @click="
goRoute
(
row
)
" text>查看</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="
total
>
0
"
:total="
total
"
v-model:page="
query
.
pageNum
"
v-model:limit="
query
.
pageSize
"
@pagination="
getList
()
"
/>
</div>
<SelectUser
<SelectUser
v-model:visible="
dialogVisible
"
v-model:visible="
dialogVisible
"
title="
组织架构
"
title="
组织架构
"
...
@@ -25,6 +69,7 @@
...
@@ -25,6 +69,7 @@
pageNum
:
1
,
pageNum
:
1
,
userIds
:
''
userIds
:
''
}
,
}
,
total
:
0
,
userNames
:
''
,
userNames
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
userArray
:
[]
userArray
:
[]
...
@@ -34,6 +79,13 @@
...
@@ -34,6 +79,13 @@
SearchTitle
SearchTitle
}
,
}
,
methods
:
{
methods
:
{
goRoute
(
row
)
{
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
name
:
window
.
lwConfig
.
CUSTOMER_DETAIL_ROUTE_NAME
,
query
:
{
externalUserid
,
userId
}
}
)
}
,
getSelectUser
(
data
)
{
getSelectUser
(
data
)
{
this
.
userArray
=
data
this
.
userArray
=
data
this
.
userNames
=
this
.
userArray
this
.
userNames
=
this
.
userArray
...
@@ -51,3 +103,22 @@
...
@@ -51,3 +103,22 @@
created
()
{
}
created
()
{
}
}
}
<
/script
>
<
/script
>
<
style
lang
=
"scss"
scoped
>
.
avatar
{
width
:
56
px
;
height
:
56
px
;
flex
:
none
;
border
-
radius
:
var
(
--
border
-
radius
-
big
);
}
.
el
-
icon
-
Avatar
{
font
-
size
:
16
px
;
// margin-left: 4px;
color
:
var
(
--
font
-
black
-
6
);
&
.
man
{
color
:
#
13
a2e8
;
}
&
.
woman
{
color
:
#
f753b2
;
}
}
<
/style
>
vue3-lw-pc/src/views/drainageCode/customerAssistant/info-total.vue
View file @
f652848
...
@@ -8,7 +8,10 @@
...
@@ -8,7 +8,10 @@
</div>
</div>
<div
class=
"g-card"
>
<div
class=
"g-card"
>
<div
class=
"g-card-title"
>
数据报表
</div>
<div
class=
"g-card-title"
>
数据报表
</div>
<el-button
type=
"primary"
@
click=
"exportFn"
v-loading=
"exportLoading"
>
导出Excel
</el-button>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<search-title
:showMore=
"true"
@
search=
"getTableFn"
></search-title>
<el-button
type=
"primary"
@
click=
"exportFn"
v-loading=
"exportLoading"
>
导出Excel
</el-button>
</div>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%;"
>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%;"
>
<el-table-column
label=
"日期"
align=
"center"
min-width=
"100"
prop=
"date"
show-overflow-tooltip
/>
<el-table-column
label=
"日期"
align=
"center"
min-width=
"100"
prop=
"date"
show-overflow-tooltip
/>
<el-table-column
<el-table-column
...
@@ -145,7 +148,7 @@
...
@@ -145,7 +148,7 @@
})
})
},
},
getLineData
(
data
)
{
getLineData
(
data
)
{
data
.
i
d
=
this
.
id
data
.
linkI
d
=
this
.
id
getLineData
(
data
).
then
((
res
)
=>
{
getLineData
(
data
).
then
((
res
)
=>
{
this
.
xdata
=
[]
this
.
xdata
=
[]
this
.
series
=
[]
this
.
series
=
[]
...
@@ -163,7 +166,7 @@
...
@@ -163,7 +166,7 @@
},
},
getTableChangeSize
()
{
getTableChangeSize
()
{
this
.
loading
=
true
this
.
loading
=
true
this
.
query
.
i
d
=
this
.
id
this
.
query
.
linkI
d
=
this
.
id
getTableData
(
Object
.
assign
({},
this
.
query
,
this
.
tableSearch
)).
then
((
res
)
=>
{
getTableData
(
Object
.
assign
({},
this
.
query
,
this
.
tableSearch
)).
then
((
res
)
=>
{
this
.
tableList
=
res
.
rows
this
.
tableList
=
res
.
rows
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
...
@@ -173,7 +176,7 @@
...
@@ -173,7 +176,7 @@
getTableFn
(
data
)
{
getTableFn
(
data
)
{
this
.
loading
=
true
this
.
loading
=
true
this
.
tableSearch
=
data
this
.
tableSearch
=
data
this
.
query
.
i
d
=
this
.
id
this
.
query
.
linkI
d
=
this
.
id
getTableData
(
Object
.
assign
({},
this
.
query
,
data
)).
then
((
res
)
=>
{
getTableData
(
Object
.
assign
({},
this
.
query
,
data
)).
then
((
res
)
=>
{
this
.
tableList
=
res
.
rows
this
.
tableList
=
res
.
rows
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
...
@@ -184,7 +187,6 @@
...
@@ -184,7 +187,6 @@
created
()
{
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
this
.
id
=
this
.
$route
.
query
.
id
this
.
getTabTotalFn
()
this
.
getTabTotalFn
()
this
.
getTableFn
()
}
}
}
}
</
script
>
</
script
>
...
...
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