Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 6a74e149
authored
Nov 20, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
朋友圈修改
1 parent
b04d94b1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
7 deletions
vue3-lw-pc/src/components/CustomerRangeForm.vue
vue3-lw-pc/src/views/friendCircle/list.vue
vue3-lw-pc/src/views/friendCircle/publish.vue
vue3-lw-pc/src/components/CustomerRangeForm.vue
View file @
6a74e14
...
...
@@ -6,13 +6,18 @@ export default {
props
:
{
data
:
{
type
:
Object
,
default
:
()
=>
({
isContain
:
'1'
,
customerTypes
:
[
'1'
]
}),
default
:
()
=>
({
isContain
:
'1'
}),
},
// 是否为详情展示(不显示选择按钮)
isDetail
:
{
type
:
Boolean
,
default
:
false
,
},
// 是否转换数据
isTrans
:
{
type
:
Boolean
,
default
:
false
,
},
},
data
()
{
return
{
form
:
this
.
data
,
stageList
:
[],
dialogVisibleSelectUser
:
false
,
dialogVisibleSelectTag
:
false
}
...
...
@@ -21,12 +26,43 @@ export default {
watch
:
{
form
:
{
deep
:
true
,
handler
(
val
)
{
this
.
$emit
(
'update:data'
,
val
)
handler
(
data
)
{
data
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
if
(
this
.
isTrans
)
{
data
=
{
genders
:
data
.
genders
?.
join
(
','
),
customerTypes
:
data
.
customerTypes
?.
join
(
','
),
tagIds
:
data
.
tags
?.
map
((
e
)
=>
e
.
tagId
)?.
join
(
','
),
tagNames
:
data
.
tags
?.
map
((
e
)
=>
e
.
name
)?.
join
(
','
),
userIds
:
data
.
users
?.
map
((
e
)
=>
e
.
userId
)?.
join
(
','
),
userNames
:
data
.
users
?.
map
((
e
)
=>
e
.
name
)?.
join
(
','
),
beginTime
:
data
.
dateRange
?.[
0
],
endTime
:
data
.
dateRange
?.[
1
],
trackState
:
data
.
trackState
,
isContain
:
data
.
tags
?.
length
?
data
.
isContain
:
undefined
,
}
}
this
.
$emit
(
'update:data'
,
data
)
},
},
},
created
()
{
if
(
this
.
isTrans
)
{
let
data
=
this
.
data
if
(
data
)
{
data
=
JSON
.
parse
(
JSON
.
stringify
(
data
))
let
userNames
=
data
.
userNames
?.
split
(
','
)
let
tagNames
=
data
.
tagNames
?.
split
(
','
)
this
.
form
=
Object
.
assign
(
data
,
{
isContain
:
data
.
isContain
+
''
,
genders
:
data
.
genders
?.
split
(
','
),
customerTypes
:
data
.
customerTypes
?.
split
(
','
),
users
:
data
.
userIds
?.
split
(
','
)?.
map
((
e
,
i
)
=>
({
userId
:
e
,
name
:
userNames
?.[
i
]
})),
tags
:
data
.
tagIds
?.
split
(
','
)?.
map
((
e
,
i
)
=>
({
tagId
:
e
,
name
:
tagNames
?.[
i
]
})),
dateRange
:
[
data
.
beginTime
,
data
.
endTime
],
})
}
}
this
.
$emit
(
'update:data'
,
this
.
data
)
// 赋默认值
getList
().
then
((
res
)
=>
{
this
.
stageList
=
res
.
data
...
...
@@ -48,7 +84,7 @@ export default {
:defaultValues=
"form.users"
@
success=
"(data) => ((form.users = data), $refs.form.validateField('users'))"
></SelectUser>
</div>
<TagEllipsis
:list=
"form.users"
limit=
"10"
></TagEllipsis>
<TagEllipsis
:list=
"form.users"
limit=
"10"
:emptyText=
"isDetail"
></TagEllipsis>
</el-form-item>
<el-form-item
label=
"客户类型"
prop=
"customerTypes"
>
...
...
vue3-lw-pc/src/views/friendCircle/list.vue
View file @
6a74e14
...
...
@@ -195,7 +195,7 @@ export default {
},
gotoRoute
()
{
this
.
$router
.
push
({
path
:
'
/customerMaintain/friendCircle
/publish'
,
path
:
'
.
/publish'
,
})
},
setTimeChange
(
e
)
{
...
...
@@ -228,7 +228,7 @@ export default {
// 朋友圈类型 1:非同步型 2:企业同步型 3:个人同步型
let
type
=
this
.
determineType
(
row
)
this
.
$router
.
push
({
path
:
'
/customerMaintain/friendCircle
/publish'
,
path
:
'
.
/publish'
,
query
:
{
type
,
id
:
row
.
id
,
...
...
@@ -240,7 +240,7 @@ export default {
// 朋友圈类型 1:非同步型 2:企业同步型 3:个人同步型
let
type
=
this
.
determineType
(
row
)
this
.
$router
.
push
({
path
:
'
/customerMaintain/friendCircle
/statistics'
,
path
:
'
.
/statistics'
,
query
:
{
type
,
id
:
row
.
id
,
...
...
vue3-lw-pc/src/views/friendCircle/publish.vue
View file @
6a74e14
This diff is collapsed.
Click to expand it.
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