소스 검색

see also #2۷

ali 3 년 전
부모
커밋
bd8cf2973b
2개의 변경된 파일과 7개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      src/api/models/TicketCategory.js
  2. 6 1
      src/components/Widgets/Ticket/AdminTicketList/AdminTicketList.vue

+ 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 {