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 7850dedd
authored
Mar 03, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
b2810808
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
411 additions
and
398 deletions
linkwe-pc/src/components/ChatContent.vue
linkwe-pc/src/components/SelectUser.vue
linkwe-pc/src/components/Voice.vue
linkwe-pc/src/layout/components/Sidebar/index.vue
linkwe-pc/src/layout/components/TopNav/index.vue
linkwe-pc/src/styles/var.css
linkwe-pc/src/views/communityOperating/keywords/list.vue
linkwe-pc/src/views/communityOperating/newCustomer/aev.vue
linkwe-pc/src/views/conversation/content/component/chatList.vue
linkwe-pc/src/views/conversation/content/component/chatListClass.vue
linkwe-pc/src/views/conversation/content/component/groupList.vue
linkwe-pc/src/views/conversation/content/component/userList.vue
linkwe-pc/src/views/conversation/content/customer.vue
linkwe-pc/src/views/conversation/content/employee.vue
linkwe-pc/src/views/conversation/security/sensitiveList.vue
linkwe-pc/src/views/conversation/security/setSensitiveWord.vue
linkwe-pc/src/views/customerManage/lossRemind.vue
linkwe-pc/src/views/drainageCode/highSeas/add.vue
linkwe-pc/src/views/drainageCode/smartForms/add.vue
linkwe-pc/src/views/drainageCode/smartForms/index.vue
linkwe-pc/src/views/drainageCode/staff/add.vue
linkwe-pc/src/views/enterpriseManage/roles/add.vue
linkwe-pc/src/views/friendCircle/enterprise.vue
linkwe-pc/src/views/friendCircle/index.vue
linkwe-pc/src/views/groupMessage/add.vue
linkwe-pc/src/components/ChatContent.vue
View file @
7850ded
...
...
@@ -222,7 +222,7 @@ export default {
display
:
inline-block
;
line-height
:
30px
;
cursor
:
pointer
;
color
:
#199ed8
;
color
:
var
(
--color
)
;
//
text-indent
:
10px
;
//
box-shadow
:
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
1px
4px
0
rgba
(
0
,
0
,
0
,
0.19
);
}
...
...
linkwe-pc/src/components/SelectUser.vue
View file @
7850ded
This diff is collapsed.
Click to expand it.
linkwe-pc/src/components/Voice.vue
View file @
7850ded
...
...
@@ -5,12 +5,12 @@ export default {
props
:
{
amrUrl
:
{
type
:
String
,
default
:
''
}
default
:
''
,
}
,
},
data
()
{
return
{
actived
:
false
actived
:
false
,
// dialogVisible: false,
// audioSrc: []
}
...
...
@@ -32,19 +32,17 @@ export default {
}
this
.
__proto__
.
$playRec
=
new
BenzAMRRecorder
()
this
.
__proto__
.
$playRecSymbole
=
this
.
amrUrl
this
.
$playRec
.
initWithUrl
(
this
.
amrUrl
)
.
then
(()
=>
{
this
.
actived
=
true
this
.
$playRec
.
play
()
this
.
$playRec
.
onEnded
(()
=>
{
this
.
actived
=
false
})
console
.
log
(
'amr 时长:'
+
this
.
$playRec
.
getDuration
())
this
.
$playRec
.
initWithUrl
(
this
.
amrUrl
).
then
(()
=>
{
this
.
actived
=
true
this
.
$playRec
.
play
()
this
.
$playRec
.
onEnded
(()
=>
{
this
.
actived
=
false
})
// .catch((e) => {
// this.$message.error('播放录音失败,或文件损坏')
// })
console
.
log
(
'amr 时长:'
+
this
.
$playRec
.
getDuration
())
})
// .catch((e) => {
// this.$message.error('播放录音失败,或文件损坏')
// })
}
// this.audioSrc = [JSON.parse(this.message.contact)[type]]
},
...
...
@@ -57,7 +55,7 @@ export default {
return
true
}
}
}
}
,
// close() {
// this.dialogVisible = false
// const mp3 = this.$refs.AudioPlayer
...
...
@@ -66,7 +64,7 @@ export default {
// onBeforePlay(next) {
// next() // 开始播放
// }
}
}
,
}
</
script
>
...
...
@@ -74,9 +72,8 @@ export default {
<div>
<i
:class=
"['el-icon-microphone', actived && 'actived']"
style=
" font-size: 40px; color: #199ed8;"
@
click
.
stop=
"play('attachment')"
></i>
style=
"font-size: 40px; color: var(--color)"
@
click
.
stop=
"play('attachment')"
></i>
<!--
<AudioPlayer
:audio-list=
"audioSrc"
...
...
linkwe-pc/src/layout/components/Sidebar/index.vue
View file @
7850ded
...
...
@@ -141,7 +141,7 @@ export default {
}
//
当前激活菜单
.el-menu-item.is-active
{
background
:
linear-gradient
(
to
right
,
var
(
--color
)
0%
,
var
(
--color-
lighter
)
100%
);
background
:
linear-gradient
(
to
right
,
var
(
--color
)
0%
,
var
(
--color-
sub
)
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0.2
);
border-radius
:
8px
;
color
:
#fff
!important
;
...
...
linkwe-pc/src/layout/components/TopNav/index.vue
View file @
7850ded
...
...
@@ -97,7 +97,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.g-bg-lg
{
background
:
linear-gradient
(
to
left
,
var
(
--color
)
0%
,
var
(
--color-
lighter
)
100%
);
background
:
linear-gradient
(
to
left
,
var
(
--color
)
0%
,
var
(
--color-
sub
)
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0.2
);
}
//
.nav-scrollbar
{
...
...
linkwe-pc/src/styles/var.css
View file @
7850ded
html
{
--rgb
:
7
,
193
,
96
;
/* 主题色rgb #07c160*/
--color
:
rgb
(
var
(
--rgb
));
/* 主题色 #07c160*/
--color-lighter
:
#90de45
;
/* 浅主题色 */
--color-lighter
:
rgb
(
var
(
--rgb
),
0.12
);
/* #e9f7ee */
--color-sub
:
#90de45
;
/* 主题辅色 */
--color-success
:
#07c160
;
--color-warning
:
#faad14
;
--color-danger
:
#eb5e12
;
...
...
@@ -46,6 +47,6 @@ html {
/* 渐变背景 */
.g-bg-lg
{
background
:
linear-gradient
(
to
left
,
var
(
--color
)
0%
,
var
(
--color-
lighter
)
100%
);
background
:
linear-gradient
(
to
left
,
var
(
--color
)
0%
,
var
(
--color-
sub
)
100%
);
box-shadow
:
0px
13px
16px
0px
rgba
(
7
,
168
,
85
,
0.2
);
}
linkwe-pc/src/views/communityOperating/keywords/list.vue
View file @
7850ded
<
script
>
import
{
getList
,
remove
}
from
'@/api/communityOperating/keywords'
import
SelectUser
from
'@/components/SelectUser'
export
default
{
components
:
{
SelectUser
},
props
:
{},
...
...
linkwe-pc/src/views/communityOperating/newCustomer/aev.vue
View file @
7850ded
<
script
>
import
{
getDetail
,
add
,
update
}
from
'@/api/communityOperating/newCustomer'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
import
SelectQrCode
from
'@/components/SelectQrCode'
export
default
{
components
:
{
PhoneDialog
,
SelectTag
,
Select
User
,
Select
QrCode
},
components
:
{
PhoneDialog
,
SelectTag
,
SelectQrCode
},
data
()
{
return
{
selectedUserList
:
[],
...
...
linkwe-pc/src/views/conversation/content/component/chatList.vue
View file @
7850ded
...
...
@@ -3,16 +3,16 @@
<ul>
<li
v-for=
"(item, index) in data"
:key=
"index"
>
<div
class=
"mb15 my_header right"
v-if=
"queryChat.fromId === item.fromId"
>
<span
:style=
"
{ color: item.action == 'send' ? '
#199ed8
' : '#999' }">
{{
item
.
msgTime
}}
</span>
<span
:style=
"
{ color: item.action == 'send' ? '
var(--color)
' : '#999' }">
{{
item
.
msgTime
}}
</span>
<span
class=
"ml10"
>
{{
item
.
name
}}
</span>
<img
v-if=
"item.avatar"
class=
"image"
style=
"margin-left: 10px
;
"
:src=
"item.avatar"
/>
<img
v-else
style=
"margin-left: 10px
;
"
src=
"../../../../assets/drainageCode/header.png"
/>
<img
v-if=
"item.avatar"
class=
"image"
style=
"margin-left: 10px"
:src=
"item.avatar"
/>
<img
v-else
style=
"margin-left: 10px"
src=
"../../../../assets/drainageCode/header.png"
/>
</div>
<div
v-else
class=
"mb15 my_header"
>
<img
v-if=
"item.avatar"
class=
"image"
:src=
"item.avatar"
/>
<img
v-else
style=
"margin-right: 5px
;
"
src=
"../../../../assets/drainageCode/header.png"
/>
<img
v-else
style=
"margin-right: 5px"
src=
"../../../../assets/drainageCode/header.png"
/>
<span
class=
"mr10"
>
{{
item
.
name
}}
</span>
<span
:style=
"
{ color: item.action == 'send' ? '
#199ed8
' : '#999' }">
{{
item
.
msgTime
}}
</span>
<span
:style=
"
{ color: item.action == 'send' ? '
var(--color)
' : '#999' }">
{{
item
.
msgTime
}}
</span>
</div>
<div
class=
"right"
v-if=
"queryChat.fromId === item.fromId"
>
<ChatContent
:queryChat=
"queryChat"
:message=
"item"
></ChatContent>
...
...
@@ -26,100 +26,100 @@
</
template
>
<
script
>
import
ChatContent
from
'@/components/ChatContent'
export
default
{
components
:
{
ChatContent
import
ChatContent
from
'@/components/ChatContent'
export
default
{
components
:
{
ChatContent
,
},
props
:
{
data
:
{
type
:
Array
,
defluat
:
()
=>
[],
},
props
:
{
data
:
{
type
:
Array
,
defluat
:
()
=>
[]
},
queryChat
:
{
type
:
Object
,
default
:
()
=>
({})
}
queryChat
:
{
type
:
Object
,
default
:
()
=>
({}),
},
mounted
()
{},
data
()
{
return
{}
},
methods
:
{}
}
},
mounted
()
{},
data
()
{
return
{}
},
methods
:
{},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.right
{
display
:
flex
;
justify-content
:
flex-end
;
}
.my_header
{
display
:
flex
;
align-items
:
center
;
}
.image
{
width
:
24px
;
height
:
24px
;
border-radius
:
50%
;
margin-right
:
5px
;
}
.shabowbox
{
position
:
fixed
;
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
left
:
0
;
top
:
0
;
z-index
:
2000
;
}
.right
{
display
:
flex
;
justify-content
:
flex-end
;
}
.my_header
{
display
:
flex
;
align-items
:
center
;
}
.image
{
width
:
24px
;
height
:
24px
;
border-radius
:
50%
;
margin-right
:
5px
;
}
.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
;
}
.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
;
}
.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
;
}
.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
{
border-radius
:
3px
;
background-color
:
#eee
;
position
:
relative
;
text-align
:
left
;
height
:
100%
;
width
:
100%
;
overflow-y
:
scroll
;
.takecontent
{
border-radius
:
3px
;
background-color
:
#eee
;
position
:
relative
;
text-align
:
left
;
height
:
100%
;
width
:
100%
;
overflow-y
:
scroll
;
::-webkit-scrollbar
{
display
:
none
;
}
::-webkit-scrollbar
{
display
:
none
;
}
ul
li
{
padding
:
10px
;
}
ul
li
{
padding
:
10px
;
}
}
</
style
>
linkwe-pc/src/views/conversation/content/component/chatListClass.vue
View file @
7850ded
...
...
@@ -2,7 +2,7 @@
<div>
<div
class=
"top"
>
<div
class=
"name"
>
<span
v-if=
"queryChat"
>
与
{{
queryChat
.
receiveName
}}
的聊天
</span>
<span
v-if=
"queryChat"
>
与
{{
queryChat
.
receiveName
}}
的聊天
</span>
<span
class=
"fr download"
@
click=
"exportList()"
>
下载会话
</span>
</div>
</div>
...
...
@@ -15,106 +15,106 @@
</
template
>
<
script
>
import
chatListClassTab
from
'./chatListClassTab.vue'
import
{
dateFormat
}
from
'@/utils/index'
import
chatListClassTab
from
'./chatListClassTab.vue'
import
{
dateFormat
}
from
'@/utils/index'
import
*
as
api
from
'@/api/conversation/content.js'
export
default
{
components
:
{
chatListClassTab
},
props
:
{
queryChat
:
{
type
:
Object
,
default
:
()
=>
({})
}
import
*
as
api
from
'@/api/conversation/content.js'
export
default
{
components
:
{
chatListClassTab
},
props
:
{
queryChat
:
{
type
:
Object
,
default
:
()
=>
({}),
},
data
()
{
return
{
activeTab
:
'all'
,
opened
:
[
'all'
]
,
list
:
[
{
label
:
'全部'
,
type
:
'all'
}
,
{
label
:
'图片及视频'
,
type
:
'image,video'
}
,
{
label
:
'文件'
,
type
:
'file'
}
,
{
label
:
'链接'
,
type
:
'link'
}
,
{
label
:
'语音'
,
type
:
'voice,meeting_voice_call'
}
]
}
}
,
watch
:
{
queryChat
()
{
this
.
opened
=
[
'all'
]
this
.
activeTab
=
'all'
}
},
data
()
{
return
{
activeTab
:
'all'
,
opened
:
[
'all'
],
list
:
[
{
label
:
'全部'
,
type
:
'all'
,
},
{
label
:
'图片及视频'
,
type
:
'image,video'
,
},
{
label
:
'文件'
,
type
:
'file'
,
},
{
label
:
'链接'
,
type
:
'link'
,
},
{
label
:
'语音'
,
type
:
'voice,meeting_voice_call'
,
},
],
}
},
watch
:
{
queryChat
()
{
this
.
opened
=
[
'all'
]
this
.
activeTab
=
'all'
},
mounted
()
{},
methods
:
{
exportList
()
{
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
},
mounted
()
{},
methods
:
{
exportList
()
{
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
(()
=>
{
return
api
.
exportList
(
this
.
queryChat
)
})
.
then
(()
=>
{
return
api
.
exportList
(
this
.
queryChat
)
})
.
then
((
res
)
=>
{
if
(
!
res
)
return
const
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel'
})
.
then
((
res
)
=>
{
if
(
!
res
)
return
const
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel'
})
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
//兼容IE10
navigator
.
msSaveBlob
(
blob
,
'会话存档'
)
}
else
{
const
href
=
URL
.
createObjectURL
(
blob
)
//创建新的URL表示指定的blob对象
const
a
=
document
.
createElement
(
'a'
)
//创建a标签
a
.
style
.
display
=
'none'
a
.
href
=
href
// 指定下载链接
a
.
download
=
dateFormat
(
new
Date
(),
'yyyy-MM-dd'
)
+
'_会话存档.xlsx'
//指定下载文件名
a
.
click
()
//触发下载
URL
.
revokeObjectURL
(
a
.
href
)
//释放URL对象
}
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
)
})
}
}
}
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
//兼容IE10
navigator
.
msSaveBlob
(
blob
,
'会话存档'
)
}
else
{
const
href
=
URL
.
createObjectURL
(
blob
)
//创建新的URL表示指定的blob对象
const
a
=
document
.
createElement
(
'a'
)
//创建a标签
a
.
style
.
display
=
'none'
a
.
href
=
href
// 指定下载链接
a
.
download
=
dateFormat
(
new
Date
(),
'yyyy-MM-dd'
)
+
'_会话存档.xlsx'
//指定下载文件名
a
.
click
()
//触发下载
URL
.
revokeObjectURL
(
a
.
href
)
//释放URL对象
}
})
.
catch
(
function
(
err
)
{
console
.
log
(
err
)
})
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-tabs__header
{
margin
:
0
;
}
::v-deep
.el-tabs__header
{
margin
:
0
;
}
.name
{
font-size
:
18px
;
font-weight
:
600
;
color
:
#333
;
margin-bottom
:
10px
;
}
.name
{
font-size
:
18px
;
font-weight
:
600
;
color
:
#333
;
margin-bottom
:
10px
;
}
.download
{
color
:
#199ed8
;
text-align
:
right
;
font-size
:
16px
;
cursor
:
pointer
;
&:hover
{
opacity
:
0.7
;
}
.download
{
color
:
var
(
--color
);
text-align
:
right
;
font-size
:
16px
;
cursor
:
pointer
;
&:hover
{
opacity
:
0.7
;
}
}
</
style
>
linkwe-pc/src/views/conversation/content/component/groupList.vue
View file @
7850ded
...
...
@@ -4,28 +4,25 @@
<li
v-for=
"(item, index) in personList"
:key=
"index"
:class=
"
{ active: index == active }"
@click="liClick(item, index)"
>
<el-row
type=
"flex"
align=
"middle"
>
<div
class=
"ninebox"
>
<ul
v-if=
"item.avatar"
>
<li
v-for=
"(a, i) in item.avatar.split(',')"
:key=
"i"
>
<img
:src=
"a"
/>
</li>
</ul>
</div>
<div
style=
"margin-left: 8px; line-height: 60px;"
class=
"toe"
:title=
"item.groupName"
>
{{
item
.
name
}}
<!--
<p>
:class=
"['flex aic',
{ active: index == active }]"
@click="liClick(item, index)">
<div
class=
"ninebox"
>
<ul
v-if=
"item.avatar"
>
<li
v-for=
"(a, i) in item.avatar.split(',')"
:key=
"i"
>
<img
:src=
"a"
/>
</li>
</ul>
</div>
<div
style=
"margin-left: 8px; line-height: 60px"
class=
"toe"
:title=
"item.groupName"
>
{{
item
.
name
}}
<!--
<p>
<span
class=
"fr gray"
>
{{
item
.
msgTime
}}
</span>
</p>
-->
<!--
<p
class=
"gray"
v-if=
"item"
>
<!--
<p
class=
"gray"
v-if=
"item"
>
{{
item
.
name
}}
:
{{
item
.
content
}}
</p>
-->
</div>
</el-row>
</div>
<!--
<el-row
style=
"padding:10px"
v-if=
"item.finalChatContext.msgtype=='file'"
>
<el-col
:span=
"3"
>
</el-col>
<el-col
:span=
"21"
>
...
...
@@ -41,87 +38,88 @@
</div>
</
template
>
<
script
>
import
{
parseTime
}
from
'@/utils/common.js'
export
default
{
props
:
{
personList
:
{
type
:
Array
,
defluat
:
()
=>
[]
},
loading
:
{
type
:
Boolean
,
defluat
:
false
}
// import { parseTime } from '@/utils/common.js'
export
default
{
props
:
{
personList
:
{
type
:
Array
,
defluat
:
()
=>
[],
},
data
()
{
return
{
loadings
:
true
,
active
:
undefined
}
loading
:
{
type
:
Boolean
,
defluat
:
false
,
},
methods
:
{
liClick
(
data
,
index
)
{
this
.
active
=
index
this
.
$emit
(
'groupFn'
,
data
)
}
},
data
()
{
return
{
loadings
:
true
,
active
:
undefined
,
}
}
},
methods
:
{
liClick
(
data
,
index
)
{
this
.
active
=
index
this
.
$emit
(
'groupFn'
,
data
)
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.ninebox
{
flex
:
none
;
width
:
54px
;
height
:
52px
;
border
:
1px
solid
#199ed8
;
overflow
:
hidden
;
ul
li
{
float
:
left
;
width
:
15px
;
height
:
15px
;
padding
:
0
!important
;
margin
:
1px
1px
1px
1px
;
}
.ninebox
{
flex
:
none
;
width
:
54px
;
height
:
52px
;
border
:
1px
solid
var
(
--color
)
;
border-radius
:
var
(
--border-radius
)
;
overflow
:
hidden
;
ul
li
{
float
:
left
;
width
:
15px
;
height
:
15px
;
padding
:
0
!important
;
margin
:
1px
1px
1px
1px
;
}
.groupList
{
overflow-y
:
auto
;
height
:
calc
(
100vh
-
328px
);
}
.groupList
{
overflow-y
:
auto
;
height
:
calc
(
100vh
-
328px
);
::-webkit-scrollbar
{
display
:
none
;
}
::-webkit-scrollbar
{
display
:
none
;
}
::v-deep
.el-loading-spinner
{
margin-top
:
20px
;
}
::v-deep
.el-loading-spinner
{
margin-top
:
20px
;
}
.gray
{
color
:
#999
;
.gray
{
color
:
#999
;
}
.padt10
{
padding-top
:
10px
;
}
ul
li
{
padding
:
3px
10px
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#efefef
;
cursor
:
pointer
;
p
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.padt10
{
padding-top
:
10px
;
&
:hover
{
background
:
#efefef
;
}
ul
li
{
padding
:
3px
10px
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#efefef
;
cursor
:
pointer
;
p
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
&
:hover
{
background
:
#efefef
;
}
&
.active
{
background
:
#ebf4fc
;
}
img
{
width
:
100%
;
height
:
100%
;
float
:
left
;
}
&
.active
{
background
:
var
(
--color-lighter
);
}
img
{
width
:
100%
;
height
:
100%
;
float
:
left
;
}
}
}
</
style
>
linkwe-pc/src/views/conversation/content/component/userList.vue
View file @
7850ded
...
...
@@ -6,8 +6,7 @@
class=
"list"
:class=
"
{ active: index == active }"
:key="index"
@click="liClick(item, index)"
>
@click="liClick(item, index)">
<img
v-if=
"item.avatar"
class=
"fl mr10"
:src=
"item.avatar"
/>
<img
class=
"fl mr10"
v-else
src=
"../../../../assets/drainageCode/header.png"
/>
<div
class=
"name"
:title=
"item.name"
>
...
...
@@ -19,72 +18,72 @@
</div>
</
template
>
<
script
>
export
default
{
props
:
{
personList
:
{
type
:
Array
,
defluat
:
()
=>
[]
},
loading
:
{
type
:
Boolean
,
defluat
:
false
}
export
default
{
props
:
{
personList
:
{
type
:
Array
,
defluat
:
()
=>
[],
},
data
()
{
return
{
loadings
:
true
,
active
:
undefined
}
loading
:
{
type
:
Boolean
,
defluat
:
false
,
},
methods
:
{
liClick
(
data
,
index
)
{
this
.
active
=
index
this
.
$emit
(
'chatFn'
,
data
)
}
},
data
()
{
return
{
loadings
:
true
,
active
:
undefined
,
}
}
},
methods
:
{
liClick
(
data
,
index
)
{
this
.
active
=
index
this
.
$emit
(
'chatFn'
,
data
)
},
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
.userList
{
overflow-y
:
auto
;
//
height
:
calc
(
100vh
-
288px
);
height
:
100%
;
.userList
{
overflow-y
:
auto
;
//
height
:
calc
(
100vh
-
288px
);
height
:
100%
;
::-webkit-scrollbar
{
display
:
none
;
}
::-webkit-scrollbar
{
display
:
none
;
}
::v-deep
.el-loading-spinner
{
margin-top
:
20px
;
}
::v-deep
.el-loading-spinner
{
margin-top
:
20px
;
}
.gray
{
color
:
#999
;
}
.list
{
padding
:
10px
;
.gray
{
color
:
#999
;
}
.list
{
padding
:
10px
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#efefef
;
cursor
:
pointer
;
text-align
:
left
;
.name
{
white-space
:
nowrap
;
overflow
:
hidden
;
border-bottom
:
1px
solid
#efefef
;
cursor
:
pointer
;
text-align
:
left
;
.name
{
white-space
:
nowrap
;
overflow
:
hidden
;
line-height
:
40px
;
text-overflow
:
ellipsis
;
}
&
:hover
{
background
:
#efefef
;
}
&
.active
{
background
:
#ebf4fc
;
}
img
{
width
:
40px
;
height
:
40px
;
float
:
left
;
}
line-height
:
40px
;
text-overflow
:
ellipsis
;
}
&
:hover
{
background
:
#efefef
;
}
&
.active
{
background
:
var
(
--color-lighter
);
}
img
{
width
:
40px
;
height
:
40px
;
float
:
left
;
}
}
}
</
style
>
linkwe-pc/src/views/conversation/content/customer.vue
View file @
7850ded
...
...
@@ -8,9 +8,10 @@
class=
"mb10"
placeholder=
"搜索客户名称"
clearable
prefix-icon=
"el-icon-search"
v-model=
"customerQuery.name"
@
keyup
.
enter
.
native=
"getCustomerList(1)"
></el-input>
@
keyup
.
enter
.
native=
"getCustomerList(1)"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"getCustomerList(1)"
></el-button>
</el-input>
<div
v-loading=
"customerLoading"
>
<ul
v-if=
"init"
v-infinite-scroll=
"getCustomerList"
infinite-scroll-distance=
"1"
class=
"customer-wrap"
>
<template
v-if=
"customerList.length"
>
...
...
@@ -19,8 +20,7 @@
:key=
"index"
tag=
"li"
@
click
.
native=
"choiceCustomer(item, index)"
class=
"customer-li"
:class=
"
{ active: index == personIndex }"
:class=
"['customer-li',
{ active: index == personIndex }]"
:gutter="20"
type="flex"
align="middle">
...
...
@@ -261,7 +261,7 @@ export default {
width
:
40
px
;
}
&
.
active
{
background
:
#
ebf4fc
;
background
:
var
(
--
color
-
lighter
)
;
}
}
}
...
...
linkwe-pc/src/views/conversation/content/employee.vue
View file @
7850ded
...
...
@@ -7,10 +7,23 @@
class=
"mb10"
placeholder=
"搜索员工名称"
clearable
prefix-icon=
"el-icon-search"
v-model=
"name"
@
keyup
.
enter
.
native=
"loadNode(1)"
></el-input>
v-model
.
trim=
"keywords"
@
keyup
.
enter
.
native=
"getDeptUser"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
@
click=
"getDeptUser"
></el-button>
</el-input>
<div
class=
"search-list"
v-show=
"keywords"
>
<div
v-for=
"(item, index) in searchResult"
:key=
"index"
:class=
"['customer-li',
{ active: index == personIndex }]"
@click="handleNodeClick(item)">
{{
item
.
name
}}
</div>
</div>
<el-tree
v-show=
"!keywords"
ref=
"tree"
class=
"filter-tree"
:props=
"defaultProps"
...
...
@@ -78,7 +91,8 @@ export default {
},
data
()
{
return
{
employAmount
:
1
,
keywords
:
''
,
searchResult
:
[],
fromId
:
''
,
// employName: '',
talkName
:
''
,
...
...
@@ -123,7 +137,7 @@ export default {
},
// getTree() {
// apiOrg.getTree().then(({ data }) => {
// let treeData = (this.treeData = this.handle
Tree
(data))
// let treeData = (this.treeData = this.handle
Depart
(data))
// this.handleNodeClick(this.treeData[0], true)
// })
// },
...
...
@@ -175,7 +189,7 @@ export default {
loadNode
(
node
,
resolve
)
{
if
(
node
.
level
==
0
)
{
apiOrg
.
getDeptTree
().
then
(({
data
})
=>
{
let
treeData
=
this
.
treeFormat
(
this
.
handle
Tree
(
data
))
let
treeData
=
this
.
treeFormat
(
this
.
handle
Depart
(
data
))
// this.handleNodeClick(this.treeData[0], true)
treeData
[
0
]
&&
(
this
.
defaultExpandedKeys
=
[
treeData
[
0
].
id
])
resolve
(
treeData
)
...
...
@@ -196,7 +210,7 @@ export default {
// }
// data.children.push(...rows)
// let arr = node.data.children ? node.data.children.concat(rows || []) : rows || []
let
arr
=
this
.
handle
Name
(
rows
)
let
arr
=
this
.
handle
User
(
rows
)
node
.
data
.
children
&&
arr
.
push
(...
node
.
data
.
children
)
arr
.
forEach
((
element
)
=>
{
element
.
isLeaf
=
!!
element
.
userId
...
...
@@ -206,6 +220,18 @@ export default {
}
}
},
getDeptUser
()
{
if
(
!
this
.
keywords
)
return
this
.
searchResult
=
[]
apiOrg
.
getDeptUser
({
deptId
:
this
.
defaultExpandedKeys
[
0
],
userName
:
this
.
keywords
,
})
.
then
((
res
)
=>
{
this
.
searchResult
=
this
.
handleUser
(
res
.
rows
)
})
},
treeFormat
(
list
)
{
let
dealOptions
=
[]
...
...
@@ -226,7 +252,7 @@ export default {
})
return
dealOptions
},
handle
Name
(
data
)
{
handle
User
(
data
)
{
return
data
.
map
((
i
)
=>
{
if
(
i
.
userName
)
{
i
.
userId
=
i
.
weUserId
...
...
@@ -235,7 +261,7 @@ export default {
return
i
})
},
handle
Tree
(
data
)
{
handle
Depart
(
data
)
{
return
data
.
map
((
i
)
=>
{
if
(
i
.
deptId
)
{
// i.userId = i.deptId
...
...
@@ -246,7 +272,7 @@ export default {
return
i
})
},
handleNodeClick
(
data
,
add
)
{
handleNodeClick
(
data
)
{
if
(
!
data
.
userId
)
{
}
else
{
this
.
talkName
=
data
.
name
...
...
@@ -292,5 +318,10 @@ export default {
display
:
none
;
}
}
.search-list
{
margin-top
:
20px
;
padding
:
0
10px
;
}
}
</
style
>
linkwe-pc/src/views/conversation/security/sensitiveList.vue
View file @
7850ded
...
...
@@ -80,12 +80,11 @@
</template>
<
script
>
import
*
as
sensitiveApis
from
'@/api/conversation/security'
import
SelectUser
from
'@/components/SelectUser'
import
ChatContent
from
'@/components/ChatContent'
export
default
{
components
:
{
SelectUser
,
ChatContent
,
},
data
()
{
...
...
linkwe-pc/src/views/conversation/security/setSensitiveWord.vue
View file @
7850ded
...
...
@@ -98,11 +98,9 @@
</template>
<
script
>
import
*
as
sensitiveApis
from
'@/api/conversation/security'
import
SelectUser
from
'@/components/SelectUser'
export
default
{
components
:
{
SelectUser
,
},
components
:
{},
data
()
{
return
{
form
:
{
...
...
linkwe-pc/src/views/customerManage/lossRemind.vue
View file @
7850ded
...
...
@@ -2,12 +2,12 @@
import
{
getListNew
,
exportCustomer
,
lossRemind
,
getLossRemindStatus
}
from
'@/api/customer'
// import { getList as getListTag } from '@/api/customer/tag'
// import { getList as getListOrganization } from '@/api/organization'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
export
default
{
name
:
'LossRemind'
,
components
:
{
Select
User
,
Select
Tag
},
components
:
{
SelectTag
},
props
:
{},
data
()
{
return
{
...
...
linkwe-pc/src/views/drainageCode/highSeas/add.vue
View file @
7850ded
...
...
@@ -2,11 +2,11 @@
import
{
getDetail
,
add
,
update
,
getQrcode
}
from
'@/api/drainageCode/staff'
import
{
getList
}
from
'@/api/drainageCode/welcome'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
import
SelectMaterial
from
'@/components/SelectMaterial'
export
default
{
components
:
{
PhoneDialog
,
SelectTag
,
Select
User
,
Select
Material
},
components
:
{
PhoneDialog
,
SelectTag
,
SelectMaterial
},
data
()
{
return
{
dialogVisibleSelectUser
:
false
,
...
...
linkwe-pc/src/views/drainageCode/smartForms/add.vue
View file @
7850ded
...
...
@@ -279,7 +279,7 @@ import {
}
from
'@/api/drainageCode/smartForms.js'
import
FormsDetail
from
'./build/formsDetail.vue'
import
PhoneDialog
from
'@/components/PhoneDialog'
import
SelectUser
from
'@/components/SelectUser'
import
SelectTag
from
'@/components/SelectTag'
import
SelectMaterial
from
'@/components/SelectMaterial'
import
WelcomeContent
from
'@/components/WelcomeContent.vue'
...
...
@@ -289,7 +289,7 @@ export default {
components
:
{
PhoneDialog
,
SelectTag
,
SelectUser
,
SelectMaterial
,
WelcomeContent
,
Build
,
...
...
linkwe-pc/src/views/drainageCode/smartForms/index.vue
View file @
7850ded
...
...
@@ -281,7 +281,6 @@ import {
updateCodeCategory
,
removeCodeCategory
,
}
from
'@/api/drainageCode/staff'
import
SelectUser
from
'@/components/SelectUser'
const
groupForm
=
{
mediaType
:
15
,
...
...
@@ -290,7 +289,6 @@ const groupForm = {
export
default
{
name
:
'CodeStaff'
,
components
:
{
SelectUser
,
FormsDetail
,
Channels
,
},
...
...
linkwe-pc/src/views/drainageCode/staff/add.vue
View file @
7850ded
...
...
@@ -187,7 +187,7 @@ export default {
components
:
{
PhoneDialog
,
SelectTag
,
SelectUser
,
SelectMaterial
,
WelcomeContent
,
AddMaterial
,
...
...
linkwe-pc/src/views/enterpriseManage/roles/add.vue
View file @
7850ded
This diff is collapsed.
Click to expand it.
linkwe-pc/src/views/friendCircle/enterprise.vue
View file @
7850ded
...
...
@@ -129,14 +129,11 @@
</div>
</template>
<
script
>
import
SelectUser
from
'@/components/SelectUser'
import
moment
from
'moment'
import
{
getEnterpriceList
,
syncHMoments
,
getDetail
}
from
'@/api/circle'
export
default
{
name
:
'enterprise'
,
components
:
{
SelectUser
,
},
components
:
{},
data
()
{
return
{
disable
:
false
,
...
...
linkwe-pc/src/views/friendCircle/index.vue
View file @
7850ded
...
...
@@ -123,14 +123,11 @@
</div>
</template>
<
script
>
import
SelectUser
from
'@/components/SelectUser'
import
moment
from
'moment'
import
{
getEnterpriceList
,
syncHMoments
,
getDetail
}
from
'@/api/circle'
export
default
{
name
:
'friend-index'
,
components
:
{
SelectUser
,
},
components
:
{},
data
()
{
return
{
// disable: false,
...
...
linkwe-pc/src/views/groupMessage/add.vue
View file @
7850ded
...
...
@@ -185,7 +185,7 @@
import
{
add
,
getCustomerList
}
from
'@/api/groupMessage'
import
{
getMaterialMediaId
}
from
'@/api/material'
import
PhoneDialog
from
'@/components/PhoneDialog'
//
import SelectUser from '@/components/SelectUser'
//
import
SelectTag
from
'@/components/SelectTag'
import
WelcomeDetail
from
'@/components/WelcomeContent.vue'
import
SelectCustomerGroup
from
'@/components/SelectCustomerGroup'
...
...
@@ -196,7 +196,7 @@ export default {
components
:
{
PhoneDialog
,
SelectTag
,
//
SelectUser,
//
WelcomeDetail
,
SelectCustomerGroup
,
AddMaterial
,
...
...
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