Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 de305ef6
authored
Jun 23, 2026
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.3_zls' of
http://192.168.3.233:8090/saas_plus/dj-car-lif…
…e-system into SAAS+V5.8.3
2 parents
dc60b812
9b1085a2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
72 additions
and
82 deletions
src/router/modules/923_tagManagement.js
src/views/customer/portrait/index.vue
src/views/customer/utils/customerSnapshot.js
src/views/tagCustomerManagement/tagManagement/components/CategoryFormDialog.vue
src/views/tagCustomerManagement/tagManagement/components/CategoryNav.vue
src/router/modules/923_tagManagement.js
View file @
de305ef
...
...
@@ -38,7 +38,7 @@ export const routerName = {
{
authId
:
"9230102"
,
parentId
:
"92301"
,
label
:
"新增
行为
标签维度"
,
label
:
"新增标签维度"
,
category
:
"Button"
,
type
:
"primary"
,
handle
:
"handleAddDimension"
,
...
...
src/views/customer/portrait/index.vue
View file @
de305ef
...
...
@@ -41,37 +41,30 @@
<h3
class=
"detail-card__title"
>
产品标签({{ productScore }}分)
</h3>
<div
class=
"field-row"
>
<span
class=
"field-label"
>
已成交品类:
</span>
<div
class=
"tag-list"
>
<
template
v-if=
"purchasedTags.length"
>
<el-tag
v-for=
"(tag, index) in purchasedTags"
:key=
"`purchased-$
{index}`"
size="small"
class="tag-item"
>
{{
tag
}}
</el-tag>
</
template
>
<span
v-else
class=
"empty-text"
>
-
</span>
</div>
</div>
<div
class=
"field-row"
>
<span
class=
"field-label"
>
未成交品类:
</span>
<div
class=
"tag-list"
>
<
template
v-if=
"unpurchasedTags.length"
>
<el-tag
v-for=
"(tag, index) in unpurchasedTags"
:key=
"`unpurchased-$
{index}`"
size="small"
class="tag-item tag-item--plain"
>
{{
tag
}}
</el-tag>
</
template
>
<span
v-else
class=
"empty-text"
>
-
</span>
<
template
v-if=
"productDimensions.length"
>
<div
v-for=
"(dimension, index) in productDimensions"
:key=
"`product-$
{index}`"
class="field-row"
>
<span
class=
"field-label"
>
{{
dimension
.
dimensionName
}}
:
</span>
<div
class=
"tag-list"
>
<template
v-if=
"dimension.tags.length"
>
<el-tag
v-for=
"(tag, tagIndex) in dimension.tags"
:key=
"`product-tag-$
{index}-${tagIndex}`"
size="small"
class="tag-item"
>
{{
tag
}}
</el-tag>
</
template
>
<span
v-else
class=
"empty-text"
>
-
</span>
</div>
</div>
</template>
<div
v-else
class=
"field-row"
>
<span
class=
"empty-text"
>
-
</span>
</div>
</section>
...
...
@@ -157,9 +150,8 @@ export default {
consumptionScore
:
0
,
consumptionDimensions
:
[],
productScore
:
0
,
productDimensions
:
[],
behaviorScore
:
0
,
purchasedTags
:
[],
unpurchasedTags
:
[],
behaviorTagList
:
[],
},
};
...
...
@@ -177,11 +169,8 @@ export default {
consumptionDimensions
()
{
return
this
.
portraitData
.
consumptionDimensions
||
[];
},
purchasedTags
()
{
return
this
.
portraitData
.
purchasedTags
||
[];
},
unpurchasedTags
()
{
return
this
.
portraitData
.
unpurchasedTags
||
[];
productDimensions
()
{
return
this
.
portraitData
.
productDimensions
||
[];
},
behaviorTagList
()
{
return
this
.
portraitData
.
behaviorTagList
||
[];
...
...
@@ -225,9 +214,8 @@ export default {
consumptionScore
:
res
.
consumptionScore
||
0
,
consumptionDimensions
:
res
.
consumptionDimensions
||
[],
productScore
:
res
.
productScore
||
0
,
productDimensions
:
res
.
productDimensions
||
[],
behaviorScore
:
res
.
behaviorScore
||
0
,
purchasedTags
:
res
.
purchasedTags
||
[],
unpurchasedTags
:
res
.
unpurchasedTags
||
[],
behaviorTagList
:
res
.
behaviorTagList
||
[],
};
},
...
...
src/views/customer/utils/customerSnapshot.js
View file @
de305ef
...
...
@@ -204,29 +204,34 @@ export function mapProfileResponse(res = {}, snapshotRow = {}) {
};
const
consumptionTag
=
res
.
consumptionTag
||
{};
const
productTag
=
res
.
productTag
||
{};
const
behaviorTag
=
res
.
behaviorTag
||
{};
// 接口字段名与 categoryName 语义对调:产品数据在 behaviorTag,行为数据在 productTag
const
apiProductTag
=
res
.
behaviorTag
||
{};
const
apiBehaviorTag
=
res
.
productTag
||
{};
const
consumptionDimensions
=
(
consumptionTag
.
dimensions
||
[]).
map
((
dimension
)
=>
({
dimensionName
:
dimension
.
dimensionName
||
"-"
,
tags
:
(
dimension
.
enumValues
||
[]).
map
((
item
)
=>
item
.
enumName
).
filter
(
Boolean
),
}));
const
purchasedTags
=
(
productTag
.
dealEnumValues
||
[])
.
map
((
item
)
=>
item
.
enumName
)
.
filter
(
Boolean
);
const
unpurchasedTags
=
(
productTag
.
noDealEnumValues
||
[])
.
map
((
item
)
=>
item
.
enumName
)
.
filter
(
Boolean
);
const
productDimensions
=
(
apiProductTag
.
dimensions
||
[]).
map
((
dimension
)
=>
({
dimensionName
:
dimension
.
dimensionName
||
"-"
,
tags
:
(
dimension
.
enumValues
||
[]).
map
((
item
)
=>
item
.
enumName
).
filter
(
Boolean
),
}));
const
behaviorTagList
=
[];
(
behaviorTag
.
dimensions
||
[]).
forEach
((
dimension
)
=>
{
(
dimension
.
enumValues
||
[]).
forEach
((
enumValue
)
=>
{
behaviorTagList
.
push
({
dimensionName
:
dimension
.
dimensionName
||
"-"
,
enumName
:
enumValue
.
enumName
||
""
,
basis
:
enumValue
.
scoreBasis
||
""
,
});
const
behaviorCategory
=
apiBehaviorTag
.
categoryName
||
"行为标签"
;
(
apiBehaviorTag
.
dealEnumValues
||
[]).
forEach
((
item
)
=>
{
behaviorTagList
.
push
({
dimensionName
:
behaviorCategory
,
enumName
:
item
.
enumName
||
""
,
basis
:
item
.
scoreBasis
||
""
,
});
});
(
apiBehaviorTag
.
noDealEnumValues
||
[]).
forEach
((
item
)
=>
{
behaviorTagList
.
push
({
dimensionName
:
behaviorCategory
,
enumName
:
item
.
enumName
||
""
,
basis
:
item
.
scoreBasis
||
""
,
});
});
...
...
@@ -234,10 +239,9 @@ export function mapProfileResponse(res = {}, snapshotRow = {}) {
basicInfo
,
consumptionScore
:
consumptionTag
.
totalScore
||
0
,
consumptionDimensions
,
productScore
:
productTag
.
totalScore
||
0
,
purchasedTags
,
unpurchasedTags
,
behaviorScore
:
behaviorTag
.
totalScore
||
0
,
productScore
:
apiProductTag
.
totalScore
||
0
,
productDimensions
,
behaviorScore
:
apiBehaviorTag
.
totalScore
||
0
,
behaviorTagList
,
};
}
...
...
src/views/tagCustomerManagement/tagManagement/components/CategoryFormDialog.vue
View file @
de305ef
<
template
>
<glsk-form-dialog
v-if=
"visible"
:selectVisible=
"visible"
:dialogConfig=
"dialogConfig"
label-width=
"100px"
dialog-width=
"520px"
defaultWidth=
"320px"
:formRules=
"formRules"
:editData=
"editData"
:editFormData=
"editFormData"
:baseData=
"baseData"
@
handleClose=
"$emit('update:visible', false)"
@
handleConfirm=
"handleConfirm"
/>
<glsk-form-dialog
v-if=
"visible"
default-width=
"320px"
dialog-width=
"520px"
label-width=
"100px"
:base-data=
"baseData"
:dialog-config=
"dialogConfig"
:edit-data=
"editData"
:edit-form-data=
"editFormData"
:form-rules=
"formRules"
:select-visible=
"visible"
@
handleClose=
"$emit('update:visible', false)"
@
handleConfirm=
"handleConfirm"
/>
</
template
>
<
script
>
...
...
@@ -54,11 +52,11 @@ export default {
},
formRules
:
{
categoryName
:
[
{
required
:
true
,
message
:
"请输入类别名称"
,
trigger
:
"blur"
},
{
max
:
20
,
message
:
"类别名称不能超过20个字符"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"请输入类别名称"
},
{
max
:
20
,
message
:
"类别名称不能超过20个字符"
},
],
parentId
:
[
{
required
:
true
,
message
:
"请选择
父级分类"
,
trigger
:
"change
"
},
{
required
:
true
,
message
:
"请选择
上级类别
"
},
],
},
};
...
...
@@ -69,7 +67,7 @@ export default {
},
dialogConfig
()
{
return
{
title
:
this
.
isEdit
?
"编辑标签分类"
:
"新增
子分类
"
,
title
:
this
.
isEdit
?
"编辑标签分类"
:
"新增
标签类别
"
,
okText
:
"保存"
,
};
},
...
...
@@ -86,10 +84,10 @@ export default {
];
if
(
!
this
.
isEdit
)
{
fields
.
unshift
({
label
:
"
父级分类
"
,
label
:
"
上级类别
"
,
name
:
"parentId"
,
type
:
"select"
,
placeholder
:
"请选择
父级分类
"
,
placeholder
:
"请选择
上级类别
"
,
filterable
:
true
,
optionsName
:
"parentOptions"
,
optionId
:
"id"
,
...
...
@@ -108,7 +106,7 @@ export default {
},
parentOptions
:
{
handler
(
val
)
{
this
.
baseData
.
parentOptions
=
(
val
||
[]).
map
(
(
item
)
=>
({
this
.
baseData
.
parentOptions
=
(
val
||
[]).
map
(
item
=>
({
...
item
,
fullPath
:
item
.
fullPath
||
item
.
categoryName
,
}));
...
...
@@ -151,7 +149,7 @@ export default {
this
.
$emit
(
"update:visible"
,
false
);
this
.
$emit
(
"success"
);
}
catch
(
err
)
{
this
.
$message
.
error
(
err
.
message
||
"操作失败"
);
//
this.$message.error(err.message || "操作失败");
}
},
},
...
...
src/views/tagCustomerManagement/tagManagement/components/CategoryNav.vue
View file @
de305ef
...
...
@@ -31,7 +31,7 @@
<span
class=
"nav-label"
>
{{
item
.
categoryName
}}
</span>
<i
v-if=
"Number(item.canAddChild) === 1"
class=
"el-icon-plus action-icon"
title=
"新增
子分类
"
title=
"新增
标签类别
"
@
click
.
stop=
"$emit('add-child', item)"
/>
</div>
<template
v-if=
"hasChildren(item) && expandedMap[item.id]"
>
...
...
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