merge dev-shenjianbin into master
预警公告弹窗优化 Created-by: MaxShen Commit-by: MaxShen Merged-by: MaxShen Description: 预警公告弹窗优化 Merge branch 'master' of https://gitcode.com/hk_openRepo/OpenRepo_Portal into dev-shenjianbin See merge request: hk_openRepo/OpenRepo_Portal!58
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<div class="sub-title mt-3">
|
||||
<div>
|
||||
<span>重要性</span>
|
||||
<d-tag size="sm" :color="tagMap[warningData.importance].color">{{tagMap[warningData.importance].text}}</d-tag>
|
||||
<d-tag size="sm" :color="tagMap[warningData.importance]?.color">{{tagMap[warningData.importance]?.text}}</d-tag>
|
||||
</div>
|
||||
<div v-if="propsData.type === 'system'">
|
||||
<d-button v-show="mode === 'readonly'" class="edit-btn" icon="icon-edit" variant="text" title="编辑" @click="handleModeChange"/>
|
||||
@@ -40,6 +40,22 @@ const toolbarConfig = [
|
||||
['ul', 'ol', 'checklist', 'code', 'link', 'image', 'table'],
|
||||
];
|
||||
const tagMap = {
|
||||
'致命': {
|
||||
text: '致命',
|
||||
color: '#c7000b'
|
||||
},
|
||||
'高': {
|
||||
text: '高',
|
||||
color: '#f66f6a'
|
||||
},
|
||||
'中': {
|
||||
text: '中',
|
||||
color: '#fac20a'
|
||||
},
|
||||
'低': {
|
||||
text: '低',
|
||||
color: '#5e7ce0'
|
||||
},
|
||||
'Critical': {
|
||||
text: '致命',
|
||||
color: '#c7000b'
|
||||
|
||||
Reference in New Issue
Block a user