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 4d408ee8
authored
Jan 16, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 品牌级联接口联调
1 parent
ead531eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
105 deletions
src/api/earlyWarningManager.js
src/views/earlyWarningManager/strategyCentre/compoments/headerCustom.vue
src/views/earlyWarningManager/strategyCentre/index.vue
src/api/earlyWarningManager.js
View file @
4d408ee
...
...
@@ -388,4 +388,12 @@ export function getDistrictDetail(data) {
export
function
organizationUserList
(
data
)
{
data
.
method
=
'dj.api.script.province.organization.list'
return
request
(
data
,
"post"
)
}
\ No newline at end of file
}
/**
* 获取车品牌列表
*/
export
function
getCarBrandList
(
data
=
{})
{
data
.
method
=
"dj.api.smartcarlife.common.car.brand.list"
return
request
(
data
,
RequestMethods
.
POST
)
}
src/views/earlyWarningManager/strategyCentre/compoments/headerCustom.vue
View file @
4d408ee
...
...
@@ -149,7 +149,7 @@ export default {
},
// 级联选择器配置
cascaderProps
:
{
value
:
'
value
'
,
value
:
'
id
'
,
label
:
'label'
,
children
:
'children'
,
expandTrigger
:
'hover'
,
...
...
src/views/earlyWarningManager/strategyCentre/index.vue
View file @
4d408ee
...
...
@@ -90,7 +90,7 @@ import MonitorCard from './compoments/monitorCard.vue';
import
HeaderCustom
from
'./compoments/headerCustom.vue'
;
import
SelectCustom
from
'./compoments/selectCustom.vue'
;
import
CalendarCustom
from
'./compoments/clendarCustom.vue'
;
import
{
getDistrictDetail
}
from
'@/api/earlyWarningManager'
;
import
{
getDistrictDetail
,
getCarBrandList
}
from
'@/api/earlyWarningManager'
;
import
{
merchantStaffByRoleList
}
from
'@api/index'
export
default
{
name
:
'DashboardExact'
,
...
...
@@ -114,108 +114,7 @@ export default {
onlineOpsList
:
[]
// 线上运营列表
},
// 品牌级联选择器数据
brandOptions
:
[
{
value
:
'hongmeng'
,
label
:
'鸿蒙智行'
,
children
:
[
{
value
:
'aweita'
,
label
:
'阿维塔'
},
{
value
:
'wenjie'
,
label
:
'问界'
},
{
value
:
'zhijie'
,
label
:
'智界'
},
{
value
:
'luxiang'
,
label
:
'路享'
}
]
},
{
value
:
'tesla'
,
label
:
'特斯拉'
,
children
:
[
{
value
:
'model3'
,
label
:
'Model 3'
},
{
value
:
'modely'
,
label
:
'Model Y'
},
{
value
:
'models'
,
label
:
'Model S'
},
{
value
:
'modelx'
,
label
:
'Model X'
}
]
},
{
value
:
'byd'
,
label
:
'比亚迪'
,
children
:
[
{
value
:
'tang'
,
label
:
'唐'
},
{
value
:
'song'
,
label
:
'宋'
},
{
value
:
'qin'
,
label
:
'秦'
},
{
value
:
'han'
,
label
:
'汉'
},
{
value
:
'haiyang'
,
label
:
'海豹'
},
{
value
:
'haiou'
,
label
:
'海鸥'
}
]
},
{
value
:
'xiaopeng'
,
label
:
'小鹏汽车'
,
children
:
[
{
value
:
'p7'
,
label
:
'P7'
},
{
value
:
'p5'
,
label
:
'P5'
},
{
value
:
'g3'
,
label
:
'G3'
},
{
value
:
'g9'
,
label
:
'G9'
}
]
},
{
value
:
'weilai'
,
label
:
'蔚来'
,
children
:
[
{
value
:
'es6'
,
label
:
'ES6'
},
{
value
:
'es8'
,
label
:
'ES8'
},
{
value
:
'et7'
,
label
:
'ET7'
},
{
value
:
'et5'
,
label
:
'ET5'
}
]
},
{
value
:
'lixiang'
,
label
:
'理想汽车'
,
children
:
[
{
value
:
'l9'
,
label
:
'L9'
},
{
value
:
'l8'
,
label
:
'L8'
},
{
value
:
'l7'
,
label
:
'L7'
}
]
},
{
value
:
'jihe'
,
label
:
'极氪'
,
children
:
[
{
value
:
'001'
,
label
:
'001'
},
{
value
:
'009'
,
label
:
'009'
},
{
value
:
'x'
,
label
:
'X'
}
]
},
{
value
:
'aodi'
,
label
:
'奥迪'
,
children
:
[
{
value
:
'a4l'
,
label
:
'A4L'
},
{
value
:
'a6l'
,
label
:
'A6L'
},
{
value
:
'q5l'
,
label
:
'Q5L'
},
{
value
:
'etron'
,
label
:
'e-tron'
}
]
},
{
value
:
'baoma'
,
label
:
'宝马'
,
children
:
[
{
value
:
'3xi'
,
label
:
'3系'
},
{
value
:
'5xi'
,
label
:
'5系'
},
{
value
:
'x3'
,
label
:
'X3'
},
{
value
:
'ix3'
,
label
:
'iX3'
}
]
},
{
value
:
'benchi'
,
label
:
'奔驰'
,
children
:
[
{
value
:
'cclass'
,
label
:
'C级'
},
{
value
:
'eclass'
,
label
:
'E级'
},
{
value
:
'glc'
,
label
:
'GLC'
},
{
value
:
'eqc'
,
label
:
'EQC'
}
]
}
],
brandOptions
:
[],
timeRangeType
:
'周'
,
// 当前选中的时间范围类型
timeRangeOptions
:
[
{
label
:
'周'
,
value
:
'周'
},
...
...
@@ -360,12 +259,18 @@ export default {
this
.
getRegionOpsList
();
// 获取线上运营列表
this
.
getOnlineOpsList
();
// 获取车品牌列表
this
.
getCarBrandList
();
},
beforeDestroy
()
{
// 组件销毁时移除样式,避免影响其他页面
this
.
disablePageScroll
();
},
methods
:
{
async
getCarBrandList
()
{
const
res
=
await
getCarBrandList
({
containsChildren
:
true
});
this
.
brandOptions
=
res
},
handleCheckboxChange
(
item
,
index
)
{
// 同步更新原始cardList中的状态(因为cardListWithAlertCount是计算属性,返回的是新对象)
// v-model已经更新了计算属性返回对象的checked,需要同步到原始数据
...
...
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