/
home
/
henzagold
/
admin
/
export
/
js
/
File Upload :
llllll
Current File: //home/henzagold/admin/export/js/chunk-2d0a4c0a.54fc5a21.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0a4c0a"],{"087c":function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t._self._c;return e("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست کارگاه ها"}},[e("XTable",{ref:"ListWorkshop",attrs:{model:t.model},scopedSlots:t._u([{key:"actions",fn:function(n,s){return e("span",{},[e("div",{staticClass:"flex gap-2"},[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.toEdit(n.record.id)}}})],1),e("ATooltip",{on:{click:function(e){return t.setOffer(n.record.id)}}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("وضعیت")]),n.record.is_active?e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"CheckIcon",svgClasses:"h-6 w-6 text-success"}}):e("feather-icon",{staticClass:"cursor-pointer mx-1",attrs:{icon:"XIcon",svgClasses:"h-6 w-6 text-danger"}})],1)],1)])}}])})],1)},a=[],o=(n("96cf"),n("1da1")),r=n("bb36"),i=n("e0d2"),c=new i["b"]("https://henzagold.com/oapi/admin/workshop/table","لیست کارگاه ها");c.add(new i["a"]("name","نام").filterText()),c.add(new i["a"]("address","آدرس").filterText()),c.add(new i["a"]("phone","شماره تلفن").filterNumber()),c._noFilter=!1,c._noDownload=!0;var l=c,d=n("ff6e"),u={name:"ListWorkshop",components:{XTable:d["a"]},data:function(){return{model:null,change_loading:!1}},methods:{toEdit:function(t){window.open("/admin/workshop/edit/".concat(t),"_blank").focus()},setOffer: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 this.change_loading=!0,t.next=1,r["b"].get("/workshop/active/".concat(e));case 1:n=t.sent,n.data,this.$message.success("تغییرات با موفقیت انجام شد"),this.change_loading=!1,this.$refs.ListWorkshop.fetch();case 2:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},created:function(){this.model=l}},f=u,h=n("2877"),p=Object(h["a"])(f,s,a,!1,null,"075910e3",null);e["default"]=p.exports}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure