PageSourceSearch

https://web.zavgar.online/static/js/991.c8d40c3e.js

js zavgar.online collected 2026-09-24 13:01:51 UTC 7,588 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvue_element_admin=self.webpackChunkvue_element_admin||[]).push([[991],{991:function(t,e,i){i.r(e),i.d(e,{default:function(){return o}});var n=i(339),s=i(12634),a=i(85574),r={name:"TicketList",components:{Pagination:function(){return i.e(14807).then(i.bind(i,6690))}},filters:{humanDate:s.A,fullName:function(t){return[t.last_name,t.first_name,t.patronymic].join(" ")}},mixins:[a.A],data:function(){return{loading:!1,tickets:{},statuses:[],priorities:[],query:{type:"filter",to:25,theme:"",status_id:null,ticket_type:"client"}}},watch:{"query.theme":function(){var t=this;this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.getTickets(!0)},1e3)}},created:function(){this.getTickets(),this.getStatuses()},methods:{getTickets:function(){var t=this;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:null)&&(this.query.page=1),this.loading=!0,(0,n.p_)("tickets",this.query).then(function(e){t.tickets=e.data||{}}).finally(function(){t.loading=!1})},getStatuses:function(){var t=this;(0,n.p_)("ticket-statuses").then(function(e){t.statuses=e.data||[]})},tableRowClassName:function(t){var e=t.row;return e.last_message&&"App\\User"===e.last_message.writerable_type?"new-ticket-row":""}}},l=r,o=(0,i(14486).A)(l,function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("header-sticky",{attrs:{title:t.$t("tickets.list.header")}},[e("template",{slot:"prepend"},[e("el-button",{attrs:{type:"success",plain:"",icon:"el-icon-plus"},on:{click:function(e){return t.$router.push({name:"TicketCreate"})}}},[t._v("\n        "+t._s(t.$t("buttons.add"))+"\n      ")])],1)],2),t._v(" "),e("div",{staticClass:"container"},[e("el-form",[e("el-input",{staticStyle:{width:"155px","margin-bottom":"10px"},attrs:{placeholder:t.$t("filters.tickets.theme"),size:"mini",clearable:""},model:{value:t.query.theme,callback:function(e){t.$set(t.query,"theme",e)},expression:"query.theme"}}),t._v(" "),t.statuses.length?e("el-select",{staticStyle:{"margin-bottom":"10px"},attrs:{placeholder:t.$t("filters.tickets.status"),size:"mini",clearable:""},model:{value:t.query.status_id,callback:function(e){t.$set(t.query,"status_id",e)},expression:"query.status_id"}},t._l(t.statuses,function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id,size:"mini"}})}),1):t._e(),t._v(" "),e("el-select",{attrs:{placeholder:t.$t("filters.tickets.type"),size:"mini",clearable:""},model:{value:t.query.ticket_type,callback:function(e){t.$set(t.query,"ticket_type",e)},expression:"query.ticket_type"}},[e("el-option",{attrs:{label:t.$t("filters.tickets.client_type"),value:"client"}}),t._v(" "),e("el-option",{attrs:{label:t.$t("filters.tickets.system_type"),value:"system"}})],1),t._v(" "),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"buttons.show",expression:"'buttons.show'"}],attrs:{loading:t.loading,size:"mini",type:"success"},on:{click:function(e){return t.getTickets(!0)}}}),t._v(" "),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"buttons.reset",expression:"'buttons.reset'"}],attrs:{loading:t.loading,size:"mini"},on:{click:function(e){return t.resetFilter(t.getTickets,{type:"filter",ticket_type:"client"})}}})],1)],1),t._v(" "),t.tickets?e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"mb-30",attrs:{data:t.tickets.data,"row-class-name":t.tableRowClassName}},[e("el-table-column",{attrs:{label:t.$t("tickets.list.number"),prop:"id",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n        #"+t._s(e.row.id)+"\n      ")]}}],null,!1,2963058259)}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("tickets.list.theme")},scopedSlots:t._u([{key:"default",fn:function(i){return[t._v("\n        "+t._s(i.row.theme)+"\n        "),i.row.module?e("div",{staticClass:"info"},[t._v("\n          "+t._s(t.$t("tickets.show.just_feedback"))+"\n        ")]):t._e()]}}],null,!1,3250864)}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("tickets.list.messages"),prop:"messages_count"}}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("tickets.list.date")},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-tooltip",{attrs:{content:t.$t("tickets.list.creating_date"),effect:"dark",placement:"top"}},[e("el-col",[e("i",{staticClass:"el-icon-plus",staticStyle:{"font-size":"15px","font-weight":"bold"}}),t._v(" "+t._s(t._f("humanDate")(i.row.created_at))+"\n          ")])],1),t._v(" "),e("el-tooltip",{attrs:{content:t.$t("tickets.list.last_message_date"),effect:"dark",placement:"top"}},[i.row.last_message?e("el-col",[e("i",{staticClass:"el-icon-chat-line-square",staticStyle:{"font-size":"15px"}}),t._v(" "+t._s(t._f("humanDate")(i.row.last_message.created_at))+"\n          ")]):t._e()],1)]}}],null,!1,2996120440)}),t._v(" "),e("el-table-column",{attrs:{label:t.$t("tickets.list.status"),prop:"status.name"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("span",{style:"color: ".concat(1===i.row.status.id?"#67c23a":"#606266")},[t._v(t._s(i.row.status.name))])]}}],null,!1,237513017)}),t._v(" "),e("el-table-column",{attrs:{align:"right",width:"70px"},scopedSlots:t._u([{key:"default",fn:function(i){return[e("el-button-group",[e("el-button",{attrs:{title:t.$t("buttons.view"),type:"primary",icon:"el-icon-view",size:"mini"},on:{click:function(e){return t.$router.push({name:"TicketShow",params:{ticket_id:i.row.id}})}}}
1)],1)]}}],null,!1,3697867723)})],1):t._e(),t._v(" "),t.tickets?e("pagination",{attrs:{current_page:t.query.page,to:t.query.to,total:t.tickets.total},on:{"update:current_page":function(e){return t.$set(t.query,"page",e)},"update:to":function(e){return t.$set(t.query,"to",e)},"update-pagination":t.getTickets}}):t._e()],1)},[],!1,null,"437a0634",null).exports},85574:function(t,e,i){var n=i(82284);e.A={data:function(){return{query:{date:null,to:25,total:null,page:1,sort:[],vehicles:[]},available_vehicles:null}},watch:{"$route.query":{handler:function(t){var e={};Object.keys(t).forEach(function(i){if("string"==typeof t[i]&&(t[i].indexOf("}")>0||t[i].indexOf("]")>0))try{e[i]=Object.assign(JSON.parse(t[i]))}catch(s){console.error(s)}else if("string"==typeof t[i]&&t[i].indexOf("│")>=0){var n=String(t[i]);e[i]=n.slice(1,n.length-1).split("│").filter(function(t){return t}).map(function(t){return String(Number(t))===t?Number(t):String(t)})}else String(Number(t[i]))===t[i]?e[i]=Number(t[i]):e[i]=t[i]}),this.objAssignWithObj(e)},deep:!0,immediate:!0},query:{handler:function(t){var e=this.clean(t),i={};try{Object.keys(e).forEach(function(s){if("object"!==(0,n.A)(e[s])||Array.isArray(e[s]))Array.isArray(e[s])?e[s].length&&(i[s]="│".concat(e[s].join("│"),"│")):e[s]&&(i[s]=e[s]);else{var a=JSON.stringify(t[s]);a.length&&(i[s]=a)}});var s=this.$router.resolve({query:i}).href;window.history.replaceState({},"",s),window.dispatchEvent(new Event("popstate"))}catch(a){console.error(a)}},deep:!0}},methods:{objAssignWithObj:function(t){var e=this;Object.keys(t).forEach(function(i){"object"===(0,n.A)(t[i])&&"object"===(0,n.A)(e.query[i])&&JSON.stringify(t[i])===JSON.stringify(e.query[i])||(e.query[i]=t[i])})},sort:function(t){t.column;var e=t.prop,i=t.order;this.query.sort=[e,i],this.applySort()},clean:function(t){var e=JSON.parse(JSON.stringify(t));for(var i in e)null!==e[i]&&void 0!==e[i]||delete e[i];return e},resetFilter:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"function"==typeof t&&(this.query=i,t()),!1===this.clear&&(this.clear=!0,setTimeout(function(){e.clear=!1},0))},convertArray:function(t){return t}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.