mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-16 16:21:21 +00:00
perf: add it
This commit is contained in:
parent
1c36d1b3c6
commit
aa631678f8
@ -198,7 +198,6 @@ export default {
|
||||
selectedRows: this.selectedRows,
|
||||
reloadTable: this.reloadTable
|
||||
})
|
||||
|
||||
return {
|
||||
name: 'moreActions',
|
||||
title: this.moreActionsTitle || this.$t('MoreActions'),
|
||||
|
@ -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)
|
||||
|
@ -75,8 +75,8 @@ export const riskActions = [
|
||||
has: false
|
||||
},
|
||||
{
|
||||
name: 'confirm',
|
||||
label: i18n.t('Confirm'),
|
||||
name: 'close',
|
||||
label: i18n.t('Close'),
|
||||
has: false
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user