1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b0987cd"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=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 r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function u(e,t,a){var u=r(),o=e-u,c=20,i=0;t="undefined"===typeof t?500:t;var s=function e(){i+=c;var r=Math.easeInOutQuad(i,u,o,t);n(r),i<t?l(e):a&&"function"===typeof a&&a()};s()}},"435e":function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"f",(function(){return r})),a.d(t,"d",(function(){return u})),a.d(t,"e",(function(){return o})),a.d(t,"b",(function(){return c})),a.d(t,"a",(function(){return i})),a.d(t,"g",(function(){return s})),a.d(t,"h",(function(){return b}));var l=a("829b"),n=function(e){return Object(l["a"])({url:"/api-web/schoolStaff/page",data:e,method:"post"})},r=function(e){return Object(l["a"])({url:"/api-web/schoolStaff/update",data:e,method:"post"})},u=function(e){return Object(l["a"])({url:"/api-web/schoolStaff/remove",data:e,params:e,method:"post"})},o=function(e){return Object(l["a"])({url:"/api-web/schoolStaff/resetPassword",data:e,params:e,method:"post"})},c=function(e){return Object(l["a"])({url:"/api-web/coursePatrolEvaluation/webPage",data:e,method:"post"})},i=function(e){return Object(l["a"])({url:"/api-web/coursePatrolEvaluation/detail/".concat(e),data:e,method:"get"})},s=function(e){return Object(l["a"])({url:"/api-web/coursePatrolEvaluation/update",data:e,method:"post"})},b=function(e){return Object(l["a"])({url:"/api-web/schoolStaff/updateAccount",data:e,method:"post"})}},"7c28":function(e,t,a){e.exports=a.p+"static/img/woman.9995a81d.png"},8341:function(e,t,a){},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return c})),a.d(t,"H",(function(){return i})),a.d(t,"s",(function(){return s})),a.d(t,"c",(function(){return b})),a.d(t,"D",(function(){return v})),a.d(t,"Y",(function(){return d})),a.d(t,"X",(function(){return f})),a.d(t,"d",(function(){return p})),a.d(t,"L",(function(){return m})),a.d(t,"w",(function(){return h})),a.d(t,"ab",(function(){return E})),a.d(t,"t",(function(){return O})),a.d(t,"o",(function(){return I})),a.d(t,"Z",(function(){return g})),a.d(t,"P",(function(){return T})),a.d(t,"cb",(function(){return _})),a.d(t,"db",(function(){return y})),a.d(t,"O",(function(){return w})),a.d(t,"T",(function(){return R})),a.d(t,"B",(function(){return L})),a.d(t,"l",(function(){return S})),a.d(t,"W",(function(){return A})),a.d(t,"bb",(function(){return N})),a.d(t,"I",(function(){return C})),a.d(t,"m",(function(){return M})),a.d(t,"v",(function(){return j})),a.d(t,"M",(function(){return k})),a.d(t,"f",(function(){return x})),a.d(t,"e",(function(){return P})),a.d(t,"K",(function(){return U})),a.d(t,"J",(function(){return G})),a.d(t,"S",(function(){return F})),a.d(t,"G",(function(){return V})),a.d(t,"a",(function(){return D})),a.d(t,"x",(function(){return H})),a.d(t,"p",(function(){return Y})),a.d(t,"n",(function(){return $})),a.d(t,"q",(function(){return B})),a.d(t,"g",(function(){return W})),a.d(t,"F",(function(){return X})),a.d(t,"r",(function(){return q})),a.d(t,"C",(function(){return K})),a.d(t,"A",(function(){return z})),a.d(t,"z",(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,"R",(function(){return ae})),a.d(t,"N",(function(){return le})),a.d(t,"E",(function(){return ne})),a.d(t,"y",(function(){return re})),a.d(t,"Q",(function(){return ue})),a.d(t,"U",(function(){return oe})),a.d(t,"V",(function(){return ce})),a.d(t,"b",(function(){return se}));var l=a("2d63"),n=a("768b"),r=a("267e"),u=sessionStorage.getItem("tenantConfig");u=u?JSON.parse(u):{};var o=u.tenantId,c=null,i=null;1==o?(i=[{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"}],c=[{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"}]):(i=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],c=[{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 s=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],b=[{label:"正常签到",value:1},{label:"异常签到",value:0}],v=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],d=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],f=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],p=[].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:"直播课购买"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],E=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],O=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],I=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],g=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],T=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],y=[{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:"会员续费"}]}],w=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],R=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],L=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",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:"高三"}],A=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],N=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],C=ie(r["musicGroupType"]),M=ie(r["classTime"]),j=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],k=ie(r["payOrderType"]),x=ie(r["auditType"]),P=ie(r["auditPaymentType"]),U=ie(r["orderServerType"]),G=ie(r["orderAuditType"]),F=ie(r["rewardModeType"]),V=ie(r["musicClassType"]),D=ie(r["ProbationPeriodStatus"]),H=ie(r["downListType"]),Y=ie(r["conclusion"]),$=ie(r["clientType"]),B=ie(r["couponType"]),W=ie(r["backType"]),X=ie(r["memberEnum"]),q=ie(r["coupontypeDetail"]),K=ie(r["issue"]),z=ie(r["feedbackType"]),J=ie(r["feedbackTypeDesc"]),Q=ie(r["campState"]),Z=ie(r["catgGoupType"]),ee=ie(r["catRole"]),te=ie(r["catType"]),ae=ie(r["quiteReason"]),le=ie(r["payUserType"]),ne=ie(r["levelStatus"]),re=ie(r["evaluateStatus"]),ue=ie(r["problemType"]),oe=ie(r["schoolUserType"]),ce=ie(r["shareLiveType"]);function ie(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var se=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(t,2),r=a[0],u=a[1],o={};if(e&&e.length){var c,i=Object(l["a"])(e);try{for(i.s();!(c=i.n()).done;){var s=c.value;o[s[r]]=s[u]}}catch(b){i.e(b)}finally{i.f()}}return o}},a2c38:function(e,t,a){"use strict";a("d466")},d466:function(e,t,a){},d4d10:function(e,t,a){"use strict";a.r(t);var l=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:"saveForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"keyword"}},[a("el-input",{staticClass:"seachInput",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.saveForm.save(),e.search()}(t)}},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword","string"===typeof t?t.trim():t)},expression:"searchForm.keyword"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},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.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"schoolId"}},[a("el-select",{attrs:{disabled:!e.searchForm.organId,filterable:"",clearable:"",placeholder:"请选择合作单位"},model:{value:e.searchForm.schoolId,callback:function(t){e.$set(e.searchForm,"schoolId","string"===typeof t?t.trim():t)},expression:"searchForm.schoolId"}},e._l(e.cooperationList,(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-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"userId",label:"用户编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"schoolName",label:"合作单位"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"username",label:"老师姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userType",label:"账号类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("schoolUserType")(t.row.userType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"账号状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("schoolUserStatus")(t.row.status)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"mobile",label:"联系电话"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"注册日期"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("auth",{attrs:{auths:"schoolStaff/update"}},[1==t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.updateStatus(t.row)}}},[e._v("冻结")]):e._e(),e._v(" "),9==t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.updateStatus(t.row)}}},[e._v("启用")]):e._e()],1),e._v(" "),a("auth",{attrs:{auths:"schoolStaff/updateAccount"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetCount(t.row)}}},[e._v("修改")])],1),e._v(" "),a("auth",{attrs:{auths:"schoolStaff/remove"}},[9==t.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.removeTeacherCount(t.row)}}},[e._v("删除")]):e._e()],1),e._v(" "),a("auth",{attrs:{auths:"schoolStaff/resetPassword"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetPwd(t.row)}}},[e._v("重置密码")])],1)],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改",width:"450px",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[e.dialogFormVisible?a("updateAccountModels",{ref:"updateAccountModelsRef",attrs:{activeRow:e.activeRow},on:{close:function(){e.dialogFormVisible=!1,e.getList()}}}):e._e(),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitMessage}},[e._v("确 定")])],1)],1)],1)},n=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 学校账号管理\n ")])}],r=a("c80c"),u=a("db72"),o=a("a8db"),c=(a("96cf"),a("3b8d")),i=(a("bc3a"),a("5f87"),a("333d")),s=(a("3908"),a("ed08")),b=a("99b4"),v=a("92e3"),d=a("435e"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{},[a("el-form",{ref:"form",staticClass:"eidtForm",attrs:{model:e.form,inline:!0,"label-position":"left"}},[a("el-form-item",{attrs:{label:"手机号",prop:"phone","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输入手机号",trigger:"change"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone","string"===typeof t?t.trim():t)},expression:"form.phone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"合作单位",prop:"coopId","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输选择合作单位",trigger:"change"}]}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择合作单位"},model:{value:e.form.coopId,callback:function(t){e.$set(e.form,"coopId",t)},expression:"form.coopId"}},e._l(e.cooperations,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"账号类型",prop:"userType","label-width":e.formLabelWidth,rules:[{required:!0,message:"请输选择账号类型",trigger:"change"}]}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择账号类型"},model:{value:e.form.userType,callback:function(t){e.$set(e.form,"userType",t)},expression:"form.userType"}},e._l(e.schoolUserTypeList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1)},p=[],m=(a("7c28"),a("1cc7")),h={props:["activeRow"],data:function(){return{formLabelWidth:"120px",form:{coopId:"",phone:"",staffId:"",userType:""},cooperations:[],schoolUserTypeList:v["U"]}},mounted:function(){var e=this;this.form.coopId=this.activeRow.schoolId,this.form.phone=this.activeRow.mobile,this.form.staffId=this.activeRow.id,this.form.userType=this.activeRow.userType,Object(m["Z"])({rows:1e3}).then((function(t){200==t.code&&(e.cooperations=t.data.rows)}))},methods:{submit:function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(){var t=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$refs.form.validate(function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(a){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!a){e.next=12;break}return e.prev=1,e.next=4,Object(d["h"])(Object(u["a"])({},t.form));case 4:e.sent,t.$message.success("修改成功"),t.$emit("close"),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},E=h,O=(a("e38d"),a("2877")),I=Object(O["a"])(E,f,p,!1,null,"1d4d8c9d",null),g=I.exports,T=["timer"],_={components:{pagination:i["a"],updateAccountModels:g},data:function(){return{searchForm:{keyword:null,organId:null,schoolId:null},courseType:v["u"],tableList:[],organList:[],cooperationList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},dialogFormVisible:!1,activeRow:null}},created:function(){},mounted:function(){this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){this.getList()},getList:function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(){var t,a,l,n,c;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,a=t.timer,l=Object(o["a"])(t,T),n=Object(u["a"])(Object(u["a"])({},l),{},{page:this.rules.page,rows:this.rules.limit},Object(s["b"])(a,["startTime","endTime"])),e.next=5,Object(d["c"])(Object(u["a"])(Object(u["a"])({},n),{},{page:this.rules.page,rows:this.rules.limit}));case 5:c=e.sent,this.tableList=c.data.rows,this.rules.total=c.data.total,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){var e=this;this.$nextTick((function(){e.getList()}))},resetCount:function(e){this.activeRow=e,this.dialogFormVisible=!0,console.log(e)},updateStatus:function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(t){var a,l,n=this;return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:a="",l="",1==t.status?(a='是否冻结"'.concat(t.username,'"该老师账号'),l="9"):(a='是否启用"'.concat(t.username,'"该老师账号'),l="1"),this.$confirm(a,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(c["a"])(Object(r["a"])().mark((function e(){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(d["f"])({id:t.id,status:l});case 3:e.sent,1==t.status?n.$message.success("冻结成功"):n.$message.success("启用成功"),n.getList(),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).catch((function(e){console.log(e)})),console.log(t);case 5:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),removeTeacherCount:function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(t){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm('是否删除"'.concat(t.username,'"该老师'),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(d["d"])({id:t.id});case 5:e.sent,this.$message.success("删除成功"),this.getList(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(t){return e.apply(this,arguments)}return t}(),resetPwd:function(){var e=Object(c["a"])(Object(r["a"])().mark((function e(t){return Object(r["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm('是否将"'.concat(t.username,'"该老师的密码重置为gym+手机号后4位'),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return e.next=5,Object(d["e"])({userId:t.userId});case 5:e.sent,this.$message.success("重置成功"),this.getList(),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](0),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[0,10]])})));function t(t){return e.apply(this,arguments)}return t}(),submitMessage:function(){this.$refs.updateAccountModelsRef.submit()}},watch:{"searchForm.organId":function(e){var t=this;e&&Object(b["E"])({organId:e,enable:!1}).then((function(e){200==e.code&&(t.cooperationList=e.data)}))}}},y=_,w=(a("a2c38"),Object(O["a"])(y,l,n,!1,null,null,null));t["default"]=w.exports},e38d:function(e,t,a){"use strict";a("8341")},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return u})),a.d(t,"b",(function(){return o})),a.d(t,"a",(function(){return c}));var l=a("bd86"),n=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),r=a.n(n);var u=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],n=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===n||"FALSE"===n?"TRUE"===n:a})}return t},o=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(n):""),Object(l["a"])(t,a[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(n):""),t):{}},c=function(e){var t,a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===u?(t={},Object(l["a"])(t,n[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(u)+" 00:00:00":""),Object(l["a"])(t,n[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(u)+" 23:59:59":""),t):(a={},Object(l["a"])(a,n[0]||"start",r()(e[0]).isValid()?r()(e[0]).format(u):""),Object(l["a"])(a,n[1]||"end",r()(e[1]).isValid()?r()(e[1]).format(u):""),a):{}}}}]);
|