/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-63ef8dce.1b54cfc8.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63ef8dce"],{"5b93":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e._self._c;return t("div",[t("vx-card",[t("vs-button",{staticClass:"mb-5",on:{click:function(t){return e.$router.push("/mehdi/create")}}},[e._v("افزودن گروه")]),t("XTable",{ref:"tbl",attrs:{model:e.model},scopedSlots:e._u([{key:"active",fn:function(e,n){return t("span",{},[e.record.active?t("feather-icon",{attrs:{icon:"CheckIcon",svgClasses:"w-5 h-5 text-success"}}):t("feather-icon",{attrs:{icon:"XIcon",svgClasses:"w-5 h-5 text-danger"}})],1)}},{key:"image_cart",fn:function(e,n){return t("span",{},[e.record.n_cart_image?t("feather-icon",{attrs:{icon:"CheckIcon",svgClasses:"w-5 h-5 text-success"}}):t("feather-icon",{attrs:{icon:"XIcon",svgClasses:"w-5 h-5 text-danger"}})],1)}},{key:"op",fn:function(n,r){return t("span",{staticStyle:{display:"flex","align-items":"center"}},[t("ATooltip",[t("span",{attrs:{slot:"title"},slot:"title"},[e._v("ویرایش")]),t("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(t){return e.edit(n.record.id)}}})],1),t("ATooltip",[t("a-popconfirm",{attrs:{placement:"leftTop","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(t){return e.deleteUser(n.record.id)}}},[t("template",{slot:"title"},[t("p",[e._v("آیا مطمئن به حذف رکورد مورد نظر هستید ؟")])]),t("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"TrashIcon",svgClasses:"h-6 w-6 text-danger"}})],2),t("span",{attrs:{slot:"title"},slot:"title"},[e._v("حذف")])],1)],1)}}])}),t("vs-prompt",{attrs:{title:"حذف گروه",color:"danger",active:e.visible,"accept-text":"بله","cancel-text":"خیر"},on:{cancel:function(t){e.visible=!1},accept:e.deleteUser,close:function(t){e.visible=!1},"update:active":function(t){e.visible=t}}},[t("div",[e._v("\n آیا می خواهید حذف کنید؟\n ")])])],1)],1)},s=[],a=(n("96cf"),n("1da1")),i=n("ff6e"),c=n("e0d2"),o=new c["b"]("/adm/user/table","لیست کاربران");o.add(new c["a"]("id","شناسه").filterText()),o.add(new c["a"]("name","نام کاربر").filterText()),o.add(new c["a"]("mobile","موبایل").filterText()),o.add(new c["a"]("operator","عملیات").noSort().renderSlot("op"));var l=o,d=n("bb36"),u={name:"UserLIst",components:{XTable:i["a"]},data:function(){return{model:null,visible:!1,row_id:null}},methods:{edit:function(e){window.open("/admreport/user/edit/".concat(e,"/"),"_blank").focus()},id_row_delete:function(e){this.visible=!0,this.row_id=e},deleteUser:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.$refs.tbl.loading=!0,e.next=4,d["b"].delete("adm/user/".concat(t));case 4:this.$ntSet(),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),this.$ntSetError();case 10:return e.prev=10,this.$refs.tbl.fetch(),e.finish(10);case 13:case"end":return e.stop()}}),e,this,[[0,7,10,13]])})));function t(t){return e.apply(this,arguments)}return t}()},created:function(){this.model=l}},f=u,p=(n("d6a7"),n("2877")),h=Object(p["a"])(f,r,s,!1,null,null,null);t["default"]=h.exports},"5e7f":function(e,t,n){},d6a7:function(e,t,n){"use strict";n("5e7f")}}]); //# sourceMappingURL=chunk-63ef8dce.1b54cfc8.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure