mirror of
https://github.com/jumpserver/lina.git
synced 2025-07-17 16:51:16 +00:00
perf: add it
This commit is contained in:
parent
1c36d1b3c6
commit
aa631678f8
@ -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'),
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user