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 9f5cb278
authored
Dec 13, 2021
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
b8059913
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
96 deletions
linkwe-ui/src/views/customerManage/customer/infoTab.vue
linkwe-ui/src/views/customerManage/customer/record.vue
linkwe-ui/src/views/customerManage/customer/track.vue
linkwe-ui/src/views/customerManage/customerDetail.vue
linkwe-ui/src/views/customerManage/customer/infoTab.vue
View file @
9f5cb27
<
script
>
import
{
getSummary
,
getFollowUpRecord
,
getCustomerInfoByUserId
}
from
'@/api/customer'
import
record
from
'./record'
import
ctrack
from
'./track'
export
default
{
name
:
''
,
props
:
{
...
...
@@ -12,8 +11,7 @@ export default {
}
},
components
:
{
record
,
ctrack
record
},
data
()
{
return
{
...
...
@@ -27,7 +25,7 @@ export default {
},
recod
:
[],
active
:
'0'
,
openTrack
:
[
null
]
openTrack
:
[
'0'
]
}
},
computed
:
{},
...
...
@@ -175,7 +173,7 @@ export default {
<span
class=
"card-title"
>
客户轨迹
</span>
<span
style=
" color: #13a2e8;"
class=
"fr cp"
@
click=
"sync"
>
同步
</span>
</div>
<div
class=
"flex track-tab-wrap"
>
<div
class=
"flex track-tab-wrap
mb15
"
>
<div
v-for=
"(value, type) of trajectoryType"
:key=
"type"
...
...
@@ -185,12 +183,14 @@ export default {
{{ value }}
</div>
</div>
<record
v-for=
"(item, index) in openTrack"
:key=
"index"
:userId=
"userId"
:trajectoryType=
"item"
></record>
<
template
v-for=
"(item, index) in openTrack"
>
<record
v-show=
"item === active"
:key=
"index"
:userId=
"userId"
:trajectoryType=
"item == 0 ? null : item"
></record>
</
template
>
</el-card>
</div>
</el-col>
...
...
linkwe-ui/src/views/customerManage/customer/record.vue
View file @
9f5cb27
...
...
@@ -74,7 +74,7 @@ export default {
</
script
>
<
template
>
<div>
<div
v-loading=
"loading"
>
<template
v-if=
"viewType"
>
<el-table
:data=
"list"
v-loading=
"loading"
>
<el-table-column
label=
"员工"
align=
"center"
prop=
"userName"
/>
...
...
@@ -105,20 +105,21 @@ export default {
</template>
<ul
v-else
class=
"infinite-list"
v-infinite-scroll=
"getList"
style=
"overflow:auto"
>
<li
v-for=
"i in list"
class=
"infinite-list-item"
:key=
"i"
>
<
!-- <
li v-for="i in list" class="infinite-list-item" :key="i">
<div>2021-02-16 星期二</div>
<el-timeline>
<el-timeline-item
v-for=
"(item, index) in 6"
:key=
"index"
:timestamp=
"item.trackTime"
placement=
"top"
>
<p>
{{ item.title }}
</p>
<p>
{{ item.trackContent }}
</p>
</el-timeline-item>
</el-timeline>
</li>
</li> -->
<el-timeline
v-if=
"list.length"
>
<el-timeline-item
v-for=
"(item, index) in list"
:key=
"index"
:timestamp=
"item.trackTime"
placement=
"top"
>
<p>
{{ item.title }}
</p>
<p>
{{ item.trackContent }}
</p>
</el-timeline-item>
</el-timeline>
<el-empty
v-else
:image-size=
"150"
></el-empty>
</ul>
</div>
</template>
...
...
linkwe-ui/src/views/customerManage/customer/track.vue
deleted
100644 → 0
View file @
b805991
<
script
>
export
default
{
name
:
''
,
props
:
{
userId
:
{
type
:
String
,
default
:
''
}
},
components
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
name
:
''
// "客户名称",
},
loading
:
false
,
total
:
0
,
list
:
[]
// 列表
}
},
computed
:
{},
watch
:
{},
created
()
{
// this.getList()
},
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
page
&&
(
this
.
query
.
pageNum
=
page
)
this
.
loading
=
true
api
.
getList
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
+
total
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
})
}
}
}
</
script
>
<
template
>
<ul
class=
"infinite-list"
v-infinite-scroll=
"getList"
style=
"overflow:auto"
>
<li
v-for=
"i in list"
class=
"infinite-list-item"
:key=
"i"
>
<div>
2021-02-16 星期二
</div>
<el-timeline>
<el-timeline-item
v-for=
"(activity, index) in 6"
:key=
"index"
timestamp=
"2018/4/12"
placement=
"top"
>
<p>
更新 Github 模板
</p>
<p>
王小虎 提交于 2018/4/12 20:46
</p>
</el-timeline-item>
</el-timeline>
</li>
</ul>
</
template
>
<
style
lang=
"less"
scoped
></
style
>
linkwe-ui/src/views/customerManage/customerDetail.vue
View file @
9f5cb27
...
...
@@ -89,12 +89,12 @@ export default {
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
customer
.
gender
]]
"></i>
</div>
<div class="
mt10
">
<template v-if="
customer
.
companyTag
s
">
<el-tag
type="
info
" v-for="
(
unit
,
unique
)
in
customer
.
companyTags
" :key="
unique
"
>
{{
<template v-if="
customer
.
tagName
s
">
<el-tag
v-for="
(
unit
,
unique
)
in
customer
.
tagNames
.
split
(
','
)
" :key="
unique
"
>
{{
unit
}}
<
/el-tag
>
<
/template
>
<
div
>
<
div
v
-
else
>
暂无标签
<
/div
>
<
/div
>
...
...
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