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 782f4b83
authored
Mar 03, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
28f0b8e3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
245 additions
and
262 deletions
linkwe-pc/src/components/ChatContent.vue
linkwe-pc/src/config.js
linkwe-pc/src/styles/element-ui.scss
linkwe-pc/src/utils/common.js
linkwe-pc/src/views/conversation/content/customer.vue
linkwe-pc/src/views/conversation/content/employee.vue
linkwe-pc/src/views/conversation/content/global.vue
linkwe-pc/src/views/enterpriseManage/system/menu/index.vue
linkwe-pc/src/views/system/menu/index.vue
linkwe-pc/src/components/ChatContent.vue
View file @
782f4b8
...
@@ -172,6 +172,19 @@ export default {
...
@@ -172,6 +172,19 @@ export default {
</template>
</template>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.angle
{
content
:
''
;
display
:
inline-block
;
position
:
absolute
;
top
:
8px
;
width
:
8px
;
height
:
8px
;
background
:
#fff
;
transform
:
rotate
(
45deg
);
border
:
1px
solid
#e1edfc
;
z-index
:
888
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
}
.message
{
.message
{
max-width
:
50%
;
max-width
:
50%
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -179,57 +192,28 @@ export default {
...
@@ -179,57 +192,28 @@ export default {
padding
:
10px
;
padding
:
10px
;
line-height
:
14px
;
line-height
:
14px
;
border-radius
:
5px
;
border-radius
:
5px
;
background
:
#fff
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border
:
1px
solid
#e1edfc
;
border
:
1px
solid
#e1edfc
;
color
:
#333
;
color
:
#333
;
display
:
inline-block
;
display
:
inline-block
;
word-break
:
break-all
;
word-break
:
break-all
;
}
.message
{
margin-left
:
10px
;
margin-left
:
10px
;
&::before
{
&::before
{
content
:
''
;
@extend
.angle;
display
:
inline-block
;
position
:
absolute
;
left
:
-5px
;
left
:
-5px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border-width
:
0
0
1px
1px
;
border-width
:
5px
;
border-left
:
0
;
width
:
0
;
border-style
:
solid
;
border-color
:
transparent
;
border-right-color
:
#fff
;
top
:
8px
;
z-index
:
888
;
}
}
}
}
.message-right
{
.message-right
{
max-width
:
50%
;
@extend
.message;
position
:
relative
;
background-color
:
#fff
;
padding
:
10px
;
line-height
:
14px
;
border-radius
:
5px
;
//
background
:
var
(
--color
);
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border
:
1px
solid
#e1edfc
;
color
:
#333
;
display
:
inline-block
;
word-break
:
break-all
;
margin-right
:
10px
;
margin-right
:
10px
;
&::before
{
&::before
{
content
:
''
;
@extend
.angle;
display
:
inline-block
;
position
:
absolute
;
right
:
-5px
;
right
:
-5px
;
box-shadow
:
0px
2px
6px
0px
rgba
(
60
,
136
,
240
,
0.1
);
border-width
:
1px
1px
0
0
;
border-width
:
5px
;
border-right
:
0
;
width
:
0
;
border-style
:
solid
;
border-color
:
transparent
;
border-left-color
:
#fff
;
top
:
8px
;
z-index
:
888
;
}
}
}
}
.msgtypefile
{
.msgtypefile
{
...
...
linkwe-pc/src/config.js
View file @
782f4b8
...
@@ -76,7 +76,7 @@ window.lwConfig = Object.assign(init, env, common, lwConfig, project)
...
@@ -76,7 +76,7 @@ window.lwConfig = Object.assign(init, env, common, lwConfig, project)
// let target = e.target
// let target = e.target
// let src = target.attributes.getNamedItem('src').value
// let src = target.attributes.getNamedItem('src').value
// if (target.tagName.toUpperCase() === 'IMG' && src && !src.includes('http')) {
// if (target.tagName.toUpperCase() === 'IMG' && src && !src.includes('http')) {
// target.src = window.
window.
lwConfig.BASE_API + src
// target.src = window.lwConfig.BASE_API + src
// }
// }
// },
// },
// true
// true
...
...
linkwe-pc/src/styles/element-ui.scss
View file @
782f4b8
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
}
}
}
}
.el-input.el-input--small
{
//
.el-input.el-input--small {
line-height
:
30px
;
//
line-height: 30px;
}
//
}
.--card
{
.--card
{
padding
:
20px
20px
;
padding
:
20px
20px
;
...
@@ -79,16 +79,16 @@
...
@@ -79,16 +79,16 @@
}
}
}
}
.status-col
{
//
.status-col {
.cell
{
//
.cell {
padding
:
0
10px
;
//
padding: 0 10px;
text-align
:
center
;
//
text-align: center;
.el-tag
{
//
.el-tag {
margin-right
:
0px
;
//
margin-right: 0px;
}
//
}
}
//
}
}
//
}
// .el-dialog:not(.is-fullscreen) {
// .el-dialog:not(.is-fullscreen) {
// margin-top: 6vh !important;
// margin-top: 6vh !important;
...
@@ -123,51 +123,32 @@
...
@@ -123,51 +123,32 @@
box-sizing
:
content-box
;
box-sizing
:
content-box
;
}
}
.el-table
{
font-size
:
13px
;
.el-table__header-wrapper
,
.el-table__fixed-header-wrapper
{
th
{
word-break
:
break-word
;
// background-color: #f8f8f9;
color
:
#515a6e
;
height
:
50px
;
font-size
:
14px
;
}
}
.el-table__body-wrapper
tr
{
height
:
55px
;
}
}
.el-tree-node__content
>
.el-checkbox
{
.el-tree-node__content
>
.el-checkbox
{
margin-right
:
8px
;
margin-right
:
8px
;
}
}
// 卡片
.el-card__header
{
.el-card__header
{
padding
:
14px
15px
7px
;
padding
:
14px
15px
7px
;
min-height
:
40px
;
min-height
:
40px
;
}
}
.el-card__body
{
.el-card__body
{
padding
:
15px
20px
20px
20px
;
padding
:
15px
20px
20px
20px
;
}
}
/*
button color
*/
/*
定义 type 为 cyan 的按钮
*/
.el-button--cyan.is-active
,
.el-button--cyan.is-active
,
.el-button--cyan
:active
{
.el-button--cyan
:active
{
background
:
#20b2aa
;
background
:
#20b2aa
;
border-color
:
#20b2aa
;
border-color
:
#20b2aa
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.el-button--cyan
:focus
,
.el-button--cyan
:focus
,
.el-button--cyan
:hover
{
.el-button--cyan
:hover
{
background
:
#48d1cc
;
background
:
#48d1cc
;
border-color
:
#48d1cc
;
border-color
:
#48d1cc
;
color
:
#ffffff
;
color
:
#ffffff
;
}
}
.el-button--cyan
{
.el-button--cyan
{
background-color
:
#20b2aa
;
background-color
:
#20b2aa
;
border-color
:
#20b2aa
;
border-color
:
#20b2aa
;
...
@@ -196,70 +177,70 @@
...
@@ -196,70 +177,70 @@
}
}
}
}
.app-main.page
{
//
.app-main.page {
// .el-table {
// .el-table {
// background-color: transparent;
// background-color: transparent;
// &::before {
// &::before {
// content: none;
// content: none;
// }
// }
// .el-table__header-wrapper th,
// .el-table__header-wrapper th,
// .el-table__fixed-header-wrapper th,
// .el-table__fixed-header-wrapper th,
// .el-table__header-wrapper tr {
// .el-table__header-wrapper tr {
// background-color: transparent !important;
// background-color: transparent !important;
// height: 40px;
// height: 40px;
// }
// }
// .el-table__body-wrapper,
// .el-table__body-wrapper,
// .el-table__fixed-body-wrapper {
// .el-table__fixed-body-wrapper {
// tr {
// tr {
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
// box-shadow: 0px 0px 5px 0px rgba(195, 195, 195, 0.35);
// height: 50px;
// height: 50px;
// }
// }
// }
// }
// // th.is-leaf,
// // th.is-leaf,
// // td {
// // td {
// // border-bottom: 0;
// // border-bottom: 0;
// // }
// // }
// tr td {
// tr td {
// &:first-child {
// &:first-child {
// border-radius: 4px 0 0 4px;
// border-radius: 4px 0 0 4px;
// border-left: 1px solid #ddd;
// border-left: 1px solid #ddd;
// }
// }
// &:last-child {
// &:last-child {
// border-radius: 0 4px 4px 0;
// border-radius: 0 4px 4px 0;
// border-right: 1px solid #ddd;
// border-right: 1px solid #ddd;
// }
// }
// }
// }
// .el-table__body {
// .el-table__body {
// border-spacing: 0 10px;
// border-spacing: 0 10px;
// }
// }
// .el-table__fixed,
// .el-table__fixed,
// .el-table__fixed-right {
// .el-table__fixed-right {
// &::before {
// &::before {
// content: none;
// content: none;
// }
// }
// }
// }
// .el-table__fixed .el-table__fixed-body-wrapper {
// .el-table__fixed .el-table__fixed-body-wrapper {
// tr td:last-child {
// tr td:last-child {
// border-right: inherit;
// border-right: inherit;
// }
// }
// }
// }
// .el-table__fixed-right .el-table__fixed-body-wrapper {
// .el-table__fixed-right .el-table__fixed-body-wrapper {
// tr td:first-child {
// tr td:first-child {
// border-left: inherit;
// border-left: inherit;
// }
// }
// }
// }
// }
// }
}
//
}
.el-form
:not
(
.el-form--inline
)
{
.el-form
:not
(
.el-form--inline
)
{
.el-form-item
{
//
.el-form-item {
// margin: 0 !important;
//
// margin: 0 !important;
// padding: 10px 0;
//
// padding: 10px 0;
transition
:
all
0
.2s
;
//
transition: all 0.2s;
&
:last-child
{
// //
&:last-child {
margin-bottom
:
0
;
// //
margin-bottom: 0;
}
// //
}
}
//
}
// 统一页面表单输入框宽度 el-form-item__content
// 统一页面表单输入框宽度 el-form-item__content
.el-input
,
.el-input
,
...
@@ -275,7 +256,6 @@
...
@@ -275,7 +256,6 @@
width
:
100%
;
width
:
100%
;
}
}
}
}
// 重置el-form-item hover样式
// 重置el-form-item hover样式
.no-hover-form
.el-form-item
{
.no-hover-form
.el-form-item
{
margin-bottom
:
20px
!
important
;
margin-bottom
:
20px
!
important
;
...
@@ -285,10 +265,6 @@
...
@@ -285,10 +265,6 @@
border-radius
:
0
;
border-radius
:
0
;
}
}
}
}
.el-input.is-disabled
.el-input__inner
,
.el-image__error
{
background-color
:
#f5f7fa
;
}
// 表单禁用详情数据展示
// 表单禁用详情数据展示
.form-detail
{
.form-detail
{
.el-input.is-disabled
.el-input__inner
,
.el-input.is-disabled
.el-input__inner
,
...
@@ -327,6 +303,11 @@
...
@@ -327,6 +303,11 @@
display
:
none
;
display
:
none
;
}
}
}
}
.el-input.is-disabled
.el-input__inner
,
.el-image__error
{
background-color
:
#f5f7fa
;
}
.el-tabs__nav-wrap
{
.el-tabs__nav-wrap
{
overflow
:
initial
;
overflow
:
initial
;
}
}
...
@@ -485,6 +466,7 @@
...
@@ -485,6 +466,7 @@
// border: 20px solid #fff; border-radius: 20px; background: #fff
// border: 20px solid #fff; border-radius: 20px; background: #fff
// }
// }
.el-table
{
.el-table
{
font-size
:
14px
;
background-color
:
transparent
;
background-color
:
transparent
;
&
:not
(
:first-child
)
{
&
:not
(
:first-child
)
{
margin-top
:
16px
;
margin-top
:
16px
;
...
@@ -496,6 +478,8 @@
...
@@ -496,6 +478,8 @@
.el-table__header-wrapper
th
,
.el-table__header-wrapper
th
,
.el-table__fixed-header-wrapper
th
,
.el-table__fixed-header-wrapper
th
,
.el-table__header-wrapper
tr
{
.el-table__header-wrapper
tr
{
word-break
:
break-word
;
font-size
:
14px
;
background-color
:
#f5f7fa
;
background-color
:
#f5f7fa
;
height
:
40px
;
height
:
40px
;
color
:
var
(
--
font-black
);
color
:
var
(
--
font-black
);
...
@@ -567,6 +551,7 @@
...
@@ -567,6 +551,7 @@
background-color
:
#f8fafc
;
background-color
:
#f8fafc
;
}
}
// 滚动条宽度
.el-scrollbar__bar.is-vertical
{
.el-scrollbar__bar.is-vertical
{
width
:
5px
;
width
:
5px
;
}
}
...
...
linkwe-pc/src/utils/common.js
View file @
782f4b8
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* 通用js方法封装处理,挂载到 Vue.prototype
* 通用js方法封装处理,挂载到 Vue.prototype
*/
*/
const
baseURL
=
window
.
lwConfig
.
services
.
system
const
baseURL
=
window
.
lwConfig
.
BASE_API
import
{
getToken
}
from
'@/utils/auth'
import
{
getToken
}
from
'@/utils/auth'
import
axios
from
'axios'
import
axios
from
'axios'
...
...
linkwe-pc/src/views/conversation/content/customer.vue
View file @
782f4b8
...
@@ -6,13 +6,11 @@
...
@@ -6,13 +6,11 @@
<div
class=
"name pd15"
>
客户列表(
{{
customerTotal
}}
)
</div>
<div
class=
"name pd15"
>
客户列表(
{{
customerTotal
}}
)
</div>
<el-input
<el-input
class=
"mb10"
class=
"mb10"
placeholder=
"搜索客户"
placeholder=
"搜索客户
名称
"
clearable
clearable
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
v-model=
"customerQuery.name"
v-model=
"customerQuery.name"
@
keyup
.
enter
.
native=
"getCustomerList(1)"
@
keyup
.
enter
.
native=
"getCustomerList(1)"
></el-input>
>
</el-input>
<div
v-loading=
"customerLoading"
>
<div
v-loading=
"customerLoading"
>
<ul
v-if=
"init"
v-infinite-scroll=
"getCustomerList"
infinite-scroll-distance=
"1"
class=
"customer-wrap"
>
<ul
v-if=
"init"
v-infinite-scroll=
"getCustomerList"
infinite-scroll-distance=
"1"
class=
"customer-wrap"
>
<template
v-if=
"customerList.length"
>
<template
v-if=
"customerList.length"
>
...
@@ -25,17 +23,16 @@
...
@@ -25,17 +23,16 @@
:class=
"
{ active: index == personIndex }"
:class=
"
{ active: index == personIndex }"
:gutter="20"
:gutter="20"
type="flex"
type="flex"
align="middle"
align="middle">
>
<el-col
:span=
"4"
>
<el-col
:span=
"4"
>
<img
v-if=
"item.avatar"
:src=
"item.avatar"
alt=
"头像"
/>
<img
v-if=
"item.avatar"
:src=
"item.avatar"
alt=
"头像"
/>
</el-col>
</el-col>
<el-col
:span=
"10"
v-if=
"item"
class=
"toe"
>
<el-col
:span=
"10"
v-if=
"item"
class=
"toe"
>
<span
style=
"line-height: 40px
;
"
>
{{
item
.
customerName
}}
</span>
<span
style=
"line-height: 40px"
>
{{
item
.
customerName
}}
</span>
</el-col>
</el-col>
<el-col
:span=
"10"
class=
"ar"
>
<el-col
:span=
"10"
class=
"ar"
>
<span
:style=
"
{ color: item.customerType === 1 ? '#4bde03' : '#f9a90b' }"
<span
:style=
"
{ color: item.customerType === 1 ? '#4bde03' : '#f9a90b' }"
>
>
{{
{
1
:
'@微信'
,
2
:
'@企业微信'
}
[
item
.
customerType
]
}}
{{
{
1
:
'@微信'
,
2
:
'@企业微信'
}
[
item
.
customerType
]
}}
<
/span
>
<
/span
>
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
item
.
gender
]]
"></i>
<
i
:
class
=
"
[
'el-icon-s-custom'
,
{
1
:
'man'
,
2
:
'woman'
}
[
item
.
gender
]]
"></i>
</el-col>
</el-col>
...
@@ -58,17 +55,21 @@
...
@@ -58,17 +55,21 @@
placeholder
=
"搜索联系人"
placeholder
=
"搜索联系人"
prefix
-
icon
=
"el-icon-search"
prefix
-
icon
=
"el-icon-search"
v
-
model
=
"chatContent"
v
-
model
=
"chatContent"
@
keyup
.
enter
.
native
=
"getChatList()"
@
keyup
.
enter
.
native
=
"getChatList()"
><
/el-input
>
>
<
/el-input
>
<
el
-
tabs
v
-
model
=
"activeName"
@
tab
-
click
=
"getChatList()"
>
<
el
-
tabs
v
-
model
=
"activeName"
@
tab
-
click
=
"getChatList()"
>
<
el
-
tab
-
pane
label
=
"单聊"
name
=
"0"
>
<
el
-
tab
-
pane
label
=
"单聊"
name
=
"0"
>
<
userList
v
-
if
=
"activeName == 0"
:
personList
=
"personList"
:
loading
=
"loading"
@
chatFn
=
"chatFn"
>
<
userList
<
/userList
>
v
-
if
=
"activeName == 0"
:
personList
=
"personList"
:
loading
=
"loading"
@
chatFn
=
"chatFn"
><
/userList
>
<
/el-tab-pane
>
<
/el-tab-pane
>
<
el
-
tab
-
pane
label
=
"群聊"
name
=
"2"
>
<
el
-
tab
-
pane
label
=
"群聊"
name
=
"2"
>
<
grouplist
v
-
if
=
"activeName == 2"
:
personList
=
"personList"
:
loading
=
"loading"
@
groupFn
=
"groupFn"
>
<
grouplist
<
/grouplist
>
v
-
if
=
"activeName == 2"
:
personList
=
"personList"
:
loading
=
"loading"
@
groupFn
=
"groupFn"
><
/grouplist
>
<
/el-tab-pane
>
<
/el-tab-pane
>
<
/el-tabs
>
<
/el-tabs
>
<
/template
>
<
/template
>
...
@@ -85,16 +86,16 @@
...
@@ -85,16 +86,16 @@
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
chatListClass
from
'./component/chatListClass.vue'
import
chatListClass
from
'./component/chatListClass.vue'
import
userList
from
'./component/userList.vue'
import
userList
from
'./component/userList.vue'
import
grouplist
from
'./component/groupList.vue'
import
grouplist
from
'./component/groupList.vue'
import
*
as
api
from
'@/api/conversation/content.js'
import
*
as
api
from
'@/api/conversation/content.js'
import
*
as
apiCustomer
from
'@/api/customer/index'
import
*
as
apiCustomer
from
'@/api/customer/index'
export
default
{
export
default
{
components
:
{
components
:
{
userList
,
userList
,
grouplist
,
grouplist
,
chatListClass
chatListClass
,
}
,
}
,
data
()
{
data
()
{
return
{
return
{
...
@@ -103,7 +104,7 @@
...
@@ -103,7 +104,7 @@
customerQuery
:
{
customerQuery
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
name
:
''
name
:
''
,
}
,
}
,
customerList
:
[],
customerList
:
[],
customerTotal
:
0
,
customerTotal
:
0
,
...
@@ -116,7 +117,7 @@
...
@@ -116,7 +117,7 @@
loading
:
false
,
loading
:
false
,
fromId
:
''
,
fromId
:
''
,
queryChat
:
{
}
queryChat
:
{
}
,
}
}
}
,
}
,
created
()
{
created
()
{
...
@@ -127,7 +128,7 @@
...
@@ -127,7 +128,7 @@
this
.
queryChat
=
{
this
.
queryChat
=
{
fromId
:
this
.
fromId
,
fromId
:
this
.
fromId
,
receiveName
:
data
.
name
,
receiveName
:
data
.
name
,
toList
:
data
.
receiver
toList
:
data
.
receiver
,
}
}
}
,
}
,
groupFn
(
data
)
{
groupFn
(
data
)
{
...
@@ -135,7 +136,7 @@
...
@@ -135,7 +136,7 @@
this
.
queryChat
=
{
this
.
queryChat
=
{
// fromId: this.fromId,
// fromId: this.fromId,
receiveName
:
data
.
name
,
receiveName
:
data
.
name
,
roomId
:
data
.
chatId
roomId
:
data
.
chatId
,
}
}
}
,
}
,
choiceCustomer
(
data
,
index
)
{
choiceCustomer
(
data
,
index
)
{
...
@@ -156,7 +157,7 @@
...
@@ -156,7 +157,7 @@
api
api
.
selectAloneChatList
({
.
selectAloneChatList
({
fromId
:
this
.
fromId
,
fromId
:
this
.
fromId
,
contact
:
this
.
chatContent
contact
:
this
.
chatContent
,
}
)
}
)
.
then
(({
data
}
)
=>
{
.
then
(({
data
}
)
=>
{
this
.
loading
=
false
this
.
loading
=
false
...
@@ -206,16 +207,16 @@
...
@@ -206,16 +207,16 @@
}
}
}
}
}
}
}
}
,
}
}
,
}
}
<
/script
>
<
/script
>
<
style
lang
=
"scss"
scoped
>
<
style
lang
=
"scss"
scoped
>
::
v
-
deep
.
el
-
tabs__nav
-
scroll
{
::
v
-
deep
.
el
-
tabs__nav
-
scroll
{
padding
-
left
:
15
px
;
padding
-
left
:
15
px
;
}
}
.
customer
{
.
customer
{
// background: #f6f6f9;
// background: #f6f6f9;
text
-
align
:
center
;
text
-
align
:
center
;
...
@@ -264,9 +265,9 @@
...
@@ -264,9 +265,9 @@
}
}
}
}
}
}
}
}
.
el
-
icon
-
s
-
custom
{
.
el
-
icon
-
s
-
custom
{
font
-
size
:
16
px
;
font
-
size
:
16
px
;
margin
-
left
:
4
px
;
margin
-
left
:
4
px
;
color
:
#
999
;
color
:
#
999
;
...
@@ -276,9 +277,9 @@
...
@@ -276,9 +277,9 @@
&
.
woman
{
&
.
woman
{
color
:
#
f753b2
;
color
:
#
f753b2
;
}
}
}
}
.
userList
{
.
userList
{
height
:
calc
(
100
vh
-
328
px
);
height
:
calc
(
100
vh
-
328
px
);
}
}
<
/style
>
<
/style
>
linkwe-pc/src/views/conversation/content/employee.vue
View file @
782f4b8
...
@@ -2,7 +2,14 @@
...
@@ -2,7 +2,14 @@
<div
class=
"employ"
>
<div
class=
"employ"
>
<el-row
type=
"flex"
align=
"center"
:gutter=
"10"
>
<el-row
type=
"flex"
align=
"center"
:gutter=
"10"
>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<div
class=
"ct_box"
style=
"height: calc(100vh - 197px);"
>
<div
class=
"ct_box"
style=
"height: calc(100vh - 197px)"
>
<el-input
class=
"mb10"
placeholder=
"搜索员工名称"
clearable
prefix-icon=
"el-icon-search"
v-model=
"name"
@
keyup
.
enter
.
native=
"loadNode(1)"
></el-input>
<el-tree
<el-tree
ref=
"tree"
ref=
"tree"
class=
"filter-tree"
class=
"filter-tree"
...
@@ -13,27 +20,34 @@
...
@@ -13,27 +20,34 @@
@
node-click=
"handleNodeClick"
@
node-click=
"handleNodeClick"
:default-expanded-keys=
"defaultExpandedKeys"
:default-expanded-keys=
"defaultExpandedKeys"
:load=
"loadNode"
:load=
"loadNode"
lazy
lazy
></el-tree>
>
</el-tree>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<div
class=
"ct_box"
style=
"height: calc(100vh - 197px)
;
"
>
<div
class=
"ct_box"
style=
"height: calc(100vh - 197px)"
>
<template
v-if=
"talkName"
>
<template
v-if=
"talkName"
>
<div
class=
"name pd15"
>
{{
talkName
}}
</div>
<div
class=
"name pd15"
>
{{
talkName
}}
</div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabClick(true)"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"tabClick(true)"
>
<el-tab-pane
label=
"内部联系人"
name=
"0"
>
<el-tab-pane
label=
"内部联系人"
name=
"0"
>
<userList
v-if=
"activeName == 0"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
<userList
</userList>
v-if=
"activeName == 0"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
></userList>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"外部联系人"
name=
"1"
>
<el-tab-pane
label=
"外部联系人"
name=
"1"
>
<userList
v-if=
"activeName == 1"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
>
<userList
</userList>
v-if=
"activeName == 1"
:personList=
"personList"
:loading=
"loading"
@
chatFn=
"chatFn"
></userList>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"群聊"
name=
"2"
>
<el-tab-pane
label=
"群聊"
name=
"2"
>
<grouplist
v-if=
"activeName == 2"
:personList=
"personList"
:loading=
"loading"
@
groupFn=
"groupFn"
>
<grouplist
</grouplist>
v-if=
"activeName == 2"
:personList=
"personList"
:loading=
"loading"
@
groupFn=
"groupFn"
></grouplist>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</
template
>
</
template
>
...
@@ -41,7 +55,7 @@
...
@@ -41,7 +55,7 @@
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<div
class=
"ct_box"
style=
"height: calc(100vh - 197px)
;
"
>
<div
class=
"ct_box"
style=
"height: calc(100vh - 197px)"
>
<chatListClass
v-show=
"queryChat.receiveName"
:queryChat=
"queryChat"
></chatListClass>
<chatListClass
v-show=
"queryChat.receiveName"
:queryChat=
"queryChat"
></chatListClass>
<el-empty
v-if=
"!queryChat.receiveName"
description=
"请选择联系人"
:image-size=
"100"
></el-empty>
<el-empty
v-if=
"!queryChat.receiveName"
description=
"请选择联系人"
:image-size=
"100"
></el-empty>
</div>
</div>
...
@@ -50,17 +64,17 @@
...
@@ -50,17 +64,17 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
chatListClass
from
'./component/chatListClass.vue'
import
chatListClass
from
'./component/chatListClass.vue'
import
userList
from
'./component/userList.vue'
import
userList
from
'./component/userList.vue'
import
grouplist
from
'./component/groupList.vue'
import
grouplist
from
'./component/groupList.vue'
import
*
as
apiOrg
from
'@/api/organization'
import
*
as
apiOrg
from
'@/api/organization'
import
*
as
api
from
'@/api/conversation/content.js'
import
*
as
api
from
'@/api/conversation/content.js'
export
default
{
export
default
{
components
:
{
components
:
{
grouplist
,
grouplist
,
userList
,
userList
,
chatListClass
chatListClass
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -73,14 +87,14 @@
...
@@ -73,14 +87,14 @@
defaultProps
:
{
defaultProps
:
{
label
:
'name'
,
label
:
'name'
,
children
:
'children'
,
children
:
'children'
,
isLeaf
:
'isLeaf'
isLeaf
:
'isLeaf'
,
},
},
activeName
:
'0'
,
activeName
:
'0'
,
chat
:
{},
chat
:
{},
personList
:
[],
personList
:
[],
loading
:
false
,
loading
:
false
,
queryChat
:
{}
queryChat
:
{},
}
}
},
},
watch
:
{
watch
:
{
...
@@ -97,14 +111,14 @@
...
@@ -97,14 +111,14 @@
this
.
queryChat
=
{
this
.
queryChat
=
{
fromId
:
this
.
fromId
,
fromId
:
this
.
fromId
,
receiveName
:
data
.
name
,
receiveName
:
data
.
name
,
toList
:
data
.
receiver
toList
:
data
.
receiver
,
}
}
},
},
groupFn
(
data
)
{
groupFn
(
data
)
{
this
.
queryChat
=
{
this
.
queryChat
=
{
// fromId: this.fromId,
// fromId: this.fromId,
receiveName
:
data
.
name
,
receiveName
:
data
.
name
,
roomId
:
data
.
receiver
roomId
:
data
.
receiver
,
}
}
},
},
// getTree() {
// getTree() {
...
@@ -174,7 +188,7 @@
...
@@ -174,7 +188,7 @@
pageNum
:
'1'
,
pageNum
:
'1'
,
pageSize
:
'999'
,
pageSize
:
'999'
,
isActivate
:
''
,
isActivate
:
''
,
deptId
:
node
.
data
.
id
deptId
:
node
.
data
.
id
,
}
}
apiOrg
.
getDeptUser
(
querys
).
then
(({
rows
})
=>
{
apiOrg
.
getDeptUser
(
querys
).
then
(({
rows
})
=>
{
// if (!data.children) {
// if (!data.children) {
...
@@ -240,22 +254,22 @@
...
@@ -240,22 +254,22 @@
this
.
tabClick
()
this
.
tabClick
()
this
.
queryChat
=
{
this
.
queryChat
=
{
fromId
:
data
.
userId
fromId
:
data
.
userId
,
}
}
}
}
}
}
}
},
},
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
::v-deep
.el-tabs__nav-scroll
{
::v-deep
.el-tabs__nav-scroll
{
padding-left
:
15px
;
padding-left
:
15px
;
}
}
::v-deep
.el-tabs__header
{
::v-deep
.el-tabs__header
{
margin
:
0
;
margin
:
0
;
}
}
.employ
{
.employ
{
.el-tabs
{
.el-tabs
{
background
:
#fff
;
background
:
#fff
;
}
}
...
@@ -278,5 +292,5 @@
...
@@ -278,5 +292,5 @@
display
:
none
;
display
:
none
;
}
}
}
}
}
}
</
style
>
</
style
>
linkwe-pc/src/views/conversation/content/global.vue
View file @
782f4b8
...
@@ -2,13 +2,13 @@
...
@@ -2,13 +2,13 @@
<div>
<div>
<el-form
:inline=
"true"
:model=
"query"
class=
"top-search"
>
<el-form
:inline=
"true"
:model=
"query"
class=
"top-search"
>
<el-form-item
label=
"员工名称"
>
<el-form-item
label=
"员工名称"
>
<el-input
v-model=
"query.userName"
clearable
placeholder=
"
客户名称
"
></el-input>
<el-input
v-model=
"query.userName"
clearable
placeholder=
"
请输入
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户名称"
>
<el-form-item
label=
"客户名称"
>
<el-input
v-model=
"query.customerName"
clearable
placeholder=
"
客户名称
"
></el-input>
<el-input
v-model=
"query.customerName"
clearable
placeholder=
"
请输入
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"查找内容"
>
<el-form-item
label=
"查找内容"
>
<el-input
v-model=
"query.contact"
clearable
placeholder=
"
查找内容
"
></el-input>
<el-input
v-model=
"query.contact"
clearable
placeholder=
"
请输入
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"时间范围"
>
<el-form-item
label=
"时间范围"
>
<el-date-picker
<el-date-picker
...
@@ -21,8 +21,7 @@
...
@@ -21,8 +21,7 @@
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
align=
"right"
align=
"right"
:picker-options=
"pickerOptions"
:picker-options=
"pickerOptions"
></el-date-picker>
></el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"消息状态"
>
<el-form-item
label=
"消息状态"
>
<el-select
v-model=
"query.action"
class=
"noborder"
>
<el-select
v-model=
"query.action"
class=
"noborder"
>
...
@@ -30,15 +29,14 @@
...
@@ -30,15 +29,14 @@
v-for=
"item in displayOptions"
v-for=
"item in displayOptions"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label"
:label=
"item.label"
:value=
"item.value"
:value=
"item.value"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"getList(1)"
>
查询
</el-button>
<el-button
@
click=
"resetFn"
>
重置
</el-button>
<el-button
@
click=
"resetFn"
>
重置
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
style=
"float: right
;
"
>
<el-form-item
style=
"float: right"
>
<el-button
type=
"primary"
@
click=
"exportList()"
>
导出列表
</el-button>
<el-button
type=
"primary"
@
click=
"exportList()"
>
导出列表
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -85,17 +83,16 @@
...
@@ -85,17 +83,16 @@
:total=
"total"
:total=
"total"
:page
.
sync=
"query.pageNum"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
@
pagination=
"getList()"
/>
/>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getChatList
,
exportList
}
from
'@/api/conversation/content.js'
import
{
getChatList
,
exportList
}
from
'@/api/conversation/content.js'
import
ChatContent
from
'@/components/ChatContent'
import
ChatContent
from
'@/components/ChatContent'
import
{
dateFormat
}
from
'@/utils/index'
import
{
dateFormat
}
from
'@/utils/index'
export
default
{
export
default
{
components
:
{
ChatContent
},
components
:
{
ChatContent
},
data
()
{
data
()
{
return
{
return
{
...
@@ -109,7 +106,7 @@
...
@@ -109,7 +106,7 @@
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
orderByColumn
:
't.msg_time'
,
orderByColumn
:
't.msg_time'
,
isAsc
:
'desc'
// asc 升序 desc 降序
isAsc
:
'desc'
,
// asc 升序 desc 降序
},
},
dateRange
:
[],
dateRange
:
[],
total
:
0
,
total
:
0
,
...
@@ -118,22 +115,22 @@
...
@@ -118,22 +115,22 @@
displayOptions
:
[
displayOptions
:
[
{
{
value
:
''
,
value
:
''
,
label
:
'全部'
label
:
'全部'
,
},
},
{
{
value
:
'send'
,
value
:
'send'
,
label
:
'已发送'
label
:
'已发送'
,
},
},
{
{
value
:
'recall'
,
value
:
'recall'
,
label
:
'已撤回'
label
:
'已撤回'
,
},
},
{
{
value
:
'switch'
,
value
:
'switch'
,
label
:
'切回企业日志'
label
:
'切回企业日志'
,
}
},
],
],
loading
:
false
loading
:
false
,
}
}
},
},
created
()
{
created
()
{
...
@@ -152,7 +149,7 @@
...
@@ -152,7 +149,7 @@
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
orderByColumn
:
't.msg_time'
,
orderByColumn
:
't.msg_time'
,
isAsc
:
'desc'
isAsc
:
'desc'
,
}
}
this
.
getList
(
1
)
this
.
getList
(
1
)
},
},
...
@@ -181,7 +178,7 @@
...
@@ -181,7 +178,7 @@
let
typeDict
=
{
let
typeDict
=
{
text
:
'content'
,
text
:
'content'
,
image
:
'attachment'
,
image
:
'attachment'
,
text
:
'content'
text
:
'content'
,
}
}
return
contact
[
type
]
return
contact
[
type
]
},
},
...
@@ -189,7 +186,7 @@
...
@@ -189,7 +186,7 @@
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'警告'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{
return
exportList
(
this
.
query
)
return
exportList
(
this
.
query
)
...
@@ -212,22 +209,22 @@
...
@@ -212,22 +209,22 @@
}
}
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
}
},
}
},
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.demo-form-inline
{
.demo-form-inline
{
background
:
#f1f1f1
;
background
:
#f1f1f1
;
padding
:
18px
10px
0
10px
;
padding
:
18px
10px
0
10px
;
}
}
.content
{
.content
{
margin-top
:
15px
;
margin-top
:
15px
;
padding
:
10px
;
padding
:
10px
;
}
}
.pers
{
.pers
{
position
:
relative
;
position
:
relative
;
.green
{
.green
{
...
@@ -259,16 +256,16 @@
...
@@ -259,16 +256,16 @@
top
:
10px
;
top
:
10px
;
left
:
-8px
;
left
:
-8px
;
}
}
}
}
.noborder
{
.noborder
{
::v-deep
.el-input--mini
.el-input__inner
{
::v-deep
.el-input--mini
.el-input__inner
{
width
:
2px
;
width
:
2px
;
border
:
none
;
border
:
none
;
}
}
}
}
.emcode
::v-deep
em
{
.emcode
::v-deep
em
{
color
:
#ff0000
;
color
:
#ff0000
;
}
}
</
style
>
</
style
>
linkwe-pc/src/views/enterpriseManage/system/menu/index.vue
deleted
100644 → 0
View file @
28f0b8e
This diff is collapsed.
Click to expand it.
linkwe-pc/src/views/system/menu/index.vue
View file @
782f4b8
...
@@ -2,14 +2,10 @@
...
@@ -2,14 +2,10 @@
<div>
<div>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
class=
"top-search"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
v-show=
"showSearch"
class=
"top-search"
>
<el-form-item
label=
"菜单名称"
prop=
"menuName"
>
<el-form-item
label=
"菜单名称"
prop=
"menuName"
>
<el-input
<el-input
v-model=
"queryParams.menuName"
placeholder=
"请输入"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
v-model=
"queryParams.menuName"
placeholder=
"请输入菜单名称"
clearable
@
keyup
.
enter
.
native=
"handleQuery"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-form-item
label=
"
菜单
状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"
菜单状态
"
clearable
>
<el-select
v-model=
"queryParams.status"
placeholder=
"
请选择
"
clearable
>
<el-option
<el-option
v-for=
"dict in statusOptions"
v-for=
"dict in statusOptions"
:key=
"dict.dictValue"
:key=
"dict.dictValue"
...
@@ -35,11 +31,11 @@
...
@@ -35,11 +31,11 @@
row-key=
"menuId"
row-key=
"menuId"
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }">
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }">
<el-table-column
prop=
"menuName"
label=
"菜单名称"
:show-overflow-tooltip=
"true"
width=
"160"
></el-table-column>
<el-table-column
prop=
"menuName"
label=
"菜单名称"
:show-overflow-tooltip=
"true"
width=
"160"
></el-table-column>
<el-table-column
prop=
"icon"
label=
"图标"
align=
"center"
width=
"100"
>
<
!--
<
el-table-column
prop=
"icon"
label=
"图标"
align=
"center"
width=
"100"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<svg-icon
:icon-class=
"scope.row.icon"
/>
<svg-icon
:icon-class=
"scope.row.icon"
/>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
-->
<el-table-column
prop=
"orderNum"
label=
"排序"
width=
"60"
></el-table-column>
<el-table-column
prop=
"orderNum"
label=
"排序"
width=
"60"
></el-table-column>
<el-table-column
prop=
"perms"
label=
"权限标识"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"perms"
label=
"权限标识"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"component"
label=
"组件路径"
:show-overflow-tooltip=
"true"
></el-table-column>
<el-table-column
prop=
"component"
label=
"组件路径"
:show-overflow-tooltip=
"true"
></el-table-column>
...
@@ -86,7 +82,13 @@
...
@@ -86,7 +82,13 @@
<el-form-item
v-if=
"form.menuType != 'F'"
label=
"菜单图标"
>
<el-form-item
v-if=
"form.menuType != 'F'"
label=
"菜单图标"
>
<el-popover
placement=
"bottom-start"
width=
"460"
trigger=
"click"
@
show=
"$refs['iconSelect'].reset()"
>
<el-popover
placement=
"bottom-start"
width=
"460"
trigger=
"click"
@
show=
"$refs['iconSelect'].reset()"
>
<IconSelect
ref=
"iconSelect"
@
selected=
"selected"
/>
<IconSelect
ref=
"iconSelect"
@
selected=
"selected"
/>
<el-input
slot=
"reference"
v-model=
"form.icon"
placeholder=
"点击选择图标"
readonly
>
<el-select
slot=
"reference"
v-model=
"form.icon"
remote
placeholder=
"点击选择图标"
clearable
@
clear=
"form.icon = '#'"
>
<svg-icon
<svg-icon
v-if=
"form.icon"
v-if=
"form.icon"
slot=
"prefix"
slot=
"prefix"
...
@@ -94,7 +96,7 @@
...
@@ -94,7 +96,7 @@
class=
"el-input__icon"
class=
"el-input__icon"
style=
"height: 32px; width: 16px"
/>
style=
"height: 32px; width: 16px"
/>
<i
v-else
slot=
"prefix"
class=
"el-icon-search el-input__icon"
/>
<i
v-else
slot=
"prefix"
class=
"el-icon-search el-input__icon"
/>
</el-
inpu
t>
</el-
selec
t>
</el-popover>
</el-popover>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -300,7 +302,7 @@ export default {
...
@@ -300,7 +302,7 @@ export default {
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
(
row
)
{
handleAdd
(
row
)
{
this
.
reset
()
this
.
reset
()
this
.
getTreeselect
()
//
this.getTreeselect()
if
(
row
!=
null
&&
row
.
menuId
)
{
if
(
row
!=
null
&&
row
.
menuId
)
{
this
.
form
.
parentId
=
row
.
menuId
this
.
form
.
parentId
=
row
.
menuId
}
else
{
}
else
{
...
@@ -312,7 +314,7 @@ export default {
...
@@ -312,7 +314,7 @@ export default {
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
()
this
.
reset
()
this
.
getTreeselect
()
//
this.getTreeselect()
getMenu
(
row
.
menuId
).
then
((
response
)
=>
{
getMenu
(
row
.
menuId
).
then
((
response
)
=>
{
this
.
form
=
response
.
data
this
.
form
=
response
.
data
this
.
open
=
true
this
.
open
=
true
...
...
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