diff --git a/src/components/BadgeStatus/color.ts b/src/components/BadgeStatus/color.ts index c3f05abf..a6f8d8fa 100644 --- a/src/components/BadgeStatus/color.ts +++ b/src/components/BadgeStatus/color.ts @@ -4,7 +4,13 @@ const color = { 'error': '229, 0, 18', 'success': '36, 178, 118', 'warning': '255, 144, 0', - 'default': '102, 102, 102' + 'default': '102, 102, 102', + //告警颜色 + 'level1': '229, 0, 18', + 'level2': '255, 148, 87', + 'level3': '250, 189, 71', + 'level4': '153, 153, 153', + 'level5': '196, 196, 196' } export const getHexColor = (code: string, pe: number = 0.1) => { const _color = color[code] || color.default diff --git a/src/views/Northbound/DuerOS/Detail/command/index.vue b/src/views/Northbound/DuerOS/Detail/command/index.vue index fc2ec36c..e9ac4084 100644 --- a/src/views/Northbound/DuerOS/Detail/command/index.vue +++ b/src/views/Northbound/DuerOS/Detail/command/index.vue @@ -28,6 +28,7 @@ 设备接入网关已禁用,请先 { @@ -416,6 +419,8 @@ const Status = defineComponent({ 设备接入网关已禁用,请先 { @@ -528,6 +533,8 @@ const Status = defineComponent({ 网关父设备已禁用,请先 { @@ -636,6 +643,8 @@ const Status = defineComponent({ 产品已禁用,请 { @@ -712,6 +721,8 @@ const Status = defineComponent({ 设备已禁用,请 { @@ -1720,6 +1731,8 @@ const Status = defineComponent({ 网关父设备已禁用,请先 { diff --git a/src/views/device/Instance/Detail/index.vue b/src/views/device/Instance/Detail/index.vue index 5ef614f4..716f31c4 100644 --- a/src/views/device/Instance/Detail/index.vue +++ b/src/views/device/Instance/Detail/index.vue @@ -1,15 +1,14 @@