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 c30a8de1
authored
Jun 10, 2022
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
16bf6948
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
34 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 @
c30a8de
...
...
@@ -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 @
c30a8de
...
...
@@ -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 @
c30a8de
...
...
@@ -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 @
c30a8de
...
...
@@ -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
)
{
...
...
src/views/clientDataOverview/components/marketingPlan.vue
View file @
c30a8de
...
...
@@ -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 @
c30a8de
...
...
@@ -173,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 @
c30a8de
...
...
@@ -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