预警公告弹窗优化
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
<div class="sub-title mt-3">
|
<div class="sub-title mt-3">
|
||||||
<div>
|
<div>
|
||||||
<span>重要性</span>
|
<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>
|
||||||
<div v-if="propsData.type === 'system'">
|
<div v-if="propsData.type === 'system'">
|
||||||
<d-button v-show="mode === 'readonly'" class="edit-btn" icon="icon-edit" variant="text" title="编辑" @click="handleModeChange"/>
|
<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'],
|
['ul', 'ol', 'checklist', 'code', 'link', 'image', 'table'],
|
||||||
];
|
];
|
||||||
const tagMap = {
|
const tagMap = {
|
||||||
|
'致命': {
|
||||||
|
text: '致命',
|
||||||
|
color: '#c7000b'
|
||||||
|
},
|
||||||
|
'高': {
|
||||||
|
text: '高',
|
||||||
|
color: '#f66f6a'
|
||||||
|
},
|
||||||
|
'中': {
|
||||||
|
text: '中',
|
||||||
|
color: '#fac20a'
|
||||||
|
},
|
||||||
|
'低': {
|
||||||
|
text: '低',
|
||||||
|
color: '#5e7ce0'
|
||||||
|
},
|
||||||
'Critical': {
|
'Critical': {
|
||||||
text: '致命',
|
text: '致命',
|
||||||
color: '#c7000b'
|
color: '#c7000b'
|
||||||
|
|||||||
Reference in New Issue
Block a user