Commit 82df1b53 by 无尘

fix: 修改编辑员工

parent 65f403f8
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.310b600e544d33e1db085def8803b1f1.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.e423f90dee3c4c4e2099.js></script><script type=text/javascript src=./static/js/vendor.28541dbeac66c2b0770e.js></script><script type=text/javascript src=./static/js/app.317d7d2afb14508c95df.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.310b600e544d33e1db085def8803b1f1.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.d9329e9bb71dc0bf93de.js></script><script type=text/javascript src=./static/js/vendor.28541dbeac66c2b0770e.js></script><script type=text/javascript src=./static/js/app.50d1eb268367fe69339f.js></script></body></html>
\ No newline at end of file
webpackJsonp([52],{XzAK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),o=a("PI0u"),i=a("Ch4/"),r=a("3E4D"),c=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(o.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(c.c)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(c.c)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?i.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("不良评价回访任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("YEoe")},"data-v-552d3f3b",null);e.default=u.exports},YEoe:function(t,e){}});
\ No newline at end of file
webpackJsonp([51],{XzAK:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),n=a("Ke24"),o=a("PI0u"),i=a("Ch4/"),r=a("3E4D"),c=a("P9l9"),d={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访设置"}],activeId:"1",setObj:{taskType:0,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(o.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(c.c)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?i.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:0};Object(c.c)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?i.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","3"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("不良评价回访任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("不良评价回访下发后")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(d,l,!1,function(t){a("YEoe")},"data-v-552d3f3b",null);e.default=u.exports},YEoe:function(t,e){}});
\ No newline at end of file
webpackJsonp([51],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("PRwG")},null,null);a.default=m.exports},PRwG:function(e,a){}});
\ No newline at end of file
webpackJsonp([54],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}});
\ No newline at end of file
webpackJsonp([53],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}});
\ No newline at end of file
webpackJsonp([56],{UcYd:function(t,e){},Y8F9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("2eFk"),s=n("Ke24"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrandId:this.brandId,topMenuData:[{id:"1",name:"系统报表"}],activeId:"1"}},computed:{},methods:{toEdit:function(){this.$router.push("/systemReportSet?brandId="+this.activeBrandId+"&appIcon="+this.$route.query.appIcon)}},watch:{brandId:function(t,e){this.activeBrandId=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","211"),this.activeBrandId=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:s.a}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"system-set-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"system-set-content boder-box"},[e("div",{staticClass:"system-set-cell"},[e("div",{staticClass:"font-14 color-606266"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中")]),this._v(" "),e("div",{staticClass:"m-t-30"},[e("el-button",{attrs:{type:"primary"},on:{click:this.toEdit}},[this._v("编辑模板")])],1)])])],1)},staticRenderFns:[]};var d=n("VU/8")(i,o,!1,function(t){n("UcYd")},"data-v-47668b06",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([55],{UcYd:function(t,e){},Y8F9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("2eFk"),s=n("Ke24"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeBrandId:this.brandId,topMenuData:[{id:"1",name:"系统报表"}],activeId:"1"}},computed:{},methods:{toEdit:function(){this.$router.push("/systemReportSet?brandId="+this.activeBrandId+"&appIcon="+this.$route.query.appIcon)}},watch:{brandId:function(t,e){this.activeBrandId=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","211"),this.activeBrandId=this.brandId},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:a.a,commonDetailTop:s.a}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"system-set-wrap"},[e("common-detail-top",{attrs:{topMenuData:this.topMenuData,activeId:this.activeId}}),this._v(" "),e("div",{staticClass:"system-set-content boder-box"},[e("div",{staticClass:"system-set-cell"},[e("div",{staticClass:"font-14 color-606266"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中")]),this._v(" "),e("div",{staticClass:"m-t-30"},[e("el-button",{attrs:{type:"primary"},on:{click:this.toEdit}},[this._v("编辑模板")])],1)])])],1)},staticRenderFns:[]};var d=n("VU/8")(i,o,!1,function(t){n("UcYd")},"data-v-47668b06",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([60],{H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var n=i("VU/8")(s,a,!1,function(t){i("SvI+")},"data-v-3f076bb1",null);e.default=n.exports},"SvI+":function(t,e){}});
\ No newline at end of file
webpackJsonp([59],{H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com"},[i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var n=i("VU/8")(s,a,!1,function(t){i("SvI+")},"data-v-3f076bb1",null);e.default=n.exports},"SvI+":function(t,e){}});
\ No newline at end of file
webpackJsonp([60],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),i={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"添加员工",path:""}],navpathEdit:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:"/administrativeFrame"},{name:"编辑员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}},mounted:function(){this.$route.query.addnew||(this.navpath=this.navpathEdit)}},r={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(i,r,!1,function(e){t("x3Cz")},null,null);a.default=m.exports},x3Cz:function(e,a){}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=a(a.s=n[i]);return o};var f={},d={80:0};function a(c){if(f[c])return f[c].exports;var d=f[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,a),d.l=!0,d.exports}a.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,a){c=d[e]=[f,a]});c[2]=f;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,a.nc&&n.setAttribute("nonce",a.nc),n.src=a.p+"static/js/"+e+"."+{0:"ace51f421a48f46a5277",1:"0ebe3ead93207dc78a78",2:"979deb10fce5b2fefcdb",3:"c2fd89730cdd6d5b8904",4:"f396f74b75d791b8cb38",5:"585fa5e680c961f3e6ea",6:"657b140c98f462652267",7:"425c9f33a90e59d2b270",8:"9180c86d724863021ea1",9:"7bafe59540d7210cfa70",10:"bc4f603351d381704d20",11:"2cfce44be1d5002c95f1",12:"e48ee65ef0da6c383571",13:"34bd3d823e73c2a4d360",14:"8719a4be4e72a548434c",15:"2ee668c55634c598bb49",16:"fc1264890c2669f41a52",17:"a1f8e736a1b936b682f2",18:"c930c090830262321506",19:"1b6d2763b40278908ad1",20:"81f6c674a6461ef85896",21:"08e506839eb7346cac08",22:"5a40199f94d4ea1b6837",23:"5ed1b5fd3abff19ce342",24:"9c7dd0f43ca6b011cd2f",25:"e3f3549f91880fa065bb",26:"40226508ead49adcb14f",27:"d06c17faef5f94ce3538",28:"5d40f738c37dc3ef187e",29:"ff0267ea3da22d09a51d",30:"dd4b7da78d6c78093255",31:"ab2d370388056de1d416",32:"70774db13d0413804dc5",33:"3920832eb8d2060b3283",34:"85d9b21e152ee68f753e",35:"89ba4c1dd475908bf5fc",36:"73599dd23aeb744999d1",37:"5c79b5b07eabe32865d9",38:"2abd4e6854edc4a61d25",39:"ff87a1bd8fe431022be1",40:"e9c116b3a105a1e15f53",41:"37fe8cc7206fc7a6918a",42:"1bd51133770da9de66c4",43:"6172423115106cbcf206",44:"15e4fb81db8878836164",45:"d8bd0488f225fbeac057",46:"7e45e6c43c0bab35bf80",47:"f6bccbc7dbb5d48ac435",48:"789e840b8b2f1bbeebbc",49:"bca658c86dad84d0634e",50:"331006123edd2049b7d9",51:"39c6d0fb7d792edd6cbf",52:"1877d1f717c069fa4b03",53:"dd892a649988674feca2",54:"1503b643475934e2b5e1",55:"0a28d0fa68bb623fb44b",56:"bf6ca3213cca34608387",57:"3b66a0783837139899c5",58:"d2633a0a50b9ea3eda37",59:"b0384129b6e3ccf2819d",60:"06083ce41737441c07f2",61:"2f37d96bc91f0a637cad",62:"c3caefedcb9fb6dcfb96",63:"3b57f32493eccbf39695",64:"ebc341a9017c4b2c1112",65:"790058d4bf34f37589d9",66:"ceb12b70732c3d1922a9",67:"5b477dcc7445f38c2ee9",68:"ba49712f562eff6edbc3",69:"17e063aa9f52b297f979",70:"6c2402795ed03b512775",71:"da1a44c8bf4f6316b90d",72:"6526d6cf985190f1fdbb",73:"eaf82b42a884d2f24070",74:"3a4f20982bf349c4bf08",75:"47588b504cef11d4ae3c",76:"509de08aa4c1d8be651d",79:"177f5627a2a311e067eb"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},a.m=e,a.c=f,a.d=function(e,c,f){a.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},a.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(c,"a",c),c},a.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(d,b,n){for(var r,t,o,i=0,u=[];i<d.length;i++)t=d[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(d,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=a(a.s=n[i]);return o};var d={},f={80:0};function a(c){if(d[c])return d[c].exports;var f=d[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,a),f.l=!0,f.exports}a.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var d=new Promise(function(d,a){c=f[e]=[d,a]});c[2]=d;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,a.nc&&n.setAttribute("nonce",a.nc),n.src=a.p+"static/js/"+e+"."+{0:"ace51f421a48f46a5277",1:"0ebe3ead93207dc78a78",2:"979deb10fce5b2fefcdb",3:"c2fd89730cdd6d5b8904",4:"8d030ceca5cec87c35a9",5:"585fa5e680c961f3e6ea",6:"657b140c98f462652267",7:"425c9f33a90e59d2b270",8:"9180c86d724863021ea1",9:"7bafe59540d7210cfa70",10:"bc4f603351d381704d20",11:"2cfce44be1d5002c95f1",12:"e48ee65ef0da6c383571",13:"34bd3d823e73c2a4d360",14:"8719a4be4e72a548434c",15:"2ee668c55634c598bb49",16:"fc1264890c2669f41a52",17:"a1f8e736a1b936b682f2",18:"c930c090830262321506",19:"1b6d2763b40278908ad1",20:"81f6c674a6461ef85896",21:"08e506839eb7346cac08",22:"5a40199f94d4ea1b6837",23:"5ed1b5fd3abff19ce342",24:"9c7dd0f43ca6b011cd2f",25:"e3f3549f91880fa065bb",26:"40226508ead49adcb14f",27:"d06c17faef5f94ce3538",28:"5d40f738c37dc3ef187e",29:"ff0267ea3da22d09a51d",30:"dd4b7da78d6c78093255",31:"ab2d370388056de1d416",32:"70774db13d0413804dc5",33:"3920832eb8d2060b3283",34:"85d9b21e152ee68f753e",35:"89ba4c1dd475908bf5fc",36:"73599dd23aeb744999d1",37:"5c79b5b07eabe32865d9",38:"2abd4e6854edc4a61d25",39:"ff87a1bd8fe431022be1",40:"e9c116b3a105a1e15f53",41:"37fe8cc7206fc7a6918a",42:"1bd51133770da9de66c4",43:"6172423115106cbcf206",44:"15e4fb81db8878836164",45:"d8bd0488f225fbeac057",46:"7e45e6c43c0bab35bf80",47:"f6bccbc7dbb5d48ac435",48:"789e840b8b2f1bbeebbc",49:"bca658c86dad84d0634e",50:"331006123edd2049b7d9",51:"162b8ff2e1166dd2f5e6",52:"58dd6ef0bd18aab79f2a",53:"8ea56d269da04331dd65",54:"f0c7f08ea4dcf79e11d3",55:"c423570fcbf037d349d9",56:"a785196311a3bf4d85db",57:"2b9637ca7ac191a2bcf6",58:"f7e165a1f7d21d19a75d",59:"99266664dc2132a0f3bf",60:"d4e4cf8151e986ca5d63",61:"2f37d96bc91f0a637cad",62:"c3caefedcb9fb6dcfb96",63:"3b57f32493eccbf39695",64:"ebc341a9017c4b2c1112",65:"790058d4bf34f37589d9",66:"ceb12b70732c3d1922a9",67:"5b477dcc7445f38c2ee9",68:"ba49712f562eff6edbc3",69:"17e063aa9f52b297f979",70:"6c2402795ed03b512775",71:"da1a44c8bf4f6316b90d",72:"6526d6cf985190f1fdbb",73:"eaf82b42a884d2f24070",74:"3a4f20982bf349c4bf08",75:"47588b504cef11d4ae3c",76:"509de08aa4c1d8be651d",79:"177f5627a2a311e067eb"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),d},a.m=e,a.c=d,a.d=function(e,c,d){a.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:d})},a.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(c,"a",c),c},a.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -46,6 +46,24 @@ export default {
path: ''
}
],
navpathEdit: [
{
name: '首页',
path: '/index'
},
{
name: '企业通讯录',
path: '/administrativeFrame'
},
{
name: '行政架构',
path: '/administrativeFrame'
},
{
name: '编辑员工',
path: ''
}
],
managerMode: false
};
},
......@@ -144,6 +162,11 @@ export default {
isNew() {
return !!this.$route.query.addnew == 1;
}
},
mounted() {
if (!this.$route.query.addnew) {
this.navpath = this.navpathEdit
}
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment