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 4c8aeff5
authored
Jun 10, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'yangm_dev_v2.4.0' into 'v2.4.0'
Yangm dev v2.4.0 See merge request
!109
2 parents
a10f8660
c30a8de1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
31 deletions
src/api/modules/crowdManage.js
src/main.js
src/styles/resetelement.scss
src/views/clientDataOverview/addOrEdit.vue
src/views/clientDataOverview/components/marketingPlan.vue
src/views/clientDataOverview/grouping.vue
src/views/clientDataOverview/marketingPeople.vue
src/api/modules/crowdManage.js
View file @
4c8aeff
...
@@ -130,6 +130,16 @@ const queryCrowdGroupDetailsByCrowdGroupId = params => {
...
@@ -130,6 +130,16 @@ const queryCrowdGroupDetailsByCrowdGroupId = params => {
returnAll
:
true
returnAll
:
true
})
})
}
}
//活动配置列表
const
activityPage
=
params
=>
{
params
.
method
=
'marketing.api.activity.config.page'
return
http3
({
url
:
'/rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
})
}
export
default
{
export
default
{
getCrowdList
,
getCrowdList
,
getCrowdDetails
,
getCrowdDetails
,
...
@@ -141,5 +151,6 @@ export default {
...
@@ -141,5 +151,6 @@ export default {
addCrowdGroup
,
addCrowdGroup
,
editCrowdGroup
,
editCrowdGroup
,
deleteCrowdGroup
,
deleteCrowdGroup
,
queryCrowdGroupDetailsByCrowdGroupId
queryCrowdGroupDetailsByCrowdGroupId
,
activityPage
}
}
src/main.js
View file @
4c8aeff
...
@@ -30,17 +30,16 @@ Vue.prototype.$apis = apis
...
@@ -30,17 +30,16 @@ Vue.prototype.$apis = apis
Vue
.
use
(
glsxTable
)
Vue
.
use
(
glsxTable
)
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
size
=
'small'
Vue
.
prototype
.
size
=
'small'
// Vue.prototype.btn_size = 'mini'
// Vue.prototype.btn_size = 'mini'
Vue
.
prototype
.
$Constants
=
Constants
Vue
.
prototype
.
$Constants
=
Constants
Vue
.
prototype
.
$Utils
=
Util
Vue
.
prototype
.
$Utils
=
Util
Vue
.
prototype
.
$Commons
=
common
Vue
.
prototype
.
$Commons
=
common
Vue
.
prototype
.
$echarts
=
echarts
Vue
.
prototype
.
$echarts
=
echarts
//过滤器统一处理预加载
//过滤器统一处理预加载
Object
.
keys
(
filters
).
forEach
(
key
=>
{
Object
.
keys
(
filters
).
forEach
(
key
=>
{
Vue
.
filter
(
key
,
filters
[
key
])
Vue
.
filter
(
key
,
filters
[
key
])
})
})
export
{
bootstrap
,
mount
,
unmount
}
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http2
=
params
=>
Vue
.
prototype
.
$http2
(
params
)
export
const
http3
=
params
=>
Vue
.
prototype
.
$http3
(
params
)
export
const
http3
=
params
=>
Vue
.
prototype
.
$http3
(
params
)
...
...
src/styles/resetelement.scss
View file @
4c8aeff
...
@@ -67,6 +67,14 @@
...
@@ -67,6 +67,14 @@
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
margin-bottom
:
12px
;
margin-bottom
:
12px
;
}
}
.el-icon-error
{
display
:
block
!
important
;
font-size
:
33px
!
important
;
position
:
relative
;
left
:
50%
;
transform
:
translateX
(
-50%
);
margin-bottom
:
12px
;
}
.el-tooltip__popper.is-dark
{
.el-tooltip__popper.is-dark
{
background
:
#666666
!
important
;
background
:
#666666
!
important
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
box-shadow
:
0px
2px
12px
0px
rgba
(
0
,
0
,
0
,
0
.06
)
!
important
;
...
...
src/views/clientDataOverview/addOrEdit.vue
View file @
4c8aeff
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
},
},
methods
:
{
methods
:
{
async
getCrowdList
()
{
async
getCrowdList
()
{
const
commonParam
=
{
pageSize
:
100
0
,
pageNum
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
const
commonParam
=
{
pageSize
:
100
,
pageNum
:
1
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
}
const
params1
=
{
const
params1
=
{
req
:
{
req
:
{
crowdType
:
1
,
crowdType
:
1
,
...
@@ -132,7 +132,7 @@ export default {
...
@@ -132,7 +132,7 @@ export default {
selectGroup:右边树的选中数据
selectGroup:右边树的选中数据
*/
*/
this
.
crowdUnitList
=
[
this
.
crowdUnitList
=
[
{
crowdName
:
'推荐人群'
,
children
:
crowdUnitList
[
0
].
data
.
crowdUnitList
,
groupArr
:
[],
groupArr_right
:
[],
checked
:
false
,
checked_right
:
fals
e
,
isIndeterminateGroup
:
false
,
isIndeterminateGroup_right
:
false
,
gruopCheckAll
:
false
,
gruopCheckAll_right
:
false
,
selectGroup
:
[]
},
{
crowdName
:
'推荐人群'
,
children
:
crowdUnitList
[
0
].
data
.
crowdUnitList
,
groupArr
:
[],
groupArr_right
:
[],
checked
:
true
,
checked_right
:
tru
e
,
isIndeterminateGroup
:
false
,
isIndeterminateGroup_right
:
false
,
gruopCheckAll
:
false
,
gruopCheckAll_right
:
false
,
selectGroup
:
[]
},
{
crowdName
:
'自定义人群'
,
children
:
crowdUnitList
[
1
].
data
.
crowdUnitList
,
groupArr
:
[],
groupArr_right
:
[],
checked
:
false
,
checked_right
:
false
,
isIndeterminateGroup
:
false
,
isIndeterminateGroup_right
:
false
,
gruopCheckAll
:
false
,
gruopCheckAll_right
:
false
,
selectGroup
:
[]
}
{
crowdName
:
'自定义人群'
,
children
:
crowdUnitList
[
1
].
data
.
crowdUnitList
,
groupArr
:
[],
groupArr_right
:
[],
checked
:
false
,
checked_right
:
false
,
isIndeterminateGroup
:
false
,
isIndeterminateGroup_right
:
false
,
gruopCheckAll
:
false
,
gruopCheckAll_right
:
false
,
selectGroup
:
[]
}
]
]
this
.
crowdUnitListReset
=
this
.
$common
.
utils
.
deepClone
(
this
.
crowdUnitList
)
this
.
crowdUnitListReset
=
this
.
$common
.
utils
.
deepClone
(
this
.
crowdUnitList
)
...
@@ -197,6 +197,9 @@ export default {
...
@@ -197,6 +197,9 @@ export default {
crowdIdList
crowdIdList
}
}
}
}
if
(
this
.
ruleForm
.
isDisplay
==
2
)
{
delete
this
.
ruleForm
.
displayLoc
}
Object
.
assign
(
params
.
req
,
this
.
ruleForm
)
Object
.
assign
(
params
.
req
,
this
.
ruleForm
)
let
crowdGroup
let
crowdGroup
if
(
this
.
ruleForm
.
crowdGroupId
)
{
if
(
this
.
ruleForm
.
crowdGroupId
)
{
...
@@ -205,9 +208,13 @@ export default {
...
@@ -205,9 +208,13 @@ export default {
crowdGroup
=
'addCrowdGroup'
crowdGroup
=
'addCrowdGroup'
}
}
this
.
$apis
.
crowdManage
[
crowdGroup
](
params
).
then
(
res
=>
{
this
.
$apis
.
crowdManage
[
crowdGroup
](
params
).
then
(
res
=>
{
if
(
res
)
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
0
)
{
this
.
groupVisible
=
false
this
.
groupVisible
=
false
this
.
$message
.
success
(
'操作成功'
)
this
.
$parent
.
searchTable
()
this
.
$parent
.
searchTable
()
}
else
{
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
})
})
}
}
...
...
src/views/clientDataOverview/components/marketingPlan.vue
View file @
4c8aeff
...
@@ -158,7 +158,7 @@ export default {
...
@@ -158,7 +158,7 @@ export default {
crowdId
:
this
.
crowdGroupId
,
crowdId
:
this
.
crowdGroupId
,
selectTab
:
'second'
selectTab
:
'second'
})
})
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
`/
npmph
/clientDataOverview/marketingPeople?crowQuery=
${
query
}
`
)}
&id=
${
id
}
`
)
this
.
$history
.
push
(
`/marketing/sop/sopAnalysisList?fromPage=
${
encodeURI
(
`/
custom
/clientDataOverview/marketingPeople?crowQuery=
${
query
}
`
)}
&id=
${
id
}
`
)
},
},
// 跳转到编辑营销SOP
// 跳转到编辑营销SOP
handleEdit
(
row
)
{
handleEdit
(
row
)
{
...
@@ -166,7 +166,7 @@ export default {
...
@@ -166,7 +166,7 @@ export default {
crowdId
:
this
.
crowdGroupId
,
crowdId
:
this
.
crowdGroupId
,
selectTab
:
'second'
selectTab
:
'second'
})
})
this
.
$history
.
push
(
`/marketing/sop/editSop?fromPage=
${
encodeURI
(
`/
npmph
/clientDataOverview/marketingPeople?crowQuery=
${
query
}
`
)}
&addOrEdit=edit&id=
${
row
.
id
}
&$title=编辑SOP`
)
this
.
$history
.
push
(
`/marketing/sop/editSop?fromPage=
${
encodeURI
(
`/
custom
/clientDataOverview/marketingPeople?crowQuery=
${
query
}
`
)}
&addOrEdit=edit&id=
${
row
.
id
}
&$title=编辑SOP`
)
},
},
setTableFinishFun
()
{
setTableFinishFun
()
{
this
.
$refs
.
marketingPlan
.
data
.
length
?
(
this
.
$refs
.
marketingPlan
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
this
.
$refs
.
marketingPlan
.
data
.
length
?
(
this
.
$refs
.
marketingPlan
.
tableHeightValues
=
''
)
:
this
.
$refs
.
marketingPlan
.
setTableHeightFun
()
...
...
src/views/clientDataOverview/grouping.vue
View file @
4c8aeff
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
class=
"blue-text"
>
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
class=
"blue-text"
>
编辑
编辑
</el-button>
</el-button>
<
!--
<
el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
class=
"blue-text"
>
<el-button
type=
"text"
@
click=
"handleDelete(scope.scope)"
class=
"blue-text"
>
删除
删除
</el-button>
-->
</el-button>
<!--
<GLButton
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
fn=
"客户群详情"
type=
"text"
>
详情
</GLButton>
-->
<!--
<GLButton
@
click=
"goDetail(scope.scope.id, scope.scope.custGroupName)"
fn=
"客户群详情"
type=
"text"
>
详情
</GLButton>
-->
</
template
>
</
template
>
</GLTable>
</GLTable>
...
@@ -119,14 +119,20 @@ export default {
...
@@ -119,14 +119,20 @@ export default {
label
:
'未加企微数'
,
label
:
'未加企微数'
,
prop
:
'notWechatTotal'
prop
:
'notWechatTotal'
},
},
// {
{
// label: '概览是否展示',
label
:
'概览是否展示'
,
// prop: 'delCustomerCount'
prop
:
'isDisplay'
,
// },
formatter
:
cellValue
=>
{
// {
return
cellValue
.
isDisplay
==
1
?
'展示'
:
'不展示'
// label: '展示位',
}
// prop: 'staffs'
},
// },
{
label
:
'展示位'
,
prop
:
'displayLoc'
,
formatter
:
cellValue
=>
{
return
cellValue
.
displayLoc
?
cellValue
.
displayLoc
+
'号展示位'
:
'--'
}
},
{
{
label
:
'操作'
,
label
:
'操作'
,
width
:
180
,
width
:
180
,
...
@@ -167,7 +173,11 @@ export default {
...
@@ -167,7 +173,11 @@ export default {
cancelButtonText
:
'否'
,
cancelButtonText
:
'否'
,
type
:
'warning'
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(
async
()
=>
{
const
activityPage
=
await
this
.
$apis
.
crowdManage
.
activityPage
({
pageSize
:
1
,
pageNum
:
1
,
custGroupId
:
scope
.
crowdGroupId
})
if
(
activityPage
.
data
.
length
)
{
this
.
againConfirm
()
}
else
{
this
.
$apis
.
crowdManage
this
.
$apis
.
crowdManage
.
deleteCrowdGroup
({
.
deleteCrowdGroup
({
'req.crowdGroupId'
:
scope
.
crowdGroupId
'req.crowdGroupId'
:
scope
.
crowdGroupId
...
@@ -181,7 +191,17 @@ export default {
...
@@ -181,7 +191,17 @@ export default {
}
}
this
.
searchTable
()
this
.
searchTable
()
})
})
}
})
.
catch
(()
=>
{})
},
againConfirm
()
{
this
.
$confirm
(
'此分群已被招揽活动任务调用,不支持删除'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
})
})
.
then
(()
=>
{})
.
catch
(()
=>
{})
.
catch
(()
=>
{})
},
},
setTableHeightEvent
()
{
setTableHeightEvent
()
{
...
...
src/views/clientDataOverview/marketingPeople.vue
View file @
4c8aeff
...
@@ -249,16 +249,16 @@ export default {
...
@@ -249,16 +249,16 @@ export default {
prop
:
'audi'
,
prop
:
'audi'
,
width
:
170
width
:
170
},
},
{
//
{
label
:
'车险开始时间'
,
//
label: '车险开始时间',
prop
:
'isStartDate'
,
//
prop: 'isStartDate',
width
:
170
//
width: 170
},
//
},
{
//
{
label
:
'车险到期时间'
,
//
label: '车险到期时间',
prop
:
'insEndDate'
,
//
prop: 'insEndDate',
width
:
170
//
width: 170
},
//
},
{
{
label
:
'跟进员工'
,
label
:
'跟进员工'
,
prop
:
'followStaff'
,
prop
:
'followStaff'
,
...
...
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