%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/web/js/
Upload File :
Create Path :
Current File : /var/www/html/hr/web/js/chunk-7e6c0ac1.417f5556.js.map

{"version":3,"sources":["webpack:///./src/components/Pagination.vue?fb44","webpack:///src/components/Pagination.vue","webpack:///./src/components/Pagination.vue?b5ee","webpack:///./src/components/Pagination.vue","webpack:///./src/views/ptos/PersonalPTOs.vue?ea36","webpack:///./src/components/ptos/PtosPersonalTable.vue?62f1","webpack:///src/components/ptos/PtosPersonalTable.vue","webpack:///./src/components/ptos/PtosPersonalTable.vue?99d8","webpack:///./src/components/ptos/PtosPersonalTable.vue","webpack:///./src/components/ptos/PtoDetailsModal.vue?9806","webpack:///src/components/ptos/PtoDetailsModal.vue","webpack:///./src/components/ptos/PtoDetailsModal.vue?884d","webpack:///./src/components/ptos/PtoDetailsModal.vue","webpack:///src/views/ptos/PersonalPTOs.vue","webpack:///./src/views/ptos/PersonalPTOs.vue?c593","webpack:///./src/views/ptos/PersonalPTOs.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","attrs","pagination","per_page","paginationOptions","on","$event","$emit","_e","max","total_pages","pageChange","model","value","callback","$$v","expression","staticRenderFns","component","openCreationForm","action","loadingModalActions","selectedPto","clearSelection","createPto","actionAndSendPtoRequest","updatePto","loading","tableHeader","list","updatingPtos","deletePto","openDetails","sendPtoRequest","changePage","ptos","scopedSlots","_u","key","fn","ref","data","_l","tr","indextr","start_date","_f","end_date","status","can_edit","isUpdating","id","requestPto","can_delete","slot","title","i","class","popupActive","invalid","reset","preventDefault","ptoData","startDateConfig","$set","endDateConfig","loadingActions","queryParams","page"],"mappings":"gHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,QAAQ,CAAEN,EAAiB,cAAEI,EAAG,MAAM,CAACE,YAAY,q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GI,eApDJ,SAoDA,GAAM,IAAN,OACM,EAAN,oCACQ,EAAR,2CACQ,EAAR,6GACA,mBACQ,EAAR,yCACA,oBACQ,EAAR,sDAGI,wBA9DJ,WA8DM,IAAN,OACM,KAAN,uBACM,EAAN,sDACQ,EAAR,yCACU,EAAV,YACU,EAAV,iBACU,EAAV,6GACA,mBACU,EAAV,yCACA,oBACU,EAAV,6BAEA,mBACQ,EAAR,yCACA,oBACQ,EAAR,2BAGI,UAhFJ,SAgFA,GAAM,IAAN,OACM,EAAN,mCACQ,EAAR,4CAEQ,EAAR,4GACA,mBACQ,EAAR,yCACA,oBACQ,EAAR,sDAGI,OA3FJ,WA4FM,KAAN,cAAQ,MAAR,yCAEM,KAAN,mBACM,KAAN,aAEI,aAjGJ,WAkGM,IAAN,OACA,yBACQ,EAAR,+CAGI,WAvGJ,SAuGA,GACM,KAAN,mBACM,KAAN,cAAQ,MAAR,yCAEM,KAAN,cAEI,YA7GJ,SA6GA,GACM,OAAN,iCAAQ,OAAO,EAAf,WAEI,eAhHJ,WAiHM,KAAN,uBACM,KAAN,YACM,KAAN,iBAGE,SAAF,CACI,YADJ,WAEM,MAAN,CACA,iCACA,+BACA,6BACA,iCAIE,QAnJF,WAoJI,KAAJ,eACI,KAAJ,cC3LqW,ICOjW,EAAY,eACd,EACA/B,EACA2B,GACA,EACA,KACA,WACA,MAIa,e","file":"js/chunk-7e6c0ac1.417f5556.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"flex\"},[(_vm.selectPerPage)?_c('div',{staticClass:\"flex items-center\"},[_c('span',{staticClass:\"mr-2 whitespace-pre\"},[_vm._v(_vm._s(_vm.$t('labels.per_page'))+\":\")]),_c('div',{staticClass:\"z-500 w-20\"},[_c('base-multiselect',{staticClass:\"-mt-4\",attrs:{\"value\":_vm.pagination.per_page,\"options\":_vm.paginationOptions,\"selectedLabel\":\"\",\"selectLabel\":\"\",\"deselectLabel\":\"\",\"allow-empty\":false},on:{\"input\":function($event){return _vm.$emit('selectedPerPage', $event)}}})],1)]):_vm._e(),_c('vs-pagination',{staticClass:\"mt-2\",attrs:{\"max\":_vm.max,\"total\":_vm.pagination.total_pages},on:{\"input\":_vm.pageChange},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div class=\"flex\">\n    <div v-if=\"selectPerPage\" class=\"flex items-center\">\n      <span class=\"mr-2 whitespace-pre\">{{ $t('labels.per_page') }}:</span>\n      <div class=\"z-500 w-20\">\n        <base-multiselect\n          :value=\"pagination.per_page\"\n          :options=\"paginationOptions\"\n          @input=\"$emit('selectedPerPage', $event)\"\n          selectedLabel=\"\"\n          selectLabel=\"\"\n          deselectLabel=\"\"\n          class=\"-mt-4\"\n          :allow-empty=\"false\"/>\n      </div>\n    </div>\n    <vs-pagination :max=\"max\" :total=\"pagination.total_pages\" @input=\"pageChange\" class=\"mt-2\"\n                   v-model=\"value\"></vs-pagination>\n  </div>\n</template>\n\n<script>\n  export default {\n    name:'Pagination',\n    props:{\n      pagination:{\n        type:Object,\n        required:true\n      },\n      max:{\n        type:Number,\n        default:7\n      },\n      selectPerPage: {\n        type:Boolean,\n        default:false\n      }\n    },\n    data:() => ({\n      paginationOptions:[5, 10, 15, 20, 30, 50, 100],\n      value:null\n    }),\n    methods:{\n      pageChange(val) {\n        this.$emit('input', val)\n      }\n    },\n    created() {\n      this.value = this.pagination.current_page\n    }\n  }\n</script>\n\n<style scoped>\n\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Pagination.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Pagination.vue?vue&type=template&id=cb826a88&scoped=true&\"\nimport script from \"./Pagination.vue?vue&type=script&lang=js&\"\nexport * from \"./Pagination.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"cb826a88\",\n  null\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vue-portal',{attrs:{\"to\":\"hrsys-navbar-actions\"}},[_c('vx-tooltip',{staticClass:\"ml-2\",attrs:{\"text\":_vm.$t('buttons.create'),\"position\":\"bottom\"}},[_c('base-button',{staticClass:\"self-end\",attrs:{\"icon\":\"plus\"},on:{\"click\":_vm.openCreationForm}})],1)],1),_c('pto-details-modal',{attrs:{\"action\":_vm.action,\"loadingActions\":_vm.loadingModalActions,\"popup-active\":!!_vm.action,\"pto-data\":_vm.selectedPto},on:{\"cancel\":_vm.clearSelection,\"create\":_vm.createPto,\"send\":_vm.actionAndSendPtoRequest,\"update\":_vm.updatePto}}),_c('base-loader',{attrs:{\"loading\":_vm.loading}},[_c('div',{staticClass:\"rounded-lg shadow-md\"},[_c('ptos-personal-table',{attrs:{\"header\":_vm.tableHeader,\"ptos\":_vm.list,\"updatingPtos\":_vm.updatingPtos},on:{\"delete\":_vm.deletePto,\"details\":_vm.openDetails,\"request\":_vm.sendPtoRequest}}),(_vm.pagination.total)?_c('pagination',{attrs:{\"pagination\":_vm.pagination},on:{\"input\":_vm.changePage}}):_vm._e()],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('vs-table',{attrs:{\"data\":_vm.ptos},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.data;\nreturn _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',{attrs:{\"data\":tr.start_date}},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(tr.start_date,'MMM Do YYYY'))+\" \")]),_c('vs-td',{attrs:{\"data\":tr.end_date}},[_vm._v(\" \"+_vm._s(_vm._f(\"date\")(tr.end_date,'MMM Do YYYY'))+\" \")]),_c('vs-td',{attrs:{\"data\":tr.status}},[_vm._v(\" \"+_vm._s(_vm._f(\"ptoStatus\")(tr.status))+\" \")]),_c('vs-td',{staticClass:\"text-right w-16\"},[_c('div',{staticClass:\"flex justify-end\"},[_c('vx-tooltip',{attrs:{\"text\":_vm.$t('buttons.details'),\"position\":\"top\"}},[_c('base-button',{staticClass:\"self-end mx-px\",attrs:{\"icon\":\"info\"},on:{\"click\":function($event){return _vm.$emit('details', tr)}}})],1),_c('vx-tooltip',{attrs:{\"text\":_vm.$t('buttons.request'),\"position\":\"top\"}},[_c('base-button',{staticClass:\"self-end mx-px\",attrs:{\"disabled\":!tr.can_edit,\"loading\":_vm.isUpdating(tr.id),\"icon\":\"paper-plane\"},on:{\"click\":function($event){return _vm.requestPto(tr)}}})],1),_c('vx-tooltip',{attrs:{\"text\":_vm.$t('buttons.delete'),\"position\":\"top\"}},[_c('base-button',{staticClass:\"self-end mx-px\",attrs:{\"disabled\":!tr.can_delete,\"loading\":_vm.isUpdating(tr.id),\"color\":\"danger\",\"icon\":\"trash\"},on:{\"click\":function($event){return _vm.deletePto(tr)}}})],1)],1)])],1)})}}])},[_c('template',{slot:\"thead\"},_vm._l((_vm.header),function(title,i){return _c('vs-th',{key:i,staticClass:\"text-base\",class:{'float-right': title === _vm.$t('ptos.table.actions')}},[_vm._v(_vm._s(title)+\" \")])}),1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n\n  <vs-table :data=\"ptos\">\n\n    <template slot=\"thead\">\n      <vs-th :key=\"i\" class=\"text-base\" v-for=\"(title, i) in header\"\n             :class=\"{'float-right': title === $t('ptos.table.actions')}\">{{ title }}\n      </vs-th>\n    </template>\n\n    <template slot-scope=\"{data}\">\n      <vs-tr :data=\"tr\" :key=\"indextr\" v-for=\"(tr, indextr) in data\">\n        <vs-td :data=\"tr.start_date\">\n          {{ tr.start_date | date('MMM Do YYYY') }}\n        </vs-td>\n        <vs-td :data=\"tr.end_date\">\n          {{ tr.end_date | date('MMM Do YYYY') }}\n        </vs-td>\n        <vs-td :data=\"tr.status\">\n          {{ tr.status | ptoStatus }}\n        </vs-td>\n        <vs-td class=\"text-right w-16\">\n          <div class=\"flex justify-end\">\n            <vx-tooltip :text=\"$t('buttons.details')\" position=\"top\">\n              <base-button @click=\"$emit('details', tr)\" class=\"self-end mx-px\" icon=\"info\"></base-button>\n            </vx-tooltip>\n            <vx-tooltip :text=\"$t('buttons.request')\" position=\"top\">\n              <base-button :disabled=\"!tr.can_edit\" :loading=\"isUpdating(tr.id)\" @click=\"requestPto(tr)\"\n                           class=\"self-end mx-px\"\n                           icon=\"paper-plane\"></base-button>\n            </vx-tooltip>\n            <vx-tooltip :text=\"$t('buttons.delete')\" position=\"top\">\n              <base-button :disabled=\"!tr.can_delete\" :loading=\"isUpdating(tr.id)\" @click=\"deletePto(tr)\"\n                           class=\"self-end mx-px\"\n                           color=\"danger\"\n                           icon=\"trash\">\n              </base-button>\n            </vx-tooltip>\n          </div>\n        </vs-td>\n      </vs-tr>\n    </template>\n  </vs-table>\n</template>\n\n<script>\n  export default {\n    name: 'PtosPersonalTable',\n    props: {\n      header: {\n        type: Array,\n        required: true\n      },\n      ptos: {\n        type: Array,\n        required: true\n      },\n      updatingPtos: {\n        type: Array,\n        default: () => ([])\n      }\n    },\n    data: () => ({}),\n    methods: {\n      isUpdating (id) {\n        return this.updatingPtos.indexOf(id) > -1\n      },\n      requestPto (tr) {\n        this.updatingPtos.push(tr.id)\n        this.$emit('request', tr)\n      },\n      deletePto (tr) {\n        this.updatingPtos.push(tr.id)\n        this.$emit('delete', tr)\n      }\n    },\n  }\n</script>\n\n<style lang=\"scss\" scoped>\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PtosPersonalTable.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PtosPersonalTable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PtosPersonalTable.vue?vue&type=template&id=4cf8ed26&scoped=true&\"\nimport script from \"./PtosPersonalTable.vue?vue&type=script&lang=js&\"\nexport * from \"./PtosPersonalTable.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"4cf8ed26\",\n  null\n  \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('vs-popup',{staticClass:\"holamundo\",attrs:{\"active\":_vm.popupActive,\"title\":_vm.$t((\"ptos.\" + _vm.action))},on:{\"update:active\":function($event){_vm.popupActive=$event},\"close\":function($event){return _vm.$emit('cancel')}}},[_c('ValidationObserver',{ref:\"validator\",staticClass:\"w-full\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nvar reset = ref.reset;\nreturn [_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.$emit(_vm.action, _vm.ptoData)}}},[_c('date-picker',{staticClass:\"w-ful\",attrs:{\"input-label\":_vm.$t('ptos.table.start_date'),\"name\":_vm.$t('ptos.table.start_date'),\"rules\":\"required\",\"config\":_vm.startDateConfig},model:{value:(_vm.ptoData.start_date),callback:function ($$v) {_vm.$set(_vm.ptoData, \"start_date\", $$v)},expression:\"ptoData.start_date\"}}),_c('date-picker',{staticClass:\"w-ful\",attrs:{\"input-label\":_vm.$t('ptos.table.end_date'),\"name\":_vm.$t('ptos.table.end_date'),\"rules\":\"required\",\"config\":_vm.endDateConfig},model:{value:(_vm.ptoData.end_date),callback:function ($$v) {_vm.$set(_vm.ptoData, \"end_date\", $$v)},expression:\"ptoData.end_date\"}}),_c('base-textarea',{staticClass:\"w-full border-gray-400\",attrs:{\"input-label\":_vm.$t('ptos.table.notes'),\"rows\":\"7\"},model:{value:(_vm.ptoData.notes),callback:function ($$v) {_vm.$set(_vm.ptoData, \"notes\", $$v)},expression:\"ptoData.notes\"}}),_c('div',{staticClass:\"flex justify-center mt-5\"},[_c('base-button',{staticClass:\"flex-1 mr-2\",attrs:{\"loading\":_vm.loadingActions,\"button\":\"filled\",\"color\":\"success\",\"type\":\"submit\"}},[_vm._v(\" \"+_vm._s(_vm.$t('ptos.saveAsDraft'))+\" \")]),_c('base-button',{staticClass:\"flex-1 ml-2\",attrs:{\"loading\":_vm.loadingActions,\"button\":\"filled\",\"color\":\"warning\",\"type\":\"button\"},on:{\"click\":function($event){return _vm.$emit('send', _vm.ptoData)}}},[_vm._v(\" \"+_vm._s(_vm.$t('ptos.sendPtoRequest'))+\" \")])],1)],1)]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <vs-popup :active.sync=\"popupActive\" :title=\"$t(`ptos.${action}`)\" @close=\"$emit('cancel')\" class=\"holamundo\">\n\n    <ValidationObserver class=\"w-full\" ref=\"validator\" v-slot=\"{ invalid, reset }\">\n      <form @submit.prevent=\"$emit(action, ptoData)\">\n\n        <date-picker :input-label=\"$t('ptos.table.start_date')\" :name=\"$t('ptos.table.start_date')\"\n                     class=\"w-ful\" rules=\"required\"\n                     :config=\"startDateConfig\"\n                     v-model=\"ptoData.start_date\"/>\n\n        <date-picker :input-label=\"$t('ptos.table.end_date')\" :name=\"$t('ptos.table.end_date')\"\n                     class=\"w-ful\" rules=\"required\"\n                     :config=\"endDateConfig\"\n                     v-model=\"ptoData.end_date\"/>\n\n        <base-textarea :input-label=\"$t('ptos.table.notes')\"\n                       class=\"w-full border-gray-400\"\n                       rows=\"7\"\n                       v-model=\"ptoData.notes\"/>\n\n        <div class=\"flex justify-center mt-5\">\n          <base-button :loading=\"loadingActions\" button=\"filled\" class=\"flex-1 mr-2\" color=\"success\" type=\"submit\">\n            {{ $t('ptos.saveAsDraft') }}\n          </base-button>\n          <base-button :loading=\"loadingActions\" @click=\"$emit('send', ptoData)\" button=\"filled\" class=\"flex-1 ml-2\" color=\"warning\"\n                       type=\"button\">\n            {{ $t('ptos.sendPtoRequest') }}\n          </base-button>\n        </div>\n      </form>\n    </ValidationObserver>\n\n  </vs-popup>\n</template>\n\n<script>\n  import DatePicker from \"../DatePicker\";\n  import BaseButton from \"../_base-button\";\n  import moment from \"moment\";\n\n  export default {\n    name: \"PtoDetailsModal\",\n    components: {BaseButton, DatePicker},\n    props: {\n      ptoData: {\n        type: Object,\n        required: true\n      },\n      action: {\n        required: true\n      },\n      loadingActions: {\n        type: Boolean,\n        default: false\n      },\n    },\n    data: () => ({\n      popupActive: false\n    }),\n    computed: {\n      endDateConfig () {\n        return {\n          minDate: moment(this.ptoData.start_date).toDate(),\n          dateFormat: \"d M Y\"\n        }\n      },\n      startDateConfig () {\n        return {\n          minDate: moment().toDate(),\n          maxDate: this.ptoData.end_date ? moment(this.ptoData.end_date).toDate() : null,\n          dateFormat: \"d M Y\"\n        }\n      }\n    },\n    watch: {\n      action (val) {\n        this.$refs.validator.reset()\n        this.popupActive = !!val;\n      }\n    }\n  }\n</script>\n\n<style scoped>\n\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PtoDetailsModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PtoDetailsModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PtoDetailsModal.vue?vue&type=template&id=2d43ea26&scoped=true&\"\nimport script from \"./PtoDetailsModal.vue?vue&type=script&lang=js&\"\nexport * from \"./PtoDetailsModal.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"2d43ea26\",\n  null\n  \n)\n\nexport default component.exports","<template>\n  <div>\n    <vue-portal to=\"hrsys-navbar-actions\">\n      <vx-tooltip :text=\"$t('buttons.create')\" class=\"ml-2\" position=\"bottom\">\n        <base-button @click=\"openCreationForm\" class=\"self-end\" icon=\"plus\"/>\n      </vx-tooltip>\n    </vue-portal>\n    <pto-details-modal :action=\"action\"\n                       :loadingActions=\"loadingModalActions\"\n                       :popup-active=\"!!action\"\n                       :pto-data=\"selectedPto\"\n                       @cancel=\"clearSelection\"\n                       @create=\"createPto\"\n                       @send=\"actionAndSendPtoRequest\"\n                       @update=\"updatePto\"/>\n    <base-loader :loading=\"loading\">\n      <div class=\"rounded-lg shadow-md\">\n        <ptos-personal-table\n          :header=\"tableHeader\"\n          :ptos=\"list\"\n          :updatingPtos=\"updatingPtos\"\n          @delete=\"deletePto\"\n          @details=\"openDetails\"\n          @request=\"sendPtoRequest\"/>\n        <pagination :pagination=\"pagination\" @input=\"changePage\" v-if=\"pagination.total\"/>\n      </div>\n    </base-loader>\n  </div>\n\n</template>\n\n<script>\n  import PtosPersonalTable from \"../../components/ptos/PtosPersonalTable\";\n  import PtoDetailsModal from \"../../components/ptos/PtoDetailsModal\";\n  import Pagination from \"../../components/Pagination\";\n  import Ptos from \"../../services/Ptos\";\n  import EventBus from \"../../utilities/eventBus\";\n\n  export default {\n    name: \"PersonalPTOs\",\n    components: {\n      PtosPersonalTable,\n      PtoDetailsModal,\n      Pagination\n    },\n    data: () => ({\n      loading: false,\n      list: [],\n      pagination: {},\n      queryParams: {\n        page: 1,\n      },\n      updatingPtos: [],\n      action: null,\n      selectedPto: {},\n      loadingModalActions: false,\n    }),\n    methods: {\n      getMyPtos () {\n        this.loading = true;\n        Ptos.myPtos().then(res => {\n          this.list = res.data\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.loading = false;\n        })\n      },\n      openDetails (pto) {\n        this.selectedPto = pto\n        if (pto.status === 'DRAFT') {\n          this.action = 'update'\n        } else {\n          EventBus.$emit('ptoDetails', pto)\n        }\n      },\n      openCreationForm () {\n        this.action = 'create'\n      },\n      updatePto () {\n        let freshPto = {\n          id: this.selectedPto.id,\n          start_date: this.selectedPto.start_date,\n          end_date: this.selectedPto.end_date,\n          notes: this.selectedPto.notes\n        }\n        this.loadingModalActions = true\n        Ptos.update(freshPto).then(() => {\n          this.getMyPtos()\n          this.clearSelection()\n          this.$notificationService.success(`${this.$t('ptos.pto')} ${this.$t('notification.successCreate')}`)\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.loadingModalActions = false\n        })\n      },\n      createPto () {\n        this.loadingModalActions = true\n        Ptos.create(this.selectedPto).then(() => {\n          this.getMyPtos()\n          this.clearSelection()\n          this.$notificationService.success(`${this.$t('ptos.pto')} ${this.$t('notification.successCreate')}`)\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.loadingModalActions = false\n        })\n      },\n      sendPtoRequest (pto) {\n        Ptos.request(pto.id).then(() => {\n          this.list[this.getPtoIndex(pto.id)].status = 'PENDING';\n          this.$notificationService.success(`${this.$t('ptos.pto')} ${this.$t('notification.successRequest')}`)\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.updatingPtos.splice(this.updatingPtos.indexOf(pto.id))\n        })\n      },\n      actionAndSendPtoRequest () {\n        this.loadingModalActions = true\n        Ptos[this.action](this.selectedPto).then((res) => {\n          Ptos.request(res.data.id).then(() => {\n            this.getMyPtos()\n            this.clearSelection()\n            this.$notificationService.success(`${this.$t('ptos.pto')} ${this.$t('notification.successRequest')}`)\n          }).catch(error => {\n            this.$notificationService.error(error.message)\n          }).finally(() => {\n            this.loadingModalActions = false\n          })\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.loadingModalActions = false\n        })\n      },\n      deletePto (pto) {\n        Ptos.delete(pto.id).then(() => {\n          this.list.splice(this.getPtoIndex(pto.id), 1).join('');\n          // this.getMyPtos()\n          this.$notificationService.success(`${this.$t('ptos.pto')} ${this.$t('notification.successDelete')}`)\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.updatingPtos.splice(this.updatingPtos.indexOf(pto.id))\n        })\n      },\n      search () {\n        this.$router.push({query: this.queryParams}).catch(() => {\n        })\n        this.queryParams.page = 1;\n        this.getMyPtos()\n      },\n      getUrlParams () {\n        let vm = this;\n        if (this.$route.query.page) {\n          vm.queryParams = Object.assign({}, vm.$route.query);\n        }\n      },\n      changePage (newPage) {\n        this.queryParams.page = newPage;\n        this.$router.push({query: this.queryParams}).catch(() => {\n        })\n        this.getClients()\n      },\n      getPtoIndex (id) {\n        return this.list.findIndex((pto) => pto.id === id)\n      },\n      clearSelection () {\n        this.loadingModalActions = false;\n        this.action = null;\n        this.selectedPto = {}\n      }\n    },\n    computed: {\n      tableHeader () {\n        return ([\n          this.$t('ptos.table.start_date'),\n          this.$t('ptos.table.end_date'),\n          this.$t('ptos.table.status'),\n          this.$t('ptos.table.actions')\n        ])\n      }\n    },\n    mounted () {\n      this.getUrlParams()\n      this.getMyPtos()\n    },\n  }\n</script>\n\n<style scoped>\n\n</style>\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalPTOs.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PersonalPTOs.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PersonalPTOs.vue?vue&type=template&id=0d37db2a&scoped=true&\"\nimport script from \"./PersonalPTOs.vue?vue&type=script&lang=js&\"\nexport * from \"./PersonalPTOs.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"0d37db2a\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}

Zerion Mini Shell 1.0