From d7f3274b59997cfb55e75afb4eccc244307c49bd Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Wed, 16 Nov 2022 15:47:27 +0800 Subject: [PATCH] perf: ticket --- .../RequestAssetPerm/Detail/TicketDetail.vue | 6 +++--- src/views/tickets/components/Comments.vue | 10 +++++----- .../tickets/components/GenericTicketDetail.vue | 2 +- src/views/tickets/components/Session.vue | 2 +- src/views/tickets/components/Steps.vue | 17 +++++++---------- 5 files changed, 17 insertions(+), 20 deletions(-) diff --git a/src/views/tickets/RequestAssetPerm/Detail/TicketDetail.vue b/src/views/tickets/RequestAssetPerm/Detail/TicketDetail.vue index f0e4a0ed3..fe72dcbf7 100644 --- a/src/views/tickets/RequestAssetPerm/Detail/TicketDetail.vue +++ b/src/views/tickets/RequestAssetPerm/Detail/TicketDetail.vue @@ -7,7 +7,7 @@ :close="handleClose" :reject="handleReject" > - +
{{ $tc('common.Actions') }}
@@ -198,12 +198,12 @@ export default { const nodeLength = this.requestForm.nodes.length if (assetLength === 0 && nodeLength === 0) { return this.$message.error(this.$tc('common.SelectAtLeastOneAssetOrNodeErrMsg')) - } else if (this.requestForm.systemusers.length === 0) { + } else if (this.requestForm.accounts.length === 0) { return this.$message.error(this.$tc('common.RequiredSystemUserErrMsg')) } } this.$axios.patch(`/api/v1/tickets/apply-asset-tickets/${this.object.id}/approve/`, { - apply_system_users: this.requestForm.systemusers ? this.requestForm.systemusers : [], + apply_accounts: this.requestForm.accounts ? this.requestForm.accounts : [], apply_nodes: this.requestForm.nodes ? this.requestForm.nodes : [], apply_assets: this.requestForm.assets ? this.requestForm.assets : [], apply_actions: this.requestForm.actions, diff --git a/src/views/tickets/components/Comments.vue b/src/views/tickets/components/Comments.vue index c8cd30a72..9548e188f 100644 --- a/src/views/tickets/components/Comments.vue +++ b/src/views/tickets/components/Comments.vue @@ -27,7 +27,7 @@