chunk-c0b0701c.cb6ab130.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c0b0701c"],{"0628":function(e,l,a){"use strict";a.r(l);var t=function(){var e=this,l=e.$createElement,a=e._self._c||l;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("save-form",{staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"type"}},[a("el-form-item",[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"文件搜索类型"},model:{value:e.searchForm.type,callback:function(l){e.$set(e.searchForm,"type","string"===typeof l?l.trim():l)},expression:"searchForm.type"}},e._l(e.downTypeList,(function(e,l){return a("el-option",{key:l,attrs:{value:e.value,label:e.label}})})),1)],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("重置")]),e._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"managerDownload/batchDel"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.clearRecord}},[e._v("清除记录")])],1)],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{ref:"tableList",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange,select:e.onTableSelect}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{width:"120",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:"type",label:"文件类型"},scopedSlots:e._u([{key:"default",fn:function(l){return[a("div",[e._v("\n "+e._s(e._f("downListType")(l.row.type))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"文件状态"},scopedSlots:e._u([{key:"default",fn:function(l){return[a("div",[e._v("\n "+e._s(0==l.row.status?"生成中":"已生成")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:" createTime",label:"生成时间"},scopedSlots:e._u([{key:"default",fn:function(l){return[a("div",[e._v("\n "+e._s(e._f("dateForMinFormat")(l.row.createTime))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"fileUrl",label:"下载地址",align:"center"},scopedSlots:e._u([{key:"default",fn:function(l){return[a("div",[0!=l.row.status?a("a",{staticStyle:{color:"var(--color-primary)"},attrs:{href:l.row.fileUrl,target:"view_window"}},[e._v("点击下载")]):e._e()])]}}])})],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(l){return e.$set(e.rules,"total",l)},"update:page":function(l){return e.$set(e.rules,"page",l)},"update:limit":function(l){return e.$set(e.rules,"limit",l)},pagination:e.getList}})],1)],1)])},n=[function(){var e=this,l=e.$createElement,a=e._self._c||l;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 下载列表\n ")])}],u=(a("386d"),a("c80c")),r=(a("ac6a"),a("db72")),i=(a("96cf"),a("3b8d")),o=(a("bc3a"),a("5f87"),a("333d")),c=(a("3908"),a("92e3")),s=(a("b775"),a("829b")),b=(a("4328"),"/api-web");function v(e){return Object(s["a"])({url:b+"/managerDownload/queryPage",method:"get",params:e})}function d(e){return Object(s["a"])({url:b+"/managerDownload/batchDel",method:"post",data:e,requestType:"form"})}var f={components:{pagination:o["a"]},data:function(){return{searchForm:{order:null,userId:null},downTypeList:c["x"],tableList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},deleteList:[]}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var e=Object(i["a"])(Object(u["a"])().mark((function e(){var l,a,t=this;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v(Object(r["a"])(Object(r["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit}));case 3:l=e.sent,this.tableList=l.data.rows,this.rules.total=l.data.total,a=this.deleteList.map((function(e){return e.id})),this.$nextTick((function(){t.tableList.forEach((function(e){-1!=a.indexOf(e.id)&&(console.log(e.id),t.$refs.tableList.toggleRowSelection(e,!0))})),t.isDetele=!1})),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 l(){return e.apply(this,arguments)}return l}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.type=null,this.clearCom(),this.search()},handleSelectionChange:function(e){var l=this;if(e.length>0)this.deleteList=this.deleteList.concat(e),this.deleteList=this.$helpers.lodash.uniqBy(this.deleteList,"id");else{if(this.isDetele)return;var a=this.deleteList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];l.tableList.forEach((function(t){e.push(t.id),-1!=a.indexOf(t.id)&&l.$refs.tableList.toggleRowSelection(t,!1)})),l.deleteList=l.$helpers.lodash.remove(l.deleteList,(function(l){return-1==e.indexOf(l.id)})),l.deleteList.length<=0&&l.clearCom()}))}},onTableSelect:function(e,l){var a=this.deleteList.map((function(e){return e.id}));-1!=a.indexOf(l.id)&&(this.deleteList.splice(a.indexOf(l.id),1),this.deleteList.length<=0&&this.clearCom())},clearCom:function(){this.$set(this,"deleteList",[]),this.$refs.tableList.clearSelection()},clearRecord:function(){var e=Object(i["a"])(Object(u["a"])().mark((function e(){var l;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(this.deleteList.length<=0)){e.next=3;break}return this.$message.error("请至少勾选一条记录"),e.abrupt("return");case 3:return e.prev=3,l=this.deleteList.map((function(e){return e.id})),e.next=7,d({ids:l.join(",")});case 7:e.sent,this.$message.success("清除成功"),this.clearCom(),this.getList(),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](3),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[3,13]])})));function l(){return e.apply(this,arguments)}return l}()}},p=f,E=a("2877"),h=Object(E["a"])(p,t,n,!1,null,"6c21d6c8",null);l["default"]=h.exports},"09f4":function(e,l,a){"use strict";a.d(l,"a",(function(){return r})),Math.easeInOutQuad=function(e,l,a,t){return e/=t/2,e<1?a/2*e*e+l:(e--,-a/2*(e*(e-2)-1)+l)};var t=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function u(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function r(e,l,a){var r=u(),i=e-r,o=20,c=0;l="undefined"===typeof l?500:l;var s=function e(){c+=o;var u=Math.easeInOutQuad(c,r,i,l);n(u),c<l?t(e):a&&"function"===typeof a&&a()};s()}},"92e3":function(e,l,a){"use strict";a.d(l,"u",(function(){return o})),a.d(l,"H",(function(){return c})),a.d(l,"s",(function(){return s})),a.d(l,"c",(function(){return b})),a.d(l,"D",(function(){return v})),a.d(l,"Y",(function(){return d})),a.d(l,"X",(function(){return f})),a.d(l,"d",(function(){return p})),a.d(l,"L",(function(){return E})),a.d(l,"w",(function(){return h})),a.d(l,"ab",(function(){return m})),a.d(l,"t",(function(){return L})),a.d(l,"o",(function(){return T})),a.d(l,"Z",(function(){return I})),a.d(l,"P",(function(){return O})),a.d(l,"cb",(function(){return _})),a.d(l,"db",(function(){return N})),a.d(l,"O",(function(){return R})),a.d(l,"T",(function(){return S})),a.d(l,"B",(function(){return A})),a.d(l,"l",(function(){return y})),a.d(l,"W",(function(){return C})),a.d(l,"bb",(function(){return g})),a.d(l,"I",(function(){return M})),a.d(l,"m",(function(){return w})),a.d(l,"v",(function(){return G})),a.d(l,"M",(function(){return U})),a.d(l,"f",(function(){return P})),a.d(l,"e",(function(){return D})),a.d(l,"K",(function(){return H})),a.d(l,"J",(function(){return x})),a.d(l,"S",(function(){return k})),a.d(l,"G",(function(){return F})),a.d(l,"a",(function(){return V})),a.d(l,"x",(function(){return $})),a.d(l,"p",(function(){return j})),a.d(l,"n",(function(){return B})),a.d(l,"q",(function(){return Y})),a.d(l,"g",(function(){return X})),a.d(l,"F",(function(){return q})),a.d(l,"r",(function(){return K})),a.d(l,"C",(function(){return W})),a.d(l,"A",(function(){return z})),a.d(l,"z",(function(){return J})),a.d(l,"h",(function(){return Q})),a.d(l,"k",(function(){return Z})),a.d(l,"i",(function(){return ee})),a.d(l,"j",(function(){return le})),a.d(l,"R",(function(){return ae})),a.d(l,"N",(function(){return te})),a.d(l,"E",(function(){return ne})),a.d(l,"y",(function(){return ue})),a.d(l,"Q",(function(){return re})),a.d(l,"U",(function(){return ie})),a.d(l,"V",(function(){return oe})),a.d(l,"b",(function(){return se}));var t=a("2d63"),n=a("768b"),u=a("267e"),r=sessionStorage.getItem("tenantConfig");r=r?JSON.parse(r):{};var i=r.tenantId,o=null,c=null;1==i?(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"}],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"}]):(c=[{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 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:"迟到"}]),E=[{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:"交易关闭"}],m=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],L=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],T=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],I=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],O=[{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:"其它"}]}],N=[{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:"会员续费"}]}],R=[{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:"其它"}],A=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],y=[{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:"高三"}],C=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],g=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],M=ce(u["musicGroupType"]),w=ce(u["classTime"]),G=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],U=ce(u["payOrderType"]),P=ce(u["auditType"]),D=ce(u["auditPaymentType"]),H=ce(u["orderServerType"]),x=ce(u["orderAuditType"]),k=ce(u["rewardModeType"]),F=ce(u["musicClassType"]),V=ce(u["ProbationPeriodStatus"]),$=ce(u["downListType"]),j=ce(u["conclusion"]),B=ce(u["clientType"]),Y=ce(u["couponType"]),X=ce(u["backType"]),q=ce(u["memberEnum"]),K=ce(u["coupontypeDetail"]),W=ce(u["issue"]),z=ce(u["feedbackType"]),J=ce(u["feedbackTypeDesc"]),Q=ce(u["campState"]),Z=ce(u["catgGoupType"]),ee=ce(u["catRole"]),le=ce(u["catType"]),ae=ce(u["quiteReason"]),te=ce(u["payUserType"]),ne=ce(u["levelStatus"]),ue=ce(u["evaluateStatus"]),re=ce(u["problemType"]),ie=ce(u["schoolUserType"]),oe=ce(u["shareLiveType"]);function ce(e){var l=[];for(var a in e)l.push({label:e[a],value:a});return l}var se=function(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(n["a"])(l,2),u=a[0],r=a[1],i={};if(e&&e.length){var o,c=Object(t["a"])(e);try{for(c.s();!(o=c.n()).done;){var s=o.value;i[s[u]]=s[r]}}catch(b){c.e(b)}finally{c.f()}}return i}}}]);