(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f1bb620"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,r,a){return e/=a/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function u(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,r){var o=u(),l=e-o,i=20,c=0;t="undefined"===typeof t?500:t;var s=function e(){c+=i;var u=Math.easeInOutQuad(c,o,l,t);n(u),c=0||(n[r]=e[r]);return n}function i(e,t){if(null==e)return{};var r,a,u=l(e,t);if(n.a){var o=n()(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(u[r]=e[r])}return u}r.d(t,"a",(function(){return i}))},af82:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("div",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherOperationAdd",expression:"'/teacherOperationAdd'"}],staticClass:"newBand",on:{click:function(t){return e.onTeacher("create")}}},[e._v("老师新增")]),e._v(" "),r("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:e.searchForm,callback:function(t){e.searchForm="string"===typeof t?t.trim():t},expression:"searchForm"}},[r("el-form-item",[r("el-input",{attrs:{placeholder:"老师姓名或电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"老师状态"},model:{value:e.searchForm.lockFlag,callback:function(t){e.$set(e.searchForm,"lockFlag","string"===typeof t?t.trim():t)},expression:"searchForm.lockFlag"}},e._l(e.teacherStatus,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"专业技能"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.subjectList,(function(t){return r("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.branchList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{filterable:"",clearable:"",placeholder:"工作类型"},model:{value:e.searchForm.jobNature,callback:function(t){e.$set(e.searchForm,"jobNature","string"===typeof t?t.trim():t)},expression:"searchForm.jobNature"}},e._l(e.jobNature,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"人事状态"},model:{value:e.searchForm.isProbationPeriod,callback:function(t){e.$set(e.searchForm,"isProbationPeriod","string"===typeof t?t.trim():t)},expression:"searchForm.isProbationPeriod"}},[r("el-option",{attrs:{label:"正式",value:"0"}}),e._v(" "),r("el-option",{attrs:{label:"试用",value:"1"}})],1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"开放陪练"},model:{value:e.searchForm.isSupportExtraPracticeLesson,callback:function(t){e.$set(e.searchForm,"isSupportExtraPracticeLesson","string"===typeof t?t.trim():t)},expression:"searchForm.isSupportExtraPracticeLesson"}},[r("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),r("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"老师编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"realName",label:"老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("p",[e._v(e._s(t.row.realName))]),e._v(" "),t.row.memo?r("p",[e._v(e._s("("+t.row.memo+")"))]):e._e()])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"老师状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("teacherStatus")(t.row.lockFlag)))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"专业技能"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",{staticStyle:{"max-height":"68px",display:"block"},attrs:{title:t.row.splitSubjectName}},[e._v(e._s(t.row.splitSubjectName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"phone",label:"联系电话"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"工作类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("jobNature")(t.row.jobNature)))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"人事状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.isProbationPeriod?"正式":"试用")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"vipNum",label:"已开小课"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"试听课安排"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.demoNum>0?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"开放网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isSupportExtraPracticeLesson?"是":"否"))]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"运营指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.gotoOperating(t.row)}}},[e._v(e._s(t.row.operatingIndex+"%"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"服务指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.gotoAfterSchool(t.row)}}},[e._v(e._s(t.row.serviceIndex+"%"))])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",fixed:"right",width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("router-link",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherDetail",expression:"'/teacherDetail'"}],staticStyle:{color:"#409EFF"},attrs:{to:{path:"/business/teacherDetail?teacherId="+t.row.id+"&teacherName="+t.row.realName,query:{search:JSON.stringify(e.searchForm),rules:JSON.stringify(e.pageInfo)}}}},[e._v("查看")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherIperationUpdate",expression:"'/teacherIperationUpdate'"}],attrs:{type:"text"},on:{click:function(r){return e.onTeacher("update",t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"employee/employeeOperate",expression:"'employee/employeeOperate'"}],attrs:{type:"text"},on:{click:function(r){return e.onStaffOperation("LOCK_UNLOCK",t.row)}}},[e._v(e._s(1==t.row.lockFlag?"解冻":"冻结"))]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"api-auth/user/updatePassword2",expression:"'api-auth/user/updatePassword2'"}],attrs:{type:"text"},on:{click:function(r){return e.resetPassWrod(t.row)}}},[e._v("修改密码")])]}}])})],1),e._v(" "),r("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),r("el-dialog",{attrs:{title:"修改密码",visible:e.passwrodVisiable,"before-close":e.closePassWord,width:"400px"},on:{"update:visible":function(t){e.passwrodVisiable=t}}},[r("el-form",{ref:"passwrodForm",attrs:{model:e.passwrodForm,inline:!0}},[r("el-form-item",{attrs:{label:"手机号",prop:"phone","label-width":"80px",rules:[{required:!0,message:"手机号不能为空",trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[r("el-input",{model:{value:e.passwrodForm.phone,callback:function(t){e.$set(e.passwrodForm,"phone","string"===typeof t?t.trim():t)},expression:"passwrodForm.phone"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"输入密码",prop:"password","label-width":"80px",rules:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^[\w]{6,20}$/,message:"密码为6-20位",trigger:"blur"}]}},[r("el-input",{model:{value:e.passwrodForm.password,callback:function(t){e.$set(e.passwrodForm,"password","string"===typeof t?t.trim():t)},expression:"passwrodForm.password"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"再次输入",prop:"password2","label-width":"80px",rules:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^[\w]{6,20}$/,message:"密码为6-20位",trigger:"blur"}]}},[r("el-input",{model:{value:e.passwrodForm.password2,callback:function(t){e.$set(e.passwrodForm,"password2","string"===typeof t?t.trim():t)},expression:"passwrodForm.password2"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.passwrodVisiable=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitResetPassWord}},[e._v("确 定")])],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("老师列表\n ")])}],u=(r("7f7f"),r("ac6a"),r("386d"),r("333d")),o=r("8018"),l=r("99b4"),i=r("d349"),c=r("1cc7"),s=r("92e3"),d=(r("4360"),{name:"teacherList",components:{pagination:u["a"]},data:function(){return{searchForm:{lockFlag:null,isProbationPeriod:null,jobNature:null,subjectId:null,organId:null,search:null,isSupportExtraPracticeLesson:null},jobNature:s["m"],teacherStatus:s["v"],subjectList:[],branchList:[],tableList:[],pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},passwrodVisiable:!1,passwrodForm:{phone:"",password:"",password2:""},activatedRow:null}},activated:function(){this.__init(),this.getList()},mounted:function(){this.__init(),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},__init:function(){var e=this;this.$route.query.search&&(this.$route.query.search instanceof Object?this.searchForm=this.$route.query.search:this.searchForm=JSON.parse(this.$route.query.search)),this.$route.query.rules&&(this.$route.query.rules instanceof Object?this.pageInfo=this.$route.query.rules:this.pageInfo=JSON.parse(this.$route.query.rules)),Object(c["U"])().then((function(t){200==t.code&&(e.branchList=[],t.data.forEach((function(t){e.branchList.push({label:t.name,value:t.id})})))})),Object(i["z"])({delFlag:0,rows:9999}).then((function(t){var r=t.data;if(200==t.code){var a=[];r.rows.forEach((function(e,t){var r=[];e.subjects.forEach((function(e){r.push({value:e.id,label:e.name})})),a[t]={label:e.name,options:r}})),e.subjectList=a}}))},onTeacher:function(e,t){var r=JSON.stringify(this.searchForm),a=JSON.stringify(this.pageInfo),n={type:e,search:r,rules:a};t&&(n.teacherId=t.id);var u="/business/teacherOperation";"update"==e&&(u="/business/teacherOperationUpdate"),this.$router.push({path:u,query:n})},getList:function(){var e=this,t=this.searchForm;t.lockFlag?t.lockFlag:t.lockFlag=null,t.isProbationPeriod?t.isProbationPeriod:t.isProbationPeriod=null,t.jobNature?t.jobNature:t.jobNature=null,t.subjectId?t.subjectId:t.subjectId=null,t.search?t.search:t.search=null,t.isSupportExtraPracticeLesson?t.isSupportExtraPracticeLesson:t.isSupportExtraPracticeLesson=null,t.rows=this.pageInfo.limit,t.page=this.pageInfo.page,Object(o["w"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},onStaffOperation:function(e,t){var r=this,a="";a=1!=t.lockFlag?"是否冻结".concat(t.realName,"老师?"):"是否解冻".concat(t.realName,"老师?"),this.$confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["k"])({employeeId:t.id,operate:e}).then((function(e){200==e.code?(r.$message.success("更改成功"),r.roleStatus=!1,r.getList()):r.$message.error(e.msg)}))})).catch((function(){}))},onReSet:function(){this.searchForm={lockFlag:null,isProbationPeriod:null,jobNature:null,organId:null,subjectId:null,search:null}},resetPassWrod:function(e){this.activatedRow=e,this.passwrodForm.phone=e.phone,this.passwrodVisiable=!0},closePassWord:function(){this.activatedRow=null,this.passwrodForm={phone:"",password:"",password2:""},this.$refs["passwrodForm"].resetFields(),this.passwrodVisiable=!1},submitResetPassWord:function(){var e=this;this.passwrodForm.password===this.passwrodForm.password2?this.$refs["passwrodForm"].validate((function(t){t&&Object(c["bc"])({mobile:e.passwrodForm.phone,newPassword:e.passwrodForm.password,userId:e.activatedRow.id}).then((function(t){200==t.code&&(e.$message.success("修改成功"),e.closePassWord())}))})):this.$message.error("两次密码必须相同")},gotoAfterSchool:function(e){this.$router.push({path:"/operateManager/serverIndexList",query:{teacherId:e.id,activeIndex:"2"}})},gotoOperating:function(e){this.$router.push({path:"/operateManager/operateStudent",query:{teacherId:e.id,operatingTag:"1"}})}}}),p=d,f=(r("425b"),r("2877")),b=Object(f["a"])(p,a,n,!1,null,null,null);t["default"]=b.exports},d349:function(e,t,r){"use strict";r.d(t,"d",(function(){return c})),r.d(t,"c",(function(){return s})),r.d(t,"e",(function(){return d})),r.d(t,"b",(function(){return p})),r.d(t,"p",(function(){return f})),r.d(t,"z",(function(){return b})),r.d(t,"A",(function(){return m})),r.d(t,"g",(function(){return h})),r.d(t,"k",(function(){return v})),r.d(t,"f",(function(){return g})),r.d(t,"l",(function(){return O})),r.d(t,"s",(function(){return y})),r.d(t,"q",(function(){return j})),r.d(t,"r",(function(){return _})),r.d(t,"h",(function(){return I})),r.d(t,"i",(function(){return w})),r.d(t,"n",(function(){return S})),r.d(t,"j",(function(){return E})),r.d(t,"t",(function(){return N})),r.d(t,"B",(function(){return T})),r.d(t,"m",(function(){return P})),r.d(t,"u",(function(){return F})),r.d(t,"x",(function(){return A})),r.d(t,"v",(function(){return L})),r.d(t,"w",(function(){return C})),r.d(t,"o",(function(){return R})),r.d(t,"a",(function(){return k})),r.d(t,"y",(function(){return x}));var a=r("a8db"),n=r("b775"),u=r("829b"),o=r("4328"),l=r.n(o),i="/api-web";function c(e){return Object(n["a"])({url:i+"/organization/queryPage",method:"get",params:e})}function s(e){return Object(n["a"])({url:i+"/organization/add",method:"post",data:l.a.stringify(e)})}function d(e){return Object(n["a"])({url:i+"/organization/update",method:"post",data:l.a.stringify(e)})}function p(e){return Object(n["a"])({url:i+"/area/queryChild",method:"get",params:e})}function f(e){return Object(n["a"])({url:i+"/area/getParentArea/".concat(e.id),method:"get"})}function b(e){return Object(n["a"])({url:i+"/subject/queryPageTree",method:"get",params:e})}function m(e){return Object(n["a"])({url:i+"/subject/upset",method:"post",data:e})}function h(e){return Object(n["a"])({url:i+"/chargeType/queryPage",method:"get",params:e})}function v(e){return Object(n["a"])({url:i+"/chargeType/upSet",method:"post",data:e})}function g(e){return Object(n["a"])({url:i+"/chargeType/del/".concat(e),method:"post"})}function O(e){return Object(n["a"])({url:i+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function y(e){return Object(n["a"])({url:i+"/courseHomeworkTemplate/update",method:"post",data:l.a.stringify(e)})}function j(e){return Object(n["a"])({url:i+"/courseHomeworkTemplate/add",method:"post",data:l.a.stringify(e)})}function _(e){return Object(n["a"])({url:i+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function I(e){return Object(n["a"])({url:i+"/chargeTypeOrganizationFee/add",method:"post",data:l.a.stringify(e)})}function w(e){return Object(n["a"])({url:i+"/chargeTypeOrganizationFee/update",method:"post",data:l.a.stringify(e)})}function S(e){return Object(n["a"])({url:i+"/employee/findEducationTeacher",method:"get",params:e})}function E(e){return Object(u["a"])({url:i+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function N(e){return Object(u["a"])({url:i+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function T(e){return Object(u["a"])({url:i+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function P(e){var t=e.id,r=Object(a["a"])(e,["id"]);return Object(u["a"])({url:i+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:r})}function F(e){return Object(u["a"])({url:i+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function A(e){return Object(u["a"])({url:i+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function L(e){return Object(u["a"])({url:i+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function C(e){return Object(u["a"])({url:i+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function R(e){return Object(u["a"])({url:i+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function k(e){return Object(u["a"])({url:i+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function x(e){return Object(u["a"])({url:i+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}}}]);