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 4e6e7063
authored
May 25, 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
!148
2 parents
d9a1326b
6c06abf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
24 deletions
src/views/customerTransform/components/selectLabel.vue
src/views/customerTransform/components/selectLabel.vue
View file @
4e6e706
...
...
@@ -45,14 +45,14 @@
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<!-- <a class="dialog-jump" @click="jumpUrl" v-if="this.$globalState.session.accountLevel == 4 && this.$globalState.session.merchantModel == 2">没有意向标签?点我创建</a> -->
<el-button
size=
"small"
@
click=
"dialogVisible = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"handleClose"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSelect"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
import
{
utils
}
from
'glsx-common'
import
util
from
'@/utils/util'
...
...
@@ -110,7 +110,6 @@ export default {
})
.
then
(
res
=>
{
if
(
selectItem
&&
selectItem
.
length
>
0
)
{
console
.
log
(
res
.
labelTreeRets
)
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
labelType
:
item
.
labelType
==
'企业标签'
?
(
this
.
$globalState
.
session
.
merchantModel
==
1
?
'集团标签'
:
'企业标签'
)
:
item
.
labelType
,
...
...
@@ -138,10 +137,12 @@ export default {
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
,
1
)
})
})
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
this
.
$nextTick
(()
=>
{
this
.
labelTreeRetSelect
=
utils
.
deepClone
(
this
.
labelTreeRets
)
})
}
else
{
this
.
labelTreeRets
=
res
.
labelTreeRets
.
map
(
item
=>
{
return
{
...
...
@@ -179,6 +180,10 @@ export default {
})
})
},
handleClose
()
{
this
.
labelTreeRetSelect
=
[]
this
.
dialogVisible
=
false
},
remove
(
items
,
idx
)
{
items
.
tagChecked
.
splice
(
idx
,
1
)
this
.
labelTreeRets
.
forEach
(
item
=>
{
...
...
@@ -201,7 +206,7 @@ export default {
})
this
.
labelTreeRets
.
forEach
((
item
,
index
)
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
)
this
.
handleCheckedChange
(
item
.
tagChecked
,
index
,
1
)
})
})
},
...
...
@@ -223,8 +228,6 @@ export default {
},
//全选
handleCheckAllChange
(
val
,
index
)
{
console
.
log
(
val
,
index
)
console
.
log
(
this
.
labelTreeRetSelect
,
'==12'
)
if
(
val
)
{
this
.
labelTreeRets
[
index
].
tagChecked
=
[]
this
.
labelTreeRets
[
index
].
labelList
.
forEach
(
item
=>
{
...
...
@@ -241,11 +244,9 @@ export default {
}
})
})
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
...
...
@@ -271,7 +272,6 @@ export default {
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.dialog-jump
{
color
:
#5850ff
;
...
...
@@ -339,7 +339,6 @@ export default {
line-height
:
24px
;
font-size
:
14px
;
color
:
#666
;
max-width
:
200px
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
white-space
:
nowrap
;
...
...
@@ -352,15 +351,11 @@ export default {
margin-left
:
40px
;
display
:
flex
;
flex-wrap
:
wrap
;
.radio-tag
{
display
:
inline-block
;
width
:
50%
;
.el-checkbox
{
width
:
40%
;
margin-bottom
:
6px
;
display
:
flex
;
align-items
:
center
;
}
.el-checkbox
{
width
:
40%
;
margin-bottom
:
6px
;
display
:
flex
;
align-items
:
center
;
}
}
}
...
...
@@ -375,6 +370,7 @@ export default {
overflow
:
auto
;
}
.tag-selected-box
{
min-height
:
200px
;
//
min-height
:
200px
;
overflow
:
auto
;
}
</
style
>
</
style
>
\ No newline at end of file
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