Commit 78099157 authored by 张牧越's avatar 张牧越

styleFix

parent 44e5b5dd
...@@ -281,13 +281,23 @@ ...@@ -281,13 +281,23 @@
v-for="(legend, index) in aiwarningData" v-for="(legend, index) in aiwarningData"
:key="index" :key="index"
:style="{ :style="{
color: legend.name == '已处理' ? '#AEE4F8' : '#FF754C', color:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}" }"
> >
<span <span
class="rect" class="rect"
:style="{ :style="{
background: legend.name == '已处理' ? '#AEE4F8' : '#FF754C', background:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}" }"
></span> ></span>
{{ legend.name }} {{ legend.value }} {{ legend.name }} {{ legend.value }}
...@@ -370,7 +380,12 @@ export default { ...@@ -370,7 +380,12 @@ export default {
return { return {
...item, ...item,
itemStyle: { itemStyle: {
color: item.name == "已处理" ? "#AEE4F8" : "#FF754C", color:
item.name == "已处理"
? "#18d7b9"
: item.name == "处理中"
? "#feba01"
: "#ff754c",
}, },
}; };
}), }),
......
...@@ -129,14 +129,23 @@ ...@@ -129,14 +129,23 @@
v-for="(legend, index) in todayPieChartData" v-for="(legend, index) in todayPieChartData"
:key="index" :key="index"
:style="{ :style="{
color: legend.name == '未处理' ? '#FFAF51' : '#0CDEE3', color:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}" }"
> >
<span <span
class="rect" class="rect"
:style="{ :style="{
background: background:
legend.name == '未处理' ? '#FFAF51' : '#0CDEE3', legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}" }"
></span> ></span>
{{ legend.name }} {{ legend.value }} {{ legend.name }} {{ legend.value }}
...@@ -164,14 +173,23 @@ ...@@ -164,14 +173,23 @@
v-for="(legend, index) in historyChartData" v-for="(legend, index) in historyChartData"
:key="index" :key="index"
:style="{ :style="{
color: legend.name == '未处理' ? '#FCFF11' : '#2980FF', color:
legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}" }"
> >
<span <span
class="rect" class="rect"
:style="{ :style="{
background: background:
legend.name == '未处理' ? '#FCFF11' : '#2980FF', legend.name == '已处理'
? '#18d7b9'
: legend.name == '处理中'
? '#feba01'
: '#ff754c',
}" }"
></span> ></span>
{{ legend.name }} {{ legend.value }} {{ legend.name }} {{ legend.value }}
...@@ -338,7 +356,12 @@ export default { ...@@ -338,7 +356,12 @@ export default {
return { return {
...item, ...item,
itemStyle: { itemStyle: {
color: item.name == "未处理" ? "#FFAF51" : "#0CDEE3", color:
item.name == "已处理"
? "#18d7b9"
: item.name == "处理中"
? "#feba01"
: "#ff754c",
}, },
}; };
}), }),
...@@ -388,7 +411,12 @@ export default { ...@@ -388,7 +411,12 @@ export default {
return { return {
...item, ...item,
itemStyle: { itemStyle: {
color: item.name == "未处理" ? "#FCFF11" : "#2980FF", color:
item.name == "已处理"
? "#18d7b9"
: item.name == "处理中"
? "#feba01"
: "#ff754c",
}, },
}; };
}), }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment