diff --git a/src/views/Jyh/Home/index.vue b/src/views/Jyh/Home/index.vue
index 20bc929..aa5813a 100644
--- a/src/views/Jyh/Home/index.vue
+++ b/src/views/Jyh/Home/index.vue
@@ -87,11 +87,11 @@
@click="openWarningDetail(item, index)"
>
{{ item.subject }}
- {{ item.importance }}
+ {{ tagMap[item.importance].text }}
重要性
- {{warningData.importance}}
+ {{tagMap[warningData.importance].text}}
@@ -39,6 +39,24 @@ const toolbarConfig = [
['h1', 'h2', 'bold', 'italic', 'strike', 'underline', 'color', 'font'],
['ul', 'ol', 'checklist', 'code', 'link', 'image', 'table'],
];
+const tagMap = {
+ 'Critical': {
+ text: '致命',
+ color: '#c7000b'
+ },
+ 'High': {
+ text: '高',
+ color: '#f66f6a'
+ },
+ 'Medium': {
+ text: '中',
+ color: '#fac20a'
+ },
+ 'Low': {
+ text: '低',
+ color: '#5e7ce0'
+ }
+}
const mode = ref('readonly');
console.log(propsData.warningData)
warningData.value = propsData.warningData ?? {