ali 3 роки тому
батько
коміт
bd8cf2973b

+ 1 - 0
src/api/models/TicketCategory.js

@@ -26,6 +26,7 @@ export default class TicketCategoryAPI extends APIRepository {
       api: this.api,
       request: this.APIAdresses.base,
       data: this.getNormalizedSendData({
+        type: null, // String
         page: 1 // Number
       }, data),
       resolveCallback: (response) => {

+ 6 - 1
src/components/Widgets/Ticket/AdminTicketList/AdminTicketList.vue

@@ -115,7 +115,12 @@ export default {
     },
     loadCategories () {
       return new Promise((resolve, reject) => {
-        APIGateway.ticketCategory.index()
+        const type = null
+
+        // if (this.localOptions.defaultSourceType) {
+        //   type = this.localOptions.defaultSourceType
+        // }
+        APIGateway.ticketCategory.index({ type })
           .then(({ list }) => {
             FormBuilderAssist.setAttributeByName(this.inputs, 'category', 'options', list.list.map(item => {
               return {