/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin_report/js/chunk-2d0bff8d.8dca733d.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0bff8d"],{4094: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")),i=n("ff6e"),c=n("e0d2"),o=new c["b"]("adm/group/table/2","لیست گروه های هنزا");o.add(new c["a"]("id","شناسه").filterText()),o.add(new c["a"]("name","نام گروه").filterText()),o.add(new c["a"]("GID","شناسه گروه").filterText()),o.add(new c["a"]("category","شناسه رسته").filterText()),o.add(new c["a"]("","عملیات").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(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,d["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=l}},f=u,p=n("2877"),h=Object(p["a"])(f,r,a,!1,null,null,null);e["default"]=h.exports}}]); //# sourceMappingURL=chunk-2d0bff8d.8dca733d.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure