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, selectedRows: this.selectedRows,
reloadTable: this.reloadTable reloadTable: this.reloadTable
}) })
return { return {
name: 'moreActions', name: 'moreActions',
title: this.moreActionsTitle || this.$t('MoreActions'), title: this.moreActionsTitle || this.$t('MoreActions'),

View File

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

View File

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