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
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
91 additions
and
46 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 => {
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
{
getCrowdList
,
getCrowdDetails
,
...
...
@@ -141,5 +151,6 @@ export default {
addCrowdGroup
,
editCrowdGroup
,
deleteCrowdGroup
,
queryCrowdGroupDetailsByCrowdGroupId
queryCrowdGroupDetailsByCrowdGroupId
,
activityPage
}
src/main.js
View file @
4c8aeff
...
...
@@ -30,18 +30,17 @@ Vue.prototype.$apis = apis
Vue
.
use
(
glsxTable
)
Vue
.
prototype
.
$message
=
message
Vue
.
prototype
.
size
=
'small'
// Vue.prototype.btn_size = 'mini'
// Vue.prototype.btn_size = 'mini'
Vue
.
prototype
.
$Constants
=
Constants
Vue
.
prototype
.
$Utils
=
Util
Vue
.
prototype
.
$Commons
=
common
Vue
.
prototype
.
$echarts
=
echarts
//过滤器统一处理预加载
//过滤器统一处理预加载
Object
.
keys
(
filters
).
forEach
(
key
=>
{
Vue
.
filter
(
key
,
filters
[
key
])
Vue
.
filter
(
key
,
filters
[
key
])
})
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
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
)
\ No newline at end of file
export
const
http_common
=
params
=>
Vue
.
prototype
.
$http_common
(
params
)
src/styles/resetelement.scss
View file @
4c8aeff
...
...
@@ -67,6 +67,14 @@
transform
:
translateX
(
-50%
);
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
{
background
:
#666666
!
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 {
},
methods
:
{
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
=
{
req
:
{
crowdType
:
1
,
...
...
@@ -132,7 +132,7 @@ export default {
selectGroup:右边树的选中数据
*/
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
:
[]
}
]
this
.
crowdUnitListReset
=
this
.
$common
.
utils
.
deepClone
(
this
.
crowdUnitList
)
...
...
@@ -197,6 +197,9 @@ export default {
crowdIdList
}
}
if
(
this
.
ruleForm
.
isDisplay
==
2
)
{
delete
this
.
ruleForm
.
displayLoc
}
Object
.
assign
(
params
.
req
,
this
.
ruleForm
)
let
crowdGroup
if
(
this
.
ruleForm
.
crowdGroupId
)
{
...
...
@@ -205,9 +208,13 @@ export default {
crowdGroup
=
'addCrowdGroup'
}
this
.
$apis
.
crowdManage
[
crowdGroup
](
params
).
then
(
res
=>
{
if
(
res
)
{
console
.
log
(
res
)
if
(
res
.
data
.
code
==
0
)
{
this
.
groupVisible
=
false
this
.
$message
.
success
(
'操作成功'
)
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 {
crowdId
:
this
.
crowdGroupId
,
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
handleEdit
(
row
)
{
...
...
@@ -166,7 +166,7 @@ export default {
crowdId
:
this
.
crowdGroupId
,
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
()
{
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 @@
<el-button
type=
"text"
@
click=
"handleAdd(scope.scope)"
class=
"blue-text"
>
编辑
</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>
-->
</
template
>
</GLTable>
...
...
@@ -119,14 +119,20 @@ export default {
label
:
'未加企微数'
,
prop
:
'notWechatTotal'
},
// {
// label: '概览是否展示',
// prop: 'delCustomerCount'
// },
// {
// label: '展示位',
// prop: 'staffs'
// },
{
label
:
'概览是否展示'
,
prop
:
'isDisplay'
,
formatter
:
cellValue
=>
{
return
cellValue
.
isDisplay
==
1
?
'展示'
:
'不展示'
}
},
{
label
:
'展示位'
,
prop
:
'displayLoc'
,
formatter
:
cellValue
=>
{
return
cellValue
.
displayLoc
?
cellValue
.
displayLoc
+
'号展示位'
:
'--'
}
},
{
label
:
'操作'
,
width
:
180
,
...
...
@@ -167,23 +173,37 @@ export default {
cancelButtonText
:
'否'
,
type
:
'warning'
})
.
then
(()
=>
{
this
.
$apis
.
crowdManage
.
deleteCrowdGroup
({
'req.crowdGroupId'
:
scope
.
crowdGroupId
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
}
this
.
searchTable
()
})
.
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
.
deleteCrowdGroup
({
'req.crowdGroupId'
:
scope
.
crowdGroupId
})
.
then
(
res
=>
{
if
(
res
)
{
this
.
$message
({
type
:
'success'
,
message
:
'删除成功!'
})
}
this
.
searchTable
()
})
}
})
.
catch
(()
=>
{})
},
againConfirm
()
{
this
.
$confirm
(
'此分群已被招揽活动任务调用,不支持删除'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'error'
})
.
then
(()
=>
{})
.
catch
(()
=>
{})
},
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
},
...
...
src/views/clientDataOverview/marketingPeople.vue
View file @
4c8aeff
...
...
@@ -249,16 +249,16 @@ export default {
prop
:
'audi'
,
width
:
170
},
{
label
:
'车险开始时间'
,
prop
:
'isStartDate'
,
width
:
170
},
{
label
:
'车险到期时间'
,
prop
:
'insEndDate'
,
width
:
170
},
//
{
//
label: '车险开始时间',
//
prop: 'isStartDate',
//
width: 170
//
},
//
{
//
label: '车险到期时间',
//
prop: 'insEndDate',
//
width: 170
//
},
{
label
:
'跟进员工'
,
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