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 d74ffebc
authored
Jan 21, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 预警信息字段对齐
1 parent
fe3088b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
44 deletions
src/views/earlyWarningManager/strategyCentre/compoments/monitorCard.vue
src/views/earlyWarningManager/strategyCentre/index.vue
src/views/earlyWarningManager/strategyCentre/compoments/monitorCard.vue
View file @
d74ffeb
...
...
@@ -11,9 +11,9 @@
<div
class=
"card-body"
>
<div
class=
"row-item"
>
<span
class=
"label"
>
主营品牌:
</span>
<el-tooltip
effect=
"dark"
placement=
"top"
popper-class=
"dark-tooltip"
:disabled=
"!cardData.
brand
"
>
<div
slot=
"content"
style=
"max-width:236px;line-height:1.6;word-break:break-all;"
>
{{
cardData
.
brand
}}
</div>
<span
class=
"val"
>
{{
cardData
.
brand
}}
</span>
<el-tooltip
effect=
"dark"
placement=
"top"
popper-class=
"dark-tooltip"
:disabled=
"!cardData.
mainBrands
"
>
<div
slot=
"content"
style=
"max-width:236px;line-height:1.6;word-break:break-all;"
>
{{
cardData
.
mainBrands
}}
</div>
<span
class=
"val"
>
{{
cardData
.
mainBrands
}}
</span>
</el-tooltip>
</div>
<div
class=
"row-item"
>
...
...
@@ -25,27 +25,23 @@
</div>
<div
class=
"row-item"
>
<span
class=
"label"
>
区域运营:
</span>
<el-tooltip
v-if=
"cardData.region
Op
s"
effect=
"dark"
placement=
"top"
popper-class=
"dark-tooltip"
>
<div
slot=
"content"
style=
"max-width:236px;line-height:1.6;"
>
{{
cardData
.
region
Op
s
}}
</div>
<span
class=
"val"
>
{{
cardData
.
region
Op
s
}}
</span>
<el-tooltip
v-if=
"cardData.region
alOperator
s"
effect=
"dark"
placement=
"top"
popper-class=
"dark-tooltip"
>
<div
slot=
"content"
style=
"max-width:236px;line-height:1.6;"
>
{{
cardData
.
region
alOperator
s
}}
</div>
<span
class=
"val"
>
{{
cardData
.
region
alOperator
s
}}
</span>
</el-tooltip>
</div>
<!-- 预警标签组 -->
<div
v-if=
"cardData.alertCount"
class=
"alert-group"
>
<div
v-if=
"cardData.bottomAlert"
class=
"alert-tag red"
>
<img
src=
"@/assets/strategy/icon-strategy-type01.png"
alt=
""
class=
"icon-img"
>
<span>
兜底指标:
{{
cardData
.
bottomAlert
}}
</span>
</div>
<div
v-if=
"cardData.ecoAlert"
class=
"alert-tag orange"
>
<img
src=
"@/assets/strategy/icon-strategy-type02.png"
alt=
""
class=
"icon-img"
>
<span>
生态预警:
{{
cardData
.
ecoAlert
}}
</span>
<div
v-if=
"cardData.warningSummary && cardData.warningSummary.length > 0"
class=
"alert-group"
>
<div
v-for=
"(item, index) in cardData.warningSummary"
:key=
"index"
:class=
"['alert-tag', index === 0 ? 'red' : 'orange']"
>
<img
:src=
"getAlertIcon(index)"
alt=
""
class=
"icon-img"
>
<span>
{{
getAlertLabel
(
index
)
}}{{
item
}}
</span>
</div>
</div>
</div>
<div
class=
"card-foot"
>
<span
class=
"info"
>
共
{{
cardData
.
alert
Count
}}
项预警
</span>
<span
class=
"info"
>
共
{{
cardData
.
warningTotal
Count
}}
项预警
</span>
<span
class=
"link"
@
click=
"handleViewDetail"
>
查看详情
<img
src=
"@/assets/strategy/icon-strategy-arrow-r.png"
alt=
""
srcset=
""
class=
"icon-arrow"
></span>
</div>
</div>
...
...
@@ -82,6 +78,16 @@ export default {
}
});
}
},
// 获取预警图标
getAlertIcon
(
index
)
{
return
index
===
0
?
require
(
'@/assets/strategy/icon-strategy-type01.png'
)
:
require
(
'@/assets/strategy/icon-strategy-type02.png'
);
},
// 获取预警标签文本
getAlertLabel
(
index
)
{
return
index
===
0
?
'兜底指标:'
:
'生态预警:'
;
}
}
};
...
...
src/views/earlyWarningManager/strategyCentre/index.vue
View file @
d74ffeb
...
...
@@ -60,7 +60,7 @@
<!-- 3. 卡片内容区 -->
<div
class=
"content-area"
>
<el-row
:gutter=
"16"
v-if=
"cardList.length > 0"
>
<el-col
:span=
"8"
v-for=
"(item, index) in cardList
WithAlertCount
"
:key=
"index"
class=
"col-item"
>
<el-col
:span=
"8"
v-for=
"(item, index) in cardList"
:key=
"index"
class=
"col-item"
>
<monitor-card
:card-data=
"item"
:index=
"index"
...
...
@@ -170,13 +170,6 @@ export default {
};
},
computed
:
{
// 计算预警数量
cardListWithAlertCount
()
{
return
this
.
cardList
.
map
(
item
=>
({
...
item
,
alertCount
:
[
item
.
trafficAlert
,
item
.
bottomAlert
,
item
.
ecoAlert
].
filter
(
Boolean
).
length
}));
},
// 判断是否全部选中
isAllSelected
()
{
if
(
this
.
cardList
.
length
===
0
)
return
false
;
...
...
@@ -249,83 +242,97 @@ export default {
{
merchantNo
:
'1234567890'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司银川市金凤区众豪汽车销售服务有限公司'
,
brand
:
'鸿蒙智行/阿维塔'
,
onlineOps
:
'谢万新/叶雪'
,
region
Op
s
:
'叶雪'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
onlineOp
erator
s
:
'谢万新/叶雪'
,
region
alOperator
s
:
'叶雪'
,
bottomAlert
:
'周环比下降超过20%'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
ecoAlert
:
'整车延保渗透率低于兜底目标80%'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
warningTotalCount
:
2
,
checked
:
false
},
{
merchantNo
:
'1234557890'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司银川市金凤区众豪汽车销售服务有限公司'
,
brand
:
'鸿蒙智行/阿维塔'
,
onlineOps
:
'谢万新/叶雪'
,
region
Op
s
:
'叶雪'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
onlineOp
erator
s
:
'谢万新/叶雪'
,
region
alOperator
s
:
'叶雪'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
bottomAlert
:
'周环比下降超过20%'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
ecoAlert
:
'整车延保生态系数低于1.0'
,
warningTotalCount
:
2
,
checked
:
true
},
{
merchantNo
:
'123447890'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司...'
,
brand
:
'鸿蒙智行/阿维塔'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
isLong
:
true
,
onlineOps
:
'马小铭/刘德康/谢万新/叶雪...'
,
onlineOp
erator
s
:
'马小铭/刘德康/谢万新/叶雪...'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
regionOps
:
'叶雪'
,
regionalOperators
:
'叶雪'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
bottomAlert
:
'周环比下降超过20%'
,
ecoAlert
:
'整车延保生态系数低于1.0'
,
warningTotalCount
:
2
,
checked
:
false
},
{
merchantNo
:
'1234567894'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司...'
,
brand
:
'鸿蒙智行/阿维塔'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
isLong
:
true
,
onlineOps
:
'马小铭/刘德康/谢万新/叶雪...'
,
onlineOp
erator
s
:
'马小铭/刘德康/谢万新/叶雪...'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
region
Op
s
:
'叶雪'
,
region
alOperator
s
:
'叶雪'
,
bottomAlert
:
'周环比下降超过20%'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
ecoAlert
:
'整车延保生态系数低于1.0'
,
warningTotalCount
:
2
,
checked
:
false
},
{
merchantNo
:
'1234567895'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司...'
,
brand
:
'鸿蒙智行/阿维塔'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
isLong
:
true
,
onlineOps
:
'马小铭/刘德康/谢万新/叶雪...'
,
onlineOp
erator
s
:
'马小铭/刘德康/谢万新/叶雪...'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
regionOps
:
'叶雪'
,
regionalOperators
:
'叶雪'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
bottomAlert
:
'周环比下降超过20%'
,
ecoAlert
:
'整车延保生态系数低于1.0'
,
warningTotalCount
:
2
,
checked
:
false
},
{
merchantNo
:
'1234567896'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司...'
,
brand
:
'鸿蒙智行/阿维塔'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
isLong
:
true
,
onlineOps
:
'马小铭/刘德康/谢万新/叶雪...'
,
onlineOp
erator
s
:
'马小铭/刘德康/谢万新/叶雪...'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
region
Op
s
:
'叶雪'
,
region
alOperator
s
:
'叶雪'
,
bottomAlert
:
'周环比下降超过20%'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
ecoAlert
:
'整车延保生态系数低于1.0'
,
warningTotalCount
:
2
,
checked
:
false
},
{
merchantNo
:
'1234567897'
,
storeName
:
'银川市金凤区众豪汽车销售服务有限公司...'
,
brand
:
'鸿蒙智行/阿维塔'
,
mainBrands
:
'鸿蒙智行/阿维塔'
,
isLong
:
true
,
onlineOps
:
'马小铭/刘德康/谢万新/叶雪...'
,
onlineOp
erator
s
:
'马小铭/刘德康/谢万新/叶雪...'
,
fullOnlineOps
:
'马小铭/刘德康/谢万新/叶雪/马小铭/刘德康'
,
region
Op
s
:
'叶雪'
,
region
alOperator
s
:
'叶雪'
,
bottomAlert
:
'周环比下降超过20%'
,
warningSummary
:[
'周环比下降超过20%'
,
'整车延保渗透率低于兜底目标80%'
],
ecoAlert
:
'整车延保生态系数低于1.0'
,
warningTotalCount
:
12
,
checked
:
false
}];
// getMonitorList(params).then((res) => {
...
...
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