(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-866ec890"],{"0a87":function(a,t,s){"use strict";s.r(t);var e=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",{staticClass:"row"},[s("div",{staticClass:"col-md-12"},[s("div",{staticClass:"card"},[s("div",{staticClass:"card-header"},[s("router-link",{staticClass:"btn btn-light btn-sm",attrs:{to:{name:"jurusan.data"}}},[a._v("kembali")])],1),s("div",{staticClass:"card-body"},[s("form",{on:{submit:function(t){return!t.type.indexOf("key")&&a._k(t.keyCode,"pre",void 0,t.key,void 0)?null:(t.preventDefault(),a.submit(t))}}},[s("jurusan-form"),s("div",{staticClass:"form-group"},[s("b-button",{attrs:{size:"sm",variant:"primary",type:"submit",disabled:a.isLoading}},[s("b-spinner",{directives:[{name:"show",rawName:"v-show",value:a.isLoading,expression:"isLoading"}],attrs:{small:"",type:"grow"}}),a._v("Simpan")],1)],1)],1)]),s("div",{staticClass:"card-footer"})])])])},r=[],n=s("5530"),u=s("2f62"),i=s("cecb"),o=s("1297"),c={name:"AddMatpel",created:function(){this.editJurusan(this.$route.params.id)},computed:Object(n["a"])({},Object(u["c"])(["isLoading"])),methods:Object(n["a"])(Object(n["a"])({},Object(u["b"])("jurusan",["updateJurusan","editJurusan"])),{},{submit:function(){var a=this;this.updateJurusan(this.$route.params.id).then((function(t){a.$bvToast.toast("Data jurusan berhasil disimpan.",Object(i["c"])()),a.$router.push({name:"jurusan.data"})})).catch((function(t){a.$bvToast.toast(t.message,Object(i["b"])())}))}}),components:{"jurusan-form":o["a"]}},d=c,l=s("2877"),m=Object(l["a"])(d,e,r,!1,null,null,null);t["default"]=m.exports},1297:function(a,t,s){"use strict";var e=function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("div",[s("div",{staticClass:"form-group"},[s("label",[a._v("Kode jurusan")]),s("input",{directives:[{name:"model",rawName:"v-model",value:a.jurusan.kode,expression:"jurusan.kode"}],staticClass:"form-control",class:{"is-invalid":a.errors.nama},attrs:{type:"text",placeholder:"Kode jurusan"},domProps:{value:a.jurusan.kode},on:{input:function(t){t.target.composing||a.$set(a.jurusan,"kode",t.target.value)}}}),a.errors.kode?s("p",{staticClass:"text-danger"},[a._v(a._s(a.errors.kode[0]))]):a._e()]),s("div",{staticClass:"form-group"},[s("label",[a._v("Nama jurusan")]),s("input",{directives:[{name:"model",rawName:"v-model",value:a.jurusan.nama,expression:"jurusan.nama"}],staticClass:"form-control",class:{"is-invalid":a.errors.nama},attrs:{type:"text",placeholder:"Nama jurusan"},domProps:{value:a.jurusan.nama},on:{input:function(t){t.target.composing||a.$set(a.jurusan,"nama",t.target.value)}}}),a.errors.nama?s("p",{staticClass:"text-danger"},[a._v(a._s(a.errors.nama[0]))]):a._e()])])},r=[],n=s("5530"),u=s("2f62"),i={name:"FormJurusan",computed:Object(n["a"])(Object(n["a"])({},Object(u["e"])(["errors"])),Object(u["e"])("jurusan",{jurusan:function(a){return a.jurusan}}))},o=i,c=s("2877"),d=Object(c["a"])(o,e,r,!1,null,null,null);t["a"]=d.exports}}]);
//# sourceMappingURL=chunk-866ec890.11e7d61f.js.map