/
home
/
henzagold
/
adminN
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminN/export/js/chunk-4abf55a2.83c1e7b1.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4abf55a2"],{"0826":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"page-user-list"}},[e("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست دسته بندی ها"}},[e("div",[e("div",[e("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"image",fn:function(n){var r=n.text;return e("div",{},[e("img",{staticStyle:{"object-fit":"scale-down"},attrs:{width:"90px",height:"90px",src:r&&r.image?r.image:t.noImage}})])}},{key:"opt",fn:function(n){n.text;var r=n.record;return e("div",{},[t.$hasPermission("collection.list.edit")?e("ATooltip",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("ویرایش")]),e("FeatherIcon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"EditIcon",svgClasses:"h-6 w-6 text-primary"},on:{click:function(e){return t.toEdit(r.id)}}})],1):t._e(),t.$hasPermission("collection.list.remove")?e("ATooltip",[e("a-popconfirm",{attrs:{placement:"top","ok-text":"بله","cancel-text":"خیر"},on:{confirm:function(e){return t.confirmDelete(r.id)}}},[e("template",{slot:"title"},[e("p",[t._v("آیا مطمئن به حذف دسته مورد نظر هستید ؟")])]),e("FeatherIcon",{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):t._e()],1)}}])})],1),e("VsDivider")],1)])],1)},a=[],o=(n("96cf"),n("1da1")),i=(n("4faa"),n("04c5")),s=n("ff6e"),c=n("e0d2"),u=new c["b"]("https://henzagold.com/oapi/admin/category","لیست دسته بندی");u.add(new c["a"]("id","شماره").filterNumber()),u.add(new c["a"]("image","تصویر").noSort().renderSlot("image")),u.add(new c["a"]("type_str","نوع نمایش")),u.add(new c["a"]("title","عنوان دسته").filterNumber()),u.add(new c["a"]("parent.title","پدر دسته").filterNumber()),u.add(new c["a"]("opt","عملیات").noSort().renderSlot("opt"));var d=u,l=n("529b"),f=n.n(l),m={components:{XTable:s["a"],FeatherIcon:i["a"]},data:function(){return{noImage:f.a,model:d}},watch:{},computed:{},methods:{confirmDelete:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return console.log("ersdfsdfsdf"),t.prev=1,t.next=4,this.$http.delete("category/".concat(e));case 4:n=t.sent,n.data,this.$message.success("دسته بندی با موفقیت حذف شد"),this.$refs.tbl.fetch(),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),console.log(t.t0);case 13:return t.prev=13,t.finish(13);case 15:case"end":return t.stop()}}),t,this,[[1,10,13,15]])})));function e(e){return t.apply(this,arguments)}return e}(),toEdit:function(t){window.open("/admin/category/edit/".concat(t),"_blank").focus()}},created:function(){},mounted:function(){}},p=m,h=n("2877"),v=Object(h["a"])(p,r,a,!1,null,null,null);e["default"]=v.exports},"4faa":function(t,e,n){"use strict";var r={users:[]},a=(n("20d6"),{SET_USERS:function(t,e){t.users=e},REMOVE_RECORD:function(t,e){var n=t.users.findIndex((function(t){return t.id===e}));t.users.splice(n,1)}}),o=n("bb36"),i={fetchUsers:function(t){var e=t.commit;return new Promise((function(t,n){o["b"].get("/api/user-management/users").then((function(n){e("SET_USERS",n.data),t(n)})).catch((function(t){n(t)}))}))},fetchUser:function(t,e){return new Promise((function(t,n){o["b"].get("user/profile/".concat(e)).then((function(e){t(e)})).catch((function(t){n(t)}))}))},removeRecord:function(t,e){var n=t.commit;return new Promise((function(t,r){o["b"].delete("/api/user-management/users/".concat(e)).then((function(r){n("REMOVE_RECORD",e),t(r)})).catch((function(t){r(t)}))}))}},s={};e["a"]={isRegistered:!1,namespaced:!0,state:r,mutations:a,actions:i,getters:s}}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure