/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-2d20e85d.3dcccc51.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20e85d"],{b070:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("vx-card",[e("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"is_active",fn:function(e){var n=e.text;return[t._v("\n "+t._s(n?"بله":"خیر")+"\n ")]}},{key:"use_only",fn:function(e){var n=e.text;return[t._v("\n "+t._s(n?"بله":"خیر")+"\n ")]}},{key:"op",fn:function(n,r){return e("div",{staticStyle:{display:"flex","justify-content":"space-evenly","align-items":"center"}},[e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("ویرایش")]),e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(e){return t.edit(n.record.id)}}})],1),e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.deleteItem(n.record.id)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا مطمئن به حذف رکورد مورد نظر هستید ؟")])]),e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"TrashIcon",svgClasses:"h-6 w-6 text-danger"}})],2),e("span",{attrs:{slot:"title"},slot:"title"},[t._v("حذف")])],1)],1)}}])})],1)},a=[],o=(n("96cf"),n("1da1")),i=n("26ef"),s=n("f9ca"),c=new s["b"]("/admin/promotion/table","لیست تخفیف ها");c.add(new s["a"]("id","کد").filterNumber()),c.add(new s["a"]("title","عنوان").filterText()),c.add(new s["a"]("saj","تاریخ شروع").noSort()),c.add(new s["a"]("eaj","تاریخ پایان").noSort()),c.add(new s["a"]("type_str","نوع").filterText()),c.add(new s["a"]("description","توضیحات").filterText()),c.add(new s["a"]("discount_percent","میزان تخفیف").filterText()),c.add(new s["a"]("is_active","فعال").filterText().renderSlot("is_active")),c.add(new s["a"]("use_only","یکبار مصرف").filterText().renderSlot("use_only")),c.add(new s["a"]("op","عملیات").filterText().renderSlot("op"));var l=c,d=n("bb36"),u={name:"TargetLIst",components:{XTable:i["a"]},data:function(){return{model:l}},methods:{edit:function(t){window.open("/admin/promotion/edit/".concat(t),"_blank").focus()},deleteItem:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,d["b"].delete("admin/promotion/".concat(e,"/"));case 4:this.$ntSet(),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),this.$ntSetError();case 10:return t.prev=10,this.loading=!1,t.next=14,this.$refs.tbl.fetch();case 14:return t.finish(10);case 15:case"end":return t.stop()}}),t,this,[[0,7,10,15]])})));function e(e){return t.apply(this,arguments)}return e}()}},p=u,f=n("2877"),m=Object(f["a"])(p,r,a,!1,null,null,null);e["default"]=m.exports}}]); //# sourceMappingURL=chunk-2d20e85d.3dcccc51.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure