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