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 990effd6
authored
Mar 11, 2022
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
6e4dd2a6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
src/api/modules/crowdManage.js
src/views/crowdManage/crowdDetail.vue
src/views/crowdManage/index.vue
src/api/modules/crowdManage.js
View file @
990effd
...
@@ -12,7 +12,8 @@ import { http3 } from '@/main'
...
@@ -12,7 +12,8 @@ import { http3 } from '@/main'
export
function
getCrowdList
(
params
)
{
export
function
getCrowdList
(
params
)
{
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
params
.
method
=
'scrm.api.datahub.user.queryCrowdTree'
return
http3
({
return
http3
({
url
:
'/rop-scrm-datahub/router'
,
// url: '/rop-scrm-datahub/router',
url
:
'http://192.168.3.181:9636/rop-scrm-datahub/router'
,
method
:
'POST'
,
method
:
'POST'
,
data
:
params
,
data
:
params
,
sign
:
true
,
sign
:
true
,
...
...
src/views/crowdManage/crowdDetail.vue
View file @
990effd
This diff is collapsed.
Click to expand it.
src/views/crowdManage/index.vue
View file @
990effd
<
template
>
<
template
>
<div
class=
"scrm-sub-client-container"
v-loading=
loading
>
<div
class=
"scrm-sub-client-container"
v-loading=
"loading"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick()"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick()"
>
<el-tab-pane
label=
"推荐人群"
name=
"first"
></el-tab-pane>
<el-tab-pane
label=
"推荐人群"
name=
"first"
></el-tab-pane>
<el-tab-pane
label=
"自定义人群"
name=
"second"
>
<el-tab-pane
label=
"自定义人群"
name=
"second"
>
<
el-button
type=
"primary"
>
+ 新建人群
</el-b
utton>
<
GLButton
class=
"addBtn"
fn=
"新建人群"
@
click=
"addClick"
>
+ 新建人群
</GLB
utton>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"pageContent"
>
<div
class=
"pageContent"
>
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
</search-form>
</search-form>
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<GLTable
@
setTableFinishFun=
"setTableFinishFun"
v-if=
"isReload"
ref=
"crowdManage"
:hasNum=
"false"
:getListApi=
"getListApi"
:beforeSearchFn=
"beforeSearchFn"
:searchForm=
"searchForm"
:pageConf=
"pageConf"
:noDataImg=
"url"
:tableParams=
"tableParams"
:headerStyle=
"
{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<template
slot=
"xxx"
slot-scope=
"scope"
>
<template
slot=
"xxx"
slot-scope=
"scope"
>
<span
@
click=
"btnClick('
edit
', scope.scope)"
class=
"blue-text"
>
查看详情
</span>
<span
@
click=
"btnClick('
detail
', scope.scope)"
class=
"blue-text"
>
查看详情
</span>
<span
style=
"margin-left: 20px"
@
click=
"btnClick('
edit
', scope.scope)"
class=
"blue-text"
>
查看客户
</span>
<span
style=
"margin-left: 20px"
@
click=
"btnClick('
view
', scope.scope)"
class=
"blue-text"
>
查看客户
</span>
<!--
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看客户"
v-if=
"userType !== 2"
@
click=
"toViewCustomer(scope.scope)"
>
查看客户
</GLButton>
-->
<!--
<GLButton
class=
"blue-text leftDistance"
type=
"text"
fn=
"查看客户"
v-if=
"userType !== 2"
@
click=
"toViewCustomer(scope.scope)"
>
查看客户
</GLButton>
-->
</
template
>
</
template
>
</GLTable>
</GLTable>
...
@@ -108,6 +108,19 @@ export default {
...
@@ -108,6 +108,19 @@ export default {
},
200
)
},
200
)
},
},
methods
:
{
methods
:
{
btnClick
(
type
,
data
)
{
console
.
log
(
data
)
if
(
type
==
'detail'
)
{
console
.
log
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
this
.
$router
.
push
(
`/crowdManage/crowdDetail/
${
data
.
crowdId
}
`
)
}
if
(
type
==
'view'
)
{
this
.
$router
.
push
(
`/clientDataOverview/group/
${
data
.
crowdId
}
`
)
}
},
addClick
()
{
this
.
$router
.
push
(
'/crowdManage/crowdAdd'
)
},
setTableHeightEvent
()
{
setTableHeightEvent
()
{
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
this
.
$refs
.
clientGroupDetail
.
setTableHeightFun
()
},
},
...
@@ -126,7 +139,6 @@ export default {
...
@@ -126,7 +139,6 @@ export default {
this
.
searchForm
=
Object
.
assign
(
this
.
searchForm
,
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
crowdType
})
this
.
searchForm
=
Object
.
assign
(
this
.
searchForm
,
{
'req.merchantId'
:
this
.
merchantId
,
'req.crowdType'
:
crowdType
})
resolve
()
resolve
()
})
})
},
},
//搜索表格
//搜索表格
searchTable
()
{
searchTable
()
{
...
@@ -145,6 +157,17 @@ export default {
...
@@ -145,6 +157,17 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/styles/variables.scss'
;
@import
'@/styles/variables.scss'
;
@import
'@/styles/resetelement.scss'
;
@import
'@/styles/resetelement.scss'
;
.addBtn
{
height
:
32px
;
background
:
$
btnBlue
;
border-radius
:
3px
;
padding
:
5px
16px
;
color
:
#fff
;
font-size
:
16px
;
&:hover
{
background-color
:
$
lightBtnBlue
;
}
}
/
deep
/
.el-tabs__nav-wrap
::after
{
/
deep
/
.el-tabs__nav-wrap
::after
{
content
:
none
;
content
:
none
;
}
}
...
...
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