mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: use close to reslove except confirm
This commit is contained in:
@@ -84,6 +84,10 @@ export default {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
moreActionsType: {
|
||||
type: String,
|
||||
default: null
|
||||
},
|
||||
moreCreates: {
|
||||
type: Object,
|
||||
default: null
|
||||
@@ -194,10 +198,12 @@ export default {
|
||||
selectedRows: this.selectedRows,
|
||||
reloadTable: this.reloadTable
|
||||
})
|
||||
|
||||
return {
|
||||
name: 'moreActions',
|
||||
title: this.moreActionsTitle || this.$t('MoreActions'),
|
||||
dropdown: dropdown
|
||||
dropdown: dropdown,
|
||||
type: this.moreActionsType
|
||||
}
|
||||
},
|
||||
hasSelectedRows() {
|
||||
|
||||
@@ -130,6 +130,9 @@ export default {
|
||||
this.$emit('handle', { action: 'ignore', comment: this.comment })
|
||||
},
|
||||
getDetailIcon(detail) {
|
||||
if (detail.action === 'reopen') {
|
||||
return 'el-icon-refresh'
|
||||
}
|
||||
switch (detail.status) {
|
||||
case '1':
|
||||
return 'el-icon-check'
|
||||
@@ -225,6 +228,11 @@ ${detail.diff}
|
||||
|
||||
.el-timeline {
|
||||
padding: 0 20px;
|
||||
|
||||
.el-timeline-item__node--normal {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
<el-tooltip :content="$tc('Ignore alert')" :open-delay="400">
|
||||
<el-tooltip :content="$tc('IgnoreAlert')" :open-delay="400">
|
||||
<el-button class="ignore action" size="mini" @click="handleDropdown('ignore')">
|
||||
<svg-icon icon-class="ignore" />
|
||||
</el-button>
|
||||
|
||||
Reference in New Issue
Block a user