chunk-29ef4988.b0cf3254.js 30 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29ef4988"],{"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,c=0;t="undefined"===typeof t?500:t;var i=function e(){c+=s;var n=Math.easeInOutQuad(c,o,u,t);l(n),c<t?r(e):a&&"function"===typeof a&&a()};i()}},1766:function(e,t,a){},8018:function(e,t,a){"use strict";a.d(t,"w",(function(){return s})),a.d(t,"t",(function(){return c})),a.d(t,"h",(function(){return i})),a.d(t,"e",(function(){return d})),a.d(t,"v",(function(){return b})),a.d(t,"u",(function(){return p})),a.d(t,"n",(function(){return f})),a.d(t,"C",(function(){return v})),a.d(t,"D",(function(){return m})),a.d(t,"y",(function(){return h})),a.d(t,"x",(function(){return g})),a.d(t,"B",(function(){return _})),a.d(t,"g",(function(){return y})),a.d(t,"q",(function(){return E})),a.d(t,"z",(function(){return I})),a.d(t,"A",(function(){return O})),a.d(t,"s",(function(){return w})),a.d(t,"i",(function(){return N})),a.d(t,"m",(function(){return S})),a.d(t,"r",(function(){return T})),a.d(t,"a",(function(){return L})),a.d(t,"l",(function(){return P})),a.d(t,"o",(function(){return A})),a.d(t,"p",(function(){return C})),a.d(t,"k",(function(){return R})),a.d(t,"d",(function(){return j})),a.d(t,"c",(function(){return F})),a.d(t,"j",(function(){return k})),a.d(t,"b",(function(){return x})),a.d(t,"f",(function(){return M}));var r=a("b775"),l=a("4328"),n=a.n(l),o=a("829b"),u="/api-web";function s(e){return Object(r["a"])({url:u+"/teacher/queryPage",method:"get",params:e})}function c(e){return Object(r["a"])({url:u+"/teacher/get",method:"get",params:e})}function i(e){return Object(r["a"])({url:u+"/teacher/getTeacherMusicClass",method:"get",params:e})}function d(e){return Object(r["a"])({url:u+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function b(e){return Object(r["a"])({url:u+"/teacher/queryCloses",method:"get",params:e})}function p(e){return Object(r["a"])({url:u+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function f(e){return Object(r["a"])({url:u+"/teacher/sumTeacherNoPay",method:"get",params:e})}function v(e){return Object(r["a"])({url:u+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function m(e){return Object(o["a"])({url:u+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function h(e){return Object(r["a"])({url:u+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function g(e){return Object(r["a"])({url:u+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function _(e){return Object(r["a"])({url:u+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:n.a.stringify(e)})}function y(e){return Object(r["a"])({url:u+"/school/findVipSchoolByTeacher",method:"get",params:e})}function E(e){return Object(r["a"])({url:u+"/teacher/add",method:"post",data:n.a.stringify(e)})}function I(e){return Object(r["a"])({url:u+"/teacher/update",method:"post",data:n.a.stringify(e)})}function O(e){return Object(r["a"])({url:u+"/teacher/update1",method:"post",data:n.a.stringify(e)})}function w(e){return Object(r["a"])({url:u+"/teacherFreeTime/query",method:"get",params:e})}function N(e){return Object(r["a"])({url:u+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function S(e){return Object(r["a"])({url:u+"/teacherFreeTime/updateSet",method:"post",data:n.a.stringify(e)})}function T(e){return Object(r["a"])({url:u+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function L(e){return Object(o["a"])({url:u+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function P(e){return Object(r["a"])({url:u+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function A(e){return Object(r["a"])({url:u+"/sysTenantAccount/addMinutes",method:"post",data:n.a.stringify(e)})}function C(e){return Object(r["a"])({url:u+"/sysTenantAccount/subtractMinutes",method:"post",data:n.a.stringify(e)})}function R(e){return Object(r["a"])({url:u+"/sysTenantAccount/get",method:"get",params:e})}function j(e){return Object(r["a"])({url:u+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function F(e){return Object(r["a"])({url:u+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:n.a.stringify(e)})}function k(e){return Object(r["a"])({url:u+"/teacher/queryStudent",method:"get",params:e})}function x(e){return Object(r["a"])({url:u+"/studentManage/batchUpdateAdviser",method:"post",data:n.a.stringify(e)})}function M(e){return Object(r["a"])({url:u+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"92e3":function(e,t,a){"use strict";a.d(t,"v",(function(){return s})),a.d(t,"I",(function(){return c})),a.d(t,"t",(function(){return i})),a.d(t,"c",(function(){return d})),a.d(t,"E",(function(){return b})),a.d(t,"bb",(function(){return p})),a.d(t,"Z",(function(){return f})),a.d(t,"d",(function(){return v})),a.d(t,"M",(function(){return m})),a.d(t,"x",(function(){return h})),a.d(t,"db",(function(){return g})),a.d(t,"u",(function(){return _})),a.d(t,"o",(function(){return y})),a.d(t,"cb",(function(){return E})),a.d(t,"Q",(function(){return I})),a.d(t,"fb",(function(){return O})),a.d(t,"gb",(function(){return w})),a.d(t,"P",(function(){return N})),a.d(t,"U",(function(){return S})),a.d(t,"C",(function(){return T})),a.d(t,"l",(function(){return L})),a.d(t,"Y",(function(){return P})),a.d(t,"eb",(function(){return A})),a.d(t,"J",(function(){return C})),a.d(t,"m",(function(){return R})),a.d(t,"w",(function(){return j})),a.d(t,"N",(function(){return F})),a.d(t,"f",(function(){return k})),a.d(t,"e",(function(){return x})),a.d(t,"L",(function(){return M})),a.d(t,"K",(function(){return G})),a.d(t,"T",(function(){return U})),a.d(t,"H",(function(){return D})),a.d(t,"a",(function(){return $})),a.d(t,"y",(function(){return H})),a.d(t,"p",(function(){return V})),a.d(t,"n",(function(){return B})),a.d(t,"q",(function(){return q})),a.d(t,"g",(function(){return W})),a.d(t,"G",(function(){return Y})),a.d(t,"r",(function(){return z})),a.d(t,"D",(function(){return K})),a.d(t,"B",(function(){return X})),a.d(t,"A",(function(){return J})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"S",(function(){return ae})),a.d(t,"O",(function(){return re})),a.d(t,"F",(function(){return le})),a.d(t,"z",(function(){return ne})),a.d(t,"R",(function(){return oe})),a.d(t,"V",(function(){return ue})),a.d(t,"X",(function(){return se})),a.d(t,"s",(function(){return ce})),a.d(t,"ab",(function(){return ie})),a.d(t,"W",(function(){return de})),a.d(t,"b",(function(){return pe}));var r=a("b85c"),l=a("3835"),n=a("267e"),o=sessionStorage.getItem("tenantConfig");o=o?JSON.parse(o):{};var u=o.tenantId,s=null,c=null;1==u?(c=[{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:"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"},{label:"直播课",value:"LIVE"}]):(c=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var i=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],b=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],v=[].concat(f,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),m=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],_=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],y=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],E=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],I=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],O=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],w=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],N=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],S=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],T=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],L=[{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:"高三"}],P=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],A=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],C=be(n["musicGroupType"]),R=be(n["classTime"]),j=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],F=be(n["payOrderType"]),k=be(n["auditType"]),x=be(n["auditPaymentType"]),M=be(n["orderServerType"]),G=be(n["orderAuditType"]),U=be(n["rewardModeType"]),D=be(n["musicClassType"]),$=be(n["ProbationPeriodStatus"]),H=be(n["downListType"]),V=be(n["conclusion"]),B=be(n["clientType"]),q=be(n["couponType"]),W=be(n["backType"]),Y=be(n["memberEnum"]),z=be(n["coupontypeDetail"]),K=be(n["issue"]),X=be(n["feedbackType"]),J=be(n["feedbackTypeDesc"]),Q=be(n["campState"]),Z=be(n["catgGoupType"]),ee=be(n["catRole"]),te=be(n["catType"]),ae=be(n["quiteReason"]),re=be(n["payUserType"]),le=be(n["levelStatus"]),ne=be(n["evaluateStatus"]),oe=be(n["problemType"]),ue=be(n["schoolUserType"]),se=be(n["shareLiveType"]),ce=be(n["courseEmnu"]),ie=be(n["suggestionType"]),de=be(n["scoreType"]);function be(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var pe=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,c=Object(r["a"])(e);try{for(c.s();!(s=c.n()).done;){var i=s.value;u[i[n]]=i[o]}}catch(d){c.e(d)}finally{c.f()}}return u}},ad24:function(e,t,a){"use strict";a("1766")},adb21:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var r=a("bc3a"),l=a.n(r),n=(a("4328"),a("5f87")),o=a("3908"),u=a("e3eb"),s=a.n(u),c=function(e,t,a,r){var u=t.url,c={method:t.method?t.method:"get",headers:{Authorization:Object(n["b"])(),tenantId:Object(n["a"])()},url:u,responseType:"blob"};"post"==c.method?c.data=t.params:c.params=t.params,e.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),l()(s()(c)).then((function(a){var l=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(l).text();n.then((function(a){if(-1!=a.indexOf("code")){var n=JSON.parse(a);if(403==n.code)return e.$message.error("登录过期,请重新登录!"),void setTimeout((function(){e.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==n.code?e.$message.success(n.msg):e.$message.error(n.msg),r&&r()}else{var o=URL.createObjectURL(l),u=document.createElement("a"),s=t.fileName||"导出文件.xls";u.href=o,u.setAttribute("download",s),document.body.appendChild(u),u.click(),r&&r()}})),o["a"].endLoading()})).catch((function(t){console.log(t),e.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}},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("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-input",{attrs:{clearable:"",placeholder:"老师姓名或电话"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(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",{staticStyle:{width:"100% !important"},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.selects.subjects,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{filterable:"",clearable:"",multiple:"","collapse-tags":"",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.selects.branchs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),28!=e.tenantConfig.tenantId?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._e(),e._v(" "),28!=e.tenantConfig.tenantId?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"}},e._l(e.ProbationPeriodList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),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("重置")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"export/teacherList",expression:"'export/teacherList'"}],attrs:{type:"primary"},on:{click:e.downLoadTeacher}},[e._v("导出")])],1)],1),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/teacherOperationAdd",expression:"'/teacherOperationAdd'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(t){return e.onTeacher("create")}}},[e._v("\n 老师新增\n ")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[28!=e.tenantConfig.tenantId?a("el-table-column",{attrs:{align:"center",prop:"organName",label:"所属分部","current-row-key":"organName"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"老师编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"老师名称","current-row-key":"realName"},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",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:"专业技能","current-row-key":"splitSubjectName"},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(" "),28!=e.tenantConfig.tenantId?a("el-table-column",{attrs:{align:"center",label:"员工状态","current-row-key":"isProbationPeriod"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("ProbationPeriod")(t.row.isProbationPeriod))+"\n ")]}}],null,!1,1463196606)}):e._e(),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:"工作类型","current-row-key":"jobNature"},scopedSlots:e._u([{key:"default",fn:function(t){return[28===t.row.tenantId?a("p",[e._v("\n 自由工作者\n ")]):a("p",[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[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.formalStaffDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"离职日期"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("dayjsFormat")(t.row.demissionDate))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",fixed:"right",width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("auth",{attrs:{auths:"/teacherDetail"}},[a("router-link",{staticClass:"el-button--text",attrs:{to:{path:"/business/teacherDetail?teacherId="+t.row.id+"&teacherName="+t.row.realName}}},[e._v("查看")])],1),e._v(" "),a("auth",{attrs:{auths:"/teacherOperationUpdate"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onTeacher("update",t.row)}}},[e._v("修改")])],1),e._v(" "),a("auth",{attrs:{auths:1==t.row.lockFlag?"employee/employeeOperate/UNLOCK":"employee/employeeOperate/LOCK"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onStaffOperation("LOCK_UNLOCK",t.row)}}},[e._v(e._s(1==t.row.lockFlag?"解冻":"冻结"))])],1),e._v(" "),a("auth",{attrs:{auths:"user/updatePassword2"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPassWrod(t.row)}}},[e._v("修改密码")])],1),e._v(" "),t.row.contractUrl?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.onDownloadProtocol(t.row)}}},[e._v("下载协议")]):e._e()]}}])})],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("copy-text",[e._v(e._s(e.passwrodForm.phone))])],1),e._v(" "),a("el-form-item",{attrs:{label:"输入密码",prop:"password","label-width":"80px",rules:[{required:!0,message:"密码不能为空",trigger:"blur"},{pattern:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{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:/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{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("5530"),o=a("c7eb"),u=(a("96cf"),a("1da1")),s=(a("386d"),a("333d")),c=a("8018"),i=a("99b4"),d=a("1cc7"),b=a("adb21"),p=a("e3eb"),f=a.n(p),v=a("92e3"),m=(a("4360"),{name:"teacherList",components:{pagination:s["a"]},data:function(){return{searchForm:{lockFlag:null,isProbationPeriod:null,jobNature:null,subjectId:null,organId:[],search:null,isSupportExtraPracticeLesson:null},jobNature:v["E"],teacherStatus:v["bb"],ProbationPeriodList:v["a"],subjectList:[],branchList:[],tableList:[],pageInfo:{limit:10,page:1,total:1,page_size:[10,20,40,50]},passwrodVisiable:!1,passwrodForm:{phone:"",password:"",password2:""},activatedRow:null,lookServer:!1,infoList:[],tenantConfig:{}}},mounted:function(){var e=sessionStorage.getItem("tenantConfig");e=e?JSON.parse(e):{},this.tenantConfig=e,this.$route.params.search&&(this.searchForm.search=this.$route.params.search),this.__init(),this.getList()},methods:{search:function(){this.pageInfo.page=1,this.getList()},__init:function(){var e=Object(u["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("setBranchs");case 2:return e.next=4,this.$store.dispatch("setSubjects");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onTeacher:function(e,t){var a={type:e};t&&(a.teacherId=t.id,a.teacherName=t.realName);var r="/business/teacherOperation";this.$router.push({path:r,query:a},(function(t){t.meta.title="update"==e?"老师修改":"老师新增"}))},downLoadTeacher:function(){var e=Object(n["a"])({},this.searchForm);e.lockFlag?e.lockFlag:e.lockFlag=null,e.isProbationPeriod?e.isProbationPeriod:e.isProbationPeriod=null,e.jobNature?e.jobNature:e.jobNature=null,e.subjectId?e.subjectId:e.subjectId=null,e.search?e.search:e.search=null,e.organId=this.searchForm.organId.join(","),e.isSupportExtraPracticeLesson?e.isSupportExtraPracticeLesson:e.isSupportExtraPracticeLesson=null,Object(b["a"])(this,{url:"/api-web/export/teacherList",fileName:"老师列表导出.xls",params:f()(Object(n["a"])({},e))},"是否确认导出老师列表?")},onDownloadProtocol:function(e){window.location.href=e.contractUrl},getList:function(){var e=this,t=Object(n["a"])({},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,t.organId=this.searchForm.organId.join(","),Object(c["w"])(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(i["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:[],subjectId:null,search:null},this.search()},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(d["zc"])({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("两次密码必须相同")}}}),h=m,g=(a("ad24"),a("2877")),_=Object(g["a"])(h,r,l,!1,null,"71d2ef28",null);t["default"]=_.exports}}]);