/
home
/
liman
/
panel
/
js
/
File Upload :
llllll
Current File: /home/liman/panel/js/1370.44bc0497.js
"use strict";(self["webpackChunkliman"]=self["webpackChunkliman"]||[]).push([[1370],{87245:function(t,e,i){var s=i(37675);e["Z"]=s.Z},37675:function(t,e,i){function s(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{Z:function(){return l}});var r=i(30316);class l{constructor(t,e){s(this,"title",void 0),s(this,"url",void 0),s(this,"cols",void 0),s(this,"opt",void 0),s(this,"defaultFilters",void 0),this.url=t,this.title=e}add(t){this.cols||(this.cols=[]),this.cols.push(t)}addDefaultFilter(t){this.defaultFilters||(this.defaultFilters=[]),this.defaultFilters.push(t)}addOpt(t,e,i,s,l){return this.opt=new r.Z("opt","عملیات").noSort(),this.opt.opt=!0,this.opt.slotEdit=e,this.opt.slotDelete=i,this.cols.push(this.opt),this}hidePagination(){return this._hidePageination=!0,this}getSortFields(){return this.cols.filter((t=>t.__sorter))}hideSearch(){return this._hidePageination=!0,this}addExtraBtn(t){return this._hidePageination=!0,this}noSearch(){return this._noSearch=!0,this}noSettings(){return this._noSettings=!0,this}}},30316:function(t,e,i){i.d(e,{Z:function(){return l}});const s=(t,e)=>(e.defaultValue=t,e),r=(t,e)=>(e.defaultFilter=t,e);class l{constructor(t,e){this.key=t,this.title=e,this.dataIndex=t,this.show=!0,this.__sorter=!0,this.defaultValue=void 0,this.defaultFilter=void 0}export(){let 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}filterKey(t){return this.__fkey=t,this.master=t,this}renderSlot(t){return this._slots={customRender:t},this.scopedSlots||(this.scopedSlots={}),this.scopedSlots.customRender=t,this}__filter(){this.filtered=!0,this._slots||(this.scopedSlots={}),this.scopedSlots.filterDropdown=`${this.key}_filterDropdown`,this.scopedSlots.filterIcon=`${this.key}_filterIcon`}filterText(){return this.__filter(),this.filterType="default",this}filterSwitch(){return this.__filter(),this.filterType="switch",this}filterQuery(t){return this.__filter(),this.filterType="query",this.filterAction=t,this}filterDate(){return this.__filter(),this.filterType="date",this}filterSelect(t){return this.__filter(),this.filterType="select",this.filterItems=t,this}filterNumber(){return this.__filter(),this.filterType="number",this}noSort(){return this.__sorter=!1,this}hidden(){return this.show=!1,this}setDefaultValue(t){return s(t,this)}setDefaultFilter(t){return r(t,this)}}},1370:function(t,e,i){i.r(e);var s=i(87245),r=i(30316);const l=new s.Z("/document/table","لیست اسناد");l.add(new r.Z("id","شناسه").filterText()),l.add(new r.Z("no","شماره سند").filterText()),l.add(new r.Z("c_no","شماره سند مشتری").filterText()),l.add(new r.Z("creator__first_name","ثبت کننده").filterText().renderSlot("creator__first_name")),l.add(new r.Z("description","توضیحات").filterText()),l.add(new r.Z("operator","عملیات").renderSlot("operator")),l.addDefaultFilter({field:"type",value:1}),e["default"]=l}}]); //# sourceMappingURL=1370.44bc0497.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure