webpackJsonp([23],{AdJp:function(e,o,n){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=n("WSbm"),a=n("P9l9"),l={name:"employeeDetail",components:{employeeInfo:t.a},data:function(){return{info:{},managerMode:!1}},methods:{getEmployInfo:function(){var e=this,o={id:e.$route.query.employeeClerkId};Object(a.a)("/haoban-manage-web/emp/findOne",o).then(function(o){console.log(o,"employeeDetail"),e.info=o.data.result,e.info.managerMode=!!o.data.result.managerMode}).catch(function(e){console.log(e,"error")})},saveEmployeeInfo:function(){var e=this.info,o={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,employeeClerkId:e.employeeClerkId,managerMode:1*e.managerMode};console.log(e,o),Object(a.a)("/haoban-manage-web/emp/update",o).then(function(e){console.log(e,"update result")}).catch(function(e){console.log(e,"error")})}},beforeMount:function(){this.getEmployInfo()}},r={render:function(){var e=this,o=e.$createElement,n=e._self._c||o;return n("div",{staticClass:"employee-detail"},[n("employee-info",{attrs:{info:e.info}}),e._v(" "),n("div",{staticClass:"btn-box"},[n("el-button",{attrs:{type:"primary"},on:{click:e.saveEmployeeInfo}},[e._v("保存")]),e._v(" "),n("el-button",{attrs:{type:"primary"}},[e._v("保存并继续添加")]),e._v(" "),n("el-button",[e._v("取消")])],1)],1)},staticRenderFns:[]};var i=n("VU/8")(l,r,!1,function(e){n("VfAF")},null,null);o.default=i.exports},VfAF:function(e,o){}});
//# sourceMappingURL=23.006e1d4c66f8ed5a7f45.js.map