+ Ticket: {{this.submitResponse.ticket.title}}, id: {{this.submitResponse.ticket.id}}
+ You can stay here to submit another one
+ Or check the ticket result now.
+
@@ -53,11 +65,16 @@ export default {
form: this.$form.createForm(this),
resultVisible: false,
canSubmit: true,
+ submitResponse: {
+ 'ticket': 'dummy ticket',
+ 'id': 0
+ },
submitResult: '',
resultType: 'success',
actionDefinition: '',
spinning: false,
- delayTime: 500
+ delayTime: 500,
+ showSubmitOK: false
}
},
computed: {
@@ -137,6 +154,7 @@ export default {
url: submitURL}
HRequest(options).then((response) => {
this.handleSubmitResult(response)
+ this.showSubmitOK = true
}).finally(() => {
this.canSubmit = true
})
@@ -148,6 +166,7 @@ export default {
},
handleSubmitResult (response) {
this.resultVisible = true
+ this.submitResponse = response.data.data
this.submitResult = response.data.data.msg
this.resultType = response.data.data.msg_level
},
@@ -159,6 +178,9 @@ export default {
handleInput (data) {
this.form.setFieldsValue(data)
this.formData = data
+ },
+ gotoTicketDetail () {
+ this.$router.push({ name: 'HTicketDetail', params: { id: this.submitResponse.ticket.id }})
}
},