diff --git a/src/views/tickets/CommandConfirm/Detail/index.vue b/src/views/tickets/CommandConfirm/Detail/index.vue index 22557987c..fa81fa73d 100644 --- a/src/views/tickets/CommandConfirm/Detail/index.vue +++ b/src/views/tickets/CommandConfirm/Detail/index.vue @@ -27,7 +27,7 @@ export default { } ], actions: { - detailApiUrl: `/api/v1/tickets/tickets/${this.$route.params.id}/` + detailApiUrl: `/api/v1/tickets/apply-command-tickets/${this.$route.params.id}/` }, getObjectName: this.getObjectName, hasRightSide: false diff --git a/src/views/tickets/LoginAssetConfirm/Detail/index.vue b/src/views/tickets/LoginAssetConfirm/Detail/index.vue index 22557987c..387ae24e2 100644 --- a/src/views/tickets/LoginAssetConfirm/Detail/index.vue +++ b/src/views/tickets/LoginAssetConfirm/Detail/index.vue @@ -27,7 +27,7 @@ export default { } ], actions: { - detailApiUrl: `/api/v1/tickets/tickets/${this.$route.params.id}/` + detailApiUrl: `/api/v1/tickets/apply-login-asset-tickets/${this.$route.params.id}/` }, getObjectName: this.getObjectName, hasRightSide: false diff --git a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue index b298d1bff..ff8477b30 100644 --- a/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestApplicationPerm/CreateUpdate.vue @@ -144,9 +144,9 @@ export default { } } }, - url: '/api/v1/tickets/tickets/?type=apply_application&action=open', + url: '/api/v1/tickets/apply-app-tickets/?state=pending', createSuccessNextRoute: { - name: 'TicketList' + name: 'MyTicketList' }, cleanFormValue(value) { const applications = value.apply_applications @@ -183,7 +183,7 @@ export default { validValues.apply_category = filter(0, 'apply_category') validValues.apply_type = filter(1, 'apply_type') delete validValues['apply_category_type'] - return this.$axios['post'](`/api/v1/tickets/tickets/open/?type=apply_application`, validValues) + return this.$axios['post'](`/api/v1/tickets/apply-app-tickets/open/`, validValues) } } } diff --git a/src/views/tickets/RequestApplicationPerm/Detail/index.vue b/src/views/tickets/RequestApplicationPerm/Detail/index.vue index 22557987c..9e4471950 100644 --- a/src/views/tickets/RequestApplicationPerm/Detail/index.vue +++ b/src/views/tickets/RequestApplicationPerm/Detail/index.vue @@ -27,7 +27,7 @@ export default { } ], actions: { - detailApiUrl: `/api/v1/tickets/tickets/${this.$route.params.id}/` + detailApiUrl: `/api/v1/tickets/apply-app-tickets/${this.$route.params.id}/` }, getObjectName: this.getObjectName, hasRightSide: false diff --git a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue index 0ed952c6a..360cda80f 100644 --- a/src/views/tickets/RequestAssetPerm/CreateUpdate.vue +++ b/src/views/tickets/RequestAssetPerm/CreateUpdate.vue @@ -116,9 +116,9 @@ export default { }) return value }, - url: '/api/v1/tickets/apply-asset-tickets/?action=open', + url: '/api/v1/tickets/apply-asset-tickets/?state=pending', createSuccessNextRoute: { - name: 'TicketList' + name: 'MyTicketList' } } }, diff --git a/src/views/tickets/TicketDetail/TicketDetail.vue b/src/views/tickets/TicketDetail/TicketDetail.vue index 18dac4449..207eb53a7 100644 --- a/src/views/tickets/TicketDetail/TicketDetail.vue +++ b/src/views/tickets/TicketDetail/TicketDetail.vue @@ -33,7 +33,7 @@ export default { return [ { key: this.$t('tickets.Applicant'), - value: this.object.applicant_display + value: this.object.rel_snapshot.applicant }, { key: this.$t('tickets.type'),