/
home
/
henzagold
/
adminN
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminN/export/js/chunk-c1701484.551dc2d8.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c1701484"],{"40f2":function(t,e,i){t.exports=i.p+"img/henza-icon.99341a3a.svg"},"98c0":function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",[e("ATooltip",{attrs:{title:t.title}},[t.popTitle?e("APopconfirm",{attrs:{"ok-text":"بله","cancel-text":"خیر",title:t.popTitle},on:{confirm:t.onClick}},[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass}})],1):e("div",[e("feather-icon",{staticClass:"cursor-pointer",attrs:{icon:t.icon,"svg-classes":t.iconClass},on:{click:t.onClick}})],1)],1)],1)},o=[],a={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},s=a,r=i("2877"),c=Object(r["a"])(s,n,o,!1,null,"00dfccd3",null);e["a"]=c.exports},"9e77":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t._self._c;return e("vx-card",{staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست نوتیفیکیشن های دریافتی"}},[e("div",[e("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"opt",fn:function(i){i.text;var n=i.record;return e("div",{},[e("div",{staticClass:"flex"},[e("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-primary",icon:"EyeIcon",title:"مشاهده نوتیفیکیشن"},on:{click:function(e){return t.showNotify(n.id)}}}),n.read?t._e():e("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-success",icon:"CheckIcon",title:"علامت زدن به عنوان خوانده شده"},on:{click:function(e){return t.readNotify(n)}}})],1)])}}])}),e("a-modal",{model:{value:t.viewNotify,callback:function(e){t.viewNotify=e},expression:"viewNotify"}},[e("template",{slot:"footer"},[e("a-button",{key:"back",on:{click:function(e){t.viewNotify=!1}}},[t._v("\n بستن\n ")]),t.notify.read?t._e():e("a-button",{key:"submit",attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.readNotify(t.notify)}}},[t._v("\n علامت زدن به عنوان خوانده شده\n ")])],1),e("a-spin",{attrs:{type:"loading",spinning:t.loading}},[e("div",{staticClass:"flex justify-between px-4 py-4 notification cursor-pointer"},[e("div",{staticClass:"flex flex-1 items-start"},[e("img",{staticClass:"mr-1",attrs:{src:t.logo,width:"50px",height:"50px"}}),e("div",{staticClass:"mx-2 flex-1"},[e("span",{staticClass:"font-medium block notification-title text-primary"},[t._v(t._s(t.notify.title))]),e("small",[t._v(t._s(t.notify.note))])])]),e("small",{staticClass:"mt-1 whitespace-no-wrap"},[t._v(t._s(t._f("jdate")(t.notify.created_at)))])])])],2)],1)])},o=[],a=(i("6762"),i("2fdb"),i("96cf"),i("1da1")),s=i("ff6e"),r=i("e0d2"),c=new r["b"]("/notify/table","لیست نوتیفیکیشن های دریافتی");c.add(new r["a"]("id","شماره")),c.add(new r["a"]("title","عنوان")),c.add(new r["a"]("note","متن")),c.add(new r["a"]("opt","عملیات").noSort().renderSlot("opt")),c.noFilters();var l=c,f=i("98c0"),d=i("bb36"),u=i("40f2"),p=i.n(u),v={components:{TooltipBtn:f["a"],XTable:s["a"]},data:function(){return{model:l,viewNotify:!1,loading:!1,notify:{title:void 0,note:void 0,created_at:void 0,id:void 0},logo:p.a}},methods:{showNotify:function(){var t=Object(a["a"])(regeneratorRuntime.mark((function t(e){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,this.loading=!0,t.next=4,d["b"].get("/notify/".concat(e));case 4:i=t.sent,n=i.data,this.notify=n,this.viewNotify=!0,t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](0),console.log(t.t0);case 13:return t.prev=13,this.loading=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,this,[[0,10,13,16]])})));function e(e){return t.apply(this,arguments)}return e}(),readNotify:function(){var t=Object(a["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.loading=!0,t.next=4,d["b"].get("/notify/read/".concat(e.id));case 4:if(this.viewNotify=!1,!e.title.includes("سفارش")&&!e.note.includes("سفارش")){t.next=8;break}return t.next=8,this.$store.commit("setOrderCount",this.$store.state.orderCount--);case 8:return t.next=10,this.$refs.tbl.fetch();case 10:t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),console.log(t.t0);case 15:return t.prev=15,this.loading=!1,t.finish(15);case 18:case"end":return t.stop()}}),t,this,[[0,12,15,18]])})));function e(e){return t.apply(this,arguments)}return e}()}},h=v,m=i("2877"),y=Object(m["a"])(h,n,o,!1,null,null,null);e["default"]=y.exports}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure