Commit 5c6fcb46 authored by 蔡伟's avatar 蔡伟

Merge branch 'feat/layout-style' into 'dev'

Feat/layout style

See merge request !28
parents 140ff6fc 270bea1a
......@@ -48,7 +48,7 @@ const poppetValve = ref(100);
const customColors = [
{ color: "#ff6a6a", percentage: 60 },
{ color: "#f5c701", percentage: 80 },
{ color: "#f5c701", percentage: 90 },
{ color: "#08c733", percentage: 100 },
];
......@@ -61,10 +61,10 @@ const msgList = ref([
const mapList = ref([]);
const customColorMethod = (percentage) => {
if (percentage < 60) {
if (percentage < 70) {
return customColors[0].color;
}
if (percentage < 90) {
if (percentage < 100) {
return customColors[1].color;
}
return customColors[2].color;
......
......@@ -370,8 +370,8 @@ const handleDusterLeakNumClick = () => {
router.push({
path: "/alerts",
query: {
startTime: moment().format("YYYY-MM-DD HH:mm:ss"),
endTime: moment().subtract(24, 'hours').format("YYYY-MM-DD HH:mm:ss"),
startTime: moment().subtract(24, 'hours').format("YYYY-MM-DD HH:mm:ss"),
endTime: moment().format("YYYY-MM-DD HH:mm:ss"),
},
});
};
......
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