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 ca1eaf73
authored
Apr 18, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
e266cb3f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
87 additions
and
85 deletions
package.json
src/api/modules/clientManage.js
src/api/modules/tagsManage.js
src/components/selectEmp/index.vue
src/mixins/tag.js
src/utils/filters.js
src/views/clientManage/clientDetail.vue
src/views/guestGroup/index.vue
src/views/leadManage/index.vue
package.json
View file @
ca1eaf7
...
...
@@ -15,7 +15,7 @@
"echarts"
:
"^5.2.0"
,
"element-ui"
:
"^2.4.5"
,
"glsx-common"
:
"^1.4.6"
,
"glsx-components"
:
"^1.
3.9
"
,
"glsx-components"
:
"^1.
4.1
"
,
"glsx-table"
:
"^1.1.0"
,
"jquery"
:
"^3.6.0"
,
"sha1"
:
"^1.1.1"
,
...
...
src/api/modules/clientManage.js
View file @
ca1eaf7
...
...
@@ -126,7 +126,7 @@ export function clientManageExportApi(params) {
export
function
perfectCustomerPhone
(
params
)
{
params
.
method
=
`entmicro.api.customer.perfectCustomerPhone`
return
http3
({
url
:
'
http://192.168.3.193:8395
/rop-scrm-entmicro/router'
,
url
:
'/rop-scrm-entmicro/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
...
...
src/api/modules/tagsManage.js
View file @
ca1eaf7
...
...
@@ -9,95 +9,91 @@
import
{
http
,
http3
}
from
'@/main'
// const url = 'http://192.168.3.181:9636/rop-scrm-datahub/router'
export
function
getTableList
(
params
)
{
// params.method='scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
// params.method='scrm.api.datahub.label.querylabeltree'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelTree'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//计算表格上面的数量
export
function
getTableTagNum
(
params
)
{
// params.method='scrm.api.datahub.label.queryLabelCount'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelCount'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
// params.method='scrm.api.datahub.label.queryLabelCount'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelCount'
})
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
function
newAddTag
(
params
)
{
// params.method='scrm.api.datahub.label.addlabel'
params
.
method
=
'scrm.api.datahub.labelgroup.addLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
// params.method='scrm.api.datahub.label.addlabel'
params
.
method
=
'scrm.api.datahub.labelgroup.addLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//修改标签
export
function
updateTag
(
params
)
{
// params.method='scrm.api.datahub.label.updatelabel'
params
.
method
=
'scrm.api.datahub.labelgroup.updateLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
// params.method='scrm.api.datahub.label.updatelabel'
params
.
method
=
'scrm.api.datahub.labelgroup.updateLabel'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
//获取单条数据labelList数组
export
function
queryLabelListByGroupId
(
params
)
{
// params.method='scrm.api.datahub.label.queryLabelListByGroupId'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelListByGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
// params.method='scrm.api.datahub.label.queryLabelListByGroupId'
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelListByGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 查看客户
export
function
getCustomersList
(
params
)
{
params
.
method
=
'entmicro.api.customer.getCustomerPageByTag'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'entmicro.api.customer.getCustomerPageByTag'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
//根据groupId查询标签列表
export
function
getLabelList
(
params
)
{
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelDetailByGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
params
.
method
=
'scrm.api.datahub.labelgroup.queryLabelDetailByGroupId'
return
http
({
url
:
'/rop-scrm-datahub/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
// 根据标签获取客户列表导出
export
function
exportLabelList
(
params
)
{
params
.
method
=
'entmicro.api.customer.customerPageByTagExport'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
\ No newline at end of file
params
.
method
=
'entmicro.api.customer.customerPageByTagExport'
return
http3
({
url
:
'/rop-scrm-entmicro/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
src/components/selectEmp/index.vue
View file @
ca1eaf7
...
...
@@ -80,7 +80,7 @@ export default {
type
}
this
.
$apis
.
leadManage
.
selectableStaff
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
.
list
this
.
tableData
=
res
.
list
?
res
.
list
:
[]
this
.
tableTotal
=
res
.
total
})
},
...
...
src/mixins/tag.js
View file @
ca1eaf7
...
...
@@ -157,11 +157,13 @@ export default {
if
(
this
.
tableTotal
==
0
)
{
this
.
$refs
.
viewCustomers
.
setTableHeightFun
()
}
if
(
tagLists
.
length
==
0
)
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'请选择标签'
}
else
{
document
.
querySelector
(
'.noDataText'
).
innerText
=
'暂无数据'
}
// this.$nextTick(() => {
// if (tagLists.length == 0) {
// document.querySelector('.noDataText').innerText = '请选择标签'
// } else {
// document.querySelector('.noDataText').innerText = '暂无数据'
// }
// })
})
.
catch
(
err
=>
{
this
.
userLoading
=
false
...
...
src/utils/filters.js
View file @
ca1eaf7
...
...
@@ -16,12 +16,14 @@ const toLabel = value => {
if
(
value
!==
0
&&
!
value
)
{
return
}
let
sourceList
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
let
curElement
=
sourceList
.
find
(
item
=>
{
return
item
.
value
===
value
})
return
curElement
.
label
let
sourceList
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'sourceList'
))
if
(
sourceList
)
{
let
curElement
=
sourceList
.
find
(
item
=>
{
return
item
.
value
===
value
})
return
curElement
.
label
}
}
const
tagType
=
value
=>
{
let
type
=
''
...
...
src/views/clientManage/clientDetail.vue
View file @
ca1eaf7
...
...
@@ -815,6 +815,8 @@ export default {
if
(
res
)
{
this
.
getPageDetail
()
this
.
$message
.
success
(
'设置成功'
)
}
else
{
this
.
$message
.
error
(
'设置失败'
)
}
})
this
.
phoneVisible
=
false
...
...
@@ -1010,7 +1012,7 @@ export default {
font-size
:
14px
;
}
.leftWrapTop
{
.leftWrapBottom{
.leftWrapBottom
{
text-align
:
left
;
}
padding
:
0
20px
;
...
...
src/views/guestGroup/index.vue
View file @
ca1eaf7
...
...
@@ -113,7 +113,7 @@ export default {
{
label
:
'操作'
,
prop
:
'optionBtns'
,
width
:
'1
4
0px'
,
width
:
'1
8
0px'
,
addHtml
:
'optionBtns'
,
fixed
:
'right'
}
...
...
src/views/leadManage/index.vue
View file @
ca1eaf7
...
...
@@ -24,7 +24,7 @@
</
template
>
<!-- 跟进员工 -->
<
template
slot=
"userName"
slot-scope=
"scope"
>
<el-tag
type=
"info"
:disable-transitions=
"false"
v-if=
"scope.scope.userName
!== null
"
>
<el-tag
type=
"info"
:disable-transitions=
"false"
v-if=
"scope.scope.userName"
>
<i
class=
"el-icon-user-solid"
></i>
{{
scope
.
scope
.
userName
}}
</el-tag>
...
...
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