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 2fd8359b
authored
Mar 23, 2021
by
闻闻闻
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
H5更新
2 parents
3ff25449
58f22719
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
197 additions
and
109 deletions
linkwe-mobile/public/index.html
linkwe-mobile/src/App.vue
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
linkwe-ui/src/views/conversation/component/chat.vue
linkwe-ui/src/views/conversation/component/groupList.vue
linkwe-ui/src/views/conversation/component/list.vue
linkwe-ui/src/views/conversation/page/employeeTest.vue
linkwe-ui/src/views/conversation/page/roleTest.vue
linkwe-ui/src/views/conversation/page/userTest.vue
linkwe-mobile/public/index.html
View file @
2fd8359
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
<
%= htmlWebpackPlugin.options.title %>
</title>
<title>
<
%= htmlWebpackPlugin.options.title %>
</title>
<script
src=
"
.
/jweixin-1.2.0.js"
></script>
<script
src=
"
http://res.wx.qq.com/open/js
/jweixin-1.2.0.js"
></script>
<script
src=
"https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"
></script>
<script
src=
"https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"
></script>
</head>
</head>
...
...
linkwe-mobile/src/App.vue
View file @
2fd8359
...
@@ -39,6 +39,7 @@ export default {
...
@@ -39,6 +39,7 @@ export default {
({
data
})
=>
{
({
data
})
=>
{
let
{
timestamp
,
nonceStr
,
signature
}
=
data
let
{
timestamp
,
nonceStr
,
signature
}
=
data
wx
.
agentConfig
({
wx
.
agentConfig
({
beta
:
true
,
// 必须这么写,否则wx.invoke调用形式的jsapi会有问题
debug
:
true
,
debug
:
true
,
corpid
:
this
.
corpId
,
// 必填,企业微信的corpid,必须与当前登录的企业一致
corpid
:
this
.
corpId
,
// 必填,企业微信的corpid,必须与当前登录的企业一致
agentid
:
this
.
agentId
,
// 必填,企业微信的应用id (e.g. 1000247)
agentid
:
this
.
agentId
,
// 必填,企业微信的应用id (e.g. 1000247)
...
...
linkwe-ui/src/views/communityOperating/newCustomer/aev.vue
View file @
2fd8359
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
},
},
// 选择二维码确认按钮
// 选择二维码确认按钮
submitSelectQrCode
(
data
)
{
submitSelectQrCode
(
data
)
{
debugger
//
debugger
this
.
form
.
groupCodeId
=
data
.
id
this
.
form
.
groupCodeId
=
data
.
id
this
.
form
.
qrCode
=
data
.
codeUrl
this
.
form
.
qrCode
=
data
.
codeUrl
this
.
$refs
.
form
.
validateField
(
'qrCode'
)
this
.
$refs
.
form
.
validateField
(
'qrCode'
)
...
...
linkwe-ui/src/views/communityOperating/newCustomer/list.vue
View file @
2fd8359
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
i
d
)
this
.
ids
=
selection
.
map
((
item
)
=>
item
.
newGroupI
d
)
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
remove
(
id
)
{
remove
(
id
)
{
...
@@ -98,7 +98,7 @@ export default {
...
@@ -98,7 +98,7 @@ export default {
},
},
download
(
data
)
{
download
(
data
)
{
let
name
=
data
.
activityScene
+
'-'
+
data
.
newGroupId
+
'.png'
let
name
=
data
.
activityScene
+
'-'
+
data
.
newGroupId
+
'.png'
download
(
i
d
).
then
((
res
)
=>
{
download
(
data
.
newGroupI
d
).
then
((
res
)
=>
{
if
(
res
!=
null
)
{
if
(
res
!=
null
)
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
blob
=
new
Blob
([
res
],
{
type
:
'application/zip'
})
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
let
url
=
window
.
URL
.
createObjectURL
(
blob
)
...
@@ -111,8 +111,8 @@ export default {
...
@@ -111,8 +111,8 @@ export default {
})
})
},
},
/** 批量下载 */
/** 批量下载 */
downloadBatch
(
qrCode
)
{
downloadBatch
()
{
this
.
$confirm
(
'是否确认下载所有图片吗?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认下载所有
活码
图片吗?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
type
:
'warning'
,
...
@@ -209,9 +209,15 @@ export default {
...
@@ -209,9 +209,15 @@ export default {
</el-tooltip>
</el-tooltip>
</div>
</div>
<div>
<div>
<el-button
type=
"primary"
@
click=
"download()"
>
批量下载
</el-button>
<el-button
type=
"primary"
:disabled=
"!ids.length"
@
click=
"downloadBatch()"
>
批量下载
</el-button
>
<el-button
<el-button
v-hasPermi=
"['customerManage:customer:export']"
v-hasPermi=
"['customerManage:customer:export']"
:disabled=
"!ids.length"
type=
"cyan"
type=
"cyan"
@
click=
"remove()"
@
click=
"remove()"
>
批量删除
</el-button
>
批量删除
</el-button
...
...
linkwe-ui/src/views/conversation/component/chat.vue
View file @
2fd8359
...
@@ -4,19 +4,18 @@
...
@@ -4,19 +4,18 @@
<li
v-for=
"(item,index) in allChat"
:key=
"index"
>
<li
v-for=
"(item,index) in allChat"
:key=
"index"
>
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<!--
<span
v-if=
"item.fromInfo.name"
>
{{
item
.
fromInfo
.
name
}}
</span>
-->
<div
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
<span
v-if=
"item.fromInfo"
>
{{
item
.
fromInfo
.
name
}}
</span>
<span
<div
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
<span
v-if=
"item.fromInfo"
>
{{
item
.
fromInfo
.
name
}}
</span>
<span
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
{{
parseTime
(
item
.
msgtime
)
}}
</span></div>
:style=
"
{'color':item.action=='send'?'#199ed8':'#999'}">
{{
parseTime
(
item
.
msgtime
)
}}
</span></div>
<div
v-if=
"item.msgtype=='text'"
class=
"msgtypetext"
>
<div
v-if=
"item.msgtype=='text'"
class=
"msgtypetext"
>
{{
item
.
text
.
content
}}
{{
item
.
text
.
content
}}
</div>
</div>
<div
v-else-if=
"item.msgtype=='image'"
class=
"msgtypeimg"
>
<div
v-else-if=
"item.msgtype=='image'"
class=
"msgtypeimg"
>
<img
:src=
"item.image.attachment"
@
click=
"showImg(item)"
>
<img
:src=
"item.image.attachment"
@
click=
"showImg(item)"
>
</div>
</div>
<div
v-else-if=
"item.msgtype=='file'"
class=
"msgtypefile"
@
click=
"down(item.file)"
>
<div
v-else-if=
"item.msgtype=='file'"
class=
"msgtypefile"
@
click=
"down(item.file)"
>
{{
item
.
file
.
filename
}}
{{
item
.
file
.
filename
}}
</div>
</div>
<div
v-else-if=
"item.msgtype=='voice'"
class=
"msgtypevoice"
>
<div
v-else-if=
"item.msgtype=='voice'"
class=
"msgtypevoice"
>
<i
class=
"el-icon-microphone"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"playVideo(item)"
></i>
<i
class=
"el-icon-microphone"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"playVideo(item)"
></i>
</div>
</div>
...
@@ -26,13 +25,14 @@
...
@@ -26,13 +25,14 @@
<div
v-else-if=
"item.msgtype=='video'"
class=
"msgtypevideo"
>
<div
v-else-if=
"item.msgtype=='video'"
class=
"msgtypevideo"
>
<i
class=
"el-icon-video-play"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"play(item,'video')"
></i>
<i
class=
"el-icon-video-play"
style=
" font-size: 40px; color: #199ed8;"
@
click=
"play(item,'video')"
></i>
</div>
</div>
<div
v-else-if=
"item.msgtype=='location'"
class=
"msgtypecard"
>
<div
v-else-if=
"item.msgtype=='location'"
class=
"msgtypecard"
>
<div
class=
"card_name"
>
<div
class=
"card_name"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[item.location.longitude, item.location.latitude]"
:zoom=
"zoom"
class=
"amap-demo"
style=
"pointer-events: none;"
>
<el-amap
ref=
"map"
vid=
"amapDemo"
:center=
"[item.location.longitude, item.location.latitude]"
:zoom=
"zoom"
class=
"amap-demo"
style=
"pointer-events: none;"
>
<el-amap-marker
:position=
"[item.location.longitude, item.location.latitude]"
></el-amap-marker>
<el-amap-marker
:position=
"[item.location.longitude, item.location.latitude]"
></el-amap-marker>
</el-amap>
</el-amap>
</div>
</div>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
<div
class=
"card_foot"
>
{{
item
.
location
.
address
}}
</div>
</div>
</div>
<div
v-else-if=
"item.msgtype=='weapp'"
class=
"msgtypecard"
>
<div
v-else-if=
"item.msgtype=='weapp'"
class=
"msgtypecard"
>
<div
class=
"card_name"
></div>
<div
class=
"card_name"
></div>
...
@@ -45,36 +45,31 @@
...
@@ -45,36 +45,31 @@
</li>
</li>
</ul>
</ul>
<div
class=
"shabowbox"
v-show=
"dia"
>
<div
class=
"shabowbox"
v-show=
"dia"
>
<div
class=
"close"
@
click=
"dia=false"
><i
class=
"el-icon-circle-close"
></i></div>
<div
class=
"close"
@
click=
"dia=false"
><i
class=
"el-icon-circle-close"
></i></div>
<div
class=
"shabowboxvidoe"
>
<div
class=
"shabowboxvidoe"
>
<video-player
class=
"video-player vjs-custom-skin"
<video-player
class=
"video-player vjs-custom-skin"
ref=
"videoPlayer"
id=
"videoPlayer"
:playsinline=
"true"
ref=
"videoPlayer"
:options=
"playerOptions"
></video-player>
id=
"videoPlayer"
:playsinline=
"true"
:options=
"playerOptions"
></video-player>
</div>
</div>
</div>
</div>
<div
class=
"shabowbox"
v-show=
"diavioce"
>
<div
class=
"shabowbox"
v-show=
"diavioce"
>
<div
class=
"close"
@
click=
"diavioce=fal
se"
><i
class=
"el-icon-circle-close"
></i></div>
<div
class=
"close"
@
click=
"vioceClo
se"
><i
class=
"el-icon-circle-close"
></i></div>
<div
class=
"shabowboxvidoe shabowboxaudio"
>
<div
class=
"shabowboxvidoe shabowboxaudio"
>
<AudioPlayer
:audio-list=
"vioceSrc"
<AudioPlayer
:audio-list=
"vioceSrc"
ref=
"AudioPlayer"
:before-play=
"onBeforePlay"
/>
:before-play=
"onBeforePlay"
/>
</div>
</div>
</div>
</div>
<el-dialog
<el-dialog
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
:visible
.
sync=
"dialogVisible"
width=
"30%"
>
<img
:src=
"imgSrc"
style=
"width:100%;max-height:600px"
>
<img
:src=
"imgSrc"
style=
"width:100%;max-height:600px"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
</span>
</span>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
import
{
AMapManager
}
from
'vue-amap'
;
AMapManager
}
from
'vue-amap'
;
import
'video.js/dist/video-js.css'
import
'video.js/dist/video-js.css'
import
'vue-video-player/src/custom-theme.css'
import
'vue-video-player/src/custom-theme.css'
...
@@ -83,23 +78,25 @@
...
@@ -83,23 +78,25 @@
yearMouthDay
yearMouthDay
}
from
'@/utils/common.js'
}
from
'@/utils/common.js'
export
default
{
export
default
{
components
:{
AMapManager
},
components
:
{
AMapManager
},
props
:
{
props
:
{
allChat
:
{
allChat
:
{
type
:
Array
,
type
:
Array
,
defluat
:
()
=>
[]
defluat
:
()
=>
[]
}
}
},
},
mounted
()
{
mounted
()
{
},
},
data
()
{
data
()
{
return
{
return
{
dia
:
false
,
dia
:
false
,
diavioce
:
false
,
diavioce
:
false
,
dialogVisible
:
false
,
dialogVisible
:
false
,
imgSrc
:
''
,
imgSrc
:
''
,
vioceSrc
:[],
vioceSrc
:
[],
playerOptions
:
{
playerOptions
:
{
playbackRates
:
[
0.7
,
1.0
,
1.5
,
2.0
],
//播放速度
playbackRates
:
[
0.7
,
1.0
,
1.5
,
2.0
],
//播放速度
autoplay
:
false
,
//如果true,浏览器准备好时开始回放。
autoplay
:
false
,
//如果true,浏览器准备好时开始回放。
...
@@ -116,50 +113,55 @@
...
@@ -116,50 +113,55 @@
}],
}],
poster
:
""
,
//你的封面地址(覆盖在视频上面的图片)
poster
:
""
,
//你的封面地址(覆盖在视频上面的图片)
width
:
document
.
documentElement
.
clientWidth
,
width
:
document
.
documentElement
.
clientWidth
,
height
:
'475'
,
height
:
'475'
,
notSupportedMessage
:
'此视频暂无法播放,请稍后再试'
//允许覆盖Video.js无法播放媒体源时显示的默认信息。
notSupportedMessage
:
'此视频暂无法播放,请稍后再试'
//允许覆盖Video.js无法播放媒体源时显示的默认信息。
},
},
zoom
:
15
,
zoom
:
15
,
center
:
[
117.148118
,
36.660223
],
center
:
[
117.148118
,
36.660223
],
markers
:
[
markers
:
[{
{
position
:
[
117.148118
,
36.660223
],
position
:
[
117.148118
,
36.660223
],
visible
:
false
,
visible
:
false
,
draggable
:
false
,
draggable
:
false
,
}
}]
]
}
}
},
},
methods
:
{
methods
:
{
vioceClose
()
{
this
.
diavioce
=
false
playVideo
(
e
){
const
mp3
=
this
.
$refs
.
AudioPlayer
;
this
.
vioceSrc
=
[
e
.
voice
.
attachment
]
mp3
.
pause
()
this
.
diavioce
=
true
;
},
},
onBeforePlay
(
next
){
playVideo
(
e
)
{
this
.
vioceSrc
=
[
e
.
voice
.
attachment
]
this
.
diavioce
=
true
;
},
onBeforePlay
(
next
)
{
next
()
// 开始播放
next
()
// 开始播放
},
},
showImg
(
e
){
showImg
(
e
)
{
this
.
imgSrc
=
e
.
image
.
attachment
;
this
.
imgSrc
=
e
.
image
.
attachment
;
this
.
dialogVisible
=
true
this
.
dialogVisible
=
true
},
},
play
(
e
)
{
play
(
e
)
{
this
.
dia
=
true
this
.
dia
=
true
const
player
=
this
.
$refs
.
videoPlayer
.
player
const
player
=
this
.
$refs
.
videoPlayer
.
player
this
.
playerOptions
[
'sources'
][
0
][
'src'
]
=
e
.
video
.
attachment
;
this
.
playerOptions
[
'sources'
][
0
][
'src'
]
=
e
.
video
.
attachment
;
player
.
play
()
player
.
play
()
},
},
down
(
e
)
{
down
(
e
)
{
//下载文件
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
e
.
attachment
],
{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
}))
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
setAttribute
(
'download'
,
e
.
filename
)
// 下载文件的名称及文件类型后缀
document
.
body
.
appendChild
(
link
)
link
.
click
()
document
.
body
.
removeChild
(
link
);
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
url
);
// 释放掉blob对象
}
}
}
}
}
}
...
@@ -170,11 +172,54 @@
...
@@ -170,11 +172,54 @@
padding
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
}
}
#videoPlayer
/
deep
/
.vjs-tech
{
height
:
450px
;}
.shabowbox
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
left
:
0
;
top
:
0
;
z-index
:
2000
;}
#videoPlayer
/
deep
/
.vjs-tech
{
.shabowboxvidoe
{
position
:
fixed
;
width
:
800px
;
height
:
475px
;
left
:
50%
;
margin-left
:
-400px
;
top
:
50%
;
margin-top
:
-235px
;
;
z-index
:
2001
;
background
:
#fff
;}
height
:
450px
;
.shabowboxaudio
{
height
:
125px
;
padding
:
12px
;}
}
.close
{
position
:
fixed
;
width
:
50px
;
height
:
50px
;
right
:
10px
;
z-index
:
2012
;
top
:
10px
;
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
#FFF
;
cursor
:
pointer
;
font-size
:
43px
;}
.shabowbox
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
left
:
0
;
top
:
0
;
z-index
:
2000
;
}
.shabowboxvidoe
{
position
:
fixed
;
width
:
800px
;
height
:
475px
;
left
:
50%
;
margin-left
:
-400px
;
top
:
50%
;
margin-top
:
-235px
;
;
z-index
:
2001
;
background
:
#fff
;
}
.shabowboxaudio
{
height
:
125px
;
padding
:
12px
;
}
.close
{
position
:
fixed
;
width
:
50px
;
height
:
50px
;
right
:
10px
;
z-index
:
2012
;
top
:
10px
;
text-align
:
center
;
line-height
:
50px
;
font-size
:
20px
;
color
:
#FFF
;
cursor
:
pointer
;
font-size
:
43px
;
}
.takecontent
{
.takecontent
{
text-align
:
left
;
text-align
:
left
;
width
:
100%
;
width
:
100%
;
...
@@ -257,4 +302,5 @@
...
@@ -257,4 +302,5 @@
}
}
}
}
</
style
>
</
style
>
linkwe-ui/src/views/conversation/component/groupList.vue
View file @
2fd8359
<
template
>
<
template
>
<div
class=
"list"
v-loading=
"loading"
>
<div
class=
"list"
v-loading=
"loading"
>
<div
v-if=
"personList
.length>=1
"
>
<div
v-if=
"personList"
>
<ul>
<ul>
<li
v-for=
"(item,index) in personList"
:key=
"index"
@
click=
"liClick(item)"
>
<li
v-for=
"(item,index) in personList"
:key=
"index"
@
click=
"liClick(item)"
>
<el-row
style=
"padding:10px"
v-if=
"item.finalChatContext.msgtype=='text'"
>
<el-row
style=
"padding:10px"
v-if=
"item.finalChatContext.msgtype=='text'"
>
<span
class=
"fl"
>
<span
class=
"fl"
>
<div
class=
"ninebox"
>
<div
class=
"ninebox"
>
<ul
v-if=
"item.roomInfo"
>
<ul
v-if=
"item.roomInfo"
>
<li
v-for=
"(a,i) in item.roomInfo.avatar.split(',')"
:key=
"i"
><img
:src=
"a"
alt=
""
></li>
<li
v-for=
"(a,i) in item.roomInfo.avatar.split(',')"
:key=
"i"
><img
:src=
"a"
></li>
</ul>
</ul>
</div>
</div>
...
@@ -63,13 +62,13 @@
...
@@ -63,13 +62,13 @@
*
{
padding
:
0
;
*
{
padding
:
0
;
.fl{
float
:
left
;}
.fl{
float
:
left
;}
margin
:
0
;
}
margin
:
0
;
}
.ninebox
{
width
:
62px
;
height
:
60
px
;
border
:
1px
solid
#199ed8
;
;
.ninebox
{
width
:
54px
;
height
:
52
px
;
border
:
1px
solid
#199ed8
;
;
ul
li{
ul
li{
float
:
left
;
float
:
left
;
width
:
1
7
px
;
width
:
1
5
px
;
height
:
1
7
px
;
height
:
1
5
px
;
padding
:
0
!important
;
padding
:
0
!important
;
margin
:
1px
2px
2
px
1px
;
margin
:
1px
1px
1
px
1px
;
}
}
}
}
.list
{
.list
{
overflow-y
:
scroll
;
overflow-y
:
scroll
;
...
@@ -83,7 +82,7 @@
...
@@ -83,7 +82,7 @@
.gray
{
color
:
#999
;}
.gray
{
color
:
#999
;}
.padt10
{
padding-top
:
10px
;}
.padt10
{
padding-top
:
10px
;}
ul
li
{
ul
li
{
padding
:
10px
;
padding
:
3px
10px
;
overflow
:
hidden
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#efefef
;
border-bottom
:
1px
solid
#efefef
;
cursor
:
pointer
;
cursor
:
pointer
;
...
@@ -92,8 +91,8 @@
...
@@ -92,8 +91,8 @@
text-overflow
:
ellipsis
;}
text-overflow
:
ellipsis
;}
:hover
{
background
:
#efefef
;}
:hover
{
background
:
#efefef
;}
img
{
img
{
width
:
40px
;
width
:
100%
;
height
:
40px
;
height
:
100%
;
float
:
left
float
:
left
}
}
}
}
...
...
linkwe-ui/src/views/conversation/component/list.vue
View file @
2fd8359
<
template
>
<
template
>
<div
class=
"list"
v-loading=
"loading"
>
<div
class=
"list"
v-loading=
"loading"
>
<div
v-if=
"personList
.length>=1
"
>
<div
v-if=
"personList"
>
<ul>
<ul>
<li
v-for=
"(item,index) in personList"
:key=
"index"
@
click=
"liClick(item)"
>
<li
v-for=
"(item,index) in personList"
:key=
"index"
@
click=
"liClick(item)"
>
<el-row
style=
"padding:10px"
>
<el-row
style=
"padding:10px"
>
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
},
},
methods
:{
methods
:{
liClick
(
e
){
liClick
(
e
){
console
.
log
(
e
,
'liClick'
)
this
.
$emit
(
'chatFn'
,
e
)
this
.
$emit
(
'chatFn'
,
e
)
}
}
}
}
...
...
linkwe-ui/src/views/conversation/page/employeeTest.vue
View file @
2fd8359
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
<div
class=
"employ"
>
<div
class=
"employ"
>
<el-row>
<el-row>
<el-col
:span=
"6"
class=
"borderR"
>
<el-col
:span=
"6"
class=
"borderR"
>
<div
class=
"hd_box"
>
<
!--
<
div
class=
"hd_box"
>
<div
class=
"hd_name"
>
成员(
{{
employAmount
}}
)
</div>
<div
class=
"hd_name"
>
成员(
{{
employAmount
}}
)
</div>
<div
class=
"paddingT10"
>
<div
class=
"paddingT10"
>
<el-input
placeholder=
"请输入内容"
prefix-icon=
"el-icon-search"
v-model=
"employName"
>
<el-input
placeholder=
"请输入内容"
prefix-icon=
"el-icon-search"
v-model=
"employName"
>
</el-input>
</el-input>
</div>
</div>
</div>
</div>
-->
<div
class=
"ct_box ct_boxFirst"
>
<div
class=
"ct_box ct_boxFirst"
>
<el-tree
class=
"filter-tree"
:data=
"treeData"
:props=
"defaultProps"
:filter-node-method=
"filterNode"
<el-tree
class=
"filter-tree"
:data=
"treeData"
:props=
"defaultProps"
:filter-node-method=
"filterNode"
ref=
"tree"
@
node-click=
"handleNodeClick"
:default-expand-all=
"true"
>
ref=
"tree"
@
node-click=
"handleNodeClick"
:default-expand-all=
"true"
>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<el-table-column
prop=
"action"
label=
"操作"
>
<el-table-column
prop=
"action"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"downloadFile(scope.row)"
>
下载
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"downloadFile(scope.row)"
>
下载
</el-button>
<el-button
type=
"text"
size=
"small"
>
查看
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -122,14 +122,26 @@
...
@@ -122,14 +122,26 @@
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
@
change=
"activeNameThreeClick"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
<el-table
:data=
"
fileData
"
stripe
style=
"width: 100%"
:header-cell-style=
"{background:'#fff'}"
>
<el-table
:data=
"
allVoice
"
stripe
style=
"width: 100%"
:header-cell-style=
"{background:'#fff'}"
>
<el-table-column
prop=
"date"
label=
"发起人"
>
<el-table-column
prop=
"date"
label=
"发起人"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
fromInfo
.
name
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"name"
label=
"通话时间"
>
<el-table-column
prop=
"name"
label=
"通话时间"
>
<
template
slot-scope=
"scope"
>
{{
parseTime
(
scope
.
row
.
msgtime
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"时长"
>
<el-table-column
prop=
"address"
label=
"时长"
>
<
template
slot-scope=
"scope"
>
{{
(
scope
.
row
.
voice
.
play_length
)
}}
s
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"操作"
>
<el-table-column
prop=
"address"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"voiceLook(scope.row.voice)"
>
查看
</el-button>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -150,8 +162,9 @@
...
@@ -150,8 +162,9 @@
content
content
}
from
'@/api/content.js'
}
from
'@/api/content.js'
import
{
import
{
yearMouthDay
,
download
yearMouthDay
,
parseTime
}
from
'@/utils/common.js'
}
from
'@/utils/common.js'
export
default
{
export
default
{
components
:
{
components
:
{
list
,
list
,
...
@@ -195,8 +208,19 @@
...
@@ -195,8 +208,19 @@
},
},
mounted
()
{
mounted
()
{
this
.
getTree
()
this
.
getTree
()
//this.getAmount()
},
},
methods
:
{
methods
:
{
voiceLook
(
e
){
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
e
.
attachment
]))
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
url
link
.
setAttribute
(
'download'
,
'yuyin'
)
// 下载文件的名称及文件类型后缀
document
.
body
.
appendChild
(
link
)
link
.
click
()
document
.
body
.
removeChild
(
link
);
// 下载完成移除元素
window
.
URL
.
revokeObjectURL
(
url
);
// 释放掉blob对象
},
downloadFile
(
e
){
downloadFile
(
e
){
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
e
.
file
.
attachment
],{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
}))
const
url
=
window
.
URL
.
createObjectURL
(
new
Blob
([
e
.
file
.
attachment
],{
type
:
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
}))
const
link
=
document
.
createElement
(
'a'
)
const
link
=
document
.
createElement
(
'a'
)
...
@@ -227,7 +251,10 @@
...
@@ -227,7 +251,10 @@
this
.
activeNameThreeClick
(
true
)
this
.
activeNameThreeClick
(
true
)
},
},
activeNameThreeClick
(
page
,
group
)
{
activeNameThreeClick
(
page
,
group
)
{
console
.
log
(
this
.
activeName
)
console
.
log
(
this
.
chat
.
id
,
'this.chat.id'
)
if
(
!!!
this
.
chat
.
id
){
return
//没有选择人
}
if
(
!!!
page
)
{
if
(
!!!
page
)
{
this
.
currentPage
=
1
this
.
currentPage
=
1
}
}
...
@@ -260,12 +287,15 @@
...
@@ -260,12 +287,15 @@
if
(
this
.
activeName
==
'2'
)
{
if
(
this
.
activeName
==
'2'
)
{
content
.
chatGrounpList
(
query
).
then
(
res
=>
{
content
.
chatGrounpList
(
query
).
then
(
res
=>
{
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
this
.
resortData
(
res
)
console
.
log
(
res
,
'this.activeName='
)
this
.
resortData
(
res
.
data
)
})
})
}
else
{
}
else
{
content
.
chatList
(
query
).
then
(
res
=>
{
content
.
chatList
(
query
).
then
(
res
=>
{
console
.
log
(
res
,
'ssss'
)
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
total
)
this
.
resortData
(
res
)
this
.
resortData
(
res
.
data
)
})
})
}
}
}
}
...
@@ -311,17 +341,16 @@
...
@@ -311,17 +341,16 @@
if
(
!
this
.
employId
)
{
if
(
!
this
.
employId
)
{
return
return
}
}
console
.
log
if
(
flag
)
{
if
(
flag
)
{
this
.
loading
=
true
this
.
loading
=
true
}
}
content
.
getTree
({
content
.
getTree
({
fromId
:
this
.
employId
,
fromId
:
this
.
employId
,
searchType
:
this
.
activeName
searchType
:
this
.
activeName
}).
then
(({
}).
then
((
res
)
=>
{
rows
})
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
personList
=
rows
this
.
personList
=
r
es
.
data
.
r
ows
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
...
@@ -331,6 +360,18 @@
...
@@ -331,6 +360,18 @@
if
(
!
value
)
return
true
;
if
(
!
value
)
return
true
;
return
data
.
name
.
indexOf
(
value
)
!==
-
1
;
return
data
.
name
.
indexOf
(
value
)
!==
-
1
;
},
},
// getAmount(){
// let querys = {
// pageNum: '1',
// pageSize: '999',
// department: ''
// }
// api.getList(querys).then(({
// total
// }) => {
// this.employAmount= total
// })
// },
handleNodeClick
(
data
,
add
)
{
handleNodeClick
(
data
,
add
)
{
if
(
!
data
.
userId
)
{
if
(
!
data
.
userId
)
{
let
querys
=
{
let
querys
=
{
...
@@ -338,12 +379,9 @@
...
@@ -338,12 +379,9 @@
pageSize
:
'999'
,
pageSize
:
'999'
,
department
:
data
.
id
department
:
data
.
id
}
}
api
.
getList
(
querys
).
then
(({
api
.
getList
(
querys
).
then
(
res
=>
{
rows
})
=>
{
const
newChild
=
rows
;
this
.
$set
(
data
,
'children'
,
[]);
this
.
$set
(
data
,
'children'
,
[]);
data
.
children
=
rows
data
.
children
=
r
es
.
data
.
r
ows
})
})
}
else
{
}
else
{
this
.
talkName
=
data
.
name
;
this
.
talkName
=
data
.
name
;
...
@@ -413,7 +451,7 @@
...
@@ -413,7 +451,7 @@
}
}
.ct_boxFirst
{
.ct_boxFirst
{
height
:
707
px
!important
;
height
:
800
px
!important
;
}
}
.ct_box
{
.ct_box
{
...
...
linkwe-ui/src/views/conversation/page/roleTest.vue
View file @
2fd8359
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
<el-row>
<el-row>
<el-form-item
label=
"员工名称"
>
<el-form-item
label=
"员工名称"
>
<el-input
v-model=
"form.Ename"
placeholder=
"客户名称"
style=
"width:300px"
></el-input>
<el-input
v-model=
"form.Ename"
placeholder=
"客户名称"
style=
"width:300px"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户名称"
>
<el-form-item
label=
"客户名称"
>
<el-input
v-model=
"form.Cname"
placeholder=
"客户名称"
style=
"width:300px"
></el-input>
<el-input
v-model=
"form.Cname"
placeholder=
"客户名称"
style=
"width:300px"
></el-input>
...
@@ -15,7 +14,6 @@
...
@@ -15,7 +14,6 @@
<el-input
v-model=
"form.Scontent"
placeholder=
"查找内容"
style=
"width:300px"
></el-input>
<el-input
v-model=
"form.Scontent"
placeholder=
"查找内容"
style=
"width:300px"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"时间范围"
>
<el-form-item
label=
"时间范围"
>
<el-date-picker
v-model=
"form.Stime"
type=
"datetimerange"
format=
'yyyy-MM-dd'
range-separator=
"至"
<el-date-picker
v-model=
"form.Stime"
type=
"datetimerange"
format=
'yyyy-MM-dd'
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
>
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
align=
"right"
>
</el-date-picker>
</el-date-picker>
...
@@ -146,8 +144,8 @@
...
@@ -146,8 +144,8 @@
}
}
content
.
getChatAllList
(
query
).
then
(
res
=>
{
content
.
getChatAllList
(
query
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
fileData
=
res
.
rows
;
this
.
fileData
=
res
.
data
.
rows
;
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
data
.
total
)
})
})
},
},
chechName
(
e
)
{
chechName
(
e
)
{
...
...
linkwe-ui/src/views/conversation/page/userTest.vue
View file @
2fd8359
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<img
v-if=
"i.avatar"
:src=
"i.avatar"
alt=
"头像"
>
<img
v-if=
"i.avatar"
:src=
"i.avatar"
alt=
"头像"
>
</el-col>
</el-col>
<el-col
:span=
"
16
"
v-if=
"i"
><span
style=
"line-height:40px"
>
{{
i
.
name
}}
</span></el-col>
<el-col
:span=
"
20
"
v-if=
"i"
><span
style=
"line-height:40px"
>
{{
i
.
name
}}
</span></el-col>
</el-row>
</el-row>
</li>
</li>
</ul>
</ul>
...
@@ -230,11 +230,11 @@
...
@@ -230,11 +230,11 @@
content
.
getTree
({
content
.
getTree
({
fromId
:
this
.
employId
,
fromId
:
this
.
employId
,
searchType
:
this
.
activeName
searchType
:
this
.
activeName
}).
then
((
{
}).
then
((
r
ow
s
r
e
s
}
)
=>
{
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
this
.
personList
=
rows
this
.
personList
=
res
.
data
.
rows
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
...
@@ -255,7 +255,6 @@
...
@@ -255,7 +255,6 @@
}
else
if
(
this
.
activeNameThree
==
4
)
{
}
else
if
(
this
.
activeNameThree
==
4
)
{
msgType
=
'voice'
msgType
=
'voice'
}
}
let
query
=
{
let
query
=
{
fromId
:
this
.
chatData
.
fromId
,
fromId
:
this
.
chatData
.
fromId
,
msgType
,
msgType
,
...
@@ -271,13 +270,13 @@
...
@@ -271,13 +270,13 @@
}
}
if
(
group
)
{
if
(
group
)
{
content
.
chatGrounpList
(
query
).
then
(
res
=>
{
content
.
chatGrounpList
(
query
).
then
(
res
=>
{
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
data
.
total
)
this
.
resortData
(
res
)
this
.
resortData
(
res
.
data
)
})
})
}
else
{
}
else
{
content
.
chatList
(
query
).
then
(
res
=>
{
content
.
chatList
(
query
).
then
(
res
=>
{
this
.
total
=
Number
(
res
.
total
)
this
.
total
=
Number
(
res
.
data
.
total
)
this
.
resortData
(
res
)
this
.
resortData
(
res
.
data
)
})
})
}
}
},
},
...
@@ -312,11 +311,11 @@
...
@@ -312,11 +311,11 @@
}
}
content
.
listByCustomer
(
querys
).
then
(
res
=>
{
content
.
listByCustomer
(
querys
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
res
.
rows
=
res
.
rows
.
filter
((
a
,
b
)
=>
{
res
.
rows
=
res
.
data
.
rows
.
filter
((
a
,
b
)
=>
{
return
a
&&
a
.
name
return
a
&&
a
.
name
})
})
this
.
CList
=
res
.
rows
this
.
CList
=
res
.
data
.
rows
this
.
employAmount
=
res
.
total
;
this
.
employAmount
=
res
.
data
.
total
;
})
})
}
}
},
},
...
...
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