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 fd786db4
authored
Jun 14, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.4.0' into 'v2.4.0'
修复第一轮测试bug See merge request
!111
2 parents
8312b052
dc03ee38
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
66 deletions
src/styles/resetelement.scss
src/views/clientDataOverview/addOrEdit.vue
src/views/clientDataOverview/grouping.vue
src/views/clientDataOverview/index.vue
src/views/clientDataOverview/marketingPeople.vue
src/styles/resetelement.scss
View file @
fd786db
.el-select
{
.el-select
{
width
:
100%
;
width
:
100%
;
}
}
.el-pagination
{
.el-pagination
{
display
:
flex
;
display
:
flex
;
margin-top
:
18px
;
margin-top
:
18px
;
}
}
.glsx-table
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
.glsx-table
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background-color
:
$btnBlue
;
background-color
:
$btnBlue
;
color
:
#fff
;
color
:
#fff
;
}
}
.el-dialog__header
.el-dialog__title
{
.el-dialog__header
.el-dialog__title
{
height
:
28px
;
height
:
28px
;
font-size
:
20px
;
font-size
:
20px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
line-height
:
28px
;
line-height
:
28px
;
}
}
/
deep
/
.el-input__inner
:focus
{
/
deep
/
.el-input__inner
:focus
{
border-color
:
$btnBlue
!
important
;
border-color
:
$btnBlue
!
important
;
}
}
/
deep
/
.el-range-editor.is-active
,
/
deep
/
.el-range-editor.is-active
,
.el-range-editor.is-active
:hover
{
.el-range-editor.is-active
:hover
{
border-color
:
$btnBlue
;
border-color
:
$btnBlue
;
}
}
.el-message-box
{
.el-message-box
{
width
:
547px
;
width
:
547px
;
height
:
310px
;
height
:
310px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-bottom
:
10px
;
padding-bottom
:
10px
;
}
}
.el-message-box__title
{
.el-message-box__title
{
padding-left
:
0
;
padding-left
:
0
;
margin-bottom
:
0
;
margin-bottom
:
0
;
font-size
:
20px
;
font-size
:
20px
;
line-height
:
1
;
line-height
:
1
;
color
:
#333
;
color
:
#333
;
}
}
.el-message-box__title
{
.el-message-box__title
{
display
:
block
!
important
;
display
:
block
!
important
;
}
}
.el-message-box__headerbtn
{
.el-message-box__headerbtn
{
display
:
block
!
important
;
display
:
block
!
important
;
color
:
#666666
;
color
:
#666666
;
}
}
.el-message-box__header
{
.el-message-box__header
{
position
:
relative
;
position
:
relative
;
padding
:
15px
20px
;
padding
:
15px
20px
;
border-bottom
:
1px
solid
#e6e6e6
;
border-bottom
:
1px
solid
#e6e6e6
;
}
}
.el-message-box__content
{
.el-message-box__content
{
text-align
:
center
;
text-align
:
center
;
padding
:
60px
0
;
padding
:
60px
0
;
}
}
.el-icon-warning
{
.el-icon-warning
{
display
:
block
!
important
;
display
:
block
!
important
;
font-size
:
33px
!
important
;
font-size
:
33px
!
important
;
color
:
#5850ff
!
important
;
color
:
#5850ff
!
important
;
position
:
relative
;
position
:
relative
;
left
:
50%
;
left
:
50%
;
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-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
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#ffffff
;
color
:
#ffffff
;
line-height
:
18px
;
line-height
:
18px
;
}
}
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
{
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
{
border-top-color
:
#666666
!
important
;
border-top-color
:
#666666
!
important
;
}
}
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
:after
{
.el-tooltip__popper
[
x-placement
^=
"top"
]
.popper__arrow
:after
{
border-top-color
:
#666666
!
important
;
border-top-color
:
#666666
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
src/views/clientDataOverview/addOrEdit.vue
View file @
fd786db
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<div
class=
"group-tree-container"
>
<div
class=
"group-tree-container"
>
<div
class=
"group-tree-panel"
:style=
"
{ height: heightBox + 'px' }">
<div
class=
"group-tree-panel"
:style=
"
{ height: heightBox + 'px' }">
<template
v-for=
"(item, index) in crowdUnitList"
>
<template
v-for=
"(item, index) in crowdUnitList"
>
<div
:key=
"item"
v-if=
"item.selectGroup.length != item.children.length"
>
<div
:key=
"item"
v-if=
"item.selectGroup
&& item.children && item.selectGroup
.length != item.children.length"
>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }" @click.self="handleExpand(index)">
</span>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }" @click.self="handleExpand(index)">
</span>
<el-checkbox
:indeterminate=
"item.isIndeterminateGroup"
v-model=
"item.gruopCheckAll"
@
change=
"handleGroup(item.gruopCheckAll, index)"
>
{{
item
.
crowdName
}}
</el-checkbox>
<el-checkbox
:indeterminate=
"item.isIndeterminateGroup"
v-model=
"item.gruopCheckAll"
@
change=
"handleGroup(item.gruopCheckAll, index)"
>
{{
item
.
crowdName
}}
</el-checkbox>
<el-checkbox-group
:style=
"
{ 'max-height': item.checked ? heightBox - 70 + 'px' : '0px' }" v-model="item.groupArr" @change="handleCheckedGroup(item.groupArr, index)" v-show="item.checked">
<el-checkbox-group
:style=
"
{ 'max-height': item.checked ? heightBox - 70 + 'px' : '0px' }" v-model="item.groupArr" @change="handleCheckedGroup(item.groupArr, index)" v-show="item.checked">
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
</div>
</div>
<div
class=
"group-tree-panel"
:style=
"{ height: heightBox + 'px' }"
>
<div
class=
"group-tree-panel"
:style=
"{ height: heightBox + 'px' }"
>
<
template
v-for=
"(item, index) in crowdUnitList"
>
<
template
v-for=
"(item, index) in crowdUnitList"
>
<div
:key=
"item"
v-if=
"item.selectGroup.length > 0"
>
<div
:key=
"item"
v-if=
"item.selectGroup
&& item.selectGroup
.length > 0"
>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked_right }" @click.self="handleExpandChecked(index)">
</span>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked_right }" @click.self="handleExpandChecked(index)">
</span>
<el-checkbox
:indeterminate=
"item.isIndeterminateGroup_right"
v-model=
"item.gruopCheckAll_right"
@
change=
"handleGroupChecked(item.gruopCheckAll_right, index)"
>
{{
item
.
crowdName
}}
</el-checkbox>
<el-checkbox
:indeterminate=
"item.isIndeterminateGroup_right"
v-model=
"item.gruopCheckAll_right"
@
change=
"handleGroupChecked(item.gruopCheckAll_right, index)"
>
{{
item
.
crowdName
}}
</el-checkbox>
<el-checkbox-group
:style=
"
{ 'max-height': item.checked_right ? heightBox - 70 + 'px' : '0px' }" v-model="item.groupArr_right" @change="handleCheckedGroupChecked(item.groupArr_right, index)" v-show="item.checked_right">
<el-checkbox-group
:style=
"
{ 'max-height': item.checked_right ? heightBox - 70 + 'px' : '0px' }" v-model="item.groupArr_right" @change="handleCheckedGroupChecked(item.groupArr_right, index)" v-show="item.checked_right">
...
@@ -51,9 +51,7 @@
...
@@ -51,9 +51,7 @@
</div>
</div>
</template>
</template>
</div>
</div>
<div
class=
"el-form-item__error"
v-show=
"crowdStatus"
>
<div
class=
"el-form-item__error"
v-show=
"crowdStatus"
></div>
请选择人群
</div>
<!-- <div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<!-- <div class="group-tree-panel" :style="{ height: heightBox + 'px' }">
<el-tree @node-expand="nodeExpand" accordion :data="crowdUnitList" :props="defaultProps" show-checkbox></el-tree>
<el-tree @node-expand="nodeExpand" accordion :data="crowdUnitList" :props="defaultProps" show-checkbox></el-tree>
</div> -->
</div> -->
...
@@ -214,6 +212,7 @@ export default {
...
@@ -214,6 +212,7 @@ export default {
this
.
$message
.
success
(
'操作成功'
)
this
.
$message
.
success
(
'操作成功'
)
this
.
$parent
.
searchTable
()
this
.
$parent
.
searchTable
()
}
else
{
}
else
{
// res.data.message
this
.
$message
.
error
(
res
.
data
.
message
)
this
.
$message
.
error
(
res
.
data
.
message
)
}
}
})
})
...
...
src/views/clientDataOverview/grouping.vue
View file @
fd786db
...
@@ -51,6 +51,7 @@ export default {
...
@@ -51,6 +51,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
firstSearch
:
true
,
expandArr
:
[],
expandArr
:
[],
isReload
:
true
,
isReload
:
true
,
url
:
url
,
url
:
url
,
...
@@ -221,8 +222,11 @@ export default {
...
@@ -221,8 +222,11 @@ export default {
// if (!this.$refs.clientGroupManage.data.length) {
// if (!this.$refs.clientGroupManage.data.length) {
// this.$refs.clientGroupManage.setTableHeightFun()
// this.$refs.clientGroupManage.setTableHeightFun()
// }
// }
if
(
this
.
firstSearch
)
{
this
.
expandArr
=
this
.
$refs
.
clientGroupManage
.
data
.
length
?
[
this
.
$refs
.
clientGroupManage
.
data
[
0
].
crowdGroupId
+
''
]
:
[]
this
.
firstSearch
=
false
}
this
.
expandArr
=
this
.
$refs
.
clientGroupManage
.
data
.
length
?
[
this
.
$refs
.
clientGroupManage
.
data
[
0
].
crowdGroupId
+
''
]
:
[]
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
this
.
$refs
.
clientGroupManage
.
data
.
length
?
(
this
.
$refs
.
clientGroupManage
.
tableHeightValues
=
''
)
:
this
.
$refs
.
clientGroupManage
.
setTableHeightFun
()
},
},
//导出
//导出
...
@@ -265,6 +269,9 @@ export default {
...
@@ -265,6 +269,9 @@ export default {
},
},
resetTable
()
{
resetTable
()
{
this
.
searchForm
=
{
keyword
:
''
}
this
.
isReload
=
false
this
.
isReload
=
false
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
isReload
=
true
this
.
isReload
=
true
...
...
src/views/clientDataOverview/index.vue
View file @
fd786db
...
@@ -281,7 +281,7 @@
...
@@ -281,7 +281,7 @@
客户分群
客户分群
<span>
| 数据统计截止时间:{{ updateTime }}
</span>
<span>
| 数据统计截止时间:{{ updateTime }}
</span>
</span>
</span>
<span
class=
"setting"
v-if=
"
userType == 2 && isMerchantStaffAdmin == true
"
@
click=
"goToGrouping()"
>
设置
</span>
<span
class=
"setting"
v-if=
"
(userType == 2 && isMerchantStaffAdmin == true) || (userType == 1 && accountLevel == 4)
"
@
click=
"goToGrouping()"
>
设置
</span>
</div>
</div>
<div
class=
"itembox"
>
<div
class=
"itembox"
>
<
template
v-for=
"(item, index) in customerSegmentation"
>
<
template
v-for=
"(item, index) in customerSegmentation"
>
...
@@ -557,7 +557,6 @@ export default {
...
@@ -557,7 +557,6 @@ export default {
},
},
customerListShow
()
{
customerListShow
()
{
let
param
=
{
let
param
=
{
// this.merchantId
'req.merchantId'
:
this
.
merchantId
,
'req.merchantId'
:
this
.
merchantId
,
'req.isDisplay'
:
1
'req.isDisplay'
:
1
}
}
...
...
src/views/clientDataOverview/marketingPeople.vue
View file @
fd786db
...
@@ -322,18 +322,20 @@ export default {
...
@@ -322,18 +322,20 @@ export default {
spaceBetween
:
16
spaceBetween
:
16
}
}
},
},
pagination
:
{
pagination
:
{
el
:
'.swiper-pagination'
,
el
:
'.swiper-pagination'
,
type
:
'progressbar'
type
:
'progressbar'
}
}
})
})
console
.
log
(
previewSwiper
.
breakpoints
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
previewSwiper
.
slideTo
(
0
,
0
,
false
)
previewSwiper
.
slideTo
(
0
,
0
,
false
)
},
500
)
},
500
)
})
})
// let clientWidth = document.documentElement.clientWidth
// let breakpointsArr = previewSwiper.passedParams.breakpoints
// console.log(breakpointsArr)
},
},
methods
:
{
methods
:
{
// 导出
// 导出
...
@@ -411,7 +413,6 @@ export default {
...
@@ -411,7 +413,6 @@ export default {
}
}
})
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
staff
.
unshift
({
label
:
'全部'
,
value
:
''
})
console
.
log
(
staff
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
marketPeopleFormList
[
id
].
optionList
=
staff
this
.
marketPeopleFormList
[
id
].
optionList
=
staff
})
})
...
@@ -423,9 +424,10 @@ export default {
...
@@ -423,9 +424,10 @@ export default {
},
},
//重置表格
//重置表格
resetTable
()
{
resetTable
()
{
console
.
log
(
this
.
backupCrowdId
)
this
.
searchForm
=
{
this
.
searchForm
=
{
customCrowd
:
true
,
customCrowd
:
true
,
crowdId
:
this
.
backupCrowdId
crowdId
:
this
.
backupCrowdId
?
this
.
backupCrowdId
:
this
.
theFirstGroudId
}
}
this
.
$refs
.
marketPeople
.
refreshTable
()
this
.
$refs
.
marketPeople
.
refreshTable
()
},
},
...
...
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