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 23b0a527
authored
Mar 31, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
上传代码
1 parent
8a951649
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
228 additions
and
32 deletions
linkwe-pc/src/router/index.js
linkwe-pc/src/views/contentCenter/components/MaPage.vue
linkwe-pc/src/views/customerManage/customer/MaterialCard.vue
linkwe-pc/src/views/customerManage/customer/record.vue
linkwe-pc/src/router/index.js
View file @
23b0a52
...
@@ -81,6 +81,11 @@ export const constantRoutes = [
...
@@ -81,6 +81,11 @@ export const constantRoutes = [
isNoLogin
:
true
,
isNoLogin
:
true
,
},
},
},
},
{
path
:
'/preview'
,
component
:
(
resolve
)
=>
require
([
'@/views/contentCenter/components/preview'
],
resolve
),
hidden
:
true
,
},
// {
// {
// path: '',
// path: '',
// component: Layout,
// component: Layout,
...
...
linkwe-pc/src/views/contentCenter/components/MaPage.vue
View file @
23b0a52
...
@@ -591,7 +591,7 @@ export default {
...
@@ -591,7 +591,7 @@ export default {
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
></el-option>
:value=
"item.value"
></el-option>
</el-select>
</el-select>
<el-button
class=
"ml10
"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
style=
"margin-left:10px
"
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</div>
</div>
<div
class=
"mt20 g-card pad20"
>
<div
class=
"mt20 g-card pad20"
>
...
@@ -612,7 +612,7 @@ export default {
...
@@ -612,7 +612,7 @@ export default {
<el-button
size=
"mini"
@
click=
"groupDialogVisible = false"
>
取消
</el-button>
<el-button
size=
"mini"
@
click=
"groupDialogVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"moveGroup"
>
确定
</el-button>
<el-button
type=
"primary"
size=
"mini"
@
click=
"moveGroup"
>
确定
</el-button>
</div>
</div>
<el-button
slot=
"reference"
class=
"mr10
"
:disabled=
"selected.length === 0"
type=
"primary"
>
<el-button
slot=
"reference"
style=
"margin-right:10px
"
:disabled=
"selected.length === 0"
type=
"primary"
>
批量分组
批量分组
</el-button>
</el-button>
</el-popover>
</el-popover>
...
...
linkwe-pc/src/views/customerManage/customer/MaterialCard.vue
0 → 100644
View file @
23b0a52
<
template
>
<div
class=
"itemList"
>
<div
class=
"content bfc-o"
>
<div
class=
"title"
>
{{
weMaterialVo
.
materialName
}}
</div>
<!-- 文章 -->
<div
class=
"centerStyle"
v-if=
"weMaterialVo.mediaType == 12"
>
<el-image
class=
"img-style"
fit=
"contain"
:src=
"weMaterialVo.coverUrl"
v-if=
"weMaterialVo.coverUrl"
/>
<svg-icon
class=
"icon-style"
iconClass=
"article"
v-else
></svg-icon>
<div
class=
"contentStyle"
>
{{
weMaterialVo
.
digest
}}
</div>
</div>
<!-- 视频 -->
<div
class=
"centerStyle"
v-if=
"weMaterialVo.mediaType == 2"
>
<el-image
class=
"img-style"
:src=
"weMaterialVo.coverUrl"
/>
<div
class=
"contentStyle"
>
{{
weMaterialVo
.
digest
}}
</div>
</div>
<!-- 海报 -->
<div
class=
"centerStyle"
v-if=
"weMaterialVo.mediaType == 5"
>
<el-image
class=
"img-style"
fit=
"contain"
:src=
"weMaterialVo.materialUrl"
v-if=
"weMaterialVo.materialUrl"
/>
<svg-icon
class=
"icon-style"
iconClass=
"pic"
v-else
></svg-icon>
<div
class=
"contentStyle"
>
{{
weMaterialVo
.
digest
}}
</div>
</div>
<!-- 文件 -->
<div
v-if=
"weMaterialVo.mediaType === '3'"
style=
"display: flex"
>
<svg-icon
class=
"icon-style"
:iconClass=
"weMaterialVo.materialUrl ? filType(weMaterialVo.materialUrl) : ''"
v-if=
"weMaterialVo.materialUrl"
></svg-icon>
<span
class=
"contentStyle"
>
{{
weMaterialVo
.
digest
}}
</span>
</div>
</div>
<div
class=
"info"
>
<div
class=
"flex fr"
>
<div
v-if=
"['2', '5', '9'].includes(weMaterialVo.mediaType)"
class=
"preview"
>
<a
:href=
"weMaterialVo.materialUrl"
target=
"_blank"
>
预览
</a>
</div>
<div
v-if=
"weMaterialVo.mediaType === '12'"
class=
"preview"
@
click=
"preview(weMaterialVo)"
>
预览
</div>
<a
target=
"_blank"
:href=
"dealUrl(weMaterialVo.materialUrl)"
class=
"preview"
v-if=
"weMaterialVo.mediaType == '3'"
>
预览
</a
>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{}
},
methods
:
{
// preview(obj) {
// if (obj.id !== '0' && obj.id !== '4') {
// this.$router.push({
// name: 'previewDetail',
// query: {
// obj: obj,
// },
// })
// }
// },
dealUrl
(
url
)
{
return
window
.
lwConfig
.
PRIVIEW_URL
+
encodeURIComponent
(
this
.
base64Encode
(
url
))
},
base64Encode
(
str
)
{
if
(
str
===
undefined
||
str
===
''
||
str
===
null
)
{
return
str
}
return
btoa
(
encodeURIComponent
(
str
).
replace
(
/%
([
0-9A-F
]{2})
/g
,
function
toSolidBytes
(
match
,
p1
)
{
return
String
.
fromCharCode
(
'0x'
+
p1
)
})
)
},
preview
(
row
)
{
let
routeData
=
this
.
$router
.
resolve
({
path
:
'/preview'
,
query
:
{
obj
:
encodeURIComponent
(
JSON
.
stringify
(
row
))
},
})
window
.
open
(
routeData
.
href
,
'_blank'
)
},
// 处理文件类型
filType
(
file
)
{
let
filecontent
=
JSON
.
parse
(
JSON
.
stringify
(
file
))
filecontent
=
filecontent
.
split
(
'.'
)
let
type
=
filecontent
[
filecontent
.
length
-
1
]
if
(
type
===
'pdf'
)
{
return
'pdf'
}
else
if
(
type
===
'doc'
||
type
===
'docx'
)
{
return
'word'
}
else
if
(
type
===
'ppt'
||
type
===
'pptx'
||
type
===
'pps'
||
type
===
'pptsx'
)
{
return
'ppt'
}
else
{
return
''
}
},
},
props
:
{
weMaterialVo
:
{
type
:
Object
,
default
:
{},
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.preview
{
width
:
50px
;
height
:
20px
;
font-size
:
12px
;
background-color
:
#fff
;
border
:
1px
solid
#0079de
;
border-radius
:
10px
;
color
:
#0079de
;
line-height
:
20px
;
text-align
:
center
;
margin-right
:
6px
;
}
.title
{
font-weight
:
700
;
font-size
:
12px
;
color
:
#333
;
line-height
:
18px
;
width
:
100%
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin-bottom
:
6px
;
}
.icon-style
{
width
:
40px
;
height
:
40px
;
}
.itemList
{
width
:
60%
;
margin
:
10px
;
background-color
:
#eaeaea
;
padding
:
10px
;
border-radius
:
4px
;
}
.info
{
height
:
20px
;
.fr
{
cursor
:
pointer
;
}
}
.centerStyle
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-between
;
.contentStyle
{
font-size
:
12px
;
color
:
#aaaaaa
;
width
:
calc
(
100%
-
60px
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
height
:
28px
;
margin-top
:
20px
;
}
.img-style
{
width
:
60px
;
height
:
60px
;
}
}
</
style
>
linkwe-pc/src/views/customerManage/customer/record.vue
View file @
23b0a52
<
script
>
<
script
>
import
{
getFollowUpRecord
,
syncTrack
}
from
'@/api/customer'
import
{
getFollowUpRecord
,
syncTrack
}
from
'@/api/customer'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
dictTrackState
}
from
'@/utils/dictionary'
import
{
dateFormat
}
from
'@/utils'
import
{
dateFormat
}
from
'@/utils'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
{
getList
}
from
'@/api/salesCenter/businessConver.js'
import
MaterialCard
from
'./MaterialCard.vue'
export
default
{
export
default
{
name
:
''
,
name
:
''
,
props
:
{
props
:
{
// 当前跟进人id
// 当前跟进人id
userId
:
{
userId
:
{
type
:
String
,
type
:
String
,
default
:
null
default
:
null
,
},
},
// 所有跟进人id(用于客户画像汇总的同步)
// 所有跟进人id(用于客户画像汇总的同步)
userIdAll
:
{
userIdAll
:
{
type
:
String
,
type
:
String
,
default
:
null
default
:
null
,
},
},
// 1:客户动态;2:员工动态;3:互动动态;4:跟进动态
// 1:客户动态;2:员工动态;3:互动动态;4:跟进动态
trajectoryType
:
{
trajectoryType
:
{
type
:
String
,
type
:
String
,
default
:
null
default
:
null
,
},
},
// 视图展示类型 1:表格展示,2:轨迹时间线展示
// 视图展示类型 1:表格展示,2:轨迹时间线展示
viewType
:
{
viewType
:
{
type
:
String
,
type
:
String
,
default
:
''
default
:
''
,
},
},
lastSyncTime
:
String
lastSyncTime
:
String
,
},
},
components
:
{
},
components
:
{
MaterialCard
},
data
()
{
data
()
{
return
{
return
{
stageList
:
[],
stageList
:
[],
...
@@ -38,14 +39,14 @@
...
@@ -38,14 +39,14 @@
pageSize
:
10
,
pageSize
:
10
,
externalUserid
:
''
,
// 是 当前客户id
externalUserid
:
''
,
// 是 当前客户id
userId
:
null
,
// 当前跟进人id,
userId
:
null
,
// 当前跟进人id,
trajectoryType
:
null
// 1:客户动态;2:员工动态;3:互动动态;4:跟进动态
trajectoryType
:
null
,
// 1:客户动态;2:员工动态;3:互动动态;4:跟进动态
},
},
loading
:
false
,
loading
:
false
,
total
:
0
,
total
:
0
,
list
:
[],
// 列表
list
:
[],
// 列表
dictTrackState
,
dictTrackState
,
dateFormat
,
dateFormat
,
goto
:
true
goto
:
true
,
}
}
},
},
computed
:
{},
computed
:
{},
...
@@ -75,7 +76,7 @@
...
@@ -75,7 +76,7 @@
Object
.
assign
(
this
.
query
,
{
Object
.
assign
(
this
.
query
,
{
externalUserid
:
this
.
$route
.
query
.
externalUserid
,
externalUserid
:
this
.
$route
.
query
.
externalUserid
,
weUserId
:
this
.
userId
,
weUserId
:
this
.
userId
,
trajectoryType
:
this
.
trajectoryType
trajectoryType
:
this
.
trajectoryType
,
})
})
if
(
this
.
viewType
)
{
if
(
this
.
viewType
)
{
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
...
@@ -140,9 +141,9 @@
...
@@ -140,9 +141,9 @@
this
.
loading
=
false
this
.
loading
=
false
console
.
error
(
fail
)
console
.
error
(
fail
)
})
})
}
},
}
},
}
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -179,7 +180,7 @@
...
@@ -179,7 +180,7 @@
</template>
</template>
<div
v-else
class=
"timeline-time-wrap"
>
<div
v-else
class=
"timeline-time-wrap"
>
<ul
class=
"infinite-list"
v-infinite-scroll=
"getList"
style=
"overflow: auto
;
"
>
<ul
class=
"infinite-list"
v-infinite-scroll=
"getList"
style=
"overflow: auto"
>
<!-- -->
<!-- -->
<
template
v-if=
"list.length"
>
<
template
v-if=
"list.length"
>
<li
v-for=
"(unit, i) in list"
class=
"infinite-list-item"
:key=
"i"
>
<li
v-for=
"(unit, i) in list"
class=
"infinite-list-item"
:key=
"i"
>
...
@@ -195,6 +196,7 @@
...
@@ -195,6 +196,7 @@
>
>
<p
class=
"timeline-box-item-title"
>
{{
item
.
title
||
'无标题'
}}
</p>
<p
class=
"timeline-box-item-title"
>
{{
item
.
title
||
'无标题'
}}
</p>
<p>
{{
item
.
content
||
'无内容'
}}
</p>
<p>
{{
item
.
content
||
'无内容'
}}
</p>
<MaterialCard
v-if=
"item.weMaterialVo"
:weMaterialVo=
"item.weMaterialVo"
/>
</el-timeline-item>
</el-timeline-item>
</el-timeline>
</el-timeline>
</li>
</li>
...
@@ -206,23 +208,23 @@
...
@@ -206,23 +208,23 @@
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
//
.timeline-time-wrap
{
//
.timeline-time-wrap
{
//
}
//
}
.infinite-list-item
{
.infinite-list-item
{
border-bottom
:
1px
solid
#eee
;
border-bottom
:
1px
solid
#eee
;
&:last-child
{
&:last-child
{
border
:
0
;
border
:
0
;
}
}
}
}
.timeline-time
{
.timeline-time
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#999999
;
color
:
#999999
;
line-height
:
48px
;
line-height
:
48px
;
}
}
.el-timeline
>
.timeline-box-item
:first-child
::v-deep
.el-timeline-item__node
{
.el-timeline
>
.timeline-box-item
:first-child
::v-deep
.el-timeline-item__node
{
border-radius
:
0
!important
;
border-radius
:
0
!important
;
}
}
.timeline-box
{
.timeline-box
{
padding-left
:
70px
;
padding-left
:
70px
;
&-item
{
&-item
{
::v-deep
.el-timeline-item__timestamp
{
::v-deep
.el-timeline-item__timestamp
{
...
@@ -237,9 +239,9 @@
...
@@ -237,9 +239,9 @@
line-height
:
25px
;
line-height
:
25px
;
}
}
}
}
}
}
::v-deep
.el-timeline-item__tail
{
::v-deep
.el-timeline-item__tail
{
border-left-color
:
var
(
--color
);
border-left-color
:
var
(
--color
);
}
}
</
style
>
</
style
>
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