1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bbec85ca"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return o})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function l(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,a){var o=n(),u=e-o,s=20,i=0;t="undefined"===typeof t?500:t;var c=function e(){i+=s;var n=Math.easeInOutQuad(i,o,u,t);l(n),i<t?r(e):a&&"function"===typeof a&&a()};c()}},8018:function(e,t,a){"use strict";a.d(t,"x",(function(){return u})),a.d(t,"u",(function(){return s})),a.d(t,"h",(function(){return i})),a.d(t,"e",(function(){return c})),a.d(t,"j",(function(){return d})),a.d(t,"w",(function(){return p})),a.d(t,"v",(function(){return b})),a.d(t,"o",(function(){return f})),a.d(t,"C",(function(){return v})),a.d(t,"D",(function(){return m})),a.d(t,"z",(function(){return h})),a.d(t,"y",(function(){return g})),a.d(t,"B",(function(){return _})),a.d(t,"g",(function(){return w})),a.d(t,"r",(function(){return y})),a.d(t,"A",(function(){return I})),a.d(t,"t",(function(){return E})),a.d(t,"i",(function(){return O})),a.d(t,"n",(function(){return S})),a.d(t,"s",(function(){return N})),a.d(t,"a",(function(){return A})),a.d(t,"m",(function(){return F})),a.d(t,"p",(function(){return T})),a.d(t,"q",(function(){return P})),a.d(t,"l",(function(){return x})),a.d(t,"d",(function(){return L})),a.d(t,"c",(function(){return j})),a.d(t,"k",(function(){return R})),a.d(t,"b",(function(){return k})),a.d(t,"f",(function(){return C}));var r=a("b775"),l=a("4328"),n=a.n(l),o="/api-web";function u(e){return Object(r["a"])({url:o+"/teacher/queryPage",method:"get",params:e})}function s(e){return Object(r["a"])({url:o+"/teacher/get",method:"get",params:e})}function i(e){return Object(r["a"])({url:o+"/teacher/getTeacherMusicClass",method:"get",params:e})}function c(e){return Object(r["a"])({url:o+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(r["a"])({url:o+"/teacherAttendance/getTeacherPersonalAttendances",method:"get",params:e})}function p(e){return Object(r["a"])({url:o+"/teacher/queryCloses",method:"get",params:e})}function b(e){return Object(r["a"])({url:o+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function f(e){return Object(r["a"])({url:o+"/teacher/sumTeacherNoPay",method:"get",params:e})}function v(e){return Object(r["a"])({url:o+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function m(e){return Object(r["a"])({url:o+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function h(e){return Object(r["a"])({url:o+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function g(e){return Object(r["a"])({url:o+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function _(e){return Object(r["a"])({url:o+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:n.a.stringify(e)})}function w(e){return Object(r["a"])({url:o+"/school/findVipSchoolByTeacher",method:"get",params:e})}function y(e){return Object(r["a"])({url:o+"/teacher/add",method:"post",data:n.a.stringify(e)})}function I(e){return Object(r["a"])({url:o+"/teacher/update",method:"post",data:n.a.stringify(e)})}function E(e){return Object(r["a"])({url:o+"/teacherFreeTime/query",method:"get",params:e})}function O(e){return Object(r["a"])({url:o+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function S(e){return Object(r["a"])({url:o+"/teacherFreeTime/updateSet",method:"post",data:n.a.stringify(e)})}function N(e){return Object(r["a"])({url:o+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function A(e){return Object(r["a"])({url:o+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function F(e){return Object(r["a"])({url:o+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function T(e){return Object(r["a"])({url:o+"/sysTenantAccount/addMinutes",method:"post",data:n.a.stringify(e)})}function P(e){return Object(r["a"])({url:o+"/sysTenantAccount/subtractMinutes",method:"post",data:n.a.stringify(e)})}function x(e){return Object(r["a"])({url:o+"/sysTenantAccount/get",method:"get",params:e})}function L(e){return Object(r["a"])({url:o+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function j(e){return Object(r["a"])({url:o+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:n.a.stringify(e)})}function R(e){return Object(r["a"])({url:o+"/teacher/queryStudent",method:"get",params:e})}function k(e){return Object(r["a"])({url:o+"/studentManage/batchUpdateAdviser",method:"post",data:n.a.stringify(e)})}function C(e){return Object(r["a"])({url:o+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"92e3":function(e,t,a){"use strict";a.d(t,"k",(function(){return o})),a.d(t,"o",(function(){return u})),a.d(t,"i",(function(){return s})),a.d(t,"b",(function(){return i})),a.d(t,"n",(function(){return c})),a.d(t,"y",(function(){return d})),a.d(t,"c",(function(){return p})),a.d(t,"s",(function(){return b})),a.d(t,"l",(function(){return f})),a.d(t,"p",(function(){return v})),a.d(t,"A",(function(){return m})),a.d(t,"j",(function(){return h})),a.d(t,"h",(function(){return g})),a.d(t,"z",(function(){return _})),a.d(t,"v",(function(){return w})),a.d(t,"B",(function(){return y})),a.d(t,"u",(function(){return I})),a.d(t,"w",(function(){return E})),a.d(t,"m",(function(){return O})),a.d(t,"f",(function(){return S})),a.d(t,"x",(function(){return N})),a.d(t,"g",(function(){return A})),a.d(t,"t",(function(){return F})),a.d(t,"e",(function(){return T})),a.d(t,"d",(function(){return P})),a.d(t,"r",(function(){return x})),a.d(t,"q",(function(){return L})),a.d(t,"a",(function(){return R}));var r=a("b85c"),l=a("3835"),n=a("267e"),o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"}],u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],i=[{label:"正常签到",value:1},{label:"异常签到",value:0}],c=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"临时工",value:"TEMPORARY"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],p=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"},{value:"QUIT_SCHOOL",label:"退学"}],b=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"OTHER",label:"其他"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"双十一活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"SUBJECT_CHANGE",label:"声部更换"}],f=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],v=[{value:"APPLY",text:"报名中"},{value:"PAY",text:"缴费中"},{value:"PREPARE",text:"筹备中"},{value:"PROGRESS",text:"进行中"},{value:"PAUSE",text:"暂停"},{value:"DRAFT",text:"编辑中"},{value:"AUDIT",text:"审核中"},{value:"AUDIT_FAILED",text:"审核失败"},{value:"CANCELED",text:"取消"},{value:"FEE_AUDIT",text:"费用审核中"}],m=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",text:"暂停"}],h=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],g=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],_=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],w=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"}],y=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及作业回访",label:"课后及作业回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],I=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],E=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],O=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"}],S=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],N=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],A=j(n["d"]),F=j(n["m"]),T=j(n["b"]),P=j(n["a"]),x=j(n["l"]),L=j(n["k"]);function j(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(l["a"])(t,2),n=a[0],o=a[1],u={};if(e&&e.length){var s,i=Object(r["a"])(e);try{for(i.s();!(s=i.n()).done;){var c=s.value;u[c[n]]=c[o]}}catch(d){i.e(d)}finally{i.f()}}return u}},af82:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherOperationAdd",expression:"'/teacherOperationAdd'"}],staticClass:"newBand",on:{click:function(t){return e.onTeacher("create")}}},[e._v("\n 老师新增\n ")]),e._v(" "),a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("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(" "),a("el-form-item",[a("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 a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("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 a("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1),e._v(" "),a("el-form-item",[a("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 a("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("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 a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("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"}},[a("el-option",{attrs:{label:"正式",value:"0"}}),e._v(" "),a("el-option",{attrs:{label:"试用",value:"1"}})],1)],1),e._v(" "),a("el-form-item",[a("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"}},[a("el-option",{attrs:{label:"是",value:"true"}}),e._v(" "),a("el-option",{attrs:{label:"否",value:"false"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"老师编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"老师名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(t.row.realName))]),e._v(" "),t.row.memo?a("p",[e._v(e._s("("+t.row.memo+")"))]):e._e()])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"150px",label:"老师状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("teacherStatus")(t.row.lockFlag)))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","show-overflow-tooltip":!0,width:"200px",label:"专业技能"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"max-height":"68px",display:"block"},attrs:{title:t.row.splitSubjectName}},[e._v(e._s(t.row.splitSubjectName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",width:"150px",label:"联系电话"}}),e._v(" "),a("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(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"vipNum",label:"已开小课"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"130px",label:"试听课安排"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.demoNum>0?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"120px",label:"开放网管课"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isSupportExtraPracticeLesson?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"运营指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.gotoOperating(t.row)}}},[e._v(e._s(t.row.operatingIndex+"%"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"服务指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.gotoAfterSchool(t.row)}}},[e._v(e._s(t.row.serviceIndex+"%"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",fixed:"right",width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherDetail",expression:"'/teacherDetail'"}],staticClass:"el-button--text",attrs:{to:{path:"/business/teacherDetail?teacherId="+t.row.id+"&teacherName="+t.row.realName}}},[e._v("查看")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherIperationUpdate",expression:"'/teacherIperationUpdate'"}],attrs:{type:"text"},on:{click:function(a){return e.onTeacher("update",t.row)}}},[e._v("修改")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"employee/employeeOperate",expression:"'employee/employeeOperate'"}],attrs:{type:"text"},on:{click:function(a){return e.onStaffOperation("LOCK_UNLOCK",t.row)}}},[e._v(e._s(1==t.row.lockFlag?"解冻":"冻结"))]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"api-auth/user/updatePassword2",expression:"'api-auth/user/updatePassword2'"}],attrs:{type:"text"},on:{click:function(a){return e.resetPassWrod(t.row)}}},[e._v("修改密码")])]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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(" "),a("el-dialog",{attrs:{title:"修改密码",visible:e.passwrodVisiable,"before-close":e.closePassWord,width:"400px"},on:{"update:visible":function(t){e.passwrodVisiable=t}}},[a("el-form",{ref:"passwrodForm",attrs:{model:e.passwrodForm,inline:!0}},[a("el-form-item",{attrs:{label:"手机号",prop:"phone","label-width":"80px",rules:[{required:!0,message:"手机号不能为空",trigger:"blur"},{pattern:/^1\d{10}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[a("el-input",{attrs:{minlength:"11",maxlength:"11"},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(" "),a("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"}]}},[a("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(" "),a("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"}]}},[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.passwrodVisiable=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitResetPassWord}},[e._v("确 定")])],1)],1)],1)},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 老师列表\n ")])}],n=(a("7f7f"),a("ac6a"),a("386d"),a("333d")),o=a("8018"),u=a("99b4"),s=a("d349"),i=a("1cc7"),c=a("92e3"),d=(a("4360"),{name:"teacherList",components:{pagination:n["a"]},data:function(){return{searchForm:{lockFlag:null,isProbationPeriod:null,jobNature:null,subjectId:null,organId:null,search:null,isSupportExtraPracticeLesson:null},jobNature:c["n"],teacherStatus:c["y"],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(i["Y"])().then((function(t){200==t.code&&(e.branchList=[],t.data.forEach((function(t){e.branchList.push({label:t.name,value:t.id})})))})),Object(s["D"])({delFlag:"NO",rows:9999}).then((function(t){var a=t.data;if(200==t.code){var r=[];a.rows.forEach((function(e,t){var a=[];e.subjects.forEach((function(e){a.push({value:e.id,label:e.name})})),r[t]={label:e.name,options:a}})),e.subjectList=r}}))},onTeacher:function(e,t){var a={type:e};t&&(a.teacherId=t.id);var r="/business/teacherOperation";"update"==e&&(r="/business/teacherOperationUpdate"),this.$router.push({path:r,query:a})},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["x"])(t).then((function(t){200==t.code&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},onStaffOperation:function(e,t){var a=this,r="";r=1!=t.lockFlag?"是否冻结".concat(t.realName,"老师?"):"是否解冻".concat(t.realName,"老师?"),this.$confirm(r,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["k"])({employeeId:t.id,operate:e}).then((function(e){200==e.code?(a.$message.success("更改成功"),a.roleStatus=!1,a.getList()):a.$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(i["ic"])({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,b=(a("b04d"),a("2877")),f=Object(b["a"])(p,r,l,!1,null,"6ee46fcf",null);t["default"]=f.exports},b04d:function(e,t,a){"use strict";a("fda6")},fda6:function(e,t,a){}}]);
|