|
@@ -185,6 +185,7 @@ export default {
|
|
|
mounted: false,
|
|
mounted: false,
|
|
|
entityLoading: true,
|
|
entityLoading: true,
|
|
|
packageTitle: '',
|
|
packageTitle: '',
|
|
|
|
|
+ firstChangeOfSelectedCategoryInfoType: false,
|
|
|
ticket: new Ticket(),
|
|
ticket: new Ticket(),
|
|
|
authenticatedUser: new User(),
|
|
authenticatedUser: new User(),
|
|
|
api: APIGateway.ticket.APIAdresses.byId(ticketId),
|
|
api: APIGateway.ticket.APIAdresses.byId(ticketId),
|
|
@@ -241,6 +242,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
selectedCategoryInfoType () {
|
|
selectedCategoryInfoType () {
|
|
|
|
|
+ if (!this.firstChangeOfSelectedCategoryInfoType) {
|
|
|
|
|
+ this.firstChangeOfSelectedCategoryInfoType = true
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
FormBuilderAssist.setAttributeByName(this.inputs, 'category', 'value', null)
|
|
FormBuilderAssist.setAttributeByName(this.inputs, 'category', 'value', null)
|
|
|
this.loadCategories()
|
|
this.loadCategories()
|
|
|
}
|
|
}
|
|
@@ -255,14 +260,11 @@ export default {
|
|
|
this.loadAuthData()
|
|
this.loadAuthData()
|
|
|
this.checkSource()
|
|
this.checkSource()
|
|
|
this.loadOptions()
|
|
this.loadOptions()
|
|
|
- .then(() => {
|
|
|
|
|
|
|
+ .finally(() => {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.mounted = true
|
|
this.mounted = true
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
- .catch(() => {
|
|
|
|
|
- this.mounted = true
|
|
|
|
|
- })
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
closeTicket () {
|
|
closeTicket () {
|
|
@@ -374,17 +376,18 @@ export default {
|
|
|
label: item.title
|
|
label: item.title
|
|
|
}
|
|
}
|
|
|
}))
|
|
}))
|
|
|
- this.categoriesLoading = false
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
resolve()
|
|
resolve()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
- this.categoriesLoading = false
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
reject()
|
|
reject()
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
+ .finally(() => {
|
|
|
|
|
+ this.categoriesLoading = false
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
sendReply() {
|
|
sendReply() {
|