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 bf7a4e4b
authored
Jan 20, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 品牌id过滤处理
1 parent
8dfc7750
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/views/earlyWarningManager/strategyCentre/index.vue
src/views/earlyWarningManager/strategyCentre/index.vue
View file @
bf7a4e4
...
@@ -315,14 +315,16 @@ export default {
...
@@ -315,14 +315,16 @@ export default {
if
(
Array
.
isArray
(
brandData
)
&&
brandData
.
length
>
0
)
{
if
(
Array
.
isArray
(
brandData
)
&&
brandData
.
length
>
0
)
{
brandData
.
forEach
(
brandItem
=>
{
brandData
.
forEach
(
brandItem
=>
{
if
(
Array
.
isArray
(
brandItem
)
&&
brandItem
.
length
>
0
)
{
if
(
Array
.
isArray
(
brandItem
)
&&
brandItem
.
length
>
0
)
{
// 第一个元素是一级品牌id
const
firstLevelId
=
brandItem
[
0
];
const
firstLevelId
=
brandItem
[
0
];
// 如果子数组长度为1,说明只选择了一级品牌,加入一级品牌数组
if
(
brandItem
.
length
===
1
)
{
if
(
firstLevelId
!==
undefined
&&
firstLevelId
!==
null
)
{
if
(
firstLevelId
!==
undefined
&&
firstLevelId
!==
null
)
{
firstLevelBrandIds
.
push
(
firstLevelId
);
firstLevelBrandIds
.
push
(
firstLevelId
);
}
}
}
//
第二个元素(如果存在)是二级品牌id
//
如果子数组长度大于1,说明选择了二级品牌,只加入二级品牌数组,不加入一级品牌数组
if
(
brandItem
.
length
>
1
)
{
else
if
(
brandItem
.
length
>
1
)
{
const
secondLevelId
=
brandItem
[
1
];
const
secondLevelId
=
brandItem
[
1
];
if
(
secondLevelId
!==
undefined
&&
secondLevelId
!==
null
)
{
if
(
secondLevelId
!==
undefined
&&
secondLevelId
!==
null
)
{
secondLevelBrandIds
.
push
(
secondLevelId
);
secondLevelBrandIds
.
push
(
secondLevelId
);
...
...
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