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 8874732c
authored
Jun 30, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企业话术接口传参调整
1 parent
0e536030
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
62 deletions
linkwe-pc/src/views/contentCenter/components/DataDetail.vue
linkwe-pc/src/views/contentCenter/corporateScripts/Statistics.vue
linkwe-pc/src/views/contentCenter/components/DataDetail.vue
View file @
8874732
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<!--话术中心的数据明细 -->
<!--话术中心的数据明细 -->
<div
class=
"margin-top: 10px;"
>
<div
class=
"margin-top: 10px;"
>
<el-table
:data=
"tableList"
style=
"width: 100%"
>
<el-table
:data=
"tableList"
style=
"width: 100%
;
"
>
<el-table-column
prop=
"name"
label=
"素材"
align=
"left"
>
<el-table-column
prop=
"name"
label=
"素材"
align=
"left"
>
<template
slot-scope=
"
{ row }">
<template
slot-scope=
"
{ row }">
<span
class=
"title"
>
{{
row
.
materialName
}}
</span>
<span
class=
"title"
>
{{
row
.
materialName
}}
</span>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<el-image
:src=
"row.materialUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
:src=
"row.materialUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
</div>
</div>
<!-- 图文 -->
<!-- 图文 -->
<div
v-if=
"row.mediaType === '9'"
style=
"display: flex"
>
<div
v-if=
"row.mediaType === '9'"
style=
"display: flex
;
"
>
<el-image
v-if=
"row.coverUrl"
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
v-if=
"row.coverUrl"
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<div
class=
"icon-style"
v-else
>
<div
class=
"icon-style"
v-else
>
<svg-icon
class=
"icon-style"
iconClass=
"imgText"
></svg-icon>
<svg-icon
class=
"icon-style"
iconClass=
"imgText"
></svg-icon>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
</div>
</div>
<!-- 文章 -->
<!-- 文章 -->
<div
v-if=
"row.mediaType === '12'"
style=
"display: flex"
>
<div
v-if=
"row.mediaType === '12'"
style=
"display: flex
;
"
>
<el-image
v-if=
"row.coverUrl"
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
v-if=
"row.coverUrl"
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<div
class=
"icon-style"
v-else
>
<div
class=
"icon-style"
v-else
>
<svg-icon
class=
"icon-style"
iconClass=
"article"
></svg-icon>
<svg-icon
class=
"icon-style"
iconClass=
"article"
></svg-icon>
...
@@ -35,21 +35,22 @@
...
@@ -35,21 +35,22 @@
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
</div>
</div>
<!-- 视频 -->
<!-- 视频 -->
<div
v-if=
"row.mediaType === '2'"
style=
"display: flex"
>
<div
v-if=
"row.mediaType === '2'"
style=
"display: flex
;
"
>
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
</div>
</div>
<!-- 文件 -->
<!-- 文件 -->
<div
v-if=
"row.mediaType === '3'"
style=
"display: flex"
>
<div
v-if=
"row.mediaType === '3'"
style=
"display: flex
;
"
>
<!--
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
-->
<!--
<el-image
:src=
"row.coverUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
-->
<svg-icon
<svg-icon
class=
"icon-style"
class=
"icon-style"
:iconClass=
"row.materialUrl ? filType(row.materialUrl) : ''"
:iconClass=
"row.materialUrl ? filType(row.materialUrl) : ''"
v-if=
"row.materialUrl"
></svg-icon>
v-if=
"row.materialUrl"
></svg-icon>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
</div>
</div>
<!-- 海报 -->
<!-- 海报 -->
<div
v-if=
"row.mediaType === '5'"
style=
"display: flex"
>
<div
v-if=
"row.mediaType === '5'"
style=
"display: flex
;
"
>
<el-image
:src=
"row.materialUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<el-image
:src=
"row.materialUrl"
fit=
"contain"
class=
"imgsize"
></el-image>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
<span
class=
"twosplice mt10"
>
{{
coverContent
(
row
.
digest
)
}}
</span>
</div>
</div>
...
@@ -90,8 +91,9 @@
...
@@ -90,8 +91,9 @@
:title=
"send ? '发送明细' : '查看明细'"
:title=
"send ? '发送明细' : '查看明细'"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
width=
"60%"
>
width=
"60%"
<el-table
v-loading=
"loading"
:data=
"detailList"
style=
"width: 100%"
>
>
<el-table
v-loading=
"loading"
:data=
"detailList"
style=
"width: 100%;"
>
<!-- 发送明细 -->
<!-- 发送明细 -->
<
template
v-if=
"send"
>
<
template
v-if=
"send"
>
<el-table-column
prop=
"sendBy"
label=
"发送员工"
align=
"center"
min-width=
"100"
/>
<el-table-column
prop=
"sendBy"
label=
"发送员工"
align=
"center"
min-width=
"100"
/>
...
@@ -105,7 +107,8 @@
...
@@ -105,7 +107,8 @@
:src=
"scope.row.viewAvatar"
:src=
"scope.row.viewAvatar"
fit=
"contain"
fit=
"contain"
class=
"imgsize"
class=
"imgsize"
v-if=
"scope.row.viewAvatar"
></el-image>
v-if=
"scope.row.viewAvatar"
></el-image>
{{
scope
.
row
.
viewBy
}}
{{
scope
.
row
.
viewBy
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -121,7 +124,8 @@
...
@@ -121,7 +124,8 @@
align=
"center"
align=
"center"
min-width=
"100"
min-width=
"100"
prop=
"viewDurationCpt"
prop=
"viewDurationCpt"
show-overflow-tooltip
/>
show-overflow-tooltip
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.row)"
v-if=
"scope.row.isCustomer"
>
客户详情
</el-button>
<el-button
type=
"text"
@
click=
"goDetail(scope.row)"
v-if=
"scope.row.isCustomer"
>
客户详情
</el-button>
...
@@ -134,15 +138,16 @@
...
@@ -134,15 +138,16 @@
:total=
"total"
:total=
"total"
:page
.
sync=
"query.pageNum"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getTableChangeSize()"
/>
@
pagination=
"getTableChangeSize()"
/>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getTableDetail
}
from
'@/api/contentCenter/common.js'
import
{
getTableDetail
}
from
'@/api/contentCenter/common.js'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
dialogVisible
:
false
,
dialogVisible
:
false
,
...
@@ -150,22 +155,29 @@ export default {
...
@@ -150,22 +155,29 @@ export default {
send
:
true
,
send
:
true
,
query
:
{
query
:
{
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
},
},
total
:
0
,
total
:
0
,
loading
:
false
,
loading
:
false
}
}
},
},
props
:
{
props
:
{
timeObj
:
{
type
:
Object
,
default
:
{
beginTime
:
''
,
endTime
:
''
}
},
tableList
:
{
tableList
:
{
type
:
Array
,
type
:
Array
,
default
:
[],
default
:
[]
},
},
// 1素材中心 2企业话术 3客服话术
// 1素材中心 2企业话术 3客服话术
resourceType
:
{
resourceType
:
{
type
:
Number
,
type
:
Number
,
default
:
null
,
default
:
null
},
}
},
},
methods
:
{
methods
:
{
// 查看人数
// 查看人数
...
@@ -174,6 +186,8 @@ export default {
...
@@ -174,6 +186,8 @@ export default {
this
.
query
.
detailsType
=
2
this
.
query
.
detailsType
=
2
this
.
query
.
contentId
=
row
.
id
this
.
query
.
contentId
=
row
.
id
this
.
query
.
talkId
=
row
.
talkId
this
.
query
.
talkId
=
row
.
talkId
this
.
query
.
beginTime
=
this
.
timeObj
.
beginTime
this
.
query
.
endTime
=
this
.
timeObj
.
endTime
this
.
detailList
=
[]
this
.
detailList
=
[]
this
.
getTableChangeSize
()
this
.
getTableChangeSize
()
this
.
send
=
false
this
.
send
=
false
...
@@ -185,6 +199,8 @@ export default {
...
@@ -185,6 +199,8 @@ export default {
this
.
query
.
detailsType
=
1
this
.
query
.
detailsType
=
1
this
.
query
.
contentId
=
row
.
id
this
.
query
.
contentId
=
row
.
id
this
.
query
.
talkId
=
row
.
talkId
this
.
query
.
talkId
=
row
.
talkId
this
.
query
.
beginTime
=
this
.
timeObj
.
beginTime
this
.
query
.
endTime
=
this
.
timeObj
.
endTime
this
.
detailList
=
[]
this
.
detailList
=
[]
this
.
getTableChangeSize
()
this
.
getTableChangeSize
()
},
},
...
@@ -201,7 +217,7 @@ export default {
...
@@ -201,7 +217,7 @@ export default {
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
let
{
externalUserid
,
firstUserId
:
userId
}
=
row
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'CustomerDetail'
,
name
:
'CustomerDetail'
,
query
:
{
externalUserid
,
userId
},
query
:
{
externalUserid
,
userId
}
})
})
},
},
deltype
(
type
)
{
deltype
(
type
)
{
...
@@ -252,17 +268,17 @@ export default {
...
@@ -252,17 +268,17 @@ export default {
str
=
str
.
substr
(
0
,
50
)
+
'...'
str
=
str
.
substr
(
0
,
50
)
+
'...'
}
}
return
str
return
str
},
}
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.icon-style
{
.icon-style
{
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
}
}
.title
{
.title
{
width
:
80%
;
width
:
80%
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
...
@@ -270,15 +286,15 @@ export default {
...
@@ -270,15 +286,15 @@ export default {
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#aaa
;
color
:
#aaa
;
font-size
:
12px
;
font-size
:
12px
;
}
}
.imgsize
{
.imgsize
{
width
:
50px
;
width
:
50px
;
height
:
50px
;
height
:
50px
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.scriptNum
{
.scriptNum
{
font-size
:
14px
;
font-size
:
14px
;
color
:
var
(
--color
);
color
:
var
(
--color
);
cursor
:
pointer
;
cursor
:
pointer
;
}
}
</
style
>
</
style
>
linkwe-pc/src/views/contentCenter/corporateScripts/Statistics.vue
View file @
8874732
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<div
class=
"data-content"
>
<div
class=
"data-content"
>
<div
class=
"chart-content"
>
<div
class=
"chart-content"
>
<search-title
@
search=
"getLineData"
></search-title>
<search-title
@
search=
"getLineData"
></search-title>
<chart-line
style=
"height: 300px"
:legend=
"legend"
:xData=
"xdata"
:series=
"series"
></chart-line>
<chart-line
style=
"height: 300px
;
"
:legend=
"legend"
:xData=
"xdata"
:series=
"series"
></chart-line>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -24,10 +24,10 @@
...
@@ -24,10 +24,10 @@
</div>
</div>
<div>
<div>
<div>
<div>
<search-title
:showToday=
"true"
@
search=
"getTableData"
style=
"margin-top: 20px"
></search-title>
<search-title
:showToday=
"true"
@
search=
"getTableData"
style=
"margin-top: 20px
;
"
></search-title>
</div>
</div>
<div
class=
"data-content"
style=
"margin-top: 20px"
>
<div
class=
"data-content"
style=
"margin-top: 20px
;
"
>
<DataDetail
:tableList=
"tableList"
:resourceType=
"2"
/>
<DataDetail
:tableList=
"tableList"
:
timeObj=
"query"
:
resourceType=
"2"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -35,21 +35,21 @@
...
@@ -35,21 +35,21 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getCount
}
from
'@/api/contentCenter/common.js'
import
{
getCount
}
from
'@/api/contentCenter/common.js'
import
{
getTalkMaterial
}
from
'@/api/contentCenter/scriptCenter.js'
import
{
getTalkMaterial
}
from
'@/api/contentCenter/scriptCenter.js'
import
PreviewClient
from
'@/components/previewInMobileClient.vue'
import
PreviewClient
from
'@/components/previewInMobileClient.vue'
import
ChartBar
from
'@/components/ChartBar.vue'
import
ChartBar
from
'@/components/ChartBar.vue'
import
ChartLine
from
'@/components/ChartLine.vue'
import
ChartLine
from
'@/components/ChartLine.vue'
import
SearchTitle
from
'../components/SearchTitle.vue'
import
SearchTitle
from
'../components/SearchTitle.vue'
import
DataDetail
from
'@/views/contentCenter/components/DataDetail.vue'
import
DataDetail
from
'@/views/contentCenter/components/DataDetail.vue'
export
default
{
export
default
{
components
:
{
components
:
{
SearchTitle
,
SearchTitle
,
ChartLine
,
ChartLine
,
ChartBar
,
ChartBar
,
PreviewClient
,
PreviewClient
,
DataDetail
,
DataDetail
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -68,14 +68,14 @@ export default {
...
@@ -68,14 +68,14 @@ export default {
'图文'
,
'图文'
,
'链接'
,
'链接'
,
'小程序'
,
'小程序'
,
'文章'
,
'文章'
],
],
disabled
:
true
,
disabled
:
true
,
mobForm
:
{
mobForm
:
{
welcomeMsg
:
''
,
welcomeMsg
:
''
,
materialMsgList
:
[],
materialMsgList
:
[],
userIds
:
''
,
userIds
:
''
,
userNames
:
''
,
userNames
:
''
},
},
exportLoading
:
false
,
exportLoading
:
false
,
// barLegend1: ['访问客户总数'],
// barLegend1: ['访问客户总数'],
...
@@ -89,33 +89,33 @@ export default {
...
@@ -89,33 +89,33 @@ export default {
{
{
title
:
'发送总次数 '
,
title
:
'发送总次数 '
,
value
:
0
,
value
:
0
,
noArrow
:
true
,
noArrow
:
true
},
},
{
{
title
:
'查看总次数'
,
title
:
'查看总次数'
,
value
:
0
,
value
:
0
},
},
{
{
title
:
'查看总人数'
,
title
:
'查看总人数'
,
value
:
0
,
value
:
0
},
},
{
{
title
:
'今日发送次数'
,
title
:
'今日发送次数'
,
value
:
0
,
value
:
0
},
},
{
{
title
:
'今日查看次数'
,
title
:
'今日查看次数'
,
value
:
0
,
value
:
0
},
},
{
{
title
:
'今日查看人数'
,
title
:
'今日查看人数'
,
value
:
0
,
value
:
0
},
}
],
],
total
:
0
,
total
:
0
,
query
:
{
query
:
{
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
},
},
tableList
:
[],
tableList
:
[],
loading
:
false
,
loading
:
false
,
...
@@ -126,7 +126,7 @@ export default {
...
@@ -126,7 +126,7 @@ export default {
value2
:
[],
value2
:
[],
tableSearch
:
{},
tableSearch
:
{},
treeData
:
[{}],
// 树
treeData
:
[{}],
// 树
talkId
:
''
,
talkId
:
''
}
}
},
},
methods
:
{
methods
:
{
...
@@ -179,16 +179,16 @@ export default {
...
@@ -179,16 +179,16 @@ export default {
// this.total = Number(res.total)
// this.total = Number(res.total)
this
.
loading
=
false
this
.
loading
=
false
})
})
},
}
},
},
created
()
{
created
()
{
this
.
talkId
=
this
.
$route
.
query
.
talkId
this
.
talkId
=
this
.
$route
.
query
.
talkId
},
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.group
{
.group
{
font-size
:
12px
;
font-size
:
12px
;
background
:
var
(
--color
);
background
:
var
(
--color
);
color
:
#fff
;
color
:
#fff
;
...
@@ -199,8 +199,8 @@ export default {
...
@@ -199,8 +199,8 @@ export default {
border-radius
:
5px
;
border-radius
:
5px
;
text-align
:
center
;
text-align
:
center
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.data-content
{
.data-content
{
margin-top
:
10px
;
margin-top
:
10px
;
.chart-content
{
.chart-content
{
margin-top
:
10px
;
margin-top
:
10px
;
...
@@ -221,5 +221,5 @@ export default {
...
@@ -221,5 +221,5 @@ export default {
.table-content
{
.table-content
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
}
}
</
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