chunk-1dc3c56e.f992f53d.js 34 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1dc3c56e"],{"0439":function(e,t,a){"use strict";a("7e80b")},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),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 r(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 i(e,t,a){var i=n(),u=e-i,o=20,s=0;t="undefined"===typeof t?500:t;var c=function e(){s+=o;var n=Math.easeInOutQuad(s,i,u,t);r(n),s<t?l(e):a&&"function"===typeof a&&a()};c()}},"3cc7":function(e,t,a){"use strict";a.d(t,"a",(function(){return u})),a.d(t,"h",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"f",(function(){return c})),a.d(t,"b",(function(){return p})),a.d(t,"g",(function(){return d})),a.d(t,"d",(function(){return m})),a.d(t,"e",(function(){return b}));var l=a("b775"),r=a("4328"),n=a.n(r),i="/api-web";function u(e){return Object(l["a"])({url:i+"/sporadicChargeInfo/add",method:"POST",data:n.a.stringify(e)})}function o(e){return Object(l["a"])({url:i+"/sporadicChargeInfo/update",method:"POST",data:n.a.stringify(e)})}function s(e){return Object(l["a"])({url:i+"/sporadicChargeInfo/queryPage",method:"GET",params:e})}function c(e){return Object(l["a"])({url:i+"/sporadicChargeInfo/delete",method:"POST",data:n.a.stringify(e)})}function p(e){return Object(l["a"])({url:"/api-auth/user/getBasic",method:"get",params:e})}function d(e){return Object(l["a"])({url:i+"/sporadicChargeInfo/updateOpenFlag",method:"POST",data:n.a.stringify(e)})}function m(e){return Object(l["a"])({url:i+"/musicGroup/queryOrganMusicInfos",method:"get",params:e})}function b(e){return Object(l["a"])({url:i+"/studentManage/queryUserMusicInfos",method:"get",params:e})}},"3ea5":function(e,t,a){"use strict";a("77b4")},"77b4":function(e,t,a){},"7e80b":function(e,t,a){},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return o})),a.d(t,"H",(function(){return s})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return p})),a.d(t,"D",(function(){return d})),a.d(t,"Y",(function(){return m})),a.d(t,"X",(function(){return b})),a.d(t,"d",(function(){return v})),a.d(t,"L",(function(){return f})),a.d(t,"w",(function(){return h})),a.d(t,"ab",(function(){return g})),a.d(t,"t",(function(){return y})),a.d(t,"o",(function(){return T})),a.d(t,"Z",(function(){return O})),a.d(t,"P",(function(){return _})),a.d(t,"cb",(function(){return E})),a.d(t,"db",(function(){return I})),a.d(t,"O",(function(){return C})),a.d(t,"T",(function(){return L})),a.d(t,"B",(function(){return S})),a.d(t,"l",(function(){return A})),a.d(t,"W",(function(){return R})),a.d(t,"bb",(function(){return j})),a.d(t,"I",(function(){return k})),a.d(t,"m",(function(){return w})),a.d(t,"v",(function(){return N})),a.d(t,"M",(function(){return D})),a.d(t,"f",(function(){return M})),a.d(t,"e",(function(){return G})),a.d(t,"K",(function(){return F})),a.d(t,"J",(function(){return x})),a.d(t,"S",(function(){return P})),a.d(t,"G",(function(){return U})),a.d(t,"a",(function(){return $})),a.d(t,"x",(function(){return V})),a.d(t,"p",(function(){return Y})),a.d(t,"n",(function(){return q})),a.d(t,"q",(function(){return H})),a.d(t,"g",(function(){return B})),a.d(t,"F",(function(){return W})),a.d(t,"r",(function(){return X})),a.d(t,"C",(function(){return z})),a.d(t,"A",(function(){return K})),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 re})),a.d(t,"y",(function(){return ne})),a.d(t,"Q",(function(){return ie})),a.d(t,"U",(function(){return ue})),a.d(t,"V",(function(){return oe})),a.d(t,"b",(function(){return ce}));var l=a("2d63"),r=a("768b"),n=a("267e"),i=sessionStorage.getItem("tenantConfig");i=i?JSON.parse(i):{};var u=i.tenantId,o=null,s=null;1==u?(s=[{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"}],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"},{label:"直播课",value:"LIVE"}]):(s=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{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 c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],p=[{label:"正常签到",value:1},{label:"异常签到",value:0}],d=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],m=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],b=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],v=[].concat(b,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),f=[{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:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],y=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],T=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],O=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],_=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],E=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],I=[{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:"会员续费"}]}],C=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],L=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],S=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],A=[{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:"高三"}],R=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],j=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],k=se(n["musicGroupType"]),w=se(n["classTime"]),N=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],D=se(n["payOrderType"]),M=se(n["auditType"]),G=se(n["auditPaymentType"]),F=se(n["orderServerType"]),x=se(n["orderAuditType"]),P=se(n["rewardModeType"]),U=se(n["musicClassType"]),$=se(n["ProbationPeriodStatus"]),V=se(n["downListType"]),Y=se(n["conclusion"]),q=se(n["clientType"]),H=se(n["couponType"]),B=se(n["backType"]),W=se(n["memberEnum"]),X=se(n["coupontypeDetail"]),z=se(n["issue"]),K=se(n["feedbackType"]),J=se(n["feedbackTypeDesc"]),Q=se(n["campState"]),Z=se(n["catgGoupType"]),ee=se(n["catRole"]),te=se(n["catType"]),ae=se(n["quiteReason"]),le=se(n["payUserType"]),re=se(n["levelStatus"]),ne=se(n["evaluateStatus"]),ie=se(n["problemType"]),ue=se(n["schoolUserType"]),oe=se(n["shareLiveType"]);function se(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),n=a[0],i=a[1],u={};if(e&&e.length){var o,s=Object(l["a"])(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;u[c[n]]=c[i]}}catch(p){s.e(p)}finally{s.f()}}return u}},ca97:function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"a",(function(){return n})),a.d(t,"h",(function(){return i})),a.d(t,"i",(function(){return u})),a.d(t,"b",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"f",(function(){return c})),a.d(t,"c",(function(){return p})),a.d(t,"g",(function(){return d}));var l=a("829b"),r=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/queryPageTrainingCamp",method:"post",data:e,requestType:"json"})},n=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/add",method:"post",data:e,requestType:"json"})},i=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/update",method:"post",data:e,requestType:"json"})},u=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/enable/"+e,method:"get"})},o=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/delete/".concat(e),method:"get"})},s=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/queryPageTrainingCampUser",method:"post",data:e,requestType:"json"})},c=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/queryUserTrainingDetail",method:"post",data:e,requestType:"json"})},p=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/queryCampImGroup",method:"get",data:e,params:e})},d=function(e){return Object(l["a"])({url:"/api-web/tempLittleArtistTrainingCamp/queryUserTrainingTime",method:"post",data:e})}},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return u})),a.d(t,"a",(function(){return o}));var l=a("bd86"),r=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),n=a.n(r);var i=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],r=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===r||"FALSE"===r?"TRUE"===r:a})}return t},u=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(r):""),Object(l["a"])(t,a[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(r):""),t):{}},o=function(e){var t,a,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===i?(t={},Object(l["a"])(t,r[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(i)+" 00:00:00":""),Object(l["a"])(t,r[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(i)+" 23:59:59":""),t):(a={},Object(l["a"])(a,r[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(i):""),Object(l["a"])(a,r[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(i):""),a):{}}},fcd7:function(e,t,a){"use strict";a.r(t);var l,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",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"name"}},[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.name,callback:function(t){e.$set(e.searchForm,"name","string"===typeof t?t.trim():t)},expression:"searchForm.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"state"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"训练营状态"},model:{value:e.searchForm.state,callback:function(t){e.$set(e.searchForm,"state","string"===typeof t?t.trim():t)},expression:"searchForm.state"}},e._l(e.campStateList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"enableFlag"}},[a("el-select",{attrs:{placeholder:"是否隐藏"},model:{value:e.searchForm.enableFlag,callback:function(t){e.$set(e.searchForm,"enableFlag",t)},expression:"searchForm.enableFlag"}},[a("el-option",{attrs:{label:"显示",value:1}}),e._v(" "),a("el-option",{attrs:{label:"隐藏",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"applyTime"}},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报名开始日期","end-placeholder":"报名结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.applyTime,callback:function(t){e.$set(e.searchForm,"applyTime","string"===typeof t?t.trim():t)},expression:"searchForm.applyTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"trainTime"}},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"训练开始日期","end-placeholder":"训练结束日期","picker-options":{firstDayOfWeek:1}},model:{value:e.searchForm.trainTime,callback:function(t){e.$set(e.searchForm,"trainTime","string"===typeof t?t.trim():t)},expression:"searchForm.trainTime"}})],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:"buttunWtap"},[a("auth",{attrs:{auths:"tempLittleArtistTrainingCamp/add"}},[a("el-button",{staticStyle:{"margin-bottom":"30px","margian-right":"10px"},attrs:{type:"primary"},on:{click:e.addCamp}},[e._v("新建训练营")])],1),e._v(" "),a("auth",{attrs:{auths:"tempLittleArtistTrainingCamp/queryPageTrainingCampUser"}},[a("el-button",{staticStyle:{display:"none","margin-bottom":"30px"},attrs:{type:"primary"},on:{click:e.getRosterList}},[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:"id",label:"训练营编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"训练营标题"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(e._f("campStateListFilter")(t.row.state))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"是否隐藏"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.enableFlag?"显示":"隐藏")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"报名时间段"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("dayjsFormat")(t.row.applyStartDate)))]),e._v(" "),a("p",[e._v(e._s(e._f("dayjsFormat")(t.row.applyEndDate)))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"studentId",label:"训练时间段"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",[e._v(e._s(e._f("dayjsFormat")(t.row.trainStartDate)))]),e._v(" "),a("p",[e._v(e._s(e._f("dayjsFormat")(t.row.trainEndDate)))])])]}}])}),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:"tempLittleArtistTrainingCamp/queryUserTrainingDetail"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.lookCamp(t.row)}}},[e._v("详情")])],1),e._v(" "),a("auth",{attrs:{auths:"tempLittleArtistTrainingCamp/update"}},[["NOT_START","APPLY","READY"].includes(t.row.state)?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetCamp(t.row)}}},[e._v("修改")]):e._e()],1),e._v(" "),a("auth",{attrs:{auths:"/tempLittleArtistTrainingCamp/enable"}},[a("el-button",{attrs:{type:"text"},on:{click:function(){return e.handleChangeState(t.row)}}},[e._v(e._s(t.row.enableFlag?"隐藏":"显示"))])],1),e._v(" "),["NOT_START","APPLY"].includes(t.row.state)?a("auth",{attrs:{auths:"tempLittleArtistTrainingCamp/delete"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.deleteCamp(t.row)}}},[e._v("删除")])],1):e._e()],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("eidtCamp",{ref:"eidtCamp",on:{getList:e.getList}}),e._v(" "),a("campRosterList",{ref:"campRosterList"})],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 ")])}],i=(a("7f7f"),a("c80c")),u=a("db72"),o=a("a8db"),s=(a("96cf"),a("3b8d")),c=(a("bc3a"),a("5f87"),a("333d")),p=(a("3908"),a("ed08")),d=a("92e3"),m=a("ca97"),b=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{width:"1200px",title:"参与名单",visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[a("div",{},[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[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: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",{attrs:{prop:"state"}},[a("el-select",{attrs:{clearable:"",placeholder:"状态"},model:{value:e.searchForm.state,callback:function(t){e.$set(e.searchForm,"state","string"===typeof t?t.trim():t)},expression:"searchForm.state"}},[a("el-option",{attrs:{value:"NOT_APPLY",label:"未报名"}}),e._v(" "),a("el-option",{attrs:{value:"APPLY",label:"已报名"}})],1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"multipleSelection",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"学员编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"state",label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",["NOT_APPLY"==t.row.state?a("p",[e._v("未报名")]):"APPLY"==t.row.state?a("p",[e._v("已报名")]):a("p",[e._v("--")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"campName",label:"训练营"}})],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("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onClose}},[e._v("确 定")])],1)])],1)},v=[],f=(a("386d"),{name:"campRosterList",components:{pagination:c["a"]},data:function(){return{searchForm:{search:"",state:""},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},lookVisible:!1,activeRow:{sendFlag:!1}}},mounted:function(){},methods:{getList:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["e"])(Object(u["a"])(Object(u["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,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,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.searchForm.state="",this.search()},onClose:function(){this.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}}),h=f,g=(a("0439"),a("2877")),y=Object(g["a"])(h,b,v,!1,null,"f396228c",null),T=y.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{staticClass:"dialog",attrs:{width:"630px",title:e.title,visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[a("el-form",{ref:"eidtCamp",staticClass:"elForm",attrs:{"label-position":"top",model:e.formes,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"训练营标题",rules:[{required:!0,message:"请输入训练营标题"}],prop:"name"}},[a("el-input",{staticClass:"w100",model:{value:e.formes.name,callback:function(t){e.$set(e.formes,"name",t)},expression:"formes.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"适用分部",prop:"organIds",rules:[{required:!0,message:"请选择分部"}]}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{multiple:"",clearable:"",filterable:""},on:{change:e.handleChangeOrgan},model:{value:e.formes.organIds,callback:function(t){e.$set(e.formes,"organIds",t)},expression:"formes.organIds"}},e._l(e.organs,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id+""}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"适用乐团",prop:"musicGroupIds"}},[a("el-select",{staticStyle:{width:"100% !important"},attrs:{multiple:"",clearable:"",filterable:""},model:{value:e.formes.musicGroupIds,callback:function(t){e.$set(e.formes,"musicGroupIds",t)},expression:"formes.musicGroupIds"}},e._l(e.musicGroups,(function(e){return a("el-option",{key:e.musicGroupId,attrs:{label:e.musicGroupName,value:e.musicGroupId}})})),1)],1),e._v(" "),a("div",{staticClass:"wrap"},[a("el-form-item",{attrs:{prop:"applyTime",label:"报名时间",rules:[{required:!0,message:"请选择报名时间"}]}},[a("el-date-picker",{staticClass:"w100",attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"报名开始日期","end-placeholder":"报名结束日期","picker-options":e.payDate()},on:{change:function(){e.formes.trainTime=[]}},model:{value:e.formes.applyTime,callback:function(t){e.$set(e.formes,"applyTime","string"===typeof t?t.trim():t)},expression:"formes.applyTime"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"trainTime",label:"训练时间",rules:[{required:!0,message:"请选择训练时间"}]}},[a("el-date-picker",{staticClass:"w100",attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"训练开始日期","end-placeholder":"训练结束日期","picker-options":e.payendTimer},model:{value:e.formes.trainTime,callback:function(t){e.$set(e.formes,"trainTime","string"===typeof t?t.trim():t)},expression:"formes.trainTime"}})],1)],1),e._v(" "),a("div",{staticClass:"wrap"},[a("el-form-item",{attrs:{label:"打卡标准",prop:"signStandard",rules:[{required:!0,message:"请输入打卡标准"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"}]}},[a("el-input",{attrs:{placeholder:"请输入打卡标准"},model:{value:e.formes.signStandard,callback:function(t){e.$set(e.formes,"signStandard",t)},expression:"formes.signStandard"}},[a("template",{slot:"append"},[e._v("分钟/天")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"达标天数",prop:"standardDays",rules:[{required:!0,message:"请输入最低打卡天数"},{pattern:/^[1-9][0-9]*$/,message:"请输入大于0的正整数"}]}},[a("el-input",{attrs:{placeholder:"请输入最低打卡天数"},model:{value:e.formes.standardDays,callback:function(t){e.$set(e.formes,"standardDays",t)},expression:"formes.standardDays"}},[a("template",{slot:"append"},[e._v("天")])],2)],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.onClose}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitMsg}},[e._v("确 定")])],1)],1)],1)},_=[],E=(a("28a5"),a("c7f0")),I=a("99b4"),C=a("3cc7"),L=["applyTime","trainTime","organIds","musicGroupIds"],S=["applyTime","trainTime","organIds","musicGroupIds"],A={name:"eidtCamp",components:{Upload:E["a"]},data:function(){return{title:"",organs:[],musicGroups:[],timer:"",formes:{id:"",name:"",picUrl:"",applyTime:[],trainTime:[],organIds:[],musicGroupIds:[],signStandard:null,standardDays:null},lookVisible:!1,chioseIdList:null,activeRow:null}},mounted:function(){l=this,this.init()},methods:{init:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){var t;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(I["G"])();case 2:t=e.sent,Array.isArray(null===t||void 0===t?void 0:t.data)&&(this.organs=t.data);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getOrganMusicInfos:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){var t,a,l;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=((null===(t=this.formes)||void 0===t?void 0:t.organIds)||[]).join(","),console.log("🚀 ~ organId:",a),a){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,Object(C["d"])({organId:a});case 6:l=e.sent,Array.isArray(null===l||void 0===l?void 0:l.data)&&(this.musicGroups=l.data);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleChangeOrgan:function(){var e=this;this.formes.musicGroupIds=[],clearTimeout(this.timer),this.timer=setTimeout((function(){e.getOrganMusicInfos()}),1e3)},openDioag:function(e){var t,a,l,r;e&&e.id?(this.activeRow=e,this.title="修改训练营",this.formes=Object(u["a"])(Object(u["a"])({},e),{},{organIds:(null===(t=e.organIds)||void 0===t||null===(a=t.split(","))||void 0===a?void 0:a.filter(Boolean))||[],musicGroupIds:(null===(l=e.musicGroupIds)||void 0===l||null===(r=l.split(","))||void 0===r?void 0:r.filter(Boolean))||[],applyTime:[e.applyStartDate,e.applyEndDate],trainTime:[e.trainStartDate,e.trainEndDate]}),this.getOrganMusicInfos()):this.title="新建训练营";this.lookVisible=!0},onClose:function(){this.activeRow=null,this.formes={id:"",name:"",picUrl:"",applyTime:[],trainTime:[],organIds:[],musicGroupIds:[],signStandard:null,standardDays:null},this.$refs["eidtCamp"].resetFields(),this.lookVisible=!1},submitMsg:function(){var e=this;this.$refs.eidtCamp.validate(function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(a){var l,r,n,s,c,d,b,v,f,h,g,y,T,O;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=26;break}if(t.prev=1,!e.activeRow||!e.activeRow.id){t.next=13;break}return l=e.formes,r=l.applyTime,n=l.trainTime,s=l.organIds,c=l.musicGroupIds,d=Object(o["a"])(l,L),b=Object(u["a"])(Object(u["a"])(Object(u["a"])({},d),{},{organIds:null===s||void 0===s?void 0:s.join(","),musicGroupIds:null===c||void 0===c?void 0:c.join(",")},Object(p["b"])(r,["applyStartDate","applyEndDate"])),Object(p["b"])(n,["trainStartDate","trainEndDate"])),t.next=7,Object(m["h"])(Object(u["a"])({},b));case 7:t.sent,e.$message.success("修改成功"),e.onClose(),e.$emit("getList"),t.next=21;break;case 13:return v=e.formes,f=v.applyTime,h=v.trainTime,g=v.organIds,y=v.musicGroupIds,T=Object(o["a"])(v,S),O=Object(u["a"])(Object(u["a"])(Object(u["a"])({},T),{},{organIds:null===g||void 0===g?void 0:g.join(","),musicGroupIds:null===y||void 0===y?void 0:y.join(",")},Object(p["b"])(f,["applyStartDate","applyEndDate"])),Object(p["b"])(h,["trainStartDate","trainEndDate"])),t.next=17,Object(m["a"])(Object(u["a"])({},O));case 17:t.sent,e.$message.success("新建成功"),e.onClose(),e.$emit("getList");case 21:t.next=26;break;case 23:t.prev=23,t.t0=t["catch"](1),console.log(t.t0);case 26:case"end":return t.stop()}}),t,null,[[1,23]])})));return function(e){return t.apply(this,arguments)}}())},getName:function(e){this.formes.fileName=e.data.name},payDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}}},computed:{payendTimer:function(){return{firstDayOfWeek:1,disabledDate:function(e){return Array.isArray(l.formes.applyTime)&&l.formes.applyTime[1]?e.getTime()<=new Date(l.formes.applyTime[1]).getTime():e.getTime()<=(new Date).getTime()}}}}},R=A,j=(a("3ea5"),Object(g["a"])(R,O,_,!1,null,"7e721aed",null)),k=j.exports,w=["applyTime","trainTime"],N={components:{pagination:c["a"],eidtCamp:k,campRosterList:T},data:function(){return{searchForm:{search:null,state:null,applyTime:[],trainTime:[],enableFlag:null},campStateList:d["h"],tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.getList()},handleChangeState:function(e){var t=this;Object(m["i"])(e.id).then((function(){t.getList()}))},getList:function(){var e=Object(s["a"])(Object(i["a"])().mark((function e(){var t,a,l,r,n,s;return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.searchForm,a=t.applyTime,l=t.trainTime,r=Object(o["a"])(t,w),n=Object(u["a"])(Object(u["a"])(Object(u["a"])({},r),{},{page:this.rules.page,rows:this.rules.limit},Object(p["b"])(a,["applyStartDate","applyEndDate"])),Object(p["b"])(l,["trainStartDate","trainEndDate"])),e.prev=2,e.next=5,Object(m["d"])(Object(u["a"])({},n));case 5:s=e.sent,this.tableList=s.data.rows,this.rules.total=s.data.total,e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[2,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()}))},lookCamp:function(e){console.log(e),this.$router.push({path:"/operateManager/aristCampDetail",query:{id:e.id,imGroupIds:e.imGroupIds,name:e.name}})},resetCamp:function(e){this.$refs.eidtCamp.openDioag(e)},deleteCamp:function(e){var t=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(m["b"])(e.id).then((function(e){200===e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch()},addCamp:function(){this.$refs.eidtCamp.openDioag()},getRosterList:function(){this.$refs.campRosterList.openDioag()}}},D=N,M=Object(g["a"])(D,r,n,!1,null,"27e2646c",null);t["default"]=M.exports}}]);