perf: add it

This commit is contained in:
ibuler 2025-01-20 18:05:29 +08:00
parent 1c36d1b3c6
commit aa631678f8
3 changed files with 6 additions and 9 deletions

View File

@ -198,7 +198,6 @@ export default {
selectedRows: this.selectedRows,
reloadTable: this.reloadTable
})
return {
name: 'moreActions',
title: this.moreActionsTitle || this.$t('MoreActions'),

View File

@ -32,8 +32,8 @@
<div v-if="row.status.value === '0'">
<el-input v-model="comment" :placeholder="$tc('PleaseEnterReason')" type="textarea" />
<span class="buttons">
<el-button size="small" type="primary" @click="handleConfirm">
{{ $t("Confirm") }}
<el-button size="small" type="primary" @click="handleClose">
{{ $t("Close") }}
</el-button>
<el-button size="small" @click="handleIgnore">
{{ $t("IgnoreAlert") }}
@ -115,10 +115,8 @@ export default {
}
return `${username}@${asset.name}`
},
handleOpen() {
},
handleConfirm() {
this.$emit('handle', { action: 'confirm', comment: this.comment })
handleClose() {
this.$emit('handle', { action: 'close', comment: this.comment })
},
formatTimestamp(datetime) {
return toSafeLocalDateStr(datetime)

View File

@ -75,8 +75,8 @@ export const riskActions = [
has: false
},
{
name: 'confirm',
label: i18n.t('Confirm'),
name: 'close',
label: i18n.t('Close'),
has: false
}
]