/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-762169de.173e701e.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-762169de"],{"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}},f95d: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("/liman/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.deleteUser(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=[],c=(n("96cf"),n("1da1")),s=n("ff6e"),i=n("38e7"),o=n("bb36"),l={name:"UserLIst",components:{XTable:s["a"]},data:function(){return{model:null,visible:!1,row_id:null}},methods:{edit:function(t){window.open("/admreport/liman/edit/".concat(t),"_blank").focus()},id_row_delete:function(t){this.row_id=t},deleteUser:function(){var t=Object(c["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.$refs.tbl.loading=!0,t.next=4,o["b"].delete("adm/group/".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.$refs.tbl.fetch(),t.finish(10);case 13:case"end":return t.stop()}}),t,this,[[0,7,10,13]])})));function e(e){return t.apply(this,arguments)}return e}()},created:function(){this.model=i["a"]("3")}},u=l,d=n("2877"),f=Object(d["a"])(u,r,a,!1,null,null,null);e["default"]=f.exports}}]); //# sourceMappingURL=chunk-762169de.173e701e.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure