Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
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 4a4e4fa9
authored
Nov 02, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'xuyl_dev_v2.11.0' into 'v2.11.0'
更新代码 See merge request
!26
2 parents
675bb58a
991be125
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
168 additions
and
112 deletions
src/views/collocation/index.vue
src/views/wechatGroup/addWechatGroup.vue
src/views/wechatGroup/components/SelectLabel.vue
src/views/wechatGroup/components/selectCrowd.vue
src/views/wechatGroup/index.vue
src/views/collocation/index.vue
View file @
4a4e4fa
...
@@ -46,7 +46,9 @@ export default {
...
@@ -46,7 +46,9 @@ export default {
qrcodeUrl
:
''
,
qrcodeUrl
:
''
,
qrCodeVisible
:
false
,
qrCodeVisible
:
false
,
qrcodeId
:
''
,
qrcodeId
:
''
,
searchForm
:
{},
searchForm
:
{
loginStatus
:
''
},
searchFormData
:
[
searchFormData
:
[
{
{
label
:
'所属企微'
,
label
:
'所属企微'
,
...
...
src/views/wechatGroup/addWechatGroup.vue
View file @
4a4e4fa
...
@@ -76,8 +76,8 @@
...
@@ -76,8 +76,8 @@
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
v-loading=
"addLoading"
@
click=
"handleSubmit"
>
提交
</el-button>
</GLFooter>
</GLFooter>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectLabel
ref=
"selectLabel"
@
tagSelected=
"handleSelect"
:
resetMerchantId=
"resetMerchantId"
:
dialogVisible=
"dialogVisible"
></SelectLabel>
<SelectCrowd
ref=
"selectCrowd"
@
crowdData=
"getCrowdData"
:selectCrowdData=
"basicForm.crowdList"
></SelectCrowd>
<SelectCrowd
ref=
"selectCrowd"
@
crowdData=
"getCrowdData"
:resetMerchantId=
"resetMerchantId"
:selectCrowdData=
"basicForm.crowdList"
></SelectCrowd>
</div>
</div>
</
template
>
</
template
>
...
@@ -100,6 +100,7 @@ export default {
...
@@ -100,6 +100,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
resetMerchantId
:
''
,
msgMerchantName
:
''
,
msgMerchantName
:
''
,
// 新建按钮加载
// 新建按钮加载
addLoading
:
false
,
addLoading
:
false
,
...
@@ -209,7 +210,7 @@ export default {
...
@@ -209,7 +210,7 @@ export default {
attachmentShow
:
false
,
attachmentShow
:
false
,
attachmentText
:
''
,
attachmentText
:
''
,
basicRules
:
{
basicRules
:
{
groupName
:
[{
required
:
true
,
message
:
'请
选择
群发名称'
,
trigger
:
'blur'
}],
groupName
:
[{
required
:
true
,
message
:
'请
输入
群发名称'
,
trigger
:
'blur'
}],
selectStore
:
[{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}],
selectStore
:
[{
required
:
true
,
message
:
'请选择门店'
,
trigger
:
'change'
}],
selectType
:
[{
required
:
true
,
message
:
'请选择客户类型'
,
trigger
:
'change'
}]
selectType
:
[{
required
:
true
,
message
:
'请选择客户类型'
,
trigger
:
'change'
}]
},
},
...
@@ -335,6 +336,7 @@ export default {
...
@@ -335,6 +336,7 @@ export default {
}
}
},
},
selectChange
(
val
)
{
selectChange
(
val
)
{
this
.
resetMerchantId
=
val
this
.
msgMerchantName
=
val
&&
this
.
dataItems
.
find
(
item
=>
item
.
msgMerchantId
==
val
).
msgMerchantName
this
.
msgMerchantName
=
val
&&
this
.
dataItems
.
find
(
item
=>
item
.
msgMerchantId
==
val
).
msgMerchantName
},
},
// 返回
// 返回
...
@@ -513,12 +515,12 @@ export default {
...
@@ -513,12 +515,12 @@ export default {
},
},
// 查看群发人数
// 查看群发人数
viewMembers
()
{
viewMembers
()
{
if
(
!
this
.
basicForm
.
groupName
)
{
//
if (!this.basicForm.groupName) {
return
this
.
$message
({
//
return this.$message({
type
:
'error'
,
//
type: 'error',
message
:
'请选择
群发名称'
// message: '请输入
群发名称'
})
//
})
}
//
}
if
(
this
.
basicForm
.
selectType
==
'1'
&&
!
this
.
taggingList
.
length
)
{
if
(
this
.
basicForm
.
selectType
==
'1'
&&
!
this
.
taggingList
.
length
)
{
return
this
.
$message
({
return
this
.
$message
({
type
:
'error'
,
type
:
'error'
,
...
...
src/views/wechatGroup/components/SelectLabel.vue
View file @
4a4e4fa
...
@@ -12,11 +12,17 @@
...
@@ -12,11 +12,17 @@
</div>
</div>
<div
class=
"checkbox-group-box"
:style=
"
{ height: heightBox + 'px' }" v-loading="loading">
<div
class=
"checkbox-group-box"
:style=
"
{ height: heightBox + 'px' }" v-loading="loading">
<div
style=
"margin-bottom: 8px"
v-for=
"(item, index) in labelTreeRets"
:key=
"index"
>
<div
style=
"margin-bottom: 8px"
v-for=
"(item, index) in labelTreeRets"
:key=
"index"
>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }" @click.self="item.checked = !item.checked">
</span>
<span
class=
"el-tree-node__expand-icon el-icon-caret-right"
:class=
"
{ expanded: item.checked }"
<el-checkbox
:indeterminate=
"item.isIndeterminate"
v-model=
"item.checkAll"
@
change=
"handleCheckAllChange(item.checkAll, index)"
>
{{
item
.
labelGroup
.
name
}}
(
{{
item
.
tagChecked
.
length
}}
/
{{
item
.
labelList
.
length
}}
项)
</el-checkbox>
@click.self="item.checked = !item.checked">
</span>
<el-checkbox
:indeterminate=
"item.isIndeterminate"
v-model=
"item.checkAll"
@
change=
"handleCheckAllChange(item.checkAll, index)"
>
{{
item
.
labelGroup
.
name
}}
(
{{
item
.
tagChecked
.
length
}}
/
{{
item
.
labelList
.
length
}}
项)
</el-checkbox>
<el-tag
:size=
"size"
class=
"tag-show"
>
{{
item
.
labelType
}}
</el-tag>
<el-tag
:size=
"size"
class=
"tag-show"
>
{{
item
.
labelType
}}
</el-tag>
<div
style=
"margin: 15px 0"
></div>
<div
style=
"margin: 15px 0"
></div>
<el-checkbox-group
class=
"tag-group"
v-model=
"item.tagChecked"
@
change=
"handleCheckedChange(item.tagChecked, index)"
v-show=
"item.checked"
>
<el-checkbox-group
class=
"tag-group"
v-model=
"item.tagChecked"
@
change=
"handleCheckedChange(item.tagChecked, index)"
v-show=
"item.checked"
>
<div
v-for=
"(itm, idx) in item.labelList"
:key=
"idx"
class=
"radio-tag"
>
<div
v-for=
"(itm, idx) in item.labelList"
:key=
"idx"
class=
"radio-tag"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"itm.name.length
< 8
"
>
<el-tooltip
effect=
"dark"
placement=
"top"
:disabled=
"itm.name.length
< 8
"
>
<el-checkbox
class=
"check-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-checkbox>
<el-checkbox
class=
"check-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-checkbox>
...
@@ -35,7 +41,8 @@
...
@@ -35,7 +41,8 @@
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<template
v-for=
"item in labelTreeRetSelect"
>
<template
v-for=
"item in labelTreeRetSelect"
>
<template
v-for=
"(tag, idx) in item.tagChecked"
>
<template
v-for=
"(tag, idx) in item.tagChecked"
>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
<el-tag
:title=
"tag.name"
type=
"info"
class=
"tag-selected-item"
:key=
"idx"
v-if=
"tag"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
{{
tag
.
name
}}
{{
tag
.
name
}}
</el-tag>
</el-tag>
</
template
>
</
template
>
...
@@ -54,10 +61,17 @@
...
@@ -54,10 +61,17 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
utils
}
from
'glsx-common'
import
{
utils
}
from
'glsx-common'
import
util
from
'@/utils/util'
import
util
from
'@/utils/util'
export
default
{
export
default
{
name
:
'activityModel'
,
name
:
'activityModel'
,
props
:
{
resetMerchantId
:{
type
:
String
,
default
:
''
}
},
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
...
@@ -98,87 +112,87 @@ export default {
...
@@ -98,87 +112,87 @@ export default {
querylabeltree
(
selectItem
)
{
querylabeltree
(
selectItem
)
{
this
.
loading
=
true
this
.
loading
=
true
this
.
$apis
.
wechatGroup
this
.
$apis
.
wechatGroup
.
querylabeltree
({
.
querylabeltree
({
labelTreeReq
:
{
labelTreeReq
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1000
,
pageSize
:
1000
,
shopId
:
this
.
$globalState
.
session
.
merchantId
,
shopId
:
this
.
resetMerchantId
?
this
.
resetMerchantId
:
this
.
$globalState
.
session
.
merchantId
,
labelGroupName
:
this
.
labelGroupName
,
labelGroupName
:
this
.
labelGroupName
,
// labelTypesStr: '自店标签,企业标签',
// labelTypesStr: '自店标签,企业标签',
edition
:
this
.
$globalState
.
session
.
merchantModel
edition
:
this
.
$globalState
.
session
.
merchantModel
}
}
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
selectItem
&&
selectItem
.
length
>
0
)
{
if
(
selectItem
&&
selectItem
.
length
>
0
)
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
return
{
labelType
:
item
.
labelType
==
'企业标签'
?
(
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
'企业标签'
)
:
item
.
labelType
,
labelType
:
item
.
labelType
==
'企业标签'
?
(
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
'企业标签'
)
:
item
.
labelType
,
labelGroup
:
item
.
labelGroup
,
labelGroup
:
item
.
labelGroup
,
labelList
:
item
.
labelList
,
labelList
:
item
.
labelList
,
checked
:
false
,
checked
:
false
,
tagChecked
:
[],
tagChecked
:
[],
isIndeterminate
:
false
,
isIndeterminate
:
false
,
checkAll
:
false
checkAll
:
false
}
})
//回显
selectItem
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelList
=
[]
item
.
labelList
.
forEach
(
x
=>
{
labelList
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
tag
.
tagChecked
=
tag
.
labelList
.
filter
(
i
=>
labelList
.
includes
(
i
.
id
))
})
}
}
})
})
})
//回显
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
selectItem
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelList
=
[]
item
.
labelList
.
forEach
(
x
=>
{
labelList
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
tag
.
tagChecked
=
tag
.
labelList
.
filter
(
i
=>
labelList
.
includes
(
i
.
id
))
})
}
})
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
,
1
)
})
})
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
,
1
)
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
})
})
})
}
else
{
this
.
$nextTick
(()
=>
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
return
{
})
labelType
:
item
.
labelType
==
'企业标签'
?
(
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
'企业标签'
)
:
item
.
labelType
,
}
else
{
labelGroup
:
item
.
labelGroup
,
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
labelList
:
item
.
labelList
,
return
{
checked
:
false
,
labelType
:
item
.
labelType
==
'企业标签'
?
(
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
'企业标签'
)
:
item
.
labelType
,
tagChecked
:
[],
labelGroup
:
item
.
labelGroup
,
isIndeterminate
:
false
,
labelList
:
item
.
labelList
,
checkAll
:
false
checked
:
false
,
tagChecked
:
[],
isIndeterminate
:
false
,
checkAll
:
false
}
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
itm
.
labelGroup
.
id
==
item
.
labelGroup
.
id
&&
itm
.
tagChecked
.
length
>
0
)
{
let
tagChecked
=
[]
itm
.
tagChecked
.
forEach
(
x
=>
{
tagChecked
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
item
.
tagChecked
=
item
.
labelList
.
filter
(
i
=>
tagChecked
.
includes
(
i
.
id
))
})
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
itm
.
tagChecked
,
index
,
1
)
})
}
}
})
})
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
labelTreeRetSelect
.
length
==
0
)
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
if
(
itm
.
labelGroup
.
id
==
item
.
labelGroup
.
id
&&
itm
.
tagChecked
.
length
>
0
)
{
let
tagChecked
=
[]
itm
.
tagChecked
.
forEach
(
x
=>
{
tagChecked
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
item
.
tagChecked
=
item
.
labelList
.
filter
(
i
=>
tagChecked
.
includes
(
i
.
id
))
})
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
itm
.
tagChecked
,
index
,
1
)
})
}
})
})
if
(
this
.
labelTreeRetSelect
.
length
==
0
)
{
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
}
}
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
loading
=
false
this
.
loading
=
false
})
})
})
})
},
},
handleClose
()
{
handleClose
()
{
this
.
labelTreeRetSelect
=
[]
this
.
labelTreeRetSelect
=
[]
...
@@ -214,15 +228,15 @@ export default {
...
@@ -214,15 +228,15 @@ export default {
handleSelect
()
{
handleSelect
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
let
labelTreeRets
=
this
.
labelTreeRetSelect
let
labelTreeRets
=
this
.
labelTreeRetSelect
.
map
(
item
=>
{
.
map
(
item
=>
{
if
(
item
.
tagChecked
.
length
)
{
if
(
item
.
tagChecked
.
length
)
{
return
{
return
{
labelGroup
:
item
.
labelGroup
,
labelGroup
:
item
.
labelGroup
,
labelList
:
item
.
tagChecked
labelList
:
item
.
tagChecked
}
}
}
}
})
})
.
filter
(
item
=>
item
)
.
filter
(
item
=>
item
)
console
.
log
(
labelTreeRets
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
},
...
@@ -280,10 +294,13 @@ export default {
...
@@ -280,10 +294,13 @@ export default {
text-decoration
:
underline
;
text-decoration
:
underline
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.tag-panel
{
.tag-panel
{
display
:
flex
;
display
:
flex
;
.tag-panel-select
{
.tag-panel-select
{
width
:
60%
;
width
:
60%
;
/deep/
{
/deep/
{
.el-checkbox__label
{
.el-checkbox__label
{
width
:
100%
;
width
:
100%
;
...
@@ -295,9 +312,11 @@ export default {
...
@@ -295,9 +312,11 @@ export default {
}
}
}
}
}
}
.tag-panel-selected
{
.tag-panel-selected
{
width
:
40%
;
width
:
40%
;
margin-left
:
10px
;
margin-left
:
10px
;
.tag-box-header
{
.tag-box-header
{
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -306,17 +325,20 @@ export default {
...
@@ -306,17 +325,20 @@ export default {
padding-left
:
20px
!important
;
padding-left
:
20px
!important
;
}
}
}
}
.tag-title
{
.tag-title
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#333333
;
color
:
#333333
;
line-height
:
22px
;
line-height
:
22px
;
}
}
.tag-select-box
{
.tag-select-box
{
margin-top
:
10px
;
margin-top
:
10px
;
border-radius
:
2px
;
border-radius
:
2px
;
border
:
1px
solid
#eeeeee
;
border
:
1px
solid
#eeeeee
;
padding
:
6px
;
padding
:
6px
;
.tag-box-header
{
.tag-box-header
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
display
:
flex
;
display
:
flex
;
...
@@ -326,6 +348,7 @@ export default {
...
@@ -326,6 +348,7 @@ export default {
margin
:
-6px
;
margin
:
-6px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
padding
:
0px
6px
;
padding
:
0px
6px
;
/deep/
{
/deep/
{
.el-input
{
.el-input
{
width
:
60%
;
width
:
60%
;
...
@@ -333,6 +356,7 @@ export default {
...
@@ -333,6 +356,7 @@ export default {
}
}
}
}
}
}
.tag-selected-item
{
.tag-selected-item
{
margin
:
0px
6px
6px
0px
;
margin
:
0px
6px
6px
0px
;
height
:
26px
;
height
:
26px
;
...
@@ -343,17 +367,21 @@ export default {
...
@@ -343,17 +367,21 @@ export default {
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.el-tree-node__expand-icon
{
.el-tree-node__expand-icon
{
color
:
#5850ff
;
color
:
#5850ff
;
font-size
:
16px
;
font-size
:
16px
;
}
}
.tag-group
{
.tag-group
{
margin-left
:
40px
;
margin-left
:
40px
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
.radio-tag
{
.radio-tag
{
display
:
inline-block
;
display
:
inline-block
;
width
:
50%
;
width
:
50%
;
.el-checkbox
{
.el-checkbox
{
width
:
40%
;
width
:
40%
;
margin-bottom
:
6px
;
margin-bottom
:
6px
;
...
@@ -364,15 +392,18 @@ export default {
...
@@ -364,15 +392,18 @@ export default {
}
}
}
}
}
}
.tag-show
{
.tag-show
{
color
:
#aaa5fa
!important
;
color
:
#aaa5fa
!important
;
font-size
:
12px
;
font-size
:
12px
;
border
:
none
;
border
:
none
;
background
:
rgba
(
88
,
80
,
255
,
0.1
);
background
:
rgba
(
88
,
80
,
255
,
0.1
);
}
}
.checkbox-group-box
{
.checkbox-group-box
{
overflow
:
auto
;
overflow
:
auto
;
}
}
.tag-selected-box
{
.tag-selected-box
{
//
min-height
:
200px
;
//
min-height
:
200px
;
overflow
:
auto
;
overflow
:
auto
;
...
...
src/views/wechatGroup/components/selectCrowd.vue
View file @
4a4e4fa
...
@@ -9,14 +9,17 @@
...
@@ -9,14 +9,17 @@
<div
class=
"member-content"
>
<div
class=
"member-content"
>
<el-form
:inline=
"true"
class=
"member-form"
:model=
"searchForm"
@
submit
.
native
.
prevent
>
<el-form
:inline=
"true"
class=
"member-form"
:model=
"searchForm"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"人群名称"
style=
"margin-bottom: 0"
size=
"small"
>
<el-form-item
label=
"人群名称"
style=
"margin-bottom: 0"
size=
"small"
>
<el-input
:size=
"size"
v-model
.
trim=
"searchForm.keyword"
@
keyup
.
enter
.
native=
"search"
clearable
placeholder=
"请输入关键字搜索"
></el-input>
<el-input
:size=
"size"
v-model
.
trim=
"searchForm.keyword"
@
keyup
.
enter
.
native=
"search"
clearable
placeholder=
"请输入关键字搜索"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label
style=
"margin-bottom: 0;margin-left:10px"
size=
"small"
>
<el-form-item
label
style=
"margin-bottom: 0;margin-left:10px"
size=
"small"
>
<el-button
type=
"primary"
:size=
"size"
@
click=
"search"
>
搜索
</el-button>
<el-button
type=
"primary"
:size=
"size"
@
click=
"search"
>
搜索
</el-button>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
class=
"table-content"
>
<div
class=
"table-content"
>
<GLTable
ref=
"crowdTable"
:tableData=
"tableData"
@
refreshTable=
"getCrowdList"
:tableTotal=
"tableTotal"
:layout=
"layout"
:tableParams=
"crowdTableParams"
:hasNum=
"true"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
selectionTable=
"handleSelectionTable"
@
row-click=
"rowClick"
></GLTable>
<GLTable
ref=
"crowdTable"
:tableData=
"tableData"
@
refreshTable=
"getCrowdList"
:tableTotal=
"tableTotal"
:layout=
"layout"
:tableParams=
"crowdTableParams"
:hasNum=
"true"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
selectionTable=
"handleSelectionTable"
@
row-click=
"rowClick"
></GLTable>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -25,7 +28,8 @@
...
@@ -25,7 +28,8 @@
<!--
<div
class=
"member-name"
>
人群(
{{
innerTags
.
length
}}
项)
</div>
-->
<!--
<div
class=
"member-name"
>
人群(
{{
innerTags
.
length
}}
项)
</div>
-->
<div
class=
"input-tag-wrapper"
>
<div
class=
"input-tag-wrapper"
>
<div
class=
"tag-box"
>
<div
class=
"tag-box"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
<el-tag
v-for=
"(tag, idx) in innerTags"
:key=
"idx"
type=
"info"
closable
:disable-transitions=
"false"
@
close=
"remove(tag, idx)"
>
{{
tag
.
crowdName
}}
{{
tag
.
crowdName
}}
</el-tag>
</el-tag>
</div>
</div>
...
@@ -44,11 +48,17 @@
...
@@ -44,11 +48,17 @@
// import url from '@/assets/empty.png'
// import url from '@/assets/empty.png'
export
default
{
export
default
{
name
:
'SelectCrowd'
,
name
:
'SelectCrowd'
,
props
:
{
resetMerchantId
:
{
type
:
String
,
default
:
''
}
},
data
()
{
data
()
{
return
{
return
{
url
:
0
,
url
:
0
,
crowdVisible
:
false
,
crowdVisible
:
false
,
searchForm
:
{
keyword
:
''
},
searchForm
:
{
keyword
:
''
},
innerTags
:
[],
innerTags
:
[],
inner
:
[],
inner
:
[],
tableCrowdData
:
[
tableCrowdData
:
[
...
@@ -56,7 +66,7 @@ export default {
...
@@ -56,7 +66,7 @@ export default {
name
:
'asda'
name
:
'asda'
}
}
],
],
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
layout
:
'sizes, prev, pager, next, jumper, ->, total'
,
tableData
:
[],
tableData
:
[],
tableTotal
:
0
,
tableTotal
:
0
,
...
@@ -100,12 +110,12 @@ export default {
...
@@ -100,12 +110,12 @@ export default {
this
.
getCrowdList
()
this
.
getCrowdList
()
})
})
},
},
getCrowdList
(
page
=
{
pageNum
:
1
,
pageSize
:
10
})
{
getCrowdList
(
page
=
{
pageNum
:
1
,
pageSize
:
10
})
{
this
.
$refs
.
crowdTable
.
page
=
page
this
.
$refs
.
crowdTable
.
page
=
page
var
params
=
{
var
params
=
{
req
:
{
req
:
{
keyword
:
this
.
searchForm
.
keyword
,
keyword
:
this
.
searchForm
.
keyword
,
merchantId
:
this
.
$globalState
.
session
.
merchantId
,
merchantId
:
this
.
resetMerchantId
?
this
.
resetMerchantId
:
this
.
$globalState
.
session
.
merchantId
,
crowdType
:
3
,
crowdType
:
3
,
filterType
:
2
,
filterType
:
2
,
pageSize
:
page
.
pageSize
,
pageSize
:
page
.
pageSize
,
...
@@ -205,13 +215,13 @@ export default {
...
@@ -205,13 +215,13 @@ export default {
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
.
toggleRowSelection
(
row
)
this
.
$refs
.
crowdTable
.
$refs
.
crowdlistMutiTable
.
toggleRowSelection
(
row
)
},
},
search
()
{
search
()
{
this
.
getCrowdList
({
pageNum
:
1
,
pageSize
:
10
})
this
.
getCrowdList
({
pageNum
:
1
,
pageSize
:
10
})
},
},
handleConfirm
()
{
handleConfirm
()
{
// console.log(this.innerTags)
// console.log(this.innerTags)
this
.
$emit
(
'crowdData'
,
this
.
innerTags
)
this
.
$emit
(
'crowdData'
,
this
.
innerTags
)
this
.
crowdVisible
=
false
this
.
crowdVisible
=
false
this
.
searchForm
=
{
keyword
:
{}
}
this
.
searchForm
=
{
keyword
:
{}
}
}
}
}
}
}
}
...
@@ -249,6 +259,7 @@ export default {
...
@@ -249,6 +259,7 @@ export default {
//
height
:
40vh
;
//
height
:
40vh
;
overflow-y
:
auto
;
overflow-y
:
auto
;
}
}
.el-pagination
{
.el-pagination
{
margin-top
:
0
;
margin-top
:
0
;
}
}
...
@@ -341,22 +352,27 @@ export default {
...
@@ -341,22 +352,27 @@ export default {
.el-dialog__title
{
.el-dialog__title
{
font-weight
:
600
;
font-weight
:
600
;
}
}
.el-dialog__header
{
.el-dialog__header
{
padding
:
20px
;
padding
:
20px
;
}
}
.el-dialog__headerbtn
{
.el-dialog__headerbtn
{
height
:
30px
;
height
:
30px
;
.el-dialog__close
{
.el-dialog__close
{
width
:
24px
;
width
:
24px
;
height
:
24px
;
height
:
24px
;
font-size
:
24px
;
font-size
:
24px
;
}
}
}
}
.el-pagination
{
.el-pagination
{
padding-left
:
20px
;
padding-left
:
20px
;
border-top
:
1px
solid
#e8e8ea
;
border-top
:
1px
solid
#e8e8ea
;
padding-top
:
16px
;
padding-top
:
16px
;
}
}
.el-table
:before
{
.el-table
:before
{
display
:
none
;
display
:
none
;
}
}
...
...
src/views/wechatGroup/index.vue
View file @
4a4e4fa
...
@@ -32,14 +32,16 @@
...
@@ -32,14 +32,16 @@
</div>
</div>
</div>
</div>
</div>
</div>
<GLTable
ref=
"sendRecordDrawerRef"
:noDataImg=
"url"
:getListApi=
"sendRecordDrawer.getListApi"
:searchForm=
"sendRecordDrawer.searchForm"
:tableParams=
"sendRecordDrawer.tableParams"
:pageConf=
"sendRecordDrawer.pageConf"
>
<div
class=
"liststyle"
>
<div
slot=
"sendResult"
slot-scope=
"scope"
>
<GLTable
ref=
"sendRecordDrawerRef"
:noDataImg=
"url"
:getListApi=
"sendRecordDrawer.getListApi"
:searchForm=
"sendRecordDrawer.searchForm"
:tableParams=
"sendRecordDrawer.tableParams"
:pageConf=
"sendRecordDrawer.pageConf"
>
<div
class=
"loginStatus"
>
<div
slot=
"sendResult"
slot-scope=
"scope"
>
<span
class=
"cycle"
:style=
"
{ background: scope.scope.sendResult == true ? '#2CCA74' : scope.scope.sendResult == false ? '#EB4E4E' : '' }">
</span>
<div
class=
"loginStatus"
>
{{
scope
.
scope
.
sendResult
==
true
?
'成功'
:
scope
.
scope
.
sendResult
==
false
?
'失败'
:
''
}}
<span
class=
"cycle"
:style=
"
{ background: scope.scope.sendResult == true ? '#2CCA74' : scope.scope.sendResult == false ? '#EB4E4E' : '' }">
</span>
{{
scope
.
scope
.
sendResult
==
true
?
'成功'
:
scope
.
scope
.
sendResult
==
false
?
'失败'
:
''
}}
</div>
</div>
</div>
</
div
>
</
GLTable
>
</
GLTable
>
</
div
>
</el-drawer>
</el-drawer>
</div>
</div>
</
template
>
</
template
>
...
@@ -307,4 +309,7 @@ export default {
...
@@ -307,4 +309,7 @@ export default {
font-width
:
600
;
font-width
:
600
;
}
}
}
}
.liststyle
{
padding
:
0
20px
;
}
</
style
>
</
style
>
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