/
home
/
henzagold
/
adminold
/
export
/
js
/
File Upload :
llllll
Current File: /home/henzagold/adminold/export/js/chunk-2d0b3dad.5cf74e6f.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b3dad"],{"29c3":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t._self._c;return e("vx-card",{ref:"filterCard",staticClass:"vx-card",attrs:{removeCardAction:!1,title:"لیست شعب"}},[e("XTable",{ref:"ListBranch",attrs:{model:t.model},scopedSlots:t._u([{key:"actions",fn:function(n,a){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)},r=[],s=(n("96cf"),n("1da1")),o=n("bb36"),c=n("e0d2"),i=new c["b"]("https://henzagold.com/oapi/admin/branch/table","لیست شعب");i.add(new c["a"]("name","نام").filterText()),i.add(new c["a"]("address","آدرس").filterText()),i.add(new c["a"]("phone","شماره تلفن").filterNumber()),i.add(new c["a"]("user.name","مدیر شعبه").filterNumber()),i.add(new c["a"]("op","عملیات").noSort().renderSlot("actions")),i._noFilter=!1,i._noDownload=!0;var d=i,l=n("ff6e"),u={name:"ListBranch",components:{XTable:l["a"]},data:function(){return{model:null,change_loading:!1}},methods:{toEdit:function(t){window.open("/admin/branch/edit/".concat(t),"_blank").focus()},setOffer:function(){var t=Object(s["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=3,o["b"].get("/branch/active/".concat(e));case 3:n=t.sent,n.data,this.$message.success("تغییرات با موفقیت انجام شد"),this.change_loading=!1,this.$refs.ListBranch.fetch();case 8:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},created:function(){this.model=d}},f=u,h=n("2877"),p=Object(h["a"])(f,a,r,!1,null,"8e0dd92c",null);e["default"]=p.exports}}]);
Copyright ©2k19 -
Hexid
|
Tex7ure