Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 8304a004
authored
May 20, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'kuangyq_dev_v2.3.0' into 'v2.3.0'
Kuangyq dev v2.3.0 See merge request
!139
2 parents
053a4d50
6fbe4685
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
130 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/components/selectLabel.vue
src/views/customerTransform/addCustomer.vue
View file @
8304a00
...
@@ -356,20 +356,6 @@ export default {
...
@@ -356,20 +356,6 @@ export default {
this
.
$refs
.
selectLabel
.
init
(
this
.
tagging
)
this
.
$refs
.
selectLabel
.
init
(
this
.
tagging
)
},
},
handleSubmit
()
{
handleSubmit
()
{
// let arr = []
// this.tagging.forEach(item => {
// item.labelList.forEach(tag => {
// arr.push({
// groupId: parseInt(item.labelGroup.id),
// groupName: item.labelGroup.name,
// labelId: parseInt(tag.id),
// labelName: tag.name,
// groupType: item.labelType
// })
// })
// })
// this.taggingList = arr
// console.log(this.taggingList)
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
this
.
$refs
.
basicForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
attachmentShow
=
true
this
.
attachmentShow
=
true
...
@@ -388,7 +374,7 @@ export default {
...
@@ -388,7 +374,7 @@ export default {
this
.
attachmentText
=
'请输入群发内容'
this
.
attachmentText
=
'请输入群发内容'
return
return
}
}
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
this
.
$refs
.
groupForm
.
validate
(
async
(
v
)
=>
{
if
(
v
)
{
if
(
v
)
{
const
params
=
this
.
getSiftMembers
()
const
params
=
this
.
getSiftMembers
()
params
.
type
=
1
params
.
type
=
1
...
@@ -406,7 +392,7 @@ export default {
...
@@ -406,7 +392,7 @@ export default {
if
(
item
.
attType
==
1
)
{
if
(
item
.
attType
==
1
)
{
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
cutImg
=
item
.
attContent
.
replaceAll
(
'<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/'
,
''
)
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
const
replaceImg
=
cutImg
.
replace
(
/
(\d){3}
.png">/g
,
function
(
str
)
{
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
let
s
=
list
[
parseInt
(
str
.
split
(
'.'
)[
0
])
-
1
]
return
`[
${
s
}
]`
return
`[
${
s
}
]`
})
})
...
@@ -421,6 +407,10 @@ export default {
...
@@ -421,6 +407,10 @@ export default {
if
(
params
.
sendType
==
2
)
{
if
(
params
.
sendType
==
2
)
{
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
params
.
sendTimeStr
=
this
.
basicForm
.
sendTime
+
' '
+
this
.
basicForm
.
sendDate
}
}
const
countParams
=
this
.
getSiftMembers
()
const
count
=
await
this
.
$apis
.
customerTransform
.
customerCount
(
countParams
)
console
.
log
(
count
)
if
(
count
)
{
this
.
addLoading
=
true
this
.
addLoading
=
true
this
.
$apis
.
customerTransform
.
insert
(
params
).
then
(
res
=>
{
this
.
$apis
.
customerTransform
.
insert
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
'-1'
)
{
if
(
res
.
code
==
'-1'
)
{
...
@@ -442,6 +432,12 @@ export default {
...
@@ -442,6 +432,12 @@ export default {
this
.
addLoading
=
false
this
.
addLoading
=
false
this
.
$router
.
push
(
'/customerTransform/index'
)
this
.
$router
.
push
(
'/customerTransform/index'
)
})
})
}
else
{
this
.
$message
({
type
:
'error'
,
message
:
'客户数不可为0!'
})
}
}
}
})
})
}
}
...
@@ -449,15 +445,6 @@ export default {
...
@@ -449,15 +445,6 @@ export default {
},
},
handleSelect
(
val
)
{
handleSelect
(
val
)
{
this
.
isUpdate
=
true
this
.
isUpdate
=
true
// const arr = []
// if (val.length != 0) {
// val.forEach(item => {
// if (item.labelList.length != 0) {
// item.labelList.map(i => arr.push(i))
// }
// // arr.push(item.labelList)
// })
// }
this
.
tagging
=
val
this
.
tagging
=
val
let
arr
=
[]
let
arr
=
[]
this
.
tagging
.
forEach
(
item
=>
{
this
.
tagging
.
forEach
(
item
=>
{
...
@@ -532,7 +519,8 @@ export default {
...
@@ -532,7 +519,8 @@ export default {
// tagId: tagFlag ? this.tagging.map(item => item.id).join(',') : '',
// tagId: tagFlag ? this.tagging.map(item => item.id).join(',') : '',
// tagName: tagFlag ? this.tagging.map(item => item.name).join(',') : ''
// tagName: tagFlag ? this.tagging.map(item => item.name).join(',') : ''
// tagId: JSON.stringify(this.tagging)
// tagId: JSON.stringify(this.tagging)
labelList
:
this
.
taggingList
labelList
:
this
.
taggingList
,
combineType
:
2
}
}
}
}
if
(
this
.
basicForm
.
condition
.
date
)
{
if
(
this
.
basicForm
.
condition
.
date
)
{
...
@@ -587,7 +575,9 @@ export default {
...
@@ -587,7 +575,9 @@ export default {
const
date
=
new
Date
(
v
).
getTime
()
const
date
=
new
Date
(
v
).
getTime
()
if
(
date
<
Date
.
now
())
{
if
(
date
<
Date
.
now
())
{
this
.
timeOptions
=
{
this
.
timeOptions
=
{
selectableRange
:
`
${
dayjs
().
add
(
1
,
'm'
).
format
(
'HH:mm'
)}
:00 - 23:59:59`
selectableRange
:
`
${
dayjs
()
.
add
(
1
,
'm'
)
.
format
(
'HH:mm'
)}
:00 - 23:59:59`
}
}
}
else
{
}
else
{
this
.
timeOptions
=
{
this
.
timeOptions
=
{
...
...
src/views/customerTransform/components/selectLabel.vue
View file @
8304a00
<
template
>
<
template
>
<div
class=
"tag-main"
>
<div
class=
"tag-main"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"
5
0%"
:before-close=
"handleClose"
>
<el-dialog
title=
"选择标签"
:visible
.
sync=
"dialogVisible"
width=
"
7
0%"
:before-close=
"handleClose"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-panel-select"
>
<div
class=
"tag-title"
>
预选标签
</div>
<div
class=
"tag-title"
>
预选标签
</div>
<div
class=
"tag-select-box"
>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
<div
class=
"tag-box-header"
>
<el-input
size=
"small"
v-model=
"labelGroupName"
placeholder=
"请输入搜索内容"
clearable
@
keydown
.
enter
.
native=
"handleSearch"
></el-input>
<el-input
size=
"small"
v-model=
"labelGroupName"
placeholder=
"请输入搜索内容"
></el-input>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"checkbox-group-box"
:style=
"
{ height: heightBox + 'px' }">
<div
class=
"checkbox-group-box"
:style=
"
{ height: heightBox + 'px' }"
v-loading="loading"
>
<div
style=
"margin-bottom: 8px"
class=
"checkbox-box"
v-for=
"(item, index) in labelTreeRets"
:key=
"index"
@
click
.
self=
"item.checked = !item.checked
"
>
<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 }" @click.self="item.checked = !item.checked">
</span>
{{
item
.
labelGroup
.
name
}}
<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"
>
{{
item
.
labelType
}}
</el-tag>
<el-tag
:size=
"size"
class=
"tag-show"
>
{{
item
.
labelType
}}
</el-tag>
<el-radio-group
class=
"tag-group"
v-model=
"item.tagChecked"
v-show=
"item.checked"
>
<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"
>
<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-radio
class=
"radio-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-radio>
<el-checkbox
class=
"check-text"
:label=
"itm"
>
{{
itm
.
name
}}
</el-checkbox>
<!--
<el-radio
:label=
"itm"
>
{{
itm
.
name
.
length
>
4
?
itm
.
name
.
slice
(
0
,
3
)
+
'...'
:
itm
.
name
}}
</el-radio>
-->
<div
slot=
"content"
>
{{
itm
.
name
}}
</div>
<div
slot=
"content"
>
{{
itm
.
name
}}
</div>
</el-tooltip>
</el-tooltip>
</div>
</div>
</el-
radio
-group>
</el-
checkbox
-group>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -33,11 +33,13 @@
...
@@ -33,11 +33,13 @@
<div
class=
"tag-select-box"
>
<div
class=
"tag-select-box"
>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-box-header"
>
标签名称(
{{
selectNum
}}
项)
</div>
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<div
class=
"tag-selected-box"
:style=
"
{ height: heightBox + 'px' }">
<template
v-for=
"item in labelTreeRets"
>
<template
v-for=
"item in labelTreeRetSelect"
>
<el-tag
:title=
"item.tagChecked.name"
v-if=
"item.tagChecked"
type=
"info"
class=
"tag-selected-item"
:key=
"item.tagChecked"
closable
:disable-transitions=
"false"
@
close=
"remove(item, idx)"
>
<template
v-for=
"(tag, idx) in item.tagChecked"
>
{{
item
.
tagChecked
.
name
}}
<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
}}
</el-tag>
</el-tag>
</
template
>
</
template
>
</template>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -58,47 +60,22 @@ export default {
...
@@ -58,47 +60,22 @@ export default {
name
:
'activityModel'
,
name
:
'activityModel'
,
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
heightBox
:
200
,
heightBox
:
200
,
dialogVisible
:
false
,
dialogVisible
:
false
,
labelGroupName
:
''
,
labelGroupName
:
''
,
selectNum
:
0
,
selectNum
:
0
,
searchStatus
:
false
,
searchStatus
:
false
,
labelTreeRets
:
[
labelTreeRetSelect
:
[],
// {
labelTreeRets
:
[]
// labelGroup: { id: '109', name: '湖口123' },
// labelList: [
// { id: '372', name: '12345678' },
// { id: '371', name: '7654321' },
// { id: '370', name: '1234567' }
// ],
// checked: false,
// tagChecked: [],
// isIndeterminate: false,
// checkAll: false
// },
// {
// labelGroup: { id: '65', name: '自店标签111' },
// labelList: [
// { id: '179', name: '标签44' },
// { id: '178', name: '标签33' },
// { id: '176', name: '标签1112' }
// ],
// checked: false,
// tagChecked: [],
// isIndeterminate: false,
// checkAll: false
// }
]
}
}
},
},
watch
:
{
watch
:
{
labelTreeRet
s
:
{
labelTreeRet
Select
:
{
handler
()
{
handler
()
{
this
.
selectNum
=
0
this
.
selectNum
=
0
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
item
=>
{
if
(
item
.
tagChecked
)
{
this
.
selectNum
+=
item
.
tagChecked
.
length
this
.
selectNum
++
}
})
})
},
},
deep
:
true
deep
:
true
...
@@ -119,18 +96,16 @@ export default {
...
@@ -119,18 +96,16 @@ export default {
this
.
querylabeltree
()
this
.
querylabeltree
()
},
},
querylabeltree
(
selectItem
)
{
querylabeltree
(
selectItem
)
{
console
.
log
(
selectItem
,
'-----'
)
this
.
loading
=
true
this
.
$apis
.
customerTransform
this
.
$apis
.
customerTransform
.
querylabeltree
({
.
querylabeltree
({
labelTreeReq
:
{
labelTreeReq
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
1000
,
pageSize
:
1000
,
shopId
:
this
.
$globalState
.
session
.
merchantId
,
shopId
:
this
.
$globalState
.
session
.
merchantId
,
// shopId: '44210934',
labelGroupName
:
this
.
labelGroupName
,
labelGroupName
:
this
.
labelGroupName
,
// labelTypesStr: '自店标签,企业标签',
// labelTypesStr: '自店标签,企业标签',
edition
:
this
.
$globalState
.
session
.
merchantModel
edition
:
this
.
$globalState
.
session
.
merchantModel
// edition: 4
}
}
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -142,7 +117,7 @@ export default {
...
@@ -142,7 +117,7 @@ export default {
labelGroup
:
item
.
labelGroup
,
labelGroup
:
item
.
labelGroup
,
labelList
:
item
.
labelList
,
labelList
:
item
.
labelList
,
checked
:
false
,
checked
:
false
,
tagChecked
:
null
,
tagChecked
:
[]
,
isIndeterminate
:
false
,
isIndeterminate
:
false
,
checkAll
:
false
checkAll
:
false
}
}
...
@@ -151,55 +126,94 @@ export default {
...
@@ -151,55 +126,94 @@ export default {
selectItem
.
forEach
(
item
=>
{
selectItem
.
forEach
(
item
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
labelId
=
item
.
labelList
[
0
].
id
let
labelList
=
[]
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
item
.
labelList
.
forEach
(
x
=>
{
console
.
log
(
index
)
labelList
.
push
(
x
.
id
)
// tag.tagChecked = item.tagChecked
})
tag
.
tagChecked
=
tag
.
labelList
[
index
]
this
.
$nextTick
(()
=>
{
tag
.
tagChecked
=
tag
.
labelList
.
filter
(
i
=>
labelList
.
includes
(
i
.
id
))
})
}
}
})
})
})
})
console
.
log
(
this
.
labelTreeRets
)
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
})
})
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
}
else
{
}
else
{
const
labelTreeRets
=
utils
.
deepClone
(
this
.
labelTreeRets
)
console
.
log
(
labelTreeRets
)
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
:
null
,
tagChecked
:
[]
,
isIndeterminate
:
false
,
isIndeterminate
:
false
,
checkAll
:
false
checkAll
:
false
}
}
})
})
console
.
log
(
labelTreeRets
)
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
this
.
labelTreeRets
.
forEach
(
tag
=>
{
if
(
itm
.
labelGroup
.
id
==
item
.
labelGroup
.
id
&&
itm
.
tagChecked
.
length
>
0
)
{
if
(
item
.
labelGroup
.
id
==
tag
.
labelGroup
.
id
)
{
let
tagChecked
=
[]
let
labelId
=
item
.
tagChecked
?
item
.
tagChecked
.
id
:
''
itm
.
tagChecked
.
forEach
(
x
=>
{
let
index
=
tag
.
labelList
.
findIndex
(
iem
=>
iem
.
id
==
labelId
)
tagChecked
.
push
(
x
.
id
)
tag
.
tagChecked
=
tag
.
labelList
[
index
]
})
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
.
loading
=
false
})
})
})
},
},
remove
(
item
,
idx
)
{
remove
(
items
,
idx
)
{
item
.
tagChecked
=
null
items
.
tagChecked
.
splice
(
idx
,
1
)
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
item
.
labelGroup
.
id
==
itm
.
labelGroup
.
id
)
{
let
tagChecked
=
[]
itm
.
tagChecked
.
forEach
(
x
=>
{
tagChecked
.
push
(
x
.
id
)
})
this
.
$nextTick
(()
=>
{
item
.
tagChecked
=
item
.
labelList
.
filter
(
i
=>
tagChecked
.
includes
(
i
.
id
))
})
}
if
(
item
.
tagChecked
.
length
==
0
)
{
this
.
$nextTick
(()
=>
{
item
.
checkAll
=
false
})
}
})
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
})
})
},
},
//选中
//选中
handleSelect
()
{
handleSelect
()
{
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
let
labelTreeRets
=
this
.
labelTreeRet
s
let
labelTreeRets
=
this
.
labelTreeRet
Select
.
map
(
item
=>
{
.
map
(
item
=>
{
if
(
item
.
tagChecked
)
{
if
(
item
.
tagChecked
.
length
)
{
return
{
return
{
labelGroup
:
item
.
labelGroup
,
labelGroup
:
item
.
labelGroup
,
labelType
:
item
.
labelType
,
labelList
:
item
.
tagChecked
labelList
:
[
item
.
tagChecked
]
}
}
}
}
})
})
...
@@ -207,6 +221,45 @@ export default {
...
@@ -207,6 +221,45 @@ export default {
console
.
log
(
labelTreeRets
)
console
.
log
(
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
this
.
$emit
(
'tagSelected'
,
labelTreeRets
)
},
},
//全选
handleCheckAllChange
(
val
,
index
)
{
console
.
log
(
val
,
index
)
console
.
log
(
this
.
labelTreeRetSelect
,
'==12'
)
if
(
val
)
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
this
.
labelTreeRets
[
index
].
labelList
.
forEach
(
item
=>
{
this
.
labelTreeRets
[
index
].
tagChecked
.
push
(
item
)
})
}
else
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
}
this
.
labelTreeRets
[
index
].
isIndeterminate
=
false
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
item
.
labelGroup
.
id
==
itm
.
labelGroup
.
id
)
{
itm
.
tagChecked
=
utils
.
deepClone
(
item
.
tagChecked
)
}
})
})
console
.
log
(
this
.
labelTreeRets
,
'==1532'
)
},
//选中
handleCheckedChange
(
value
,
index
,
status
)
{
console
.
log
(
value
,
index
,
status
)
let
checkedCount
=
value
.
length
this
.
labelTreeRets
[
index
].
checkAll
=
checkedCount
===
this
.
labelTreeRets
[
index
].
labelList
.
length
this
.
labelTreeRets
[
index
].
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
labelTreeRets
[
index
].
labelList
.
length
if
(
!
status
)
{
this
.
labelTreeRets
.
forEach
(
item
=>
{
this
.
labelTreeRetSelect
.
forEach
(
itm
=>
{
if
(
item
.
labelGroup
.
id
==
itm
.
labelGroup
.
id
)
{
itm
.
tagChecked
=
utils
.
deepClone
(
item
.
tagChecked
)
}
})
})
}
},
// 重置
handleReset
()
{
handleReset
()
{
this
.
labelGroupName
=
''
this
.
labelGroupName
=
''
this
.
querylabeltree
()
this
.
querylabeltree
()
...
@@ -220,9 +273,6 @@ export default {
...
@@ -220,9 +273,6 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
//
::v-deep
.el-tag
{
//
color
:
red
!important
;
//
}
.dialog-jump
{
.dialog-jump
{
color
:
#5850ff
;
color
:
#5850ff
;
float
:
left
;
float
:
left
;
...
@@ -299,50 +349,30 @@ export default {
...
@@ -299,50 +349,30 @@ export default {
font-size
:
16px
;
font-size
:
16px
;
}
}
.tag-group
{
.tag-group
{
margin-left
:
26
px
;
margin-left
:
40
px
;
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-radio
{
.el-checkbox
{
margin
:
8px
0
;
width
:
40%
;
display
:
inline-flex
;
margin-bottom
:
6px
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
/deep/.el-radio__inner
{
box-shadow
:
none
!important
;
}
/
deep
/
.el-radio__label
{
display
:
inline-block
;
max-width
:
120px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
word-wrap
:
break-word
;
}
}
}
}
}
}
}
}
}
}
}
.checkbox-group-box
{
.tag-show
{
overflow
:
auto
;
.checkbox-box
{
cursor
:
pointer
;
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
20px
;
/deep/
{
.el-tag
{
color
:
#aaa5fa
!important
;
color
:
#aaa5fa
!important
;
font-size
:
12px
;
font-size
:
12px
;
border
:
none
;
border
:
none
;
background
:
rgba
(
$
color
:
#5850ff
,
$
alpha
:
0.1
);
background
:
rgba
(
88
,
80
,
255
,
0.1
);
}
}
}
.checkbox-group-box
{
}
overflow
:
auto
;
}
}
.tag-selected-box
{
.tag-selected-box
{
min-height
:
200px
;
min-height
:
200px
;
...
...
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