/
home
/
liman
/
panel
/
js
/
File Upload :
llllll
Current File: /home/liman/panel/js/1370-legacy.03910b59.js
"use strict";(self["webpackChunkliman"]=self["webpackChunkliman"]||[]).push([[1370],{87245:function(t,e,i){i.d(e,{u:function(){return n.Z}});var n=i(30316),r=i(6849);e["Z"]=r.Z},6849:function(t,e,i){i.d(e,{Z:function(){return u}});var n=i(57747),r=i(5760),s=i(90490),o=(i(2914),i(49966),i(30316)),u=function(){function t(e,i){(0,n.Z)(this,t),(0,s.Z)(this,"title",void 0),(0,s.Z)(this,"url",void 0),(0,s.Z)(this,"cols",void 0),(0,s.Z)(this,"opt",void 0),(0,s.Z)(this,"defaultFilters",void 0),this.url=e,this.title=i}return(0,r.Z)(t,[{key:"add",value:function(t){this.cols||(this.cols=[]),this.cols.push(t)}},{key:"addDefaultFilter",value:function(t){this.defaultFilters||(this.defaultFilters=[]),this.defaultFilters.push(t)}},{key:"addOpt",value:function(t,e,i,n,r){return this.opt=new o.Z("opt","عملیات").noSort(),this.opt.opt=!0,this.opt.slotEdit=e,this.opt.slotDelete=i,this.cols.push(this.opt),this}},{key:"hidePagination",value:function(){return this._hidePageination=!0,this}},{key:"getSortFields",value:function(){return this.cols.filter((function(t){return t.__sorter}))}},{key:"hideSearch",value:function(){return this._hidePageination=!0,this}},{key:"addExtraBtn",value:function(t){return this._hidePageination=!0,this}},{key:"noSearch",value:function(){return this._noSearch=!0,this}},{key:"noSettings",value:function(){return this._noSettings=!0,this}}]),t}()},30316:function(t,e,i){i.d(e,{Z:function(){return u}});var n=i(57747),r=i(5760),s=(i(2914),i(49966),function(t,e){return e.defaultValue=t,e}),o=function(t,e){return e.defaultFilter=t,e},u=function(){function t(e,i){(0,n.Z)(this,t),this.key=e,this.title=i,this.dataIndex=e,this.show=!0,this.__sorter=!0,this.defaultValue=void 0,this.defaultFilter=void 0}return(0,r.Z)(t,[{key:"export",value:function(){var t={};return t["key"]=this.key,t["__key"]=this.__fkey,t["dataIndex"]=this.key,t["title"]=this.title,this._slots&&(this._slots.filterIcon||(this._slots.filterIcon="filterIcon"),t["scopedSlots"]=this._slots),this.filter&&(this.filter=this.filterType,this.filtered=!0),t}},{key:"filterKey",value:function(t){return this.__fkey=t,this.master=t,this}},{key:"renderSlot",value:function(t){return this._slots={customRender:t},this.scopedSlots||(this.scopedSlots={}),this.scopedSlots.customRender=t,this}},{key:"__filter",value:function(){this.filtered=!0,this._slots||(this.scopedSlots={}),this.scopedSlots.filterDropdown="".concat(this.key,"_filterDropdown"),this.scopedSlots.filterIcon="".concat(this.key,"_filterIcon")}},{key:"filterText",value:function(){return this.__filter(),this.filterType="default",this}},{key:"filterSwitch",value:function(){return this.__filter(),this.filterType="switch",this}},{key:"filterQuery",value:function(t){return this.__filter(),this.filterType="query",this.filterAction=t,this}},{key:"filterDate",value:function(){return this.__filter(),this.filterType="date",this}},{key:"filterSelect",value:function(t){return this.__filter(),this.filterType="select",this.filterItems=t,this}},{key:"filterNumber",value:function(){return this.__filter(),this.filterType="number",this}},{key:"noSort",value:function(){return this.__sorter=!1,this}},{key:"hidden",value:function(){return this.show=!1,this}},{key:"setDefaultValue",value:function(t){return s(t,this)}},{key:"setDefaultFilter",value:function(t){return o(t,this)}}]),t}()},1370:function(t,e,i){i.r(e);var n=i(87245),r=new n.Z("/document/table","لیست اسناد");r.add(new n.u("id","شناسه").filterText()),r.add(new n.u("no","شماره سند").filterText()),r.add(new n.u("c_no","شماره سند مشتری").filterText()),r.add(new n.u("creator__first_name","ثبت کننده").filterText().renderSlot("creator__first_name")),r.add(new n.u("description","توضیحات").filterText()),r.add(new n.u("operator","عملیات").renderSlot("operator")),r.addDefaultFilter({field:"type",value:1}),e["default"]=r},57747:function(t,e,i){i.d(e,{Z:function(){return n}});i(71209);function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},5760:function(t,e,i){function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}i.d(e,{Z:function(){return r}})}}]); //# sourceMappingURL=1370-legacy.03910b59.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure