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 b6a2840c
authored
Jan 10, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
合并
2 parents
b773cd75
8bc0f8ff
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
80 additions
and
73 deletions
package.json
src/api/modules/clientDataOverview.js
src/api/modules/clientGroupManage.js
src/api/modules/clientManage.js
src/api/modules/groupGuest.js
src/api/modules/loginCount.js
src/api/modules/tagsManage.js
src/config/index.js
src/main.js
src/setup/qiankun.js
src/views/clientGroupManage/index.vue
src/views/guestGroup/components/selectFollow.vue
src/views/tagsManage/index.vue
package.json
View file @
b6a2840
{
"name"
:
"custom"
,
"name"
:
"
new
custom"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"scripts"
:
{
...
...
src/api/modules/clientDataOverview.js
View file @
b6a2840
...
...
@@ -6,12 +6,12 @@
* @param {*} params
* @returns
*/
import
{
http
}
from
'@/main'
import
{
http
2
}
from
'@/main'
//获取数据概览上方的数据 /rop-scrm-datahub
export
function
getDataOverview
(
params
){
params
.
method
=
'entmicro.api.Customer.customer.view.data'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -22,7 +22,7 @@
//获取数据概览下方柱状图的数据
export
function
getDataOverviewBarMap
(
params
){
params
.
method
=
'entmicro.api.customer.view.chart'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
src/api/modules/clientGroupManage.js
View file @
b6a2840
...
...
@@ -6,12 +6,12 @@
* @param {*} params
* @returns
*/
import
{
http
}
from
'@/main'
import
{
http
2
,
http3
}
from
'@/main'
export
function
getTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -20,7 +20,7 @@
}
export
function
syncCustomerBase
(
params
){
params
.
method
=
'entmicro.api.synchro.syncCustomerBase'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -29,7 +29,7 @@
}
export
function
getTableDetail
(
params
){
params
.
method
=
'entmicro.api.customer.base.detail'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -38,7 +38,7 @@
}
export
function
getClientTableDetail
(
params
){
params
.
method
=
'entmicro.api.customer.detail'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -49,7 +49,7 @@
// 客户群的客户列表获取分页数据接口
export
function
getDetailTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.cust.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -62,7 +62,7 @@
*/
export
function
getStatus
(
params
)
{
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http
({
return
http
3
({
url
:
'/rop-scrm-wechat/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -76,7 +76,7 @@ export function getStatus(params) {
// POST /router/entmicro.api.customer.base.staff.page/1.0.0
export
function
getDetailStaffTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.staff.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -89,7 +89,7 @@ export function getDetailStaffTableList(params){
*/
export
function
getDetailQuitTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.quit.cust.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -101,7 +101,7 @@ export function getDetailQuitTableList(params){
*/
export
function
getDetailPotentialTableList
(
params
){
params
.
method
=
'entmicro.api.customer.base.potential.cust.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -111,7 +111,7 @@ export function getDetailPotentialTableList(params){
//客户群管理(群聊管理)导出
export
function
clientGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.list.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -121,7 +121,7 @@ export function clientGroupExportApi(params){
// 全部客户导出
export
function
clientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.cust.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -132,7 +132,7 @@ export function clientExportApi(params){
//跟进员工导出
export
function
followEmployeeExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.staff.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -142,7 +142,7 @@ export function followEmployeeExportApi(params){
//退群客户导出
export
function
leaveGroupExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.quit.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -153,7 +153,7 @@ export function leaveGroupExportApi(params){
export
function
potentialClientExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.base.potential.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
src/api/modules/clientManage.js
View file @
b6a2840
...
...
@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import
{
http
}
from
'@/main'
import
{
http
,
http2
}
from
'@/main'
//const commonUrl='&format=json&appKey=48e5e13229b82c1b4e6e8c96151f0637&v=1.0.*×tamp=1654487354&source=sub-client-custom&sign=sdf9787dfs87987sf9879sdf87sdf'
//获取客户列表内容
...
...
@@ -35,8 +35,8 @@
export
function
getAllTagTree
(
params
){
params
.
method
=
'scrm.api.datahub.label.querylabeltree'
//
params.method='scrm.api.datahub.labelgroup.queryLabelTree'
//
params.method='scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
...
...
@@ -64,7 +64,7 @@
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
// params.timestamp=new Date().getTime()
// +'?method=org.ore.api.customer.page'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -73,7 +73,7 @@
}
export
function
syncCustomer
(
params
){
params
.
method
=
'entmicro.api.synchro.syncCustomer'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -84,7 +84,7 @@
params
.
method
=
'entmicro.api.customer.detail'
// params.sessionId="mini-e72437ba-845e-4da3-9966-0b25684d6373-rop"
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -96,7 +96,7 @@
*/
export
function
getDictionaryFun
(
params
){
params
.
method
=
'entmicro.api.common.dictdata.list'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -108,7 +108,7 @@
//客户信息管理导出
export
function
clientManageExportApi
(
params
){
params
.
method
=
`entmicro.api.customer.list.export`
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
...
...
src/api/modules/groupGuest.js
View file @
b6a2840
...
...
@@ -6,7 +6,7 @@
* @param {*} params
* @returns
*/
import
{
http
}
from
'@/main'
import
{
http
2
,
http3
}
from
'@/main'
const
URL
=
'/rop-scrm-entmicro/router'
const
PATH
=
'entmicro.api.one.template.'
const
WURL
=
'/rop-scrm-wechat/router'
...
...
@@ -14,7 +14,7 @@ const PATH2 = 'entmicro.api.group.'
const
templateList
=
params
=>
{
params
.
method
=
`
${
PATH
}
page`
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -24,7 +24,7 @@ const templateList = params => {
const
insert
=
params
=>
{
params
.
method
=
`
${
PATH
}
insert`
return
http
({
return
http
2
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -34,7 +34,7 @@ const insert = params => {
const
update
=
params
=>
{
params
.
method
=
`
${
PATH
}
update`
return
http
({
return
http
2
({
url
:
URL
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -44,7 +44,7 @@ const update = params => {
const
detail
=
params
=>
{
params
.
method
=
`
${
PATH
}
detail`
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -54,7 +54,7 @@ const detail = params => {
const
status
=
params
=>
{
params
.
method
=
`
${
PATH
}
status`
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -64,7 +64,7 @@ const status = params => {
const
listDepartmentTree
=
params
=>
{
params
.
method
=
'entmicro.api.department.listDepartmentTree'
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -74,7 +74,7 @@ const listDepartmentTree = params => {
const
nameVaild
=
params
=>
{
params
.
method
=
'entmicro.api.one.template.name.valid'
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -84,7 +84,7 @@ const nameVaild = params => {
const
updateNameVaild
=
params
=>
{
params
.
method
=
'entmicro.api.one.template.name.update.valid'
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -94,7 +94,7 @@ const updateNameVaild = params => {
const
getStatus
=
params
=>
{
params
.
method
=
'scrm.api.work.wechat.access.status'
return
http
({
return
http
3
({
url
:
WURL
,
method
:
'POST'
,
data
:
params
,
...
...
@@ -103,8 +103,8 @@ const getStatus = params => {
}
//一客一群详情页
const
getListApi
=
params
=>
{
params
.
method
=
`
${
PATH
}
detail
`
return
http
({
params
.
method
=
`
${
PATH
}
page
`
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -114,7 +114,7 @@ const getListApi = params => {
const
customerList
=
params
=>
{
params
.
method
=
`
${
PATH2
}
template.customer.page`
return
http
({
return
http
2
({
url
:
URL
,
method
:
'GET'
,
data
:
params
,
...
...
@@ -124,7 +124,7 @@ const customerList = params => {
const
getFollower
=
params
=>
{
params
.
method
=
'entmicro.api.staff.listFollowerStaffByPage'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
src/api/modules/loginCount.js
View file @
b6a2840
...
...
@@ -6,11 +6,11 @@
* @param {*} params
* @returns
*/
import
{
http
}
from
'@/main'
import
{
http
2
}
from
'@/main'
//计算是第几次接触该页面
export
function
getLoginCount
(
params
){
params
.
method
=
'entmicro.api.common.findLoginCount'
return
http
({
return
http
2
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
...
...
src/api/modules/tagsManage.js
View file @
b6a2840
...
...
@@ -9,8 +9,8 @@
import
{
http
}
from
'@/main'
export
function
getTableList
(
params
){
params
.
method
=
'scrm.api.datahub.label.querylabeltree'
//
params.method='scrm.api.datahub.labelgroup.queryLabelTree'
//
params.method='scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
...
...
@@ -21,8 +21,8 @@
}
//计算表格上面的数量
export
function
getTableTagNum
(
params
){
params
.
method
=
'scrm.api.datahub.label.queryLabelCount'
//
params.method='scrm.api.datahub.labelgroup.queryLabelCount'
//
params.method='scrm.api.datahub.label.queryLabelCount'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelCount'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
...
...
@@ -34,8 +34,8 @@
}
export
function
newAddTag
(
params
){
params
.
method
=
'scrm.api.datahub.label.addlabel'
//
params.method='scrm.api.datahub.labelgroup.addLabel'
//
params.method='scrm.api.datahub.label.addlabel'
params
.
method
=
'scrm.api.datahub.labelgroup.addLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
...
...
@@ -46,8 +46,8 @@
}
//修改标签
export
function
updateTag
(
params
){
params
.
method
=
'scrm.api.datahub.label.updatelabel'
//
params.method='scrm.api.datahub.labelgroup.updateLabel'
//
params.method='scrm.api.datahub.label.updatelabel'
params
.
method
=
'scrm.api.datahub.labelgroup.updateLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
...
...
@@ -59,8 +59,8 @@
}
//获取单条数据labelList数组
export
function
queryLabelListByGroupId
(
params
){
params
.
method
=
'scrm.api.datahub.label.queryLabelListByGroupId'
//
params.method='scrm.api.datahub.labelgroup.queryLabelListByGroupId'
//
params.method='scrm.api.datahub.label.queryLabelListByGroupId'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelListByGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
...
...
src/config/index.js
View file @
b6a2840
...
...
@@ -19,7 +19,7 @@ export const fetchConfig = function (isEnv = true) {
}
// https://oss-config.test.glsx.com.cn/mock/6136bea6ceeb5a5c2bec6950/base
// https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config
return
new
Http
({
request
:{
timeout
:
3000
}}).
get
(
'https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config'
)
return
new
Http
({
request
:{
timeout
:
3000
}}).
get
(
'https://oss-config.test.glsx.com.cn/mock/616d3b131072f92988f05a01/custom/config
2
'
)
}
export
const
config
=
{
install
(
vue
,
cfg
)
{
...
...
src/main.js
View file @
b6a2840
...
...
@@ -42,4 +42,6 @@ Object.keys(filters).forEach(key => {
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http3
=
params
=>
Vue
.
prototype
.
$http3
(
params
)
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
src/setup/qiankun.js
View file @
b6a2840
...
...
@@ -13,12 +13,14 @@ let routes = []
let
router
=
null
let
instance
=
null
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
const
{
response
,
request
,
request2
,
request3
,
sign
,
secret
,
sign_common
,
request_common
}
=
await
fetchConfig
(
globalState
.
configSwitch
)
//globalState.configSwitch
Vue
.
prototype
.
$history
=
history
Vue
.
prototype
.
$messenger
=
messenger
Vue
.
prototype
.
$globalState
=
globalState
Vue
.
prototype
.
$common
=
common
Vue
.
prototype
.
$http
=
new
common
.
Http
({
response
,
request
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http2
=
new
common
.
Http
({
response
,
request
:
request2
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
Vue
.
prototype
.
$http3
=
new
common
.
Http
({
response
,
request
:
request3
,
sign
,
secret
,
alert
:
message
.
error
,
headers
:
{
token
:
globalState
.
session
.
token
}
})
// Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: "mini-14eda653-4284-4165-bb85-325bb82a516d-rop" } })
Vue
.
prototype
.
$http_common
=
new
common
.
Http
({
response
,
signWay
:
"md5"
,
request
:
request_common
,
sign
:
sign_common
,
secret
,
alert
:
ElementUI
.
Message
.
error
,
headers
:
{
TGT
:
globalState
.
session
.
token
}
})
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
...
...
src/views/clientGroupManage/index.vue
View file @
b6a2840
...
...
@@ -191,7 +191,7 @@ export default {
this
.
$message
.
closeAll
()
},
mounted
()
{
this
.
wxTips
()
this
.
wxTips
()
},
methods
:
{
jumpWx
()
{
...
...
src/views/guestGroup/components/selectFollow.vue
View file @
b6a2840
...
...
@@ -10,8 +10,20 @@
</el-form-item>
</el-form>
<div
class=
"table-box"
>
<GLTable
v-if=
"dialogVisible"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:hasNum=
"false"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
></GLTable>
<div
class=
"form-tips"
>
必须配置至少1个跟进专员
</div>
<GLTable
v-if=
"dialogVisible"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:hasNum=
"false"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"handleSearch"
@
selectionTable=
"selectionTable"
@
row-click=
"rowClick"
></GLTable>
<div
class=
"form-tips"
>
必须配置至少1个跟进专员
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<a
class=
"dialog-jump"
@
click=
"jumpUrl"
>
新增专员
</a>
...
...
@@ -55,7 +67,7 @@ export default {
}
]
},
layout
:
''
,
layout
:
'
pager
'
,
tableData
:
[],
tableTotal
:
0
,
selectItem
:
[],
...
...
@@ -80,7 +92,7 @@ export default {
}
this
.
tableData
.
forEach
(
item
=>
{
this
.
selectEmp
.
forEach
((
itm
,
index
)
=>
{
if
(
itm
.
staffId
==
item
.
relationI
d
)
{
if
(
itm
.
staffId
==
item
.
i
d
)
{
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
item
)
this
.
selectEmp
.
splice
(
index
,
1
)
}
...
...
@@ -109,11 +121,11 @@ export default {
rowClick
(
row
)
{
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
row
)
},
handleCancel
:
utils
.
debounce
(
function
()
{
this
.
dialogVisible
=
false
handleCancel
:
utils
.
debounce
(
function
()
{
this
.
dialogVisible
=
false
this
.
$refs
.
table
.
$refs
.
salelistMutiTable
.
clearSelection
()
},
300
),
handleSelect
:
utils
.
debounce
(
function
()
{
handleSelect
:
utils
.
debounce
(
function
()
{
this
.
loading
=
true
let
selectEmp
=
this
.
selectEmp
.
map
(
item
=>
{
return
{
...
...
@@ -137,7 +149,7 @@ export default {
<
style
lang=
"scss"
scoped
>
.dialog-jump
{
color
:
#5850
FF
;
color
:
#5850
ff
;
float
:
left
;
line-height
:
24px
;
text-decoration
:
underline
;
...
...
src/views/tagsManage/index.vue
View file @
b6a2840
...
...
@@ -437,14 +437,6 @@ export default {
},
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()
// }
this
.
$refs
.
tagsManage
.
data
.
length
?
(
this
.
$refs
.
tagsManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
tagsManage
.
setTableHeightFun
()
},
getLoginCountFun
()
{
...
...
@@ -605,7 +597,6 @@ export default {
if
(
!
res
)
{
return
}
// console.log(res, 'res信息')
if
(
res
.
data
.
code
==
0
)
{
this
.
$message
.
success
(
'添加成功'
)
this
.
handleClose
()
...
...
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