Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-custom
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 912eda4d
authored
Jan 01, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1'
2 parents
e5780fd4
a3442598
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
1893 additions
and
346 deletions
package.json
src/App.vue
src/api/modules/clientGroupManage.js
src/api/modules/groupGuest.js
src/assets/clientDetail/noDataBox.png
src/common/common.js
src/components/basic-dialog/index.vue
src/components/echarts/multipleEchart.vue
src/components/noData/noData.vue
src/config/env.development.js
src/setup/qiankun.js
src/views/clientDataOverview/index.vue
src/views/clientGroupManage/clientGroupDetail.vue
src/views/clientGroupManage/clientGroupDetailNext.vue
src/views/clientGroupManage/components/client.vue
src/views/clientGroupManage/components/followEmployee.vue
src/views/clientGroupManage/components/leaveGroupClient.vue
src/views/clientGroupManage/components/potentialClient.vue
src/views/clientGroupManage/index.vue
src/views/clientManage/clientDetail.vue
src/views/clientManage/index.vue
src/views/guestGroup/add.vue
src/views/guestGroup/components/selectEmp.vue
src/views/guestGroup/index.vue
src/views/tagsManage/index.vue
vue.config.js
package.json
View file @
912eda4
...
...
@@ -14,7 +14,7 @@
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
2.5
"
,
"glsx-components"
:
"^1.
3.3
"
,
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
...
...
src/App.vue
View file @
912eda4
...
...
@@ -26,7 +26,7 @@
</div>
<img
src=
"./assets/logo.png"
alt=
""
srcset=
""
/>
</div>
-->
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview"
>
<keep-alive
exclude=
"clientDetail,clientGroupDetail,tagsManage,clientDataOverview
,guestGroup,guestGroupAdd
"
>
<router-view></router-view>
</keep-alive>
</div>
...
...
src/api/modules/clientGroupManage.js
View file @
912eda4
...
...
@@ -36,7 +36,16 @@
sign
:
true
})
}
export
function
getClientTableDetail
(
params
){
params
.
method
=
'entmicro.api.customer.detail'
return
http
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 客户群的客户列表获取分页数据接口
export
function
getDetailTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.cust.page'
...
...
src/api/modules/groupGuest.js
View file @
912eda4
...
...
@@ -70,11 +70,34 @@ const listDepartmentTree = params => {
})
}
const
nameVaild
=
params
=>
{
params
.
method
=
'entmicro.api.one.template.name.valid'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
const
updateNameVaild
=
params
=>
{
params
.
method
=
'entmicro.api.one.template.name.update.valid'
return
http
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
templateList
,
insert
,
detail
,
status
,
update
,
listDepartmentTree
listDepartmentTree
,
nameVaild
,
updateNameVaild
}
src/assets/clientDetail/noDataBox.png
0 → 100644
View file @
912eda4
12.7 KB
src/common/common.js
View file @
912eda4
...
...
@@ -108,5 +108,23 @@ export const common = {
}
else
{
callback
()
}
},
/**
* 中文英文数字下划线括号,30个字符,是字符
*/
checkCharName
(
rule
,
value
,
callback
)
{
var
rxp
=
/^
[\u
4e00-
\u
9fa5_a-zA-Z0-9.
\\
()
\\
()
]
+$/
if
(
!
rule
.
required
)
{
if
(
!
value
)
{
callback
()
}
else
if
(
!
rxp
.
test
(
value
))
{
return
callback
(
new
Error
(
'请输入中文英文数字下划线或括号'
))
}
}
if
(
!
value
)
{
return
callback
(
new
Error
(
'请输入'
))
}
else
{
callback
()
}
}
}
src/components/basic-dialog/index.vue
View file @
912eda4
...
...
@@ -17,7 +17,7 @@
<div
slot=
"footer"
>
<slot
name=
"btn-front"
></slot>
<el-button
size=
"small"
@
click=
"handleClose"
>
取消
</el-button>
<el-button
size=
"small"
@
click=
"handleClose"
v-if=
"isHasCancelBtn"
>
取消
</el-button>
<el-button
type=
"primary"
size=
"small"
...
...
@@ -63,6 +63,10 @@ export default {
btnLoading
:
{
type
:
Boolean
,
default
:
false
},
isHasCancelBtn
:{
type
:
Boolean
,
default
:
true
}
},
methods
:
{
...
...
@@ -91,8 +95,8 @@ export default {
}
.el-dialog__body
{
padding
:
0
;
border-top
:
1px
solid
#E6E6E6
;
border-bottom
:
1px
solid
#E6E6E6
;
//
border-top
:
1px
solid
#E6E6E6
;
//
border-bottom
:
1px
solid
#E6E6E6
;
min-height
:
250px
;
//
max-height
:
636px
;
overflow-y
:
auto
;
...
...
src/components/echarts/multipleEchart.vue
View file @
912eda4
...
...
@@ -15,6 +15,10 @@ export default {
type
:
String
,
default
:
''
},
isCloseShowNumTag
:{
type
:
Boolean
,
default
:
false
},
totalData
:
{
type
:
Array
,
// default: () => []
...
...
@@ -210,7 +214,7 @@ export default {
type
:
'bar'
,
data
:
this
.
customerCount
,
//[33600, 18000, 17500, 20000, 17000, 480, 1000, 800, 520, 650, 920, 600],
label
:
{
show
:
true
,
show
:
t
his
.
isCloseShowNumTag
?
false
:
t
rue
,
// formatter: '{b}: {c}',
color
:
'#666666'
,
position
:
'top'
...
...
@@ -236,7 +240,7 @@ export default {
color
:
'#FE9C1C'
},
label
:
{
show
:
true
,
show
:
t
his
.
isCloseShowNumTag
?
false
:
t
rue
,
color
:
'#666666'
,
position
:
'top'
}
...
...
src/components/noData/noData.vue
View file @
912eda4
...
...
@@ -27,6 +27,7 @@ export default {
.scrm-sub-client-container
{
.nodata
{
position
:
absolute
;
text-align
:
center
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
...
...
src/config/env.development.js
View file @
912eda4
...
...
@@ -23,7 +23,7 @@ module.exports = {
*/
request
:
{
// baseURL: 'http://scrm.test.glsx.com.cn', // 测试
baseURL
:
'http://192.168.
2.42
:8064'
,
baseURL
:
'http://192.168.
1.97
:8064'
,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
src/setup/qiankun.js
View file @
912eda4
...
...
@@ -12,7 +12,7 @@ import 'glsx-components/dist/glsx-components.css'
let
routes
=
[]
let
router
=
null
let
instance
=
null
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
})
{
export
async
function
bootstrap
({
name
,
id
,
history
,
common
,
messenger
,
globalState
,
routerBase
})
{
const
{
response
,
request
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
//globalState.configSwitch
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
...
...
@@ -26,6 +26,7 @@ export async function bootstrap({ name, id, history, common, messenger, globalSt
routes
=
getRoutes
(
routesData
)
// { name, id, }
subscribe
({
messenger
})
Vue
.
use
(
GLButton
,
{
routes
,
routerBase
})
}
export
async
function
mount
(
props
)
{
const
insts
=
render
(
props
.
routerBase
,
routes
)
...
...
src/views/clientDataOverview/index.vue
View file @
912eda4
...
...
@@ -179,7 +179,7 @@
</div>
</div>
<!-- v-if="isShowBarMap" width="100%" -->
<multiple-echart
v-if=
"isReload"
width=
"100%"
height=
"420px"
:totalData=
"allMapList"
></multiple-echart>
<multiple-echart
v-if=
"isReload"
width=
"100%"
height=
"420px"
:totalData=
"allMapList"
:isCloseShowNumTag=
"isCloseShowNumTag"
></multiple-echart>
</
template
>
</div>
<el-dialog
title=
"提示"
:visible
.
sync=
"dialogVisible"
top=
"15vh"
width=
"30%"
:before-close=
"handleClose"
>
...
...
@@ -211,6 +211,7 @@ export default {
},
data
()
{
return
{
isCloseShowNumTag
:
false
,
isReload
:
true
,
isShowModal
:
false
,
isHasCustomerCountBanner
:
false
,
...
...
@@ -485,6 +486,7 @@ export default {
},
clickThirty
()
{
this
.
timeGap
=
30
this
.
isCloseShowNumTag
=
true
if
(
Object
.
keys
(
this
.
thirtyDayStorage
).
length
==
0
)
{
this
.
getDataOverviewBarMapFun
(
30
)
//第一次点击30天,获取数据
}
else
{
...
...
@@ -494,6 +496,7 @@ export default {
},
clickSeven
()
{
this
.
timeGap
=
7
this
.
isCloseShowNumTag
=
false
if
(
Object
.
keys
(
this
.
sevenDayStorage
).
length
==
0
)
{
this
.
getDataOverviewBarMapFun
()
//重新掉一遍接口
}
else
{
...
...
src/views/clientGroupManage/clientGroupDetail.vue
View file @
912eda4
...
...
@@ -25,10 +25,10 @@
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostEmail
}}
</span>
</el-tooltip>
</p>
<p>
<
!--
<
p>
<span>
群主部门
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostDepart
}}
</span>
</p>
</p>
-->
<p>
<span>
群管理员
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.groupAdmin"
placement=
"top"
>
...
...
@@ -44,10 +44,10 @@
</div>
<div
class=
"rightWrap"
>
<p>
<span>
客户列表
</span>
<span>
全部客户
</span>
<span>
{{
clientTableDataNum
||
0
}}
个
</span>
</p>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"
tru
e"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"
fals
e"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -72,23 +72,30 @@
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<div
class=
"content-body"
>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
<p
class=
"bottomText"
>
赶紧去加好友吧!
</p>
</div>
</basic-dialog>
</div>
</div>
</div>
</template>
<
script
>
import
{
getTableDetail
,
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
import
{
getTableDetail
,
getDetailTableList
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'clientGroupDetail'
,
data
()
{
return
{
dialogVisible
:
false
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
searchForm
:
{},
searchFormTable
:{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
...
...
@@ -151,7 +158,8 @@ export default {
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
addHtml
:
'customerName'
,
minWidth
:
100
},
{
label
:
'手机号码'
,
...
...
@@ -168,8 +176,13 @@ export default {
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
...
...
@@ -198,19 +211,19 @@ export default {
// this.searchTable()
// })
},
watch
:
{
'searchForm.daterange'
:{
deep
:
true
,
// immediate:true,
handler
(
val
)
{
console
.
log
(
'val值:'
,
val
)
if
(
val
){
console
.
log
(
'7777777777777'
)
this
.
searchTable
()
}
}
}
},
//
watch: {
//
'searchForm.daterange':{
//
deep: true,
//
// immediate:true,
//
handler(val) {
//
console.log('val值:',val)
//
if(val){
//
console.log('7777777777777')
// this.searchTable()
//
}
//
}
//
}
//
},
methods
:
{
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
...
...
@@ -221,16 +234,16 @@ export default {
}
this
.
leftPanelList
=
res
},
beforeSearchFn
()
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
// console.log(this.searchForm,'数据')
// console.log(this.searchForm.daterange,this.searchForm.id,this.searchFormTable,'时间选择器')
// console.log(this.searchForm)
// console.log(this.searchForm,'数据')
// console.log(this.searchForm.daterange,this.searchForm.id,this.searchFormTable,'时间选择器')
// console.log(this.searchForm)
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
...
...
@@ -261,11 +274,31 @@ export default {
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
handleClose
()
{
this
.
dialogVisible
=
!
this
.
dialogVisible
},
handleConfirm
()
{
this
.
handleClose
()
},
goDetail
(
id
)
{
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
id
:
id
// 接口通过了跳转
getClientTableDetail
({
oneId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
!
res
.
data
)
{
this
.
dialogVisible
=
true
return
false
}
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
id
:
id
}
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
})
}
})
}
...
...
@@ -405,5 +438,27 @@ export default {
}
}
}
/
deep
/
.el-dialog__header
{
border
:
0
;
}
/
deep
/
.el-dialog__body
{
border-bottom
:
1px
solid
#e6e6e6
;
padding
:
0px
65px
35px
;
min-height
:
0
;
.container
{
font-size
:
18px
;
text-align
:
center
;
font-weight
:
400
;
color
:
#333333
;
.bottomText
{
margin-top
:
10px
;
}
}
}
/
deep
/
.el-dialog__footer
{
text-align
:
center
;
padding-top
:
15px
;
padding-bottom
:
15px
;
}
}
</
style
>
src/views/clientGroupManage/clientGroupDetailNext.vue
0 → 100644
View file @
912eda4
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"header"
>
<div
class=
"vehicleGroupName"
>
<span>
{{
groupName
}}
</span>
</div>
<button
class=
"backBtn"
@
click=
"goBack"
>
返回客户群管理
</button>
</div>
<div
class=
"content"
>
<div
class=
"leftWrap"
>
<div
class=
"avator"
>
<img
src=
"@/assets/clientDetail/defaultAvator.png"
alt=
""
/>
</div>
<p>
<span>
群主
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostName
}}
</span>
</p>
<p>
<span>
群主手机
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostPhone
}}
</span>
</p>
<p>
<span>
群主邮箱
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.groupHostEmail"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostEmail
}}
</span>
</el-tooltip>
</p>
<!--
<p>
<span>
群主部门
</span>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupHostDepart
}}
</span>
</p>
-->
<p>
<span>
群管理员
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.groupAdmin"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
groupAdmin
}}
</span>
</el-tooltip>
</p>
<p>
<span>
创建时间
</span>
<el-tooltip
class=
"item"
:content=
"leftPanelList.createDate"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelList
.
createDate
}}
</span>
</el-tooltip>
</p>
</div>
<div
class=
"rightWrap"
>
<div
class=
"choseRow"
>
<div
class=
"choseItem"
:class=
"
{ activeItem: currentIndex == index }" v-for="(item, index) in titles" :key="index" @click="tabClick(index)">
<span>
{{
item
.
name
}}
<template
v-if=
"currentIndex == index"
>
(
{{
item
.
personNum
||
0
}}
)个
</
template
>
</span>
</div>
</div>
<
template
v-if=
"currentIndex == 0"
>
<client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
@
getTotal=
"getTotal"
></client>
</
template
>
<
template
v-if=
"currentIndex == 1"
>
<follow-employee
ref=
"childComp"
:url=
"url"
@
getTotal=
"getTotal"
></follow-employee>
</
template
>
<
template
v-if=
"currentIndex == 2"
>
<leave-group-client
ref=
"childComp"
:url=
"url"
@
goDetail=
"goDetail"
></leave-group-client>
</
template
>
<
template
v-if=
"currentIndex == 3"
></
template
>
<basic-dialog
title=
""
width=
"547px"
:isVisible=
"dialogVisible"
btnOkLabel=
"我知道了"
:isHasCancelBtn=
"false"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<div
class=
"content-body"
>
<p>
该客户暂无员工跟进,无法查看该客户详情,
</p>
<p
class=
"bottomText"
>
赶紧去加好友吧!
</p>
</div>
</basic-dialog>
</div>
</div>
</div>
</template>
<
script
>
import
{
getTableDetail
,
getClientTableDetail
}
from
'@/api/modules/clientGroupManage'
import
client
from
'@/views/clientGroupManage/components/client.vue'
import
followEmployee
from
'@/views/clientGroupManage/components/followEmployee.vue'
import
leaveGroupClient
from
'@/views/clientGroupManage/components/leaveGroupClient.vue'
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'clientGroupDetail'
,
components
:
{
client
,
followEmployee
,
leaveGroupClient
},
data
()
{
return
{
dialogVisible
:
false
,
// ['全部客户', '跟进员工', '退群客户', '潜在客户']
titles
:
[
{
name
:
'全部客户'
,
personNum
:
0
},
{
name
:
'跟进员工'
,
personNum
:
0
},
{
name
:
'退群客户'
,
personNum
:
0
},
{
name
:
'潜在客户'
,
personNum
:
0
}
],
currentIndex
:
0
,
groupName
:
this
.
$route
.
query
.
groupName
,
url
:
url
,
leftPanelList
:
{},
flushTime
:
false
}
},
created
()
{
this
.
getTableDetail
()
},
// watch: {
// 'searchForm.daterange':{
// deep: true,
// // immediate:true,
// handler(val) {
// console.log('val值:',val)
// if(val){
// console.log('7777777777777')
// this.searchTable()
// }
// }
// }
// },
methods
:
{
getTotal
(
num
)
{
if
(
this
.
currentIndex
==
0
)
{
this
.
$set
(
this
.
titles
[
0
],
'personNum'
,
num
)
}
},
tabClick
(
index
)
{
this
.
currentIndex
=
index
},
async
getTableDetail
(
id
=
this
.
$route
.
query
.
id
)
{
const
res
=
await
getTableDetail
({
id
:
id
})
console
.
log
(
'获取客户群数据'
,
res
)
if
(
!
res
)
{
return
false
}
this
.
leftPanelList
=
res
},
goBack
()
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/index'
})
},
goDetail
(
id
)
{
// 接口通过了跳转
getClientTableDetail
({
oneId
:
id
}).
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
if
(
!
res
.
data
)
{
this
.
dialogVisible
=
true
return
false
}
this
.
$router
.
push
({
path
:
'/clientManage/clientDetail'
,
query
:
{
id
:
id
}
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
res
.
message
})
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.scrm-sub-client-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
.header
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
72px
;
background
:
#ffffff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
.vehicleGroupName
{
margin-left
:
26px
;
height
:
20px
;
font-size
:
20px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
letter-spacing
:
1px
;
}
.backBtn
{
margin-right
:
20px
;
height
:
32px
;
font-size
:
14px
;
background
:
$
btnBlue
;
color
:
#fff
;
border-radius
:
4px
;
padding
:
0
20px
;
border
:
none
;
&:hover
{
background-color
:
$
lightBtnBlue
;
}
}
}
.content
{
display
:
flex
;
width
:
100%
;
margin-top
:
20px
;
.leftWrap
{
width
:
240px
;
//
height
:
877px
;
min-height
:
270px
;
//calc(100vh
-
92px);
background-color
:
#fff
;
box-sizing
:
border-box
;
.avator
{
margin
:
0
auto
;
margin-top
:
40px
;
width
:
60px
;
height
:
60px
;
text-align
:
center
;
line-height
:
60px
;
img
{
border-radius
:
50%
;
width
:
100%
;
height
:
100%
;
}
}
p
{
padding-left
:
20px
;
position
:
relative
;
margin-top
:
20px
;
span
:
first-child
{
display
:
inline-block
;
height
:
20px
;
font-size
:
14px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
20px
;
}
span
:nth-child
(
2
)
{
position
:
absolute
;
left
:
100px
;
display
:
inline-block
;
height
:
20px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
20px
;
max-width
:
131px
;
}
}
}
.rightWrap
{
position
:
relative
;
margin-left
:
20px
;
width
:
calc
(
100%
-
260px
);
box-sizing
:
border-box
;
background-color
:
#fff
;
padding
:
20px
;
padding-top
:
50px
;
.choseRow
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
top
:
0
;
display
:
flex
;
background-color
:
$
bgColor
;
z-index
:
10
;
padding
:
2px
0
0
0
;
.choseItem
{
height
:
40px
;
line-height
:
40px
;
width
:
180px
;
//
background
:
#FFFFFF
;
text-align
:
center
;
border
:
1px
solid
#eeedff
;
border-bottom
:
0
;
&:first-child
{
border-left
:
0
;
}
span
{
font-weight
:
400
;
font-size
:
14px
;
color
:
#37383a
;
}
}
.activeItem
{
border-radius
:
4px
4px
0
0
;
background-color
:
#fff
;
span
{
color
:
$
btnBlue
;
font-weight
:
600
;
}
}
}
.el-button
+
.el-button
{
margin-left
:
20px
;
}
//
.el-button
{
//
font-size
:
14px
;
//
font-weight
:
400
;
//
padding
:
9px
21px
;
//
background
:
$
btnBlue
;
//
border-radius
:
4px
;
//
border
:
none
;
//
}
//
.el-button
:first-child
{
//
background
:
#ffffff
;
//
border-radius
:
4px
;
//
border
:
1px
solid
#999999
;
//
font-weight
:
400
;
//
color
:
#666666
;
//
}
.glsx-table
{
margin-top
:
20px
;
}
}
}
}
</
style
>
src/views/clientGroupManage/components/client.vue
0 → 100644
View file @
912eda4
<
template
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable
ref=
"clientGroupDetail"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"true"
:pageConf=
"pageConf"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</span>
<span
slot=
"joinScene"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
joinScene
==
1
?
'直接邀请入群'
:
scope
.
scope
.
joinScene
==
2
?
'通过邀请链接入群'
:
scope
.
scope
.
joinScene
==
3
?
'通过扫描群二维码入群'
:
''
}}
</span>
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
</div>
</template>
<
script
>
import
{
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
{
type
:
'select'
,
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableParams
:
{
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data'
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
//content是第一页的数据
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
this
.
$emit
(
'getTotal'
,
this
.
clientTableDataNum
)
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/components/followEmployee.vue
0 → 100644
View file @
912eda4
<
template
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<GLTable
ref=
"clientGroupDetail"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"true"
:pageConf=
"pageConf"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</span>
<span
slot=
"joinScene"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
joinScene
==
1
?
'直接邀请入群'
:
scope
.
scope
.
joinScene
==
2
?
'通过邀请链接入群'
:
scope
.
scope
.
joinScene
==
3
?
'通过扫描群二维码入群'
:
''
}}
</span>
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
</div>
</template>
<
script
>
// import { getDetailTableList } from '@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
{
type
:
'select'
,
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableParams
:
{
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'员工名称'
,
prop
:
'customerName'
,
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
]
},
getListApi
:
''
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
//content是第一页的数据
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
this
.
$emit
(
'getTotal'
,
this
.
clientTableDataNum
)
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/components/leaveGroupClient.vue
0 → 100644
View file @
912eda4
<
template
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<GLTable
ref=
"clientGroupDetail"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"true"
:pageConf=
"pageConf"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</span>
<span
slot=
"joinScene"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
joinScene
==
1
?
'直接邀请入群'
:
scope
.
scope
.
joinScene
==
2
?
'通过邀请链接入群'
:
scope
.
scope
.
joinScene
==
3
?
'通过扫描群二维码入群'
:
''
}}
</span>
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
</div>
</template>
<
script
>
// import { getDetailTableList } from '@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
{
type
:
'select'
,
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableParams
:
{
listName
:
'data'
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
''
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
//content是第一页的数据
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/components/potentialClient.vue
0 → 100644
View file @
912eda4
<
template
>
<div
class=
"sub-container"
>
<search-form
class=
"searchTop border-shadow"
:isNeedThreeBtns=
"false"
:showDefaultTime=
"false"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
</span>
</search-form>
<!-- :tableId="$route.query.id" 去掉,表格组件也应该去掉 -->
<GLTable
ref=
"clientGroupDetail"
@
setTableFinishFun=
"setTableFinishFun"
:hasNum=
"true"
:pageConf=
"pageConf"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchFormTable"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }" :noDataImg="url">
<span
slot=
"customerName"
class=
"flex-center"
slot-scope=
"scope"
>
<el-tooltip
effect=
"dark"
:content=
"scope.scope.customerName"
placement=
"top"
>
<span
class=
"ellipsis-1"
style=
"display: inline-block; max-width: 70px; text-align: left"
>
{{
scope
.
scope
.
customerName
}}
</span>
</el-tooltip>
<span
class=
"pure-blue-text"
>
{{
scope
.
scope
.
type
==
1
?
'@微信'
:
scope
.
scope
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
<span
slot=
"customerSex"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
customerSex
==
2
?
'女'
:
scope
.
scope
.
customerSex
==
1
?
'男'
:
'未知'
}}
</span>
</span>
<span
slot=
"joinScene"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
joinScene
==
1
?
'直接邀请入群'
:
scope
.
scope
.
joinScene
==
2
?
'通过邀请链接入群'
:
scope
.
scope
.
joinScene
==
3
?
'通过扫描群二维码入群'
:
''
}}
</span>
</span>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<span
@
click=
"goDetail(scope.scope.id)"
class=
"blue-text"
>
详情
</span>
</
template
>
</GLTable>
</div>
</template>
<
script
>
import
{
getDetailTableList
}
from
'@/api/modules/clientGroupManage'
export
default
{
props
:
{
url
:
{
type
:
String
,
default
:
''
}
},
data
()
{
return
{
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
{
type
:
'daterange'
,
prop
:
'daterange'
,
label
:
'入群时间'
,
pickerOptions
:
{
disabledDate
(
time
)
{
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
new
Date
(
'2017-12-31'
).
getTime
()
}
}
},
{
type
:
'select'
,
prop
:
'customerSex'
,
label
:
'性别'
,
placeholder
:
'请选择性别'
,
options
:
[
{
label
:
'全部'
,
value
:
null
},
{
label
:
'男'
,
value
:
1
},
{
label
:
'女'
,
value
:
2
},
{
label
:
'未知'
,
value
:
0
}
]
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'groupNickName'
,
label
:
'本群昵称'
,
placeholder
:
'请输入本群昵称'
},
{
type
:
'input'
,
inputType
:
'text'
,
prop
:
'customerName'
,
label
:
'客户名称'
,
placeholder
:
'请输入客户名称'
}
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'count'
},
tableParams
:
{
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data'
,
tableColumns
:
[
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
},
{
label
:
'手机号码'
,
prop
:
'customerPhone'
},
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
},
{
label
:
'入群方式'
,
prop
:
'joinScene'
,
addHtml
:
'joinScene'
},
{
label
:
'邀请人'
,
prop
:
'invitorName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
,
width
:
95
}
],
tableOption
:
{
width
:
80
,
btnList
:
[
{
name
:
'详情'
,
pType
:
'detail'
}
]
}
},
getListApi
:
getDetailTableList
,
clientTableDataNum
:
0
}
},
created
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
},
methods
:
{
beforeSearchFn
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
searchFormTable
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
))
if
(
this
.
searchFormTable
.
daterange
)
{
this
.
searchFormTable
.
beginTime
=
this
.
searchForm
.
daterange
[
0
]
this
.
searchFormTable
.
endTime
=
this
.
searchForm
.
daterange
[
1
]
delete
this
.
searchFormTable
.
daterange
}
else
{
if
(
this
.
searchFormTable
.
beginTime
)
delete
this
.
searchFormTable
.
beginTime
&&
delete
this
.
searchFormTable
.
endTime
}
resolve
()
})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
//content是第一页的数据
console
.
log
(
content
)
this
.
clientTableDataNum
=
this
.
$refs
.
clientGroupDetail
.
total
//接收到的数据为空
// if (!this.$refs.clientGroupDetail.data.length) {
// this.$refs.clientGroupDetail.setTableHeightFun()
// }
this
.
$refs
.
clientGroupDetail
.
data
.
length
?
(
this
.
$refs
.
clientGroupDetail
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
//搜索表格
searchTable
()
{
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
//重置表格
resetTable
()
{
this
.
searchForm
=
{
id
:
this
.
$route
.
query
.
id
}
this
.
$refs
.
clientGroupDetail
.
refreshTable
()
},
goDetail
(
msg
)
{
this
.
$emit
(
'goDetail'
,
msg
)
}
}
}
</
script
>
<
style
lang=
"scss"
scope
>
.sub-container
{
@import
'@/styles/variables.scss';
@import
'@/styles/resetelement.scss';
}
</
style
>
\ No newline at end of file
src/views/clientGroupManage/index.vue
View file @
912eda4
...
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户群管理
</p>
-->
<div
class=
"pageContent"
>
<search-form
class=
"searchTop border-shadow"
:isHasSyncBtn=
"true"
:showDefaultTime=
"
tru
e"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<search-form
class=
"searchTop border-shadow"
:isHasSyncBtn=
"true"
:showDefaultTime=
"
fals
e"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
:formModel=
"searchForm"
:formList=
"clientGroupFormList"
@
setTableHeightEvent=
"setTableHeightEvent"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -20,6 +20,7 @@
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<auth-button
:data=
"scope.scope"
></auth-button>
-->
<span
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
class=
"blue-text"
>
详情
</span>
<!--
<GLButton
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
fn=
"客户群详情"
type=
"text"
>
详情
</GLButton>
-->
</
template
>
</GLTable>
</div>
...
...
@@ -38,10 +39,6 @@ export default {
isReload
:
true
,
url
:
url
,
sloading
:
false
,
titles
:
[
{
name
:
'客户群总数'
,
num
:
100
,
rate
:
'+10%'
,
isUp
:
true
,
tips
:
'群提示消息1'
},
{
name
:
'新增客户群数'
,
num
:
100
,
rate
:
'+10%'
,
isUp
:
true
,
tips
:
'群提示消息2'
}
],
searchForm
:
{},
searchFormTable
:
{},
clientGroupFormList
:
[
...
...
@@ -87,19 +84,34 @@ export default {
prop
:
'custGroupName'
,
minWidth
:
160
},
{
label
:
'当前成员总数'
,
prop
:
'allMembers'
,
minWidth
:
140
},
{
label
:
'当前客户数'
,
prop
:
'totalCount'
,
minWidth
:
100
},
{
label
:
'新增入群客户数'
,
label
:
'
当日
新增入群客户数'
,
prop
:
'newCustomerCount'
,
minWidth
:
1
4
0
minWidth
:
1
6
0
},
{
label
:
'新增退群客户数'
,
label
:
'
当日
新增退群客户数'
,
prop
:
'delCustomerCount'
,
minWidth
:
160
},
{
label
:
'当前跟进员工数'
,
prop
:
'staffs'
,
minWidth
:
140
},
{
label
:
'创建方式'
,
prop
:
'creationMethod'
,
minWidth
:
140
},
{
...
...
@@ -113,7 +125,7 @@ export default {
{
label
:
'创建时间'
,
prop
:
'addTime'
,
width
:
188
width
:
95
}
],
tableOption
:
{
...
...
@@ -179,15 +191,16 @@ export default {
},
setTableFinishFun
(
content
)
{
console
.
log
(
content
,
this
.
$refs
.
clientGroupManage
.
data
.
length
,
'获取数据'
)
if
(
!
this
.
flushTime
)
{
this
.
flushTime
=
true
this
.
searchTable
()
}
//
if (!this.flushTime) {
//
this.flushTime = true
//
this.searchTable()
//
}
//接收到的数据为空
if
(
!
this
.
$refs
.
clientGroupManage
.
data
.
length
)
{
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
}
// if (!this.$refs.clientGroupManage.data.length) {
// this.$refs.clientGroupManage.setTableHeightFun()
// }
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
},
searchTable
()
{
this
.
$refs
.
clientGroupManage
.
refreshTable
()
...
...
@@ -212,9 +225,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
})
// this.$refs.clientGroupManage.refreshTable()
},
btnClick
(
ptype
,
scope
)
{},
goDetail
(
id
,
name
)
{
this
.
$router
.
push
({
path
:
'/clientGroupManage/clientGroupDetail'
,
...
...
src/views/clientManage/clientDetail.vue
View file @
912eda4
...
...
@@ -19,7 +19,7 @@
<span>
<!--
{{
leftPanelInfo
.
customerName
}}
-->
{{
beautySub
(
leftPanelInfo
.
customerName
)
}}
<span
style=
"color:#5850ff"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</span>
<span
style=
"color:
#5850ff"
>
{{
leftPanelInfo
.
type
==
1
?
'@微信'
:
leftPanelInfo
.
type
==
2
?
'@企微'
:
''
}}
</span>
</span>
</span>
</el-tooltip>
...
...
@@ -67,113 +67,91 @@
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLabel
}}
</span>
</el-tooltip>
</p>
<p>
<span>
渠道来源
</span>
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.sourceChannel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
sourceChannel
}}
</span>
</el-tooltip>
</p>
</div>
<div
class=
"rightWrap"
>
<p><span>
标签信息
</span></p>
<div
class=
"choseRow"
>
<span
class=
"tabItemText"
:class=
"
{ activeItemText: currentIndex == 1 }" @click="tabClick(1)">概况
</span>
<span
class=
"tabItemText"
:class=
"
{ activeItemText: currentIndex == 2 }" @click="tabClick(2)">标签信息
</span>
</div>
<template
v-if=
"currentIndex == 1"
>
<!--
<p><span>
标签信息
</span></p>
<div
class=
"tagsWrap"
>
<!--
<el-tooltip
effect=
"dark"
:content=
"leftPanelInfo.addWay | toLabel"
placement=
"top"
>
<span
class=
"ellipsis-1"
>
{{
leftPanelInfo
.
addWay
|
toLabel
}}
</span>
</el-tooltip>
-->
<span
class=
"tag ellipsis-1"
v-for=
"item in tagsList"
:key=
"item.labelId"
:title=
"item.labelValue"
>
{{
item
.
labelValue
}}
</span>
<!-- 添加标签 仅对该客户的跟进员工可见(要有登录信息)1--商户 2--员工-->
添加标签 仅对该客户的跟进员工可见(要有登录信息)1--商户 2--员工
<span
class=
"tag addTag"
@
click=
"btnClick('create')"
v-if=
"userType == 2"
>
添加
</span>
</div>
-->
<p>
<span>
车辆信息
</span>
<span>
{{
vehicleTableData
.
length
||
0
}}
辆
</span>
</p>
<!--1. 车辆信息表 -->
<!-- :row-style="
{ height: 88 + 'px' }" -->
<GLTable
:hasNum=
"false"
:tableData=
"vehicleTableData"
:hasPage=
"false"
:tableParams=
"vehicleTableParams"
:headerStyle=
"
{ height: '54px' }">
<span
slot=
"standNo"
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
.
standNo
)
}}
</span>
</span>
</GLTable>
<p>
<span>
跟进员工
</span>
<span>
{{
employTableList
.
length
||
0
}}
人
</span>
</p>
<!--2. 员工跟进表 -->
<GLTable
:hasNum=
"false"
:tableData=
"employTableList"
:hasPage=
"false"
:tableParams=
"employTableParams"
:headerStyle=
"
{ height: '54px' }">
<span
slot=
"addWay"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
addWay
|
toLabel
}}
</span>
</span>
<span
slot=
"addType"
slot-scope=
"scope"
>
<span>
{{
addTypeToLable
(
scope
.
scope
.
addType
)
}}
</span>
</span>
</GLTable>
<p>
<span>
所属群聊
</span>
<span>
{{
clientGroupTableList
.
length
||
0
}}
个
</span>
</p>
<GLTable
:hasNum=
"false"
:tableData=
"clientGroupTableList"
:hasPage=
"false"
:tableParams=
"clientGroupTableParams"
:headerStyle=
"
{ height: '54px' }">
<span
slot=
"groupName"
slot-scope=
"scope"
>
<span>
{{
scope
.
scope
.
groupName
||
'群聊(默认)'
}}
</span>
</span>
<div
class=
"table-btns"
slot=
"optionBtns"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goDetail(scope.scope.id, scope.scope.groupName)"
>
详情
</el-button>
</div>
</GLTable>
</
template
>
<div
v-show=
"currentIndex == 2"
class=
"clientTagsWrap"
>
<div
style=
"height:40px"
></div>
<!-- v-if="userType == 2" -->
<el-button
type=
"primary"
class=
"addTagBtn"
size=
"small"
@
click=
"btnClick('create')"
v-if=
"userType == 2"
>
添加标签
</el-button>
<GLTable
ref=
"clientTagsListRef"
:hasNum=
"false"
:noDataImg=
"url"
noDataText=
"客户暂无已添加的标签"
:tableData=
"clientTagsList"
:hasPage=
"false"
:tableParams=
"tagsParams"
:headerStyle=
"{ height: '54px' }"
>
<span
slot=
"labelGroupInfo"
slot-scope=
"scope"
>
<span>
{{ scope.scope.labelGroupInfo.labelGroupName }}
</span>
</span>
<span
slot=
"labelInfoList"
slot-scope=
"scope"
>
<div
id=
"allTagsWrap"
class=
"allTagsWrap"
>
<span
v-for=
"(item, index) in showTagArray(scope.scope.labelInfoList)"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<el-tooltip
class=
"item"
:content=
"item.labelName"
placement=
"top"
>
<span>
{{ item.labelName }}
</span>
</el-tooltip>
</span>
<el-popover
v-if=
"scope.scope.labelInfoList.length > 9"
class=
"ellipsis-1 tag-box-wrap"
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span
slot=
"reference"
>
...({{ scope.scope.labelInfoList.length }})
</span>
<div
class=
"entmicro-hover"
style=
"height: 214px; overflow-y: auto"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
style=
"margin-right: 10px; margin-bottom: 10px; max-width: 200px"
v-for=
"(i, sindex) in scope.scope.labelInfoList"
:key=
"sindex"
:disable-transitions=
"false"
>
<el-tooltip
class=
"item"
:content=
"i.labelName"
placement=
"top"
>
<span>
{{ i.labelName }}
</span>
</el-tooltip>
</el-tag>
</div>
</el-popover>
</div>
</span>
</GLTable>
</div>
<p>
<span>
车辆信息
</span>
<span>
{{
vehicleTableData
.
length
||
0
}}
辆
</span>
</p>
<!--1. 车辆信息表 -->
<!-- :row-style="
{ height: 88 + 'px' }" -->
<el-table
:data=
"vehicleTableData"
style=
"width: 100%"
:header-cell-style=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column
prop=
"standNo"
label=
"车架号(后6位)"
align=
"center"
width=
"120"
>
<template
slot-scope=
"scope"
>
<span>
{{
myStandNo
(
scope
.
scope
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"vehicleNo"
label=
"车牌号"
align=
"center"
></el-table-column>
<el-table-column
prop=
"vehicleBrand"
label=
"车辆品牌"
align=
"center"
></el-table-column>
<el-table-column
prop=
"vehicleTrain"
label=
"车系"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
:content=
"scope.row.vehicleTrain"
placement=
"top"
>
<p
class=
"showOverTooltip"
>
{{
scope
.
row
.
vehicleTrain
}}
</p>
</el-tooltip>
</
template
>
</el-table-column>
<el-table-column
prop=
"vehicleType"
label=
"车型"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-tooltip
:content=
"scope.row.vehicleType"
placement=
"top"
>
<p
class=
"showOverTooltip"
>
{{
scope
.
row
.
vehicleType
}}
</p>
</el-tooltip>
</
template
>
</el-table-column>
<el-table-column
prop=
"vehicleModelYear"
label=
"年款"
align=
"center"
></el-table-column>
<el-table-column
prop=
"vehiclePrice"
label=
"购车价格"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
vehiclePrice
||
''
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"buyTime"
label=
"购车时间"
align=
"center"
></el-table-column>
<el-table-column
prop=
"insBgnTime"
label=
"保险开始时间"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"insEndTime"
label=
"保险到期时间"
align=
"center"
width=
"120"
></el-table-column>
<el-table-column
prop=
"maintRecTime"
label=
"最近保养时间"
align=
"center"
width=
"120"
></el-table-column>
<!-- 无数据插槽用法 -->
<!-- <div slot="empty" class="emptyBg">
<img src="@/assets/clientDataOverview/nodata.png" alt="">
<div>暂无数据</div>
</div> -->
</el-table>
<p>
<span>
跟进员工
</span>
<span>
{{ employTableList.length || 0 }}人
</span>
</p>
<!-- <div></div> -->
<!--2. 员工跟进表 -->
<GLTable
:hasNum=
"false"
:tableData=
"employTableList"
:hasPage=
"false"
:tableParams=
"tableParams"
:headerStyle=
"{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"
>
<span
slot=
"addWay"
slot-scope=
"scope"
>
<span>
{{ scope.scope.addWay | toLabel }}
</span>
</span>
<span
slot=
"addType"
slot-scope=
"scope"
>
<span>
{{ addTypeToLable(scope.scope.addType) }}
</span>
</span>
</GLTable>
<!-- <el-table :data="employTableList" style="width: 100%" :header-cell-style="{ background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column prop="staffName" label="跟进员工" align="center"></el-table-column>
<el-table-column prop="departmentName" label="所属部门" align="center"></el-table-column>
<el-table-column prop="addTime" label="添加时间" align="center"></el-table-column>
<el-table-column prop="addWay" label="来源" align="center">
<template slot-scope="scope">
<el-tooltip :content="scope.row.addWay" placement="top">
<p class="showOverTooltip">{{ scope.row.addWay }}</p>
</el-tooltip>
</template>
</el-table-column>
<el-table-column prop="addType" label="添加类型" align="center"></el-table-column>
<el-table-column prop="remarkMobiles" label="备注手机号" align="center"></el-table-column>
<el-table-column prop="remark" label="备注" align="center"></el-table-column>
<el-table-column prop="description" label="描述" align="center"></el-table-column>
</el-table> -->
<p>
<span>
所属群聊
</span>
<span>
{{ clientGroupTableList.length || 0 }}个
</span>
</p>
<!-- <div>所属客户群表格,待定</div> -->
<!-- 3.所属客户群/群聊 -->
<el-table
:data=
"clientGroupTableList"
style=
"width: 100%"
:header-cell-style=
"{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }"
>
<el-table-column
label=
"客户群名称"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
groupName
||
'群聊(默认)'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"groupHostName"
label=
"群主"
align=
"center"
></el-table-column>
<el-table-column
prop=
"membersNumber"
label=
"客户数"
align=
"center"
></el-table-column>
<el-table-column
prop=
"groupNickName"
label=
"本群昵称"
align=
"center"
></el-table-column>
<el-table-column
prop=
"joinTime"
label=
"入群时间"
align=
"center"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
class=
"blue-text"
@
click=
"goDetail(scope.row.id, scope.row.groupName)"
>
详情
</span>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
<basic-dialog
class=
"tags"
:title=
"tagsDialogTitle"
:width=
"'712px'"
:isShowThirdBtn=
"true"
@
btnEvent=
"goNewTag"
:isVisible=
"tagsVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
...
...
@@ -185,14 +163,17 @@
<span
v-for=
"(i, j) in item.labelList"
:key=
"j"
class=
"ellipsis-1"
:class=
"{ activeTag: i.checked }"
:title=
"i.name"
@
click=
"checkNewTag(i.checked, j, item.labelList, i.original)"
>
{{ i.name }}
</span>
</div>
</div>
<!-- <p class="dialogSubTitle">自店标签</p>
<
template
v-if=
"merchantModel == 1 && accountLevel == 4"
>
<p
class=
"dialogSubTitle"
>
自店标签
</p>
<div
class=
"ownShopRowData"
v-for=
"(xItem, xIndex) in ownShopTagsList"
:key=
"xIndex"
>
<span
:title=
"xItem.labelGroup.name"
>
{{
xItem
.
labelGroup
.
name
}}
</span>
<div
class=
"tagsBox"
>
<span
v-for=
"(m, n) in xItem.labelList"
:key=
"n"
class=
"ellipsis-1"
:class=
"
{ activeTag: m.checked }" :title="m.name" @click="checkNewTag(m.checked, n, xItem.labelList, m.original)">
{{
m
.
name
}}
</span>
</div>
</div> -->
</div>
</
template
>
<!-- 这里btn-behind插槽莫名失效了,原因:??? -->
<!-- <el-button slot="behind" @click="goNewTag">没找到需要的标签,创建新标签</el-button> -->
</slot>
...
...
@@ -202,10 +183,12 @@
<
script
>
import
{
getAllTagTree
,
getSingleClientTag
,
addSingleClientTag
,
getTableDetail
}
from
'@/api/modules/clientManage'
import
url
from
"@/assets/clientDetail/noDataBox.png"
export
default
{
name
:
'clientDetail'
,
data
()
{
return
{
url
:
url
,
leftPanelInfo
:
{},
labelIdList
:
[],
//存放用户被标记标签的id
tagsList
:
[
...
...
@@ -213,10 +196,77 @@ export default {
// { name: '初次沟通', id: 2 }
],
vehicleTableData
:
[],
vehicleTableParams
:
{
listName
:
'vehicleInfoList'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'车架号(后6位)'
,
prop
:
'standNo'
,
addHtml
:
'standNo'
,
minWidth
:
'120'
},
{
label
:
'车牌号'
,
prop
:
'vehicleNo'
,
minWidth
:
'100'
},
{
label
:
'车辆品牌'
,
prop
:
'vehicleBrand'
,
minWidth
:
'100'
},
{
label
:
'车系'
,
prop
:
'vehicleTrain'
,
width
:
160
,
line
:
2
},
{
label
:
'车型'
,
prop
:
'vehicleType'
,
width
:
160
,
line
:
2
},
{
label
:
'年款'
,
prop
:
'vehicleModelYear'
,
minWidth
:
'100'
},
{
label
:
'购车价格'
,
prop
:
'vehiclePrice'
,
minWidth
:
'100'
,
formatter
:
cellValue
=>
{
return
cellValue
.
vehiclePrice
||
''
}
},
{
label
:
'购车时间'
,
prop
:
'buyTime'
,
minWidth
:
'120'
},
{
label
:
'保险开始时间'
,
prop
:
'insBgnTime'
,
minWidth
:
'120'
},
{
label
:
'保险到期时间'
,
prop
:
'insEndTime'
,
minWidth
:
'120'
},
{
label
:
'最近保养时间'
,
prop
:
'maintRecTime'
,
minWidth
:
'120'
}
]
},
//员工跟进
t
ableParams
:
{
employT
ableParams
:
{
listName
:
'staffFollows'
,
// tableOption: tru
e,
tableOption
:
fals
e
,
tableColumns
:
[
{
label
:
'跟进员工'
,
...
...
@@ -257,8 +307,64 @@ export default {
]
},
employTableList
:
[],
employTableTotal
:
0
,
clientGroupTableList
:
[],
clientGroupTableParams
:
{
listName
:
'customerBases'
,
tableColumns
:
[
{
label
:
'客户群名称'
,
prop
:
'groupName'
,
addHtml
:
'groupName'
},
{
label
:
'群主'
,
prop
:
'groupHostName'
},
{
label
:
'客户数'
,
prop
:
'membersNumber'
},
{
label
:
'本群昵称'
,
prop
:
'groupNickName'
},
{
label
:
'入群时间'
,
prop
:
'joinTime'
},
{
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'80px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
]
// tableOption:{
// width:80
// }
},
//标签信息的内容
currentIndex
:
1
,
clientTagsList
:
[],
tagsParams
:
{
listName
:
'labelInfos'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'标签组'
,
prop
:
'labelGroupInfo'
,
addHtml
:
'labelGroupInfo'
,
width
:
'160'
},
{
label
:
'已打标签'
,
prop
:
'labelInfoList'
,
addHtml
:
'labelInfoList'
,
align
:
'left'
}
]
},
//弹窗数据
tagsDialogTitle
:
'添加标签'
,
tagsVisible
:
false
,
...
...
@@ -271,39 +377,59 @@ export default {
storeTagList
:
[],
merchantId
:
10001001
,
merchantModel
:
1
,
//集团:1,门店:2
accountLevel
:
0
,
//1,2,3,4工厂,省代,市代,门店
userType
:
0
,
//1是商户,2是员工
userid
:
0
//小龙需要用户id
userid
:
0
//小龙需要用户id
}
},
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
console
.
log
(
'欠款'
,
this
.
$globalState
.
session
)
this
.
merchantId
=
this
.
$globalState
.
session
.
merchantId
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
userType
=
this
.
$globalState
.
session
.
userType
}
this
.
getPageDetail
()
//舍弃调用小龙的获取单用户标签的接口
// this.getSingleClientTag(this.$route.query.id, this.merchantId)
console
.
log
(
this
.
tagsParams
,
'kkkk'
)
},
methods
:
{
tabClick
(
index
){
// if (!this.$refs.memberOrderRef.data.length) {
// this.$refs.memberOrderRef.setTableHeightFun()
// }
this
.
currentIndex
=
index
if
(
this
.
currentIndex
==
2
&&
this
.
clientTagsList
.
length
<=
0
){
this
.
$refs
.
clientTagsListRef
.
setTableHeightFun
()
}
},
showTagArray
(
list
)
{
if
(
list
.
length
==
0
)
{
return
[]
}
return
list
.
slice
(
0
,
9
)
},
/* *
用途:js中字符串超长作固定长度加省略号(...)处理
参数说明:
str:需要进行处理的字符串,可含汉字
len:需要显示多少个汉字,两个英文字母相当于一个汉字
*/
myStandNo
(
row
)
{
if
(
!
row
)
{
myStandNo
(
standNo
)
{
if
(
!
standNo
)
{
return
''
}
return
row
.
standNo
.
substring
(
row
.
standNo
.
length
-
6
)
return
standNo
.
substring
(
standNo
.
length
-
6
)
},
beautySub
(
value
)
{
if
(
value
&&
value
.
length
>=
7
)
{
return
value
.
substring
(
0
,
6
)
+
'...'
if
(
value
&&
value
.
length
>=
6
)
{
return
value
.
substring
(
0
,
5
)
+
'...'
}
else
{
return
value
}
...
...
@@ -357,13 +483,14 @@ export default {
if
(
!
res
)
{
return
false
}
this
.
userid
=
res
.
userid
;
this
.
userid
=
res
.
userid
this
.
leftPanelInfo
=
res
.
info
this
.
vehicleTableData
=
res
.
vehicleInfoList
||
[]
this
.
employTableList
=
res
.
staffFollows
||
[]
this
.
clientGroupTableList
=
res
.
customerBases
||
[]
this
.
tagsList
=
res
.
labels
||
[]
this
.
labelIdList
=
(
res
.
labels
||
[]).
map
(
item
=>
item
.
labelId
)
this
.
clientTagsList
=
res
.
labelInfos
||
[]
},
goNewTag
()
{
this
.
$router
.
push
({
path
:
'/tagsManage/index'
})
...
...
@@ -439,7 +566,7 @@ export default {
'req.labelGroupId'
:
item
.
labelGroup
.
id
,
'req.edition'
:
this
.
merchantModel
,
'req.merchantId'
:
this
.
merchantId
,
'req.staffId'
:
this
.
userid
'req.staffId'
:
this
.
userid
// 'req.labelIdList': item.labelList.map(ele => ele.id)
}
var
ids
=
item
.
labelList
.
map
(
ele
=>
ele
.
id
)
...
...
@@ -597,12 +724,75 @@ export default {
box-sizing
:
border-box
;
background-color
:
#fff
;
padding
:
20px
;
position
:
relative
;
.choseRow
{
position
:
absolute
;
width
:
100%
;
left
:
0
;
top
:
0
;
display
:
flex
;
background-color
:
$
bgColor
;
.tabItemText
{
display
:
inline-block
;
height
:
40px
;
line-height
:
40px
;
width
:
180px
;
box-sizing
:
border-box
;
background
:
#ffffff
;
text-align
:
center
;
border
:
1px
solid
#eeedff
;
cursor
:
pointer
;
&:first-child
{
border-left
:
0
;
}
font-weight
:
400
;
font-size
:
14px
;
color
:
#37383a
;
}
.activeItemText
{
border-radius
:
4px
4px
0
0
;
color
:
$
btnBlue
;
font-weight
:
600
;
box-sizing
:
border-box
;
border-bottom
:
0
!important
;
}
}
.addTagBtn
{
margin-bottom
:
10px
;
}
//
处理客户标签的样式
.clientTagsWrap
{
.allTagsWrap
{
position
:
relative
;
.tag-box-wrap
{
display
:
inline-block
;
margin-right
:
10px
;
//
margin-bottom
:
2px
;
padding
:
0
10px
;
box-sizing
:
border-box
;
min-width
:
76px
;
max-width
:
200px
;
height
:
26px
;
line-height
:
26px
;
border-radius
:
4px
;
border
:
1px
solid
#e8e8ea
;
background
:
#fafbfe
;
text-align
:
center
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#666666
;
max-width
:
245px
;
cursor
:
pointer
;
}
}
}
.showOverTooltip
{
display
:
-webkit-box
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
/*这里是2行*/
/*这里是2行*/
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
...
...
src/views/clientManage/index.vue
View file @
912eda4
...
...
@@ -3,7 +3,7 @@
<div
class=
"scrm-sub-client-container"
>
<!--
<p
class=
"pageTitle"
>
客户管理
</p>
-->
<div
class=
"pageContent"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"
tru
e"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<search-form
:ploading=
"sloading"
:isHasSyncBtn=
"true"
:showDefaultTime=
"
fals
e"
:merchantModel=
"merchantModel"
:accountLevel=
"accountLevel"
class=
"searchTop border-shadow"
:formModel=
"searchForm"
:formList=
"clientManageFormList"
@
resetTable=
"resetTable"
@
searchTable=
"searchTable"
@
syncClick=
"syncClick"
>
<span
class=
"inline-b"
slot=
"form-slot"
>
<el-button
plain
@
click=
"resetTable"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"searchTable"
>
查询
</el-button>
...
...
@@ -25,16 +25,19 @@
</span>
<div
slot=
"followStaff"
class=
"entmicro"
slot-scope=
"scope"
>
<div
class=
"entmicro-tag"
v-for=
"(tag, idx) in followList(scope.scope.followStaff)"
:key=
"idx"
>
<el-tag
type=
"info"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
</el-tag>
<el-tooltip
effect=
"dark"
:content=
"tag"
placement=
"top"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
v-if=
"idx
< 3
"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
{{
tag
}}
</el-tag>
</el-tooltip>
<el-tag
type=
"info"
v-if=
"followList(scope.scope.followStaff).length > 3 && idx == 3"
>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<
span
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</span
>
<
div
slot=
"reference"
>
...(
{{
followList
(
scope
.
scope
.
followStaff
).
length
}}
)
</div
>
<div
class=
"entmicro-hover"
>
<el-tag
type=
"info"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
></i>
<el-tag
type=
"info"
style=
"margin-right: 10px; margin-bottom: 10px"
v-for=
"(i, index) in followList(scope.scope.followStaff)"
:key=
"index"
:disable-transitions=
"false"
>
<i
class=
"el-icon-user-solid"
style=
"color: #75acff"
></i>
<!--
{{
i
.
staffName
}}{{
i
.
departmentName
?
`(${i.departmentName
}
)`
:
''
}}
-->
{{
i
}}
<
/el-tag
>
...
...
@@ -67,8 +70,8 @@
<
/template> --
>
<
div
class
=
"table-btns"
slot
=
"optionBtns"
slot
-
scope
=
"scope"
>
<
el
-
button
type
=
"text"
@
click
=
"goDetail(scope.scope.oneId)"
>
详情
<
/el-button
>
<!--
<
GLButton
@
click
=
"goDetail(scope.scope.oneId)"
fn
=
"客户详情"
type
=
"text"
>
详情
<
/GLButton> --
>
<
/div
>
<
/GLTable
>
<
/div
>
<
/div
>
...
...
@@ -182,36 +185,36 @@ export default {
// btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName
:
'data'
,
// tableOption: true,
tableOption
:
false
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'客户ID'
,
prop
:
'oneId'
,
width
:
18
0
minWidth
:
16
0
}
,
{
label
:
'客户名称'
,
prop
:
'customerName'
,
addHtml
:
'customerName'
,
width
:
16
0
minWidth
:
15
0
}
,
{
label
:
'手机号'
,
prop
:
'customerPhone'
,
addHtml
:
'customerPhone'
,
w
idth
:
110
minW
idth
:
110
}
,
{
label
:
'性别'
,
prop
:
'customerSex'
,
addHtml
:
'customerSex'
,
w
idth
:
80
minW
idth
:
80
}
,
{
label
:
'跟进员工'
,
prop
:
'followStaff'
,
addHtml
:
'followStaff'
,
minWidth
:
1
1
0
minWidth
:
1
2
0
}
,
{
label
:
'来源'
,
...
...
@@ -220,6 +223,11 @@ export default {
minWidth
:
100
}
,
{
label
:
'渠道来源'
,
prop
:
'sourceChannel'
,
width
:
100
}
,
{
label
:
'是否加企微'
,
//1. 加入,0.未加入
prop
:
'isJoin'
,
addHtml
:
'isJoin'
,
...
...
@@ -229,21 +237,21 @@ export default {
label
:
'当前状态'
,
prop
:
'status'
,
addHtml
:
'status'
,
w
idth
:
100
minW
idth
:
100
}
,
{
label
:
'添加时间'
,
prop
:
'addTime'
,
width
:
18
8
width
:
9
8
}
,
{
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'80px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'80px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
]
,
]
// tableOption:
{
// width: 80
//
}
...
...
@@ -255,9 +263,9 @@ export default {
flushTime
:
false
}
}
,
activated
()
{
this
.
searchTable
()
}
,
//
activated()
{
//
this.searchTable()
//
}
,
created
()
{
if
(
window
.
__POWERED_BY_QIANKUN__
)
{
//运行在qiankun容器中
...
...
@@ -280,10 +288,12 @@ export default {
this
.
$refs
.
clientManage
.
setTableHeightFun
()
}
,
setTableFinishFun
(
content
)
{
if
(
!
this
.
flushTime
)
{
this
.
flushTime
=
true
this
.
searchTable
()
}
//关闭默认时间30天再刷新,showDefaultTime也要设置false
// if (!this.flushTime)
{
// this.flushTime = true
// this.searchTable()
//
}
//接收到的数据为空
// if (!this.$refs.clientManage.data.length)
{
// this.$refs.clientManage.setTableHeightFun()
...
...
@@ -439,13 +449,10 @@ export default {
font
-
size
:
14
px
;
}
}
// span
{
// line-height: 20px;
//
}
}
.
el
-
tag
{
margin
-
right
:
10
px
;
ma
rgin
-
bottom
:
10
px
;
//
margin-right: 10px;
ma
x
-
width
:
1
10
px
;
cursor
:
pointer
;
background
-
color
:
#
fff
!
important
;
}
...
...
src/views/guestGroup/add.vue
View file @
912eda4
...
...
@@ -108,6 +108,7 @@ import Vue from 'vue'
import
SelectMembers
from
'./components/selectMembers.vue'
// import Preview from './components/preview.vue'
export
default
{
name
:
'guestGroupAdd'
,
components
:
{
// WelcomeWords,
SelectMembers
...
...
@@ -138,34 +139,51 @@ export default {
}
}
}
const
nameVaild
=
(
rule
,
value
,
callback
)
=>
{
console
.
log
(
this
.
$route
.
params
.
id
)
if
(
value
)
{
const
params
=
{
templateName
:
value
}
let
api
=
'nameVaild'
if
(
this
.
$route
.
params
.
id
)
{
params
.
id
=
this
.
$route
.
params
.
id
api
=
'updateNameVaild'
}
this
.
$apis
.
groupGuest
[
api
](
params
).
then
(
res
=>
{
if
(
res
)
{
callback
(
new
Error
(
'群聊名称不可重复'
))
}
else
{
callback
()
}
})
}
}
return
{
eventBus
:
new
Vue
(),
basicForm
:
{},
basicRules
:
{
orgName
:
[{
required
:
true
,
message
:
'请输入组名'
,
trigger
:
'blur'
}],
groupName
:
[{
required
:
true
,
message
:
'请输入群聊名称'
,
trigger
:
'blur'
}],
orgName
:
[{
required
:
true
,
message
:
'请输入组名'
,
trigger
:
'change'
}],
groupName
:
[{
required
:
true
,
message
:
'请输入群聊名称'
,
trigger
:
'change'
},
{
validator
:
nameVaild
,
trigger
:
'blur'
}],
userList
:
[
// { required: true, message: '请选择默认成员', trigger: 'change' },
{
validator
:
validatorUser
,
trigger
:
'
change
'
}
{
validator
:
validatorUser
,
trigger
:
'
blur
'
}
]
},
membersVisible
:
false
,
key
:
new
Date
(),
previewFlag
:
false
,
selectData
:
[]
selectData
:
[],
editStatus
:
false
}
},
watch
:
{
$route
(
val
)
{
if
(
val
.
params
)
{
const
id
=
val
.
params
.
id
if
(
id
&&
id
!=
-
1
)
{
this
.
getDetail
(
id
)
}
else
{
if
(
this
.
$refs
.
groupForm
)
this
.
$refs
.
groupForm
.
clearValidate
()
this
.
selectData
=
[]
}
}
basicForm
:
{
handler
(
val
)
{
this
.
editStatus
=
true
},
deep
:
true
}
},
mounted
()
{
...
...
@@ -223,7 +241,7 @@ export default {
type
:
'success'
,
message
:
'操作成功!'
})
this
.
handleCancel
(
)
this
.
$router
.
push
(
'/guestGroup/index'
)
}
})
.
catch
(
err
=>
{
...
...
@@ -248,15 +266,28 @@ export default {
}
// this.$refs.welcome.updateList(res.attachmentList)
this
.
selectData
=
res
.
userList
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
})
}
})
},
handleCancel
()
{
// this.$router.go(-1)
this
.
$router
.
push
({
path
:
'/guestGroup/index'
})
this
.
basicForm
=
{}
// this.$refs.welcome.updateList([])
this
.
selectData
=
[]
// this.$router.push({ path: '/guestGroup/index' })
if
(
this
.
editStatus
)
{
this
.
$confirm
(
'当前有内容信息未保存,是否继续返回?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$router
.
push
(
'/guestGroup/index'
)
})
.
catch
(()
=>
{})
}
else
{
this
.
$router
.
push
(
'/guestGroup/index'
)
}
},
remove
(
val
,
idx
)
{
console
.
log
(
val
,
idx
)
...
...
src/views/guestGroup/components/selectEmp.vue
View file @
912eda4
...
...
@@ -87,8 +87,10 @@ export default {
this
.
$apis
.
groupGuest
.
listDepartmentTree
(
params
).
then
(
res
=>
{
this
.
listTree
=
res
this
.
loading
=
false
// this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
if
(
this
.
listTree
.
length
)
{
this
.
listTree
[
0
].
entmicroStaffResponses
=
this
.
getEmployee
(
this
.
listTree
)
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
this
.
listTree
[
0
].
entmicroStaffResponses
)
}
this
.
selectData
.
forEach
(
i
=>
{
const
row
=
this
.
getEmployee
(
this
.
listTree
).
find
(
j
=>
j
.
id
==
i
.
staffId
)
this
.
clearSelect
(
row
)
...
...
@@ -108,14 +110,18 @@ export default {
handleNodeClick
(
data
)
{
this
.
departmentId
=
data
.
id
this
.
tableEmpData
=
data
.
entmicroStaffResponses
this
.
currentArr
=
this
.
$common
.
utils
.
deepClone
(
data
.
entmicroStaffResponses
)
//
this.currentArr = this.$common.utils.deepClone(data.entmicroStaffResponses)
// this.listEntmicroStaff()
},
getEmployee
(
d
,
arr
=
[])
{
d
.
forEach
(
i
=>
{
if
(
i
.
entmicroStaffResponses
)
{
i
.
entmicroStaffResponses
.
forEach
(
j
=>
{
arr
.
push
(
j
)
// arr.push(j)
const
flag
=
arr
.
find
(
m
=>
m
.
id
==
j
.
id
)
if
(
!
flag
)
{
arr
.
push
(
j
)
}
})
}
if
(
i
.
children
)
{
...
...
src/views/guestGroup/index.vue
View file @
912eda4
<
template
>
<div
class=
"scrm-sub-client-container"
>
<div
class=
"btn-header"
>
<button
class=
"addBtn"
@
click=
"btnClick('create')"
>
新建群组
</button>
<!--
<el-button
class=
"addBtn"
@
click=
"btnClick('create')"
>
新建群组
</el-button>
-->
<GLButton
class=
"addBtn"
@
click=
"btnClick('create')"
fn=
"新建群组"
>
新建群组
</GLButton>
<span
class=
"toptips"
>
<span>
配置群聊不会自动拉群,邀请客户入群后群聊才会正式生效,一个客户默认拉一个群聊。
</span>
</span>
...
...
@@ -69,11 +70,13 @@
>
{{
scope
.
scope
.
status
==
'1'
?
'启用'
:
'停用'
}}
<
/span
>
<
/span
>
<
div
class
=
"table-btns"
slot
=
"optionBtns"
slot
-
scope
=
"scope"
>
<
el
-
button
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
>
修改
<
/el-button
>
<
el
-
button
<!--
<
el
-
button
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
>
修改
<
/el-button> --
>
<
GLButton
type
=
"text"
@
click
=
"btnClick('edit', scope.scope)"
fn
=
"修改群组"
>
修改
<
/GLButton
>
<
GLButton
type
=
"text"
@
click
=
"btnClick('status', scope.scope)"
fn
=
"启用禁用"
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/GLButton
>
<!--
<
el
-
button
type
=
"text"
@
click
=
"btnClick('status', scope.scope)"
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/el-button
>
>
{{
scope
.
scope
.
status
==
1
?
'停用'
:
'启用'
}}
<
/el-button>
--
>
<
/div
>
<
/GLTable
>
<!--
表格区域
end
-->
...
...
@@ -84,6 +87,7 @@
<
script
>
import
url
from
'@/assets/clientDataOverview/nodata.png'
export
default
{
name
:
'guestGroup'
,
data
()
{
return
{
url
:
url
,
...
...
@@ -229,11 +233,11 @@ export default {
]
}
}
,
watch
:
{
$route
(
val
)
{
if
(
val
.
path
==
'/guestGroup/index'
)
this
.
searchTable
()
}
}
,
//
watch:
{
//
$route(val)
{
//
if (val.path == '/guestGroup/index') this.searchTable()
//
}
//
}
,
mounted
()
{
}
,
methods
:
{
//搜索表格
...
...
@@ -267,7 +271,7 @@ export default {
this
.
searchTable
()
this
.
$message
({
type
:
'success'
,
message
:
'操作成功
!
'
message
:
'操作成功'
}
)
}
}
)
...
...
src/views/tagsManage/index.vue
View file @
912eda4
...
...
@@ -6,12 +6,13 @@
<span
class=
"toptips"
>
<!-- v-if="!((merchantModel==2 && accountLevel==4) || (merchantModel==1 && accountLevel==1))" -->
<span>
共有
{{
numberObj
.
groupCount
||
0
}}
个标签组,
{{
numberObj
.
bizLabelCount
||
0
}}
个企业标签
共有
{{
numberObj
.
groupCount
||
0
}}
个标签组
<template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
,
{{
numberObj
.
bizLabelCount
||
0
}}
个企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
,
{{
numberObj
.
rcLabelCount
||
0
}}
个自店标签
</
template
>
</span>
<span
class=
"iconPanelWrap"
v-if=
"!isFirstShow"
>
<el-popover
placement=
"top"
width=
"666"
trigger=
"hover"
>
<div>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</div>
<div
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</div>
<div
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</div>
<div>
行业标签为通过大数据算法规则生成的标签
</div>
<img
src=
"@/assets/tagsManage/question.png"
slot=
"reference"
alt=
""
/>
...
...
@@ -19,7 +20,7 @@
</span>
</span>
<div
class=
"initPanel"
v-if=
"isFirstShow"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签为全局标签,员工可在企微APP端客户详情、客户跟进等模块查看和打标签,最多3000个;
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
自店标签为企业商户自有标签,员工可在企微APP端客户跟进等模块查看和打标签,最多3000个;
</
template
>
行业标签为通过大数据算法规则生成的标签
<img
src=
"@/assets/tagsManage/Shape.png"
alt=
""
/>
...
...
@@ -44,36 +45,31 @@
<!-- :class="[expande ? 'expande' : 'close']" -->
<div
id=
"allTagsWrap"
class=
"allTagsWrap"
>
<span
v-for=
"(item, index) in s
cope.scope.labelList
"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<span
v-for=
"(item, index) in s
howTagArray(scope.scope.labelList)
"
:key=
"index"
class=
"ellipsis-1 tag-box-wrap"
>
<el-tooltip
class=
"item"
:content=
"item.name"
placement=
"top"
>
<span>
{{ item.name }}
</span>
</el-tooltip>
</span>
<!-- <div class="expande-button-wrap" v-if="!needShowExpande">
<div class="expande-button" @click="expandeClick" v-if="!expande">
<i class="el-icon-arrow-down"></i>
<span>展开</span>
</div>
<div class="expande-button" @click="expandeClick" v-else>
<i class="el-icon-arrow-up"></i>
<span>收起</span>
<el-popover
v-if=
"scope.scope.labelList.length > 9"
class=
"ellipsis-1 tag-box-wrap"
placement=
"top"
width=
"600"
trigger=
"hover"
content=
"这是一段内容,这是一段内容,这是一段内容,这是一段内容。"
>
<span
slot=
"reference"
>
...({{ scope.scope.labelList.length }})
</span>
<div
class=
"entmicro-hover"
style=
"height: 214px; overflow-y: auto"
>
<el-tag
type=
"info"
class=
"ellipsis-1"
style=
"margin-right: 10px; margin-bottom: 10px; max-width: 200px"
v-for=
"(i, sindex) in scope.scope.labelList"
:key=
"sindex"
:disable-transitions=
"false"
>
<el-tooltip
class=
"item"
:content=
"i.name"
placement=
"top"
>
<span>
{{ i.name }}
</span>
</el-tooltip>
</el-tag>
</div>
</
div> --
>
</
el-popover
>
</div>
</span>
<
template
slot=
"xxx"
slot-scope=
"scope"
>
<!-- //这版关掉自店标签 -->
<!-- //这版关掉自店标签
1.0.1允许集团的门店打字店标签,也可以编辑
-->
<span
@
click=
"btnClick('edit', scope.scope)"
class=
"blue-text"
v-if=
"scope.scope.labelType != '行业标签' && isShowEditBtn(scope.scope)"
>
编辑标签组
</span>
</
template
>
<!-- <div slot="additionalContent">
<div class="additional-text">标签用于对客户进行分类,以便用户能够更好的识别客户类型</div>
<button class="btn-blue">创建标签</button>
</div> -->
</GLTable>
</div>
<basic-dialog
class=
"role"
:title=
"tagDialogTitle"
:width=
"'712px'
"
:isVisible=
"tagVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<basic-dialog
class=
"role"
:title=
"tagDialogTitle"
width=
"712px
"
:isVisible=
"tagVisible"
@
confirmDialog=
"handleConfirm"
@
closeDialog=
"handleClose"
>
<slot>
<rule-form
:ruleForm=
"tagForm"
:rules=
"tagRules"
:ruleData=
"tagDialogData"
:labelWidth=
"'120px'"
labelPosition=
"right"
ref=
"tagForm"
>
<div
slot=
"tagsGroup-type"
>
...
...
@@ -82,7 +78,11 @@
</el-select>
<!-- id="tagTipMsgRef" -->
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && !tagForm.initTagsGroup"
>
企业标签
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
和自店标签分别
</
template
>
<
template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
企业标签
</
template
>
<
template
v-if=
"!((merchantModel == 2 && accountLevel == 4) || (merchantModel == 1 && accountLevel == 1))"
>
<template
v-if=
"!(merchantModel == 1 && accountLevel == 4)"
>
和
</
template
>
自店标签分别
</template>
最多3000个
</span>
<span
class=
"tagTipMsg"
v-if=
"tagDialogTitle == '添加标签组' && tagForm.initTagsGroup == 1"
>
...
...
@@ -107,7 +107,8 @@
<div
slot=
"tagsInput-type"
>
<div
class=
"tagsWrap"
v-if=
"tagDialogTitle == '编辑标签组'"
>
<span
class=
"tag"
:class=
"{ inputWrapShow: item.inputVisible }"
v-for=
"item in editTagList"
:key=
"item.id"
>
<el-input
class=
"input-new-tag"
maxlength=
"30"
show-word-limit
v-if=
"item.inputVisible"
v-model
.
trim=
"item.name"
ref=
"saveTagInput"
size=
"small"
@
blur=
"handleInputConfirm(item.name, item.id)"
@
keyup
.
enter
.
native=
"handleInputConfirm(item.name, item.id)"
></el-input>
<!-- maxlength="30" show-word-limit -->
<el-input
class=
"input-new-tag"
v-if=
"item.inputVisible"
v-model
.
trim=
"item.name"
ref=
"saveTagInput"
size=
"small"
@
blur=
"item.name=handleInputConfirm(item.name, item.id)"
@
keyup
.
enter
.
native=
"item.name=handleInputConfirm(item.name, item.id)"
></el-input>
<el-tooltip
class=
"item"
:content=
"item.name"
placement=
"top"
>
<span
class=
"ellipsis-1"
v-if=
"!item.inputVisible"
>
{{ item.name }}
</span>
</el-tooltip>
...
...
@@ -116,8 +117,8 @@
</div>
<div
class=
"row-tag"
v-for=
"(item, index) in tagForm.tagsList"
:key=
"index"
>
<!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))" -->
<el-input
v-model
.
trim=
"item.name"
placeholder=
"添加标签名称(至少添加一个标签)"
maxlength=
"30"
show-word-limit
@
input=
"checkInputContent"
></el-input>
<!-- :onkeyup="(item.name = item.name.replace(/\s+/g, ''))"
maxlength="30" show-word-limit @input="checkInputContent"
-->
<el-input
v-model
.
trim=
"item.name"
placeholder=
"添加标签名称(至少添加一个标签)"
@
keyup
.
native=
"item.name = checkInputContent(item.name)"
></el-input>
<span
class=
"el-icon-circle-close"
@
click=
"deleteRow(index)"
></span>
</div>
<!-- 需要后台告诉已经创建多少个标签了 -->
...
...
@@ -151,6 +152,26 @@ export default {
name
:
'tagsManage'
,
data
()
{
//这里就是整个checkName啦,就是方法一的使用
var
checkName
=
(
rule
,
value
,
callback
)
=>
{
var
len
=
0
for
(
var
i
=
0
;
i
<
value
.
length
;
i
++
)
{
var
c
=
value
.
charCodeAt
(
i
)
//单字节加1
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
0xff60
<=
c
&&
c
<=
0xff9f
))
{
len
++
}
else
{
len
+=
2
}
}
if
(
len
>
30
)
{
//重点重点,下面就是填写提示的文字 (len < 4 && len> 0) ||
// callback(new Error('名称长度为4-30个字符,一个中文字等于2个字符。'));
callback
(
new
Error
(
'字数已达上限'
))
}
else
{
callback
()
}
}
var
checkTagsInput
=
(
rule
,
value
,
callBack
)
=>
{
console
.
log
(
'value值为:'
,
value
,
typeof
value
,
value
.
length
)
...
...
@@ -195,7 +216,8 @@ export default {
inputType
:
'text'
,
prop
:
'labelTreeReq.labelGroupName'
,
label
:
'搜索'
,
placeholder
:
'请输入标签组或标签名称'
placeholder
:
'请输入标签组或标签名称'
,
clearable
:
true
}
],
pageConf
:
{
pageSize
:
'labelTreeReq.pageSize'
,
pageNum
:
'labelTreeReq.pageNum'
,
totalCount
:
'labelGroupCount'
},
...
...
@@ -223,6 +245,7 @@ export default {
{
label
:
'操作'
,
prop
:
'xxx'
,
fixed
:
'right'
,
addHtml
:
'xxx'
,
width
:
120
}
...
...
@@ -237,7 +260,7 @@ export default {
tagVisible
:
false
,
tagForm
:
{
tagsName
:
''
,
initTagsGroup
:
1
,
initTagsGroup
:
1
,
tagsList
:
[]
},
tagDialogData
:
[
...
...
@@ -245,9 +268,9 @@ export default {
label
:
'标签组名称'
,
prop
:
'tagsName'
,
type
:
'input'
,
placeholder
:
'
添加标签组名称,最多30
个字符'
,
maxlength
:
30
,
showWordLimit
:
true
,
placeholder
:
'
最多30个字符,1个汉字为2
个字符'
,
//
maxlength: 30,
//
showWordLimit: true,
disabled
:
false
},
{
...
...
@@ -269,7 +292,7 @@ export default {
tagsName
:
[
{
required
:
true
,
message
:
'请输入名称'
,
trigger
:
'blur'
},
{
validator
:
this
.
$Commons
.
checkName
,
validator
:
checkName
,
//
this.$Commons.checkName,
trigger
:
'blur'
}
],
...
...
@@ -301,9 +324,18 @@ export default {
this
.
merchantModel
=
this
.
$globalState
.
session
.
merchantModel
this
.
accountLevel
=
this
.
$globalState
.
session
.
accountLevel
this
.
userType
=
this
.
$globalState
.
session
.
userType
console
.
log
(
this
.
$globalState
.
session
,
'555'
)
// if (this.merchantModel == 1) {
// if (!(this.accountLevel == 1 && this.userType == 1)) this.tagsGroupList.splice(0, 1) //只能创建自店标签
// }
//1.0.1集团下的门店只能创建自店标签
if
(
this
.
merchantModel
==
1
)
{
if
(
!
(
this
.
accountLevel
==
1
&&
this
.
userType
==
1
))
this
.
tagsGroupList
.
splice
(
0
,
1
)
//只能创建自店标签
if
(
this
.
accountLevel
==
4
)
{
this
.
tagsGroupList
.
splice
(
0
,
1
)
//只能创建自店标签
this
.
tagsPartFormList
[
0
].
options
.
splice
(
0
,
1
)
}
}
if
(
this
.
merchantModel
==
1
)
{
if
(
this
.
accountLevel
==
1
)
{
//集团下的工厂只能创建企微标签,自店标签不要了
...
...
@@ -333,19 +365,47 @@ export default {
// }, 200)
},
methods
:
{
showTagArray
(
list
)
{
if
(
list
.
length
==
0
)
{
return
[]
}
// return list
return
list
.
slice
(
0
,
9
)
},
checkInputContent
(
e
)
{
let
str
=
e
var
len
=
0
var
singleNum
=
0
var
doubleNum
=
0
for
(
var
i
=
0
;
i
<
e
.
length
;
i
++
)
{
var
c
=
e
.
charCodeAt
(
i
)
//单字节加1
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
0xff60
<=
c
&&
c
<=
0xff9f
))
{
len
++
singleNum
++
}
else
{
len
+=
2
doubleNum
++
}
}
if
(
len
>
30
)
{
this
.
$message
.
error
(
'字数已达上限'
)
return
str
.
substr
(
0
,
15
)
}
// console.log(e, '输入框的值')
//确保每个输入框的内容不和已存在的编辑标签相同
let
isHasSameTag
=
this
.
editTagList
.
some
(
ele
=>
ele
.
name
==
e
)
if
(
isHasSameTag
)
{
this
.
$message
.
error
(
'不允许输入已存在的标签'
)
return
return
str
}
return
str
},
isShowEditBtn
(
row
)
{
//集团模式下,只有集团能可以编辑企业,自店,其他只能编辑自店
//单店模式下,仅门店和员工可以编辑
if
(
row
.
labelType
==
'自店标签'
)
{
if
(
row
.
labelType
==
'自店标签'
&&
!
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
)
{
return
false
}
if
(
this
.
merchantModel
==
1
)
{
...
...
@@ -369,24 +429,21 @@ export default {
},
closeInitPanel
()
{
this
.
isFirstShow
=
false
//不用算高度
// setTimeout(() => {
// this.$refs.tagsManage.setTableHeightFun()
// }, 200)
},
setTableHeightEvent
()
{
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
},
setTableFinishFun
(
content
)
{
console
.
log
(
'表格完成'
,
this
.
$refs
.
tagsManage
.
data
)
if
(
this
.
$refs
.
tagsManage
.
data
.
length
)
{
this
.
$refs
.
tagsManage
.
data
.
forEach
(
item
=>
{
item
.
expande
=
true
item
.
needShowExpande
=
false
})
}
else
{
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
}
// if (this.$refs.tagsManage.data.length) {
// this.$refs.tagsManage.data.forEach(item => {
// item.expande = true
// item.needShowExpande = false
// })
// } else {
// this.$refs.tagsManage.setTableHeightFun()
// }
this
.
$refs
.
tagsManage
.
data
.
length
?
(
this
.
$refs
.
tagsManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
},
getLoginCountFun
()
{
//loginType:3是查客户数据概览浏览次数
...
...
@@ -424,7 +481,11 @@ export default {
case
'create'
:
this
.
tagDialogTitle
=
'添加标签组'
this
.
tagForm
.
tagsForm
=
''
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
this
.
tagForm
.
initTagsGroup
=
1
//默认改成,企业标签
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
{
this
.
tagForm
.
initTagsGroup
=
2
}
this
.
$set
(
this
.
tagDialogData
[
0
],
'disabled'
,
false
)
this
.
handleClose
()
...
...
@@ -511,6 +572,9 @@ export default {
if
(
!
this
.
tagVisible
&&
this
.
$refs
.
tagForm
)
{
this
.
$refs
.
tagForm
.
$children
[
0
].
resetFields
()
this
.
tagForm
.
initTagsGroup
=
1
if
(
this
.
merchantModel
==
1
&&
this
.
accountLevel
==
4
)
{
this
.
tagForm
.
initTagsGroup
=
2
}
this
.
tagForm
.
tagsName
=
''
// console.log(this.tagForm.initTagsGroup, '7777')
// console.log(this.tagForm, '内')
...
...
@@ -613,18 +677,33 @@ export default {
},
handleInputConfirm
(
inputValue
,
id
)
{
let
value
=
inputValue
// if (String(value).length == 0) {
// this.$message.warning('不能清空标签')
// return
// }
this
.
editTagList
.
forEach
(
i
=>
{
if
(
i
.
id
==
id
)
{
i
.
inputVisible
=
false
}
})
let
str
=
inputValue
var
len
=
0
var
singleNum
=
0
var
doubleNum
=
0
for
(
var
i
=
0
;
i
<
str
.
length
;
i
++
)
{
var
c
=
str
.
charCodeAt
(
i
)
//单字节加1
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
0xff60
<=
c
&&
c
<=
0xff9f
))
{
len
++
singleNum
++
}
else
{
len
+=
2
doubleNum
++
}
}
if
(
len
>
30
)
{
this
.
$message
.
error
(
'字数已达上限'
)
return
str
.
substr
(
0
,
15
)
}
return
str
},
handleSelect
(
value
)
{
console
.
log
(
'值内容'
,
value
)
...
...
@@ -646,28 +725,13 @@ export default {
@import
'@/styles/variables.scss'
;
@import
'@/styles/resetelement.scss'
;
.scrm-sub-client-container
{
//
/deep/.el-table--striped
.el-table__body
tr.el-table__row--striped.current-row
td.el-table__cell,
//
.el-table__body
tr.current-row
>
td.el-table__cell
{
//
background-color
:
#f4f3ff
;
//
}
//
.el-table--striped
.el-table__body
tr
.el-table__row--striped
td
.el-table__cell
{
//
background
:
#fff
;
//
}
//
/
deep
/
.el-table__body
tr
.hover-row.current-row
>
td
.el-table__cell
,
//
.el-table__body
tr
.hover-row.el-table__row--striped.current-row
>
td
.el-table__cell
,
//
.el-table__body
tr
.hover-row.el-table__row--striped
>
td
.el-table__cell
,
//
.el-table__body
tr
.hover-row
>
td
.el-table__cell
{
//
background-color
:
#f4f3ff
;
//
}
//
/
deep
/
.el-table__body
tr
.el-table__row.current-row
td
,
.el-table__body
tr
.current-row
>
td
,
.el-table__body
tr
.hover-row.current-row
>
td
,
//
.el-table__body
tr
.hover-row.el-table__row.current-row
>
td
,
.el-table__body
tr
.hover-row.el-table__row
>
td
,
.el-table__body
tr
.hover-row
>
td
//
{
//
background-color
:
red
;
/deep/.search-form
.el-form-item__content
{
width
:
inherit
;
}
//
/
deep
/
.el-table
tbody
tr
:hover
>
td
{
//
background-color
:
#f4f3ff
;
//
}
/
deep
/
.el-table
tbody
tr
:hover
>
td
{
background-color
:
#f4f3ff
;
}
.pageTitle
{
position
:
relative
;
//
margin-top
:
30px
;
...
...
@@ -740,7 +804,7 @@ export default {
background
:
#e6e9ff
;
border
:
1px
solid
$
borderBlue
;
border-radius
:
4px
;
padding
:
10px
38
px
;
padding
:
10px
42
px
;
height
:
60px
;
font-size
:
14px
;
font-weight
:
400
;
...
...
@@ -771,19 +835,19 @@ export default {
.allTagsWrap
{
position
:
relative
;
display
:
-webkit-box
;
//
max-height
:
56px
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
padding-bottom
:
-2px
;
box-sizing
:
border-box
;
&:hover
{
-webkit-line-clamp
:
9999
;
//
.tag-box-wrap
{
//
margin-bottom
:
10px
;
//
}
}
//
display
:
-webkit-box
;
//
overflow
:
hidden
;
//
-webkit-line-clamp
:
2
;
//
-webkit-box-orient
:
vertical
;
//
padding-bottom
:
-2px
;
//
box-sizing
:
border-box
;
//
&:hover
{
//
-webkit-line-clamp
:
9999
;
//
//
.tag-box-wrap
{
//
//
margin-bottom
:
10px
;
//
//
}
//
}
.tag-box-wrap
{
display
:
inline-block
;
...
...
@@ -808,9 +872,6 @@ export default {
//
margin-bottom
:
4px
;
//
}
}
//
.tag-box-wrap
+
.tag-box-wrap
{
//
margin-bottom
:
4px
;
//
}
.expande-button-wrap
{
position
:
absolute
;
right
:
0
;
...
...
vue.config.js
View file @
912eda4
...
...
@@ -2,11 +2,11 @@ const path = require('path')
const
webpack
=
require
(
'webpack'
)
const
packageName
=
require
(
'./package.json'
).
name
const
node_env
=
process
.
env
.
NODE_ENV
===
'production'
// const baseUrl = process.env.VUE_APP_BASE_URL;
// const baseUrl = process.env.VUE_APP_BASE_URL;
const
publicPath
=
node_env
?
`/child/
${
packageName
}
/`
:
'/'
const
baseUrl
=
'/'
const
resolve
=
dir
=>
path
.
join
(
__dirname
,
dir
)
const
CDN_DOMAIN
=
'https://
cdn.bootcdn.net
/'
const
CDN_DOMAIN
=
'https://
img02.glsx.com.cn
/'
const
cdn
=
{
css
:
[
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
...
...
@@ -17,13 +17,13 @@ const cdn = {
`
${
CDN_DOMAIN
}
ajax/libs/element-ui/2.11.1/index.js`
,
`
${
CDN_DOMAIN
}
ajax/libs/vuex/3.6.2/vuex.min.js`
,
// `${CDN_DOMAIN}ajax/libs/axios/0.21.0/axios.min.js`,
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
`
${
CDN_DOMAIN
}
ajax/libs/echarts/5.1.2/echarts.min.js`
]
}
module
.
exports
=
{
outputDir
:
`../dist/
${
packageName
}
`
,
publicPath
,
//node_env ? baseUrl : '/'
publicPath
,
//node_env ? baseUrl : '/'
assetsDir
:
'static'
,
configureWebpack
:
{
resolve
:
{
...
...
@@ -34,15 +34,15 @@ module.exports = {
components
:
resolve
(
'src/components'
),
// 'jquery': 'jquery'
}
},
plugins
:
[
new
webpack
.
ProvidePlugin
({
$
:
'jquery'
,
// 创建 '$'、'jQuery'、'window.jQuery' 三个变量指向依赖jquery
jQuery
:
'jquery'
,
'window.jQuery'
:
'jquery'
$
:
'jquery'
,
// 创建 '$'、'jQuery'、'window.jQuery' 三个变量指向依赖jquery
jQuery
:
'jquery'
,
'window.jQuery'
:
'jquery'
})
],
],
output
:
{
library
:
`
${
packageName
}
-[name]`
,
libraryTarget
:
'umd'
,
// 把微应用打包成 umd 库格式
...
...
@@ -59,7 +59,7 @@ module.exports = {
},
devServer
:
{
hot
:
true
,
disableHostCheck
:
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