/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-4bb7e494.205a7c52.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4bb7e494"],{"38e7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("e0d2");function a(e){var t=new r["b"]("adm/group/table/".concat(e),"لیست گروه های هنزا");return t.add(new r["a"]("id","شناسه").filterText()),t.add(new r["a"]("name","نام گروه").filterText()),t.add(new r["a"]("GID","شناسه گروه").filterText()),t.add(new r["a"]("category_obj.name","نام رسته").filterText()),t.add(new r["a"]("user_obj","کاربران").renderSlot("users")),t.add(new r["a"]("","عملیات").renderSlot("op")),t}},"428f":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("/armaghan/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:"users",fn:function(n,r){return t("span",{},e._l(n.record.user_obj,(function(n){return t("a-tag",[e._v(e._s(n))])})),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:"top","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)},a=[],s=(n("96cf"),n("1da1")),c=n("ff6e"),o=n("38e7"),i=n("bb36"),l={name:"UserLIst",components:{XTable:c["a"]},data:function(){return{model:null,visible:!1,row_id:null}},methods:{edit:function(e){window.open("/admreport/armaghan/edit/".concat(e),"_blank").focus()},id_row_delete:function(e){this.row_id=e},deleteUser:function(){var e=Object(s["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,i["b"].delete("adm/group/".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=o["a"]("4")}},u=l,d=n("2877"),f=Object(d["a"])(u,r,a,!1,null,null,null);t["default"]=f.exports}}]); //# sourceMappingURL=chunk-4bb7e494.205a7c52.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure