/
home
/
henzagold
/
admin_report
/
js
/
File Upload :
llllll
Current File: /home/henzagold/admin_report/js/chunk-e33e5800.7485dddf.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e33e5800"],{"2fd6":function(t,e,n){},"98c0":function(t,e,n){"use strict";var r=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)},s=[],o={name:"TooltipBtn",props:{title:{},popTitle:{},icon:{},iconClass:{default:"w-5 h-5"}},methods:{onClick:function(){this.$emit("click")}}},a=o,i=n("2877"),c=Object(i["a"])(a,r,s,!1,null,"00dfccd3",null);e["a"]=c.exports},c6af:function(t,e,n){"use strict";n("2fd6")},ed29:function(t,e,n){t.exports=n.p+"img/logo.8f274bbf.svg"},f3f4:function(t,e,n){"use strict";n.r(e);n("7f7f"),n("28a5");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("XTable",{ref:"tbl",attrs:{model:t.model},scopedSlots:t._u([{key:"customer",fn:function(n){var r=n.text;return e("div",{},[t._v("\n "+t._s(r&&r.fname&&r.lname?"".concat(r.fname," ").concat(r.lname):"بدون نام")+"\n ")])}},{key:"productName",fn:function(n){var r=n.record;return e("div",{},[e("a",{attrs:{href:"/product/".concat(r.product.id,"/").concat(r.product.title.split(" ").join("-")),target:"_blank"}},[t._v(t._s(r.product.title))])])}},{key:"sts",fn:function(n){var r=n.text;return e("div",{},[3===r?e("ATag",[t._v("در انتظار تایید")]):2===r?e("ATag",{attrs:{color:"rgba(var(--vs-primary), 1) !important"}},[t._v("تایید شده")]):e("ATag",{attrs:{color:"red"}},[t._v("تأیید نشده")])],1)}},{key:"reply",fn:function(n){var r=n.text;return e("div",{},[null!==r?e("ATag",{attrs:{color:"rgba(var(--vs-primary), 1) !important"}},[t._v("پاسخ داده شده")]):e("ATag",[t._v("بدون پاسخ")])],1)}},{key:"changeState",fn:function(n){var r=n.record;return e("div",{},[e("a-dropdown",[e("ATag",{staticStyle:{cursor:"pointer"},attrs:{color:3===r.sts?"":2===r.sts?"rgba(var(--vs-primary), 1)":1===r.sts?"red":""},on:{click:function(t){return t.preventDefault()}}},[t._v("\n "+t._s(3===r.sts?"در انتظار تایید":2===r.sts?"تایید شده":"تأیید نشده")+"\n "),e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",{},[e("div",{on:{click:function(e){3!==r.sts?t.Change_Sts(r.id,3):t.$message.error("حالت فعلی در انتظار تایید می باشد")}}},[t._v("\n در انتظار تایید\n ")])]),e("a-menu-item",{staticClass:"green"},[e("div",{on:{click:function(e){2!==r.sts?t.Change_Sts(r.id,2):t.$message.error("حالت فعلی تایید شده می باشد")}}},[t._v("\n تایید\n ")])]),e("a-menu-item",{staticClass:"red"},[e("div",{on:{click:function(e){1!==r.sts?t.Change_Sts(r.id,1):t.$message.error("حالت فعلی تأیید نشده می باشد")}}},[t._v("\n عدم تأیید\n ")])])],1)],1)],1)}},{key:"opt",fn:function(n){var r=n.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.viewComment(r)}}}),e("TooltipBtn",{staticClass:"mr-3",attrs:{"icon-class":"w-5 h-5 text-danger",icon:"TrashIcon",popTitle:"دیدگاه حذف شود؟"},on:{click:function(e){return t.DeleteComment(r.id)}}})],1)])}}])}),e("AModal",{attrs:{title:"مشاهده دیدگاه",width:"80%"},model:{value:t.visibleComment,callback:function(e){t.visibleComment=e},expression:"visibleComment"}},[t.tempRow?e("div",{staticClass:"comments-list"},[e("ul",[e("li",{staticClass:"comment-item"},[e("span",{staticClass:"img feather-icon select-none relative",staticStyle:{"justify-content":"center"}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"65px",height:"65px",fill:"rgba(var(--vs-primary), 1)"}},[e("path",{attrs:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33C4.62 15.49 4 13.82 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"}})])]),e("div",{staticClass:"comment-body"},[e("h5",[t._v("\n "+t._s(t.tempRow.customer&&t.tempRow.customer.name?t.tempRow.customer.name:"بدون نام")+"\n ")]),e("span",{staticClass:"time"},[t._v("ارسال شده در تاریخ : "+t._s(t.tempRow.caj?t.tempRow.caj.split("-")[0]:null))]),e("a-form-model-item",{staticStyle:{width:"100%"}},[e("a-input",{attrs:{type:"textarea","auto-size":{minRows:3,maxRows:5}},on:{change:function(e){return t.changeComment(t.Comment,t.tempRow.body)}},model:{value:t.Comment,callback:function(e){t.Comment=e},expression:"Comment"}})],1),t.Show_Change_Comment_Btn?e("vs-button",{staticClass:"mr-4",attrs:{"icon-pack":"feather",icon:"icon-check",type:"border"},on:{click:function(e){return t.Submit_Changes(t.tempRow)}}},[t._v("\n ثبت تغییرات\n ")]):t._e()],1),e("ul",[e("li",{staticClass:"comment-item"},[e("img",{staticClass:"img border",attrs:{src:t.logo,alt:"comment author"}}),e("div",{staticClass:"comment-body"},[e("h5",[t._v("ادمین")]),e("a-form-model-item",{staticStyle:{width:"100%"}},[e("a-input",{attrs:{type:"textarea","auto-size":{minRows:3,maxRows:5}},on:{change:function(e){return t.changeReply(t.Reply,t.tempRow.answer)}},model:{value:t.Reply,callback:function(e){t.Reply=e},expression:"Reply"}})],1),t.Show_Change_Reply_Btn?e("vs-button",{staticClass:"mr-4",attrs:{"icon-pack":"feather",icon:"icon-check",type:"border"},on:{click:function(e){return t.Submit_Answer(t.tempRow)}}},[t._v("\n ثبت پاسخ\n ")]):t._e()],1)])])])])]):t._e(),e("div",{attrs:{slot:"footer"},slot:"footer"},[e("AButton",{on:{click:function(e){t.visibleComment=!1}}},[t._v("بستن")])],1)])],1)])],1)},s=[],o=(n("96cf"),n("1da1")),a=n("ff6e"),i=n("e0d2"),c=new i["b"]("/admin/comment/table","لیست دیدگاه ها");c.add(new i["a"]("product.id","شناسه محصول").filterNumber().hidden()),c.add(new i["a"]("product.title","نام محصول").filterNumber().renderSlot("productName")),c.add(new i["a"]("customer.id","شناسه نویسنده دیدگاه").filterNumber().hidden()),c.add(new i["a"]("customer.name","نام نویسنده ").filterText().renderSlot("customer")),c.add(new i["a"]("answer","وضعیت پاسخ").renderSlot("reply").noSort()),c.add(new i["a"]("sts","وضعیت").renderSlot("sts").noSort()),c.add(new i["a"]("changeState","تغییر وضعیت").renderSlot("changeState").noSort()),c.add(new i["a"]("opt","عملیات").noSort().renderSlot("opt"));var l=c,m=n("04c5"),u=n("98c0"),d=n("bb36"),p=n("ed29"),h=n.n(p),f={components:{FeatherIcon:m["a"],TooltipBtn:u["a"],XTable:a["a"]},data:function(){return{logo:h.a,tempRow:void 0,model:l,visibleComment:!1,Comment:null,Show_Change_Comment_Btn:!1,Reply:null,Show_Change_Reply_Btn:!1}},computed:{getIcon:function(){return this.editMode?"CheckIcon":"EditIcon"}},methods:{viewComment:function(t){this.tempRow=t,this.Reply=t.answer?t.answer:null,this.Comment=t.body,this.visibleComment=!0},changeComment:function(t,e){this.Show_Change_Comment_Btn=t!==e},changeReply:function(t,e){this.Show_Change_Reply_Btn=e?t!==e:null!=t&&""!=t},DeleteComment:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["b"].delete("/admin/comment/".concat(e));case 3:this.$message.success("دیدگاه حذف شد"),this.$refs.tbl.fetch(),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0),this.$message.error("خطا در حذف دیدگاه");case 11:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e){return t.apply(this,arguments)}return e}(),Change_Sts:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e,n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,d["b"].put("/admin/comment/verify/"+e,{sts:n});case 3:this.$message.success("وضعیت دیدگاه با موفقیت تغییر یافت"),this.$refs.tbl.fetch(),t.next=11;break;case 7:t.prev=7,t.t0=t["catch"](0),console.log(t.t0),this.$message.error("خطا در تغییر وضعیت دیدگاه");case 11:case"end":return t.stop()}}),t,this,[[0,7]])})));function e(e,n){return t.apply(this,arguments)}return e}(),Submit_Changes: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 t.prev=0,n={body:this.Comment,subject:e.subject,product_id:e.product_id},t.next=4,d["b"].put("/admin/comment/"+e.id,n);case 4:this.$message.success("تغییرات با موفقیت ثبت شد"),this.Comment=null,this.visibleComment=!1,this.Show_Change_Comment_Btn=!1,this.$refs.tbl.fetch(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),this.$message.error("خطا در ثبت تغییرات");case 14:case"end":return t.stop()}}),t,this,[[0,11]])})));function e(e){return t.apply(this,arguments)}return e}(),Submit_Answer: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 t.prev=0,n={answer:this.Reply},t.next=4,d["b"].put("/admin/comment/answer/"+e.id,n);case 4:this.$message.success("تغییرات با موفقیت ثبت شد"),this.Reply=null,this.visibleComment=!1,this.Show_Change_Reply_Btn=!1,this.$refs.tbl.fetch(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),this.$message.error("خطا در ثبت تغییرات");case 14:case"end":return t.stop()}}),t,this,[[0,11]])})));function e(e){return t.apply(this,arguments)}return e}()}},v=f,w=(n("c6af"),n("2877")),g=Object(w["a"])(v,r,s,!1,null,null,null);e["default"]=g.exports}}]); //# sourceMappingURL=chunk-e33e5800.7485dddf.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure