/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-1cba51ef.f9fdb402.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1cba51ef"],{"1f73":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",[e("vx-card",[e("vs-button",{staticClass:"mb-5",on:{click:function(e){return t.$router.push("/henza/create")}}},[t._v("افزودن گروه")]),e("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"active",fn:function(t,n){return e("span",{},[t.record.active?e("feather-icon",{attrs:{icon:"CheckIcon",svgClasses:"w-5 h-5 text-success"}}):e("feather-icon",{attrs:{icon:"XIcon",svgClasses:"w-5 h-5 text-danger"}})],1)}},{key:"image_cart",fn:function(t,n){return e("span",{},[t.record.n_cart_image?e("feather-icon",{attrs:{icon:"CheckIcon",svgClasses:"w-5 h-5 text-success"}}):e("feather-icon",{attrs:{icon:"XIcon",svgClasses:"w-5 h-5 text-danger"}})],1)}},{key:"op",fn:function(n,r){return e("span",{staticStyle:{display:"flex","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.id_row_delete(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)}}])}),e("vs-prompt",{attrs:{title:"حذف گروه",color:"danger",active:t.visible,"accept-text":"بله","cancel-text":"خیر"},on:{cancel:function(e){t.visible=!1},accept:t.deleteUser,close:function(e){t.visible=!1},"update:active":function(e){t.visible=e}}},[e("div",[t._v("\n آیا می خواهید حذف کنید؟\n ")])])],1)],1)},a=[],s=(n("96cf"),n("1da1")),c=n("ff6e"),i=n("38e7"),o=n("bb36"),l={name:"UserLIst",components:{XTable:c["a"]},data:function(){return{model:null,visible:!1,row_id:null}},methods:{edit:function(t){window.open("/admreport/henza/edit/".concat(t),"_blank").focus()},id_row_delete:function(t){this.visible=!0,this.row_id=t},deleteUser:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e=this.row_id,this.$refs.tbl.loading=!0,t.next=5,o["b"].delete("adm/group/".concat(e,"/"));case 5:this.$ntSet("رکورد حذف گردید"),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),this.$ntSetError();case 11:return t.prev=11,this.$refs.tbl.fetch(),t.finish(11);case 14:case"end":return t.stop()}}),t,this,[[0,8,11,14]])})));function e(){return t.apply(this,arguments)}return e}()},created:function(){this.model=i["a"]("2")}},u=l,d=n("2877"),f=Object(d["a"])(u,r,a,!1,null,null,null);e["default"]=f.exports},"38e7":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("e0d2");function a(t){var e=new r["b"]("adm/group/table/".concat(t),"لیست گروه های هنزا");return e.add(new r["a"]("id","شناسه").filterText()),e.add(new r["a"]("name","نام گروه").filterText()),e.add(new r["a"]("GID","شناسه گروه").filterText()),e.add(new r["a"]("category","شناسه رسته").filterText()),e.add(new r["a"]("","عملیات").renderSlot("op")),e}}}]); //# sourceMappingURL=chunk-1cba51ef.f9fdb402.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure