/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: /home/maktab/admin/js/chunk-0c51c380.4e42724e.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c51c380","chunk-2d0c9397"],{"57dc":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("UserDefault",{attrs:{loading:e.loading,"user-url":"/admin/employee",title:"مدیر مکتب","list-route":"agents-list"}},[n("a-form-item",{attrs:{label:"نقش"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:e.input("type_employee"),expression:"input('type_employee')"}],staticStyle:{width:"100%",direction:"rtl !important"},attrs:{"show-search":""},model:{value:e.type_employee,callback:function(t){e.type_employee=t},expression:"type_employee"}},e._l(e.types,(function(t,a){return n("a-select-option",{key:t.id},[e._v("\n "+e._s(t.value)+"\n ")])})),1)],1),n("a-form-item",{attrs:{label:"مکتب"}},[n("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:e.input("maktab_id"),expression:"input('maktab_id')"}],staticStyle:{width:"100%",direction:"rtl !important"},attrs:{"show-search":""},model:{value:e.maktab_id,callback:function(t){e.maktab_id=t},expression:"maktab_id"}},e._l(e.maktabs,(function(t,a){return n("a-select-option",{key:t.id},[e._v("\n "+e._s(t.title)+"\n ")])})),1)],1)],1)],1)},r=[],s=(n("96cf"),n("1da1")),i=n("bb36"),o=n("1cef"),c=n("8855"),u={name:"Add",components:{UserDefault:o["a"]},data:function(){return{types:[],maktabs:[],loading:!1,input:c["a"],type_employee:void 0,maktab_id:void 0}},methods:{getTypes:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i["b"].get("admin/const/key/type_employee");case 3:t=e.sent,n=t.data,this.types=n,e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0),this.$message.error("خطا در دریافت نقش");case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,this,[[0,8,12,14]])})));function t(){return e.apply(this,arguments)}return t}(),getMaktabs:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i["b"].post("admin/maktab/table");case 3:t=e.sent,n=t.data.rows,this.maktabs=n,e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0),this.$message.error("خطا در دریافت مکتب");case 12:return e.prev=12,e.finish(12);case 14:case"end":return e.stop()}}),e,this,[[0,8,12,14]])})));function t(){return e.apply(this,arguments)}return t}()},created:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getTypes();case 3:return e.next=5,this.getMaktabs();case 5:this.loading=!1;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},l=u,p=n("2877"),d=Object(p["a"])(l,a,r,!1,null,"67ed668e",null);t["default"]=d.exports},6394:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("editAgents")},r=[],s=n("57dc"),i={name:"edit",components:{editAgents:s["default"]}},o=i,c=n("2877"),u=Object(c["a"])(o,a,r,!1,null,"05210b31",null);t["default"]=u.exports}}]); //# sourceMappingURL=chunk-0c51c380.4e42724e.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure