617

parent b7d577cc
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.aa2a7c10c58dcb366edd.js></script><script type=text/javascript src=/static/js/vendor.4f218b4f48eb4bcaf1bd.js></script><script type=text/javascript src=/static/js/app.4380645c03dad8ce2187.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.ec87100eb4183eafb158.js></script><script type=text/javascript src=/static/js/vendor.4f218b4f48eb4bcaf1bd.js></script><script type=text/javascript src=/static/js/app.6797ecafc799637d2bcf.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([22],{"+P08":function(e,t,a){var n=a("8nR9");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("1d568812",n,!1,{})},"8nR9":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/achievement/dialog.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"dialog.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},BrLh:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.title[data-v-394351a5] {\n font-size: 26px;\n font-weight: 400;\n line-height: 1;\n margin: 40px;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/achievement/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,aAAa;CACd",file:"index.vue",sourcesContent:["\n.title[data-v-394351a5] {\n font-size: 26px;\n font-weight: 400;\n line-height: 1;\n margin: 40px;\n}\n"],sourceRoot:""}])},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),r={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(e){this.nowPage=e,this.classListOption()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.classListOption()},classListOption:function(){var e=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var t={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(n._83)(t,this.dialogObj.teacher_id).then(function(t){e.classList=t.list,e.total=t.total})}},watch:{"dialogObj.show":function(e){e&&this.classListOption()}}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};o._withStripped=!0;var s={render:o,staticRenderFns:[]},i=s;var l=!1;var c=a("VU/8")(r,i,!1,function(e){l||(a("vtn1"),a("+P08"))},"data-v-72b08405",null);c.options.__file="src\\components\\achievement\\dialog.vue";var d={name:"index",data:function(){var e=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[],squad:"1"},today:{text:"今天",onClick:function(){e.searchFirstFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)],e.searchSecondFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFirstFrom.dateValue=[t,t],e.searchSecondFrom.dateValue=[t,t]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},searchSecondFrom:{dateValue:[],squad:"1"},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:c.exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(e,t){return Number(e.total_money)-Number(t.total_money)},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]},11!=this.searchFirstFrom.squad&&(t.squad=this.searchFirstFrom.squad)),Object(n._87)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]},11!=this.searchSecondFrom.squad&&(t.squad=this.searchSecondFrom.squad)),Object(n._84)(t).then(function(t){e.secondList=t})},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();return n<10&&(n="0"+n),t+"-"+a+"-"+n},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();n<10&&(n="0"+n);var r=t+"-"+a+"-01",o=t+"-"+a+"-"+n;this.searchFirstFrom.dateValue=[r,o],this.searchSecondFrom.dateValue=[r,o]},nameClick:function(e,t){this.dialogObj.teacher_id=e.tid,this.dialogObj.timeValue=void 0!=t?t:[e.cur_date,e.cur_date],this.dialogObj.show=!0}}},m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.searchFirstPage},model:{value:e.searchFirstFrom.squad,callback:function(t){e.$set(e.searchFirstFrom,"squad",t)},expression:"searchFirstFrom.squad"}},[e._l(10,function(e){return a("el-tab-pane",{key:e,attrs:{label:"T"+e,name:e.toString()}})}),e._v(" "),a("el-tab-pane",{key:"",attrs:{label:"总排行",name:"11"}})],2),e._v(" "),a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row,e.searchFirstFrom.dateValue)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_to_two",label:"续课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.searchSecondPage},model:{value:e.searchSecondFrom.squad,callback:function(t){e.$set(e.searchSecondFrom,"squad",t)},expression:"searchSecondFrom.squad"}},[e._l(10,function(e){return a("el-tab-pane",{key:e,attrs:{label:"T"+e,name:e.toString()}})}),e._v(" "),a("el-tab-pane",{key:"",attrs:{label:"总排行",name:"11"}})],2),e._v(" "),a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)};m._withStripped=!0;var u={render:m,staticRenderFns:[]},h=u;var p=!1;var b=a("VU/8")(d,h,!1,function(e){p||a("Pq+S")},"data-v-394351a5",null);b.options.__file="src\\components\\achievement\\index.vue";t.default=b.exports},"Pq+S":function(e,t,a){var n=a("BrLh");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("5bcb7c41",n,!1,{})},vtn1:function(e,t,a){var n=a("w+Do");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("2243677e",n,!1,{})},"w+Do":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-72b08405]{\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-72b08405] {\r\n padding: 20px 0;\n}\r\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/achievement/dialog.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"dialog.vue",sourcesContent:["\n.avatar[data-v-72b08405]{\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-72b08405] {\r\n padding: 20px 0;\n}\r\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([43],{TkUD:function(e,t,n){var a=n("i3sb");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("70ad75b8",a,!1,{})},Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),o={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],exportMenuList:["2-3","5-10","5-2","5-1","5-3","5-8","5-9","3-1","7-9"],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{distribution:function(e){},rowClick:function(e){this.$router.push({name:"admin",query:{roleId:e.id}})},getMenuList:function(){var e=this;Object(a._55)().then(function(t){t&&(t.forEach(function(t){t.children&&t.children.forEach(function(t){t.readonly=!1,t.delete=!1,e.exportMenuList.indexOf(t.cover)>-1&&(t.export=!1),"5-9"!==t.cover&&"7-9"!==t.cover||(t.distribution=!1),"月课订单列表"!==t.name&&"日课订单列表"!==t.name&&"来源码管理"!==t.name&&"5-9"!==t.cover&&"2-3"!==t.cover&&"3-1"!==t.cover||(t.refund=!1),"2-3"!==t.cover&&"3-1"!==t.cover||(t.classManageUnlimited=!1,t.classManage=!1,t.classTakeUnlimited=!1),"5-1"===t.cover&&(t.promoter=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(a._74)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(a._55)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1,t.exportMenuList.indexOf(e.cover)>-1&&(e.export=!1),"5-9"!==e.cover&&"7-9"!==e.cover||(e.distribution=!1),"月课订单列表"!==e.name&&"日课订单列表"!==e.name&&"来源码管理"!==e.name&&"5-9"!==e.cover&&"2-3"!==e.cover&&"3-1"!==e.cover||(e.refund=!1),"2-3"!==e.cover&&"3-1"!==e.cover||(e.classManageUnlimited=!1,e.classManage=!1,e.classTakeUnlimited=!1),"5-1"===e.cover&&(e.promoter=!1)})}),t.dialog.select=n,Object(a._73)(e.id).then(function(e){console.log(e),t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(n){n.children&&n.children.forEach(function(n){n.id===e.id&&(n.readonly=!!e.readonly,n.delete=!!e.delete,t.exportMenuList.indexOf(e.cover)>-1&&(n.export=!!e.export),"5-1"!==e.cover&&"5-10"!==e.cover&&"10-1"!==e.cover&&"5-9"!==e.cover&&"2-3"!==e.cover&&"3-1"!==e.cover||(n.refund=!!e.refund),"2-3"!==e.cover&&"3-1"!==e.cover||(n.classManage=!!e.classManage,n.classManageUnlimited=!!e.classManageUnlimited,n.classTakeUnlimited=!!e.classTakeUnlimited),"5-9"!==e.cover&&"7-9"!==e.cover||(n.distribution=!!e.distribution),"5-1"===e.cover&&(n.promoter=!!e.promoter))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.P)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var n=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),!1!==e.refund&&!0!==e.refund||(t.refund=e.refund),!1!==e.classManage&&!0!==e.classManage||(t.classManage=e.classManage),!1!==e.classManageUnlimited&&!0!==e.classManageUnlimited||(t.classManageUnlimited=e.classManageUnlimited),!1!==e.classTakeUnlimited&&!0!==e.classTakeUnlimited||(t.classTakeUnlimited=e.classTakeUnlimited),!1!==e.promoter&&!0!==e.promoter||(t.promoter=e.promoter),!1!==e.export&&!0!==e.export||(t.export=e.export),!1!==e.distribution&&!0!==e.distribution||(t.distribution=e.distribution),t&&n.push(t)});var o=e.dialog;if(o.form.id){var i={name:o.form.name,menu_ids:JSON.stringify(n)};e.$confirm("此操作将修改该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._145)(o.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})})}else{var s={name:o.form.name,menu_ids:JSON.stringify(n)};e.$confirm("此操作将添加新角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._117)(s).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})})}}})}}},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role"},[n("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():n("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[n("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),n("el-table-column",{attrs:{label:"角色名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){e.rowClick(t.row)}}},[e._v(" "+e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():n("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(n){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?n("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(n){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"100vw"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[n("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[n("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"菜单选项"}},[n("div",{staticClass:"custom-tree-container"},[n("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,o=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(a.label))]),e._v(" "),0!==o.pid?n("span",["5-1"===o.cover||"5-10"===o.cover||"5-9"===o.cover?n("el-checkbox",{model:{value:o.refund,callback:function(t){e.$set(o,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),"10-1"===o.cover?n("el-checkbox",{model:{value:o.refund,callback:function(t){e.$set(o,"refund",t)},expression:"data.refund"}},[e._v("类别管理")]):e._e(),e._v(" "),"5-1"===o.cover?n("el-checkbox",{model:{value:o.promoter,callback:function(t){e.$set(o,"promoter",t)},expression:"data.promoter"}},[e._v("编辑推广人")]):e._e(),e._v(" "),"2-3"===o.cover||"3-1"===o.cover?n("el-checkbox",{model:{value:o.refund,callback:function(t){e.$set(o,"refund",t)},expression:"data.refund"}},[e._v("添加观摩班用户")]):e._e(),e._v(" "),"2-3"===o.cover||"3-1"===o.cover?n("el-checkbox",{model:{value:o.classManage,callback:function(t){e.$set(o,"classManage",t)},expression:"data.classManage"}},[e._v("添加带班班用户")]):e._e(),e._v(" "),"2-3"===o.cover||"3-1"===o.cover?n("el-checkbox",{model:{value:o.classManageUnlimited,callback:function(t){e.$set(o,"classManageUnlimited",t)},expression:"data.classManageUnlimited"}},[e._v("添加观摩班(无限制)")]):e._e(),e._v(" "),"2-3"===o.cover||"3-1"===o.cover?n("el-checkbox",{model:{value:o.classTakeUnlimited,callback:function(t){e.$set(o,"classTakeUnlimited",t)},expression:"data.classTakeUnlimited"}},[e._v("添加带班班(无限制)")]):e._e(),e._v(" "),"5-9"===o.cover||"7-9"===o.cover?n("el-checkbox",{on:{change:e.distribution},model:{value:o.distribution,callback:function(t){e.$set(o,"distribution",t)},expression:"data.distribution"}},[e._v("批量分配")]):e._e(),e._v(" "),e.exportMenuList.indexOf(o.cover)>-1?n("el-checkbox",{model:{value:o.export,callback:function(t){e.$set(o,"export",t)},expression:"data.export"}},[e._v("导出")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:o.readonly,callback:function(t){e.$set(o,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:o.delete,callback:function(t){e.$set(o,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)};i._withStripped=!0;var s={render:i,staticRenderFns:[]},l=s;var r=!1;var c=n("VU/8")(o,l,!1,function(e){r||n("TkUD")},"data-v-baf7767a",null);c.options.__file="src\\components\\system\\role.vue";t.default=c.exports},i3sb:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.custom-tree-node[data-v-baf7767a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n padding-right: 8px;\n}\n.role[data-v-baf7767a] {\n width: 100%;\n padding: 20px 0;\n}\n.role .head[data-v-baf7767a] {\n margin-bottom: 10px;\n}\n.role .page-div[data-v-baf7767a] {\n text-align: center;\n padding-top: 20px;\n}\n.clear-both[data-v-baf7767a]:after {\n content: '';\n display: block;\n clear: both;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/system/role.vue"],names:[],mappings:";AACA;EACE,oBAAoB;MAChB,YAAY;UACR,QAAQ;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,0BAA0B;MACtB,uBAAuB;UACnB,+BAA+B;EACvC,gBAAgB;EAChB,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb",file:"role.vue",sourcesContent:["\n.custom-tree-node[data-v-baf7767a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n padding-right: 8px;\n}\n.role[data-v-baf7767a] {\n width: 100%;\n padding: 20px 0;\n}\n.role .head[data-v-baf7767a] {\n margin-bottom: 10px;\n}\n.role .page-div[data-v-baf7767a] {\n text-align: center;\n padding-top: 20px;\n}\n.clear-both[data-v-baf7767a]:after {\n content: '';\n display: block;\n clear: both;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([8],{"+dYf":function(e,t,i){var o=i("eW9u");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("rjj0")("e77fce0c",o,!1,{})},"1d8X":function(e,t,i){var o=i("Yg4o");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("rjj0")("8bc76fe0",o,!1,{})},"2qmY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("CCn6"),r=i("kmJW"),a=i("P0f4"),n=i("xGts"),s={name:"dialogObj",props:["dialogObj"],data:function(){return{}},watch:{"dialogObj.show":{deep:!0,handler:function(){console.log(this.dialogObj)}}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),o=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=o.length>0?o[0].label:i[0].children[0].label,this.dialogObj.district=o.length>0?o[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(o.Y)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:a.a},mounted:function(){console.log(this.dialogObj)}},l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},d=c;var _=!1;var u=i("VU/8")(s,d,!1,function(e){_||i("ri1l")},"data-v-60e716f4",null);u.options.__file="src\\components\\order\\dialog.vue";var h=u.exports,m=i("O6Rd"),p=i("zA5m"),f=i("kmsh"),v=i("+TkF"),g={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return v.k[e]},status:function(e){return v.q[e]},buyType:function(e){return v.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},b=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)};b._withStripped=!0;var y={render:b,staticRenderFns:[]},w=y;var x=!1;var O=i("VU/8")(g,w,!1,function(e){x||i("cCfO")},"data-v-375439e2",null);O.options.__file="src\\components\\order\\detail.vue";var F=O.exports,A=i("G2rA"),j=(i("sf/l"),{name:"index",data:function(){var e=this;return{nowPage:1,total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",wait_into_course:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:"",is_captain:""},tableData:[],dialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:v.l,orderStatusOption:v.r,buyTypeOption:v.c,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1,isLeaderOption:v.n}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var o=e.getDate();return o<10&&(o="0"+o),t+"-"+i+"-"+o},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(o._72)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(e.is_captain=this.searchFrom.is_captain),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=this.searchFrom.payTime[0],e.pay_end_at=this.searchFrom.payTime[1]),this.searchFrom.wait_into_course&&(e.wait_into_course=this.searchFrom.wait_into_course),e.course_type=1,Object(o._19)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(o._47)({page:1,limit:100,course_type:1,status:"1,2"}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._11)(e,"order",{desc:r}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(t.is_captain=this.searchFrom.is_captain),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=this.searchFrom.payTime[0],t.pay_end_at=this.searchFrom.payTime[1]),this.searchFrom.wait_into_course&&(t.wait_into_course=this.searchFrom.wait_into_course),t.course_type=1,Object(o._59)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=n.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var o=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:o[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(o._86)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(o._141)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})}},components:{addressDialog:h,refundDialog:p.a,detailDialog:F,refundDetail:A.a,sourceDialog:m.a,couponDialog:f.a,page:r.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{},filters:{isLeader:function(e){return v.m[e]},payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return v.k[e]},status:function(e){return v.q[e]},buyType:function(e){return v.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+e.id+"]["+v.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}}}),C=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:"",size:"small"}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{staticStyle:{width:"110px"},model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,o){return i("el-option",{key:o,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"团ID"}},[i("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.order_group_id,callback:function(t){e.$set(e.searchFrom,"order_group_id",t)},expression:"searchFrom.order_group_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否团长"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.is_captain,callback:function(t){e.$set(e.searchFrom,"is_captain",t)},expression:"searchFrom.is_captain"}},e._l(e.isLeaderOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"是否入课"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.wait_into_course,callback:function(t){e.$set(e.searchFrom,"wait_into_course",t)},expression:"searchFrom.wait_into_course"}},[i("el-option",{attrs:{label:"已入课",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"未入课",value:"1"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),e.$store.state.export?i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")]):e._e()],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,size:"small",fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称",width:"160"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_group_id",label:"团ID",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"是否团长",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isLeader")(t.row.is_captain))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v(" "+e._s(t.row.address_info.receive_mobile)+"\n "),i("br"),e._v(" "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 下单时间:"+e._s(t.row.created_at)),i("br"),e._v("\n 购买时间:"+e._s(t.row.pay_at)),i("br"),e._v(" "),1!=t.row.buy_type?i("div",[e._v("\n 成团时间:"+e._s(t.row.group_success_time)),i("br"),e._v("\n 截止时间:"+e._s(t.row.deadline)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]),e._v(" "),e.$store.state.promoter?i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")]):e._e()],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};C._withStripped=!0;var k={render:C,staticRenderFns:[]},D=k;var T=!1;var B=i("VU/8")(j,D,!1,function(e){T||(i("+dYf"),i("1d8X"))},"data-v-e25265f8",null);B.options.__file="src\\components\\order\\index.vue";t.default=B.exports},"F+JO":function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"refundDialog.vue",sourceRoot:""}])},TGA0:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-375439e2] {\n height: 60px;\n}\n.el-col img[data-v-375439e2] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-375439e2] {\n color: #5982e6;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/order/detail.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB",file:"detail.vue",sourcesContent:["\n.el-col[data-v-375439e2] {\n height: 60px;\n}\n.el-col img[data-v-375439e2] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-375439e2] {\n color: #5982e6;\n}\n"],sourceRoot:""}])},U05e:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-60e716f4] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/order/dialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.dialog-footer[data-v-60e716f4] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},Yg4o:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.f-c > .cell {\r\n display: -webkit-box !important;\r\n display: -ms-flexbox !important;\r\n display: flex !important;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -ms-flex-flow: row;\r\n flex-flow: row;\r\n -webkit-box-pack: start;\r\n -ms-flex-pack: start;\r\n justify-content: flex-start;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\r\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/order/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\r\n display: -webkit-box !important;\r\n display: -ms-flexbox !important;\r\n display: flex !important;\r\n -webkit-box-orient: horizontal;\r\n -webkit-box-direction: normal;\r\n -ms-flex-flow: row;\r\n flex-flow: row;\r\n -webkit-box-pack: start;\r\n -ms-flex-pack: start;\r\n justify-content: flex-start;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\r\n"],sourceRoot:""}])},cCfO:function(e,t,i){var o=i("TGA0");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("rjj0")("dc96e79c",o,!1,{})},eW9u:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-e25265f8] {\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-e25265f8] {\r\n padding: 20px 0;\n}\r\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/order/index.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:["\n.avatar[data-v-e25265f8] {\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-e25265f8] {\r\n padding: 20px 0;\n}\r\n"],sourceRoot:""}])},jKuw:function(e,t,i){var o=i("F+JO");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("rjj0")("679c3646",o,!1,{})},ri1l:function(e,t,i){var o=i("U05e");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);i("rjj0")("cbfcbdae",o,!1,{})},zA5m:function(e,t,i){"use strict";var o=i("CCn6"),r={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};e.dialogObj.order_type&&(i.order_type=e.dialogObj.order_type),Object(o._113)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])};a._withStripped=!0;var n={render:a,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("jKuw")},"data-v-7cbba59e",null);c.options.__file="src\\components\\order\\refundDialog.vue";t.a=c.exports}});
\ No newline at end of file
webpackJsonp([58],{Cwy8:function(e,n,t){var a=t("LgZj");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);t("rjj0")("bf21a3b6",a,!1,{})},IcnI:function(e,n,t){"use strict";var a=t("NYxO"),o=t("lRwf"),r=t.n(o),i=t("zSLJ"),u={setToken:function(e,n){e.token=n,i.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,i.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},distribution:function(e,n){e.distribution=n},classManage:function(e,n){e.classManage=n},classManageUnlimited:function(e,n){e.classManageUnlimited=n},classTakeUnlimited:function(e,n){e.classTakeUnlimited=n},promoter:function(e,n){e.promoter=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};r.a.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",export:!1,orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,distribution:!1,classManage:!1,classManageUnlimited:!1,classTakeUnlimited:!1,promoter:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:u,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)},distribution:function(e,n){(0,e.commit)("distribution",n)},classManage:function(e,n){(0,e.commit)("classManage",n)},classManageUnlimited:function(e,n){(0,e.commit)("classManageUnlimited",n)},classTakeUnlimited:function(e,n){(0,e.commit)("classTakeUnlimited",n)},promoter:function(e,n){(0,e.commit)("promoter",n)}}})},LgZj:function(e,n,t){(e.exports=t("FZ+f")(!0)).push([e.i,"\n#app {\r\n height: 100%;\n}\nhtml,body{\r\n height: 100%;\r\n margin: 0;\r\n padding: 0;\n}\n.el-collapse-item__arrow{margin-left: 0;\n}\n.fl{float: left;\n}\r\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/App.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;IACI,aAAa;IACb,UAAU;IACV,WAAW;CACd;AACD,yBAAyB,eAAe;CACvC;AACD,IAAI,YAAY;CACf",file:"App.vue",sourcesContent:["\n#app {\r\n height: 100%;\n}\nhtml,body{\r\n height: 100%;\r\n margin: 0;\r\n padding: 0;\n}\n.el-collapse-item__arrow{margin-left: 0;\n}\n.fl{float: left;\n}\r\n"],sourceRoot:""}])},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(1)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(13)]).then(function(){var n=[t("AbSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([t.e(0),t.e(16)]).then(function(){var n=[t("1djJ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(17)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"市场招生统计",routerName:"marketStatistics",path:"/marketStatistics",cover:"2-5",router:{path:"/marketStatistics",name:"marketStatistics",component:function(e){return Promise.all([t.e(0),t.e(50)]).then(function(){var n=[t("SKyX")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"自化课列表",routerName:"autoClass",path:"/autoClass",cover:"2-6",router:{path:"/autoClass",name:"autoClass",component:function(e){return Promise.all([t.e(0),t.e(35)]).then(function(){var n=[t("f9Sx")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"销售管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([t.e(0),t.e(2)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("xdzM")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([t.e(0),t.e(53)]).then(function(){var n=[t("v/LD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(39)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("Fmgy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"话术列表",routerName:"talkingSkill",path:"/talkingSkill",cover:"11-6",router:{path:"/talkingSkill",name:"talkingSkill",component:function(e){return Promise.all([t.e(0),t.e(19)]).then(function(){var n=[t("CUAv")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"老系统用户列表",routerName:"oldUser",path:"/oldUser",cover:"3-3",router:{path:"/oldUser",name:"oldUser",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("K2yr")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户积分列表",routerName:"integral",path:"/integral",cover:"3-4",router:{path:"/integral",name:"integral",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("NDyu")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"绑定子账号列表",routerName:"subList",path:"/subList",cover:"3-5",router:{path:"/subList",name:"subList",component:function(e){return Promise.all([t.e(0),t.e(26)]).then(function(){var n=[t("L5jB")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"日课订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(32)]).then(function(){var n=[t("F5pf")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return t.e(49).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(52)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"日课订单统计",routerName:"dayOrderCount",path:"/dayOrderCount",cover:"5-11",router:{path:"/dayOrderCount",name:"dayOrderCount",component:function(e){return Promise.all([t.e(0),t.e(45)]).then(function(){var n=[t("mjLz")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("WvRy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"扫码入课列表",routerName:"notBuyClass",path:"/notBuyClass",cover:"5-8",router:{path:"/notBuyClass",name:"notBuyClass",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("E6Zo")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"外部订单列表",routerName:"yunji",path:"/yunji",cover:"5-9",router:{path:"/yunji",name:"yunji",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("69L+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("CvLZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("B31M")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("+vCD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([t.e(0),t.e(20)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(25)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("q5av")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([t.e(0),t.e(36)]).then(function(){var n=[t("Xhqp")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([t.e(0),t.e(10)]).then(function(){var n=[t("lNiQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("oerw")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([t.e(0),t.e(47)]).then(function(){var n=[t("Dq6T")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"微信统计",routerName:"weChatStatistics",path:"/weChatStatistics",cover:"7-10",router:{path:"/weChatStatistics",name:"weChatStatistics",component:function(e){return Promise.all([t.e(0),t.e(55)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"测试",routerName:"test",path:"/test",cover:"7-11",router:{path:"/test",name:"test",component:function(e){return Promise.all([t.e(0),t.e(29)]).then(function(){var n=[t("9ZSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"首页管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"外部投放管理",routerName:"externalLaunch",path:"/externalLaunch",cover:"7-9",router:{path:"/externalLaunch",name:"externalLaunch",component:function(e){return Promise.all([t.e(0),t.e(51)]).then(function(){var n=[t("NrkQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"来源码管理",routerName:"sourceManage",path:"/sourceManage",cover:"10-1",router:{path:"/sourceManage",name:"sourceManage",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("/ubI")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"短信发送记录",routerName:"smsRecord",path:"/smsRecord",cover:"10-2",router:{path:"/smsRecord",name:"smsRecord",component:function(e){return Promise.all([t.e(0),t.e(38)]).then(function(){var n=[t("qjS+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"config",path:"/config",cover:"10-3",router:{path:"/config",name:"config",component:function(e){return Promise.all([t.e(0),t.e(56)]).then(function(){var n=[t("TPCG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"后台管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(42)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(43)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(41)]).then(function(){var n=[t("aTXs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([t.e(0),t.e(37)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(54)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],o={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList;console.log(this.$store.state);var o=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},i={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};a.forEach(function(t){var a=!1,u=[];t.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=!!o.readonly,t.router.meta.delete=!!o.delete,t.router.meta.export=!!o.export,t.router.meta.refund=!!o.refund,t.router.meta.distribution=!!o.distribution,t.router.meta.classManage=!!o.classManage,t.router.meta.classManageUnlimited=!!o.classManageUnlimited,t.router.meta.classTakeUnlimited=!!o.classTakeUnlimited,t.router.meta.promoter=!!o.promoter,u.push(t),"3-1"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),"3-2"===o.cover&&(r.meta={},r.meta.readonly=o.readonly,r.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(t.list=u,o.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},r=function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]},u=i;var c=!1;var l=t("VU/8")(o,u,!1,function(e){c||t("Cwy8")},null,null);l.options.__file="src\\App.vue";var s=l.exports,m=t("lRwf"),p=t.n(m),h=t("YaEn"),d=t("IcnI"),f=t("zL8q"),v=t.n(f);p.a.use(v.a),p.a.config.productionTip=!1,new p.a({el:"#app",store:d.a,router:h.a,components:{App:s},template:"<App/>"})},OMN4:function(e,n){e.exports=axios},YaEn:function(e,n,t){"use strict";var a=t("IcnI"),o=t("/ocq"),r=t("zSLJ"),i=new o.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("jHcp")];e.apply(null,n)}.bind(this)).catch(t.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return t.e(40).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(46)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([t.e(0),t.e(44)]).then(function(){var n=[t("hLMI")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/upload",name:"upload",component:function(e){return Promise.all([t.e(0),t.e(48)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/newLesson",name:"newLesson",component:function(e){return Promise.all([t.e(0),t.e(3)]).then(function(){var n=[t("4t0V")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});i.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),r.a.get("cc_token")&&(a.a.dispatch("setToken",r.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&a.a.dispatch("setUserName",r.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,i=0;i<a.a.state.menuList.length;i++)for(var u=a.a.state.menuList[i],c=0;c<u.list.length;c++){var l=u.list[c];l.path===e.path&&(o=l)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),a.a.state.orderRefund=e.meta.refund,a.a.state.export=e.meta.export,a.a.state.distribution=e.meta.distribution,a.a.state.classManage=e.meta.classManage,a.a.dispatch("promoter",e.meta.promoter),a.a.dispatch("classManageUnlimited",e.meta.classManageUnlimited),a.a.dispatch("classTakeUnlimited",e.meta.classTakeUnlimited),console.log(e.meta),"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",s)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),i.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=i.history.pending.fullPath;n&&i.replace(t)}),n.a=i},lRwf:function(e,n){e.exports=Vue},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var a=new Date;a.setTime(a.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+a.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={59:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d3ca31be750e6a719f1d",1:"929bf767bb9e3630b9aa",2:"e7feab54fdb21d59cb8e",3:"a056df155a2c6be1e835",4:"aae6f645ea606a26fbf9",5:"dc500c9fabc7d9d50af4",6:"48d029170af59d5ec98d",7:"9ca89beeb1cefa2e3b06",8:"a0efeccf39c3c3960a10",9:"b93cc85ab22ab8156d0e",10:"ca5cee4bda52cefaf9d1",11:"c19712cec6989cbf811b",12:"86af58cc8d9cc9637bc1",13:"a6a7457d509ed9505973",14:"a260202c04b91e6368cd",15:"c9ac5b8b46c07132cc9f",16:"a4abe733b2606bb0d283",17:"4e03c0961e86f66c688d",18:"46d2cc5e667abb836ffc",19:"5aca3bf85d02f0fc17a2",20:"c4a1bb678e521cd99c68",21:"d21de744708e0fb9bc70",22:"46bc8ea28ba9f9db210d",23:"40d2494f7138288121ec",24:"63d3ca5afe804d2aef37",25:"0b39cc17511b46eec645",26:"607105895c0f00a11c62",27:"eff437d8b410e12fe562",28:"fa8f19bc7fdc20ad2a69",29:"8e48863e6502b74f1f5f",30:"87f60a87381060b254c8",31:"61423bb8ec3ae0ad976d",32:"7f3e427312782c85bde9",33:"fd58ea4090f4da5b49ee",34:"0a3bcff88636547fcb76",35:"66846ef20bddca06013c",36:"d5127a0f32a7ff81f9a0",37:"eae4e9d26583381fc5ea",38:"b26b10bb0519d7e64bd3",39:"e1880a449b5b08dc1088",40:"e950b366c4e39a38e908",41:"9ae5107466982fac76ce",42:"e1f4c11ab2d634ca6b4c",43:"631be920ed474e1e062f",44:"44c895ea1ac8194a0b79",45:"0694cc643878b0b89209",46:"85f5cf5906aaa6c4868e",47:"ec4851310426b9a8c752",48:"46fdfd634c6114390ff2",49:"1749a50b157804f23e0c",50:"a69c0c888df57a281381",51:"07a6e249fc80f51f5dae",52:"4373e0e585f8cdeeb307",53:"f8671b80fc7401d44ba4",54:"eb0993455b05c5010aaf",55:"5131812b85d5dc6c5a00",56:"7229854169db1c125351"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={59:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d3ca31be750e6a719f1d",1:"929bf767bb9e3630b9aa",2:"e7feab54fdb21d59cb8e",3:"a056df155a2c6be1e835",4:"aae6f645ea606a26fbf9",5:"dc500c9fabc7d9d50af4",6:"48d029170af59d5ec98d",7:"9ca89beeb1cefa2e3b06",8:"3fe6c3cae4a6376ef445",9:"b93cc85ab22ab8156d0e",10:"ca5cee4bda52cefaf9d1",11:"c19712cec6989cbf811b",12:"86af58cc8d9cc9637bc1",13:"a6a7457d509ed9505973",14:"a260202c04b91e6368cd",15:"c9ac5b8b46c07132cc9f",16:"a4abe733b2606bb0d283",17:"4e03c0961e86f66c688d",18:"46d2cc5e667abb836ffc",19:"5aca3bf85d02f0fc17a2",20:"c4a1bb678e521cd99c68",21:"d21de744708e0fb9bc70",22:"46bc8ea28ba9f9db210d",23:"40d2494f7138288121ec",24:"63d3ca5afe804d2aef37",25:"0b39cc17511b46eec645",26:"607105895c0f00a11c62",27:"eff437d8b410e12fe562",28:"fa8f19bc7fdc20ad2a69",29:"8e48863e6502b74f1f5f",30:"87f60a87381060b254c8",31:"61423bb8ec3ae0ad976d",32:"7f3e427312782c85bde9",33:"fd58ea4090f4da5b49ee",34:"0a3bcff88636547fcb76",35:"66846ef20bddca06013c",36:"d5127a0f32a7ff81f9a0",37:"eae4e9d26583381fc5ea",38:"b26b10bb0519d7e64bd3",39:"e1880a449b5b08dc1088",40:"e950b366c4e39a38e908",41:"9ae5107466982fac76ce",42:"e1f4c11ab2d634ca6b4c",43:"631be920ed474e1e062f",44:"44c895ea1ac8194a0b79",45:"0694cc643878b0b89209",46:"85f5cf5906aaa6c4868e",47:"ec4851310426b9a8c752",48:"46fdfd634c6114390ff2",49:"1749a50b157804f23e0c",50:"a69c0c888df57a281381",51:"07a6e249fc80f51f5dae",52:"4373e0e585f8cdeeb307",53:"f8671b80fc7401d44ba4",54:"eb0993455b05c5010aaf",55:"5131812b85d5dc6c5a00",56:"7229854169db1c125351"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.9aedaf026c78ffbe0dad293ab2b1feb2.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.96edc69b52b6af1f7410.js></script><script type=text/javascript src=/static/js/vendor.f14e7028641dac0809c7.js></script><script type=text/javascript src=/static/js/app.1ecd8eb3d0776064ab26.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.7135411c7e6f881b4e3e0fb7ca47d79e.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.a6f2d4a6707fa5f08e23.js></script><script type=text/javascript src=/static/js/vendor.f14e7028641dac0809c7.js></script><script type=text/javascript src=/static/js/app.4ceb78f5ed71638966ab.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([22],{E6Zo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),s=n("+TkF"),a={name:"entrance",props:["entranceObj"],data:function(){return{goodsList:[],periodsList:[],goods_id:null,activeName:"first",searchFrom:{key:"goods_receive_course",desc:"商品",value:""},searchFrom2:{key:"periods_receive_course",desc:"期数",value:""},selectedGoods:[],link1:"https://w.url.cn/s/A45jJYk",link2:"https://w.url.cn/s/AJi1QsS"}},mounted:function(){},filters:{filterGoods:function(e){return"["+s.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{initPage:function(){var e=this;Object(o._40)({key:this.searchFrom.key}).then(function(t){t.list&&t.list.length>0?e.searchFrom.value=t.list[0].value:e.searchFrom.value=""}),Object(o._40)({key:this.searchFrom2.key}).then(function(t){t.list&&t.list.length>0||(e.searchFrom2.value=""),e.searchFrom2.value=""})},getGoodsList:function(){var e=this;Object(o._47)({limit:200,page:1}).then(function(t){e.goodsList=t.list})},getUser:function(e){var t=this;""!=e.value?this.$confirm("此操作将设置系统指定配置为商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var n={value:e.value,desc:e.desc,key:e.key};Object(o._112)(n).then(function(e){t.$message({type:"success",message:"设置成功!"})})}):this.$message({type:"error",message:"请设置选择项!"})},changePeriods:function(e){e.length>1&&(this.searchFrom2.value=String(e[1]))},handleItemChange:function(e){var t=this;Object(o._62)({goods_id:e[0]}).then(function(n){n.list.forEach(function(e){e.name=e.title}),t.periodsList.find(function(t){return t.id===e[0]}).children=n.list})},getPeriodsList:function(){var e=this;Object(o._47)({page:1,limit:100,goods_type:"1,2"}).then(function(t){t.list.forEach(function(e){e.name="["+s.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.periodsList=t.list})},copyUrl:function(e){var t=e,n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),console.log(n.value),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),n.remove()}},watch:{"entranceObj.show":function(e){e&&(this.initPage(),this.getGoodsList(),this.getPeriodsList())}}},i={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:e.entranceObj.title,visible:e.entranceObj.show,center:"",width:"800px"},on:{"update:visible":function(t){e.$set(e.entranceObj,"show",t)}}},[n("el-tabs",{staticStyle:{"line-height":"1"},attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("el-tab-pane",{attrs:{label:"商品名称",name:"first"}},[n("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"90px",inline:""}},[n("el-form-item",{attrs:{label:"商品名称"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.searchFrom.value,callback:function(t){e.$set(e.searchFrom,"value",t)},expression:"searchFrom.value"}},e._l(e.goodsList,function(t,o){return n("el-option",{key:o,attrs:{label:e._f("filterGoods")(t),value:String(t.id)}})}))],1),e._v(" "),n("el-form-item",[n("div",{staticClass:"search-btn-block"},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.getUser(e.searchFrom)}}},[e._v("确定")]),e._v(" "),n("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.copyUrl(e.link1)}}},[e._v("复制链接")])],1)])],1)],1),e._v(" "),n("el-tab-pane",{attrs:{label:"期数名称",name:"second"}},[n("el-form",{attrs:{"label-width":"90px",inline:"",model:e.searchFrom2}},[n("el-form-item",{attrs:{label:"期数名称"}},[n("el-cascader",{attrs:{options:e.periodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods},model:{value:e.selectedGoods,callback:function(t){e.selectedGoods=t},expression:"selectedGoods"}})],1),e._v(" "),n("el-form-item",[n("div",{staticClass:"search-btn-block"},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.getUser(e.searchFrom2)}}},[e._v("确定")]),e._v(" "),n("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.copyUrl(e.link2)}}},[e._v("复制链接")])],1)])],1)],1)],1)],1)},staticRenderFns:[]};var r={name:"notBuyClass",data:function(){return{nowPage:1,total:0,limit:10,configList:[],entranceObj:{title:"无需登录入口",show:!1},searchFrom:{user_id:"",goods_id:"",mobile:""},goodList:[]}},components:{entrance:n("VU/8")(a,i,!1,function(e){n("qN7I")},"data-v-7d1872ea",null).exports,page:n("kmJW").a},filters:{filterGoods:function(e){return"["+s.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},mounted:function(){this.getList(),this.getGoodsOption()},methods:{onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(o._34)(t).then(function(t){e.total=t.total,e.configList=t.list})},getGoodsOption:function(){var e=this;Object(o._47)({page:1,limit:100}).then(function(t){e.goodList=t.list})},editComment:function(e,t){var n=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var s=t.value;n.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._137)({desc:s},e).then(function(e){n.$message({type:"success",message:"编辑备注成功"}),n.getList()})})})},exportTable:function(){var e={};this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),Object(o._19)("/api/admin/user/receive/course/log/export",e)}}},l={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"not_buy"},[n("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:"",size:"small"}},[n("el-form-item",{attrs:{label:"用户ID"}},[n("el-input",{staticStyle:{width:"80px"},on:{change:e.getList},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"用户昵称"}},[n("el-input",{staticStyle:{width:"120px"},on:{change:e.getList},model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号"}},[n("el-input",{on:{change:e.getList},model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"商品名称"}},[n("el-select",{attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,o){return n("el-option",{key:o,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),e.$store.state.export?n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")]):e._e(),e._v(" "),e.$store.state.readonly?e._e():n("el-button",{attrs:{plain:"",type:"success"},on:{click:function(t){e.entranceObj.show=!0}}},[e._v("无需登录入口")])],1)],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.configList,size:"small"}},[n("el-table-column",{attrs:{label:"用户ID",sortable:"",prop:"scope.row.user_id",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v("\n "+e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),e._v(" "),n("el-table-column",{attrs:{label:"期数标题",prop:"periods_name"}}),e._v(" "),n("el-table-column",{attrs:{label:"商品名称",prop:"goods_name"}}),e._v(" "),n("el-table-column",{attrs:{label:"手机号",prop:"mobile"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),n("el-table-column",{attrs:{label:"备注",prop:"desc"}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(n){e.editComment(t.row.id,t.row.desc)}}},[e._v("编辑备注")])]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("entrance",{attrs:{entranceObj:e.entranceObj}})],1)},staticRenderFns:[]};var c=n("VU/8")(r,l,!1,function(e){n("jO+6"),n("HAQw")},"data-v-3eda6f2b",null);t.default=c.exports},HAQw:function(e,t){},"jO+6":function(e,t){},qN7I:function(e,t){}});
\ No newline at end of file
webpackJsonp([23],{CUAv:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,a=o("CCn6"),n=o("kmJW"),s=o("5eDb"),l=o.n(s),r=(o("o5MN"),o("q47d"));o("NBEC"),o("gBhd"),o("Q/P+"),o("f85y"),o("q/hF"),o("yXOt"),o("c/6r"),o("Rv7z"),o("S0tB"),o("UWKq"),o("gvu3"),o("XUqK");function d(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}var c={name:"tinymce",props:["lookData"],data:function(){return{radio:[],imageType:!1,form:{imgList:[],big:!1,weight:"",center:!0},show:"",dialogVisible:!1,init:{toolbar:"bold italic underline strikethrough | fontselect | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo | link unlink image code | ",language_url:"/static/tinymce/zh_CN.js",language:"zh_CN",skin_url:"/static/tinymce/skins/lightgray",height:500,plugins:"preview textpattern colorpicker lists code colorpicker fullpage textcolor wordcount contextmenu media",branding:!1},dialogVisibleMp3:!1}},activated:function(){this.show=!0},deactivated:function(){},mounted:function(){},methods:(i={beforeAvatarUploadAudio:function(t){var e="audio/mp3"===t.type;return e||this.$message.error("上传音频只能选择MP3格式!"),e},uploadFileMp3:function(t){var e=this;Object(a._148)({file:t.file,type:"local"}).then(function(t){e.$message({type:"success",message:"上传成功!"}),e.radio=[{name:t.name,url:t.url}]})},removeFile:function(){},removeFileMp3:function(){},handleExceed:function(){},audioInter:function(){if(this.radio.length<1)return this.$message({type:"error",message:"请选择音频"}),!1;var t='<p style="text-align: center"><img class="mce-object mce-object-audio" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="280" height="55" data-mce-p-controls="controls" data-mce-html="%0A%3Csource%20src%3D%22https%3A//cdn.singsingenglish.com/'+this.radio[0].url+'%22%20type%3D%22audio/mpeg%22%20/%3E" data-mce-object="audio"></p>';l.a.activeEditor.insertContent(t),this.dialogVisibleMp3=!1},showDialogMP3:function(){this.dialogVisibleMp3=!0,this.radio=[]},beforeAvatarUploadImg:function(t){var e="image/jpeg"===t.type||"image/png"===t.type;return e||this.$message.error("上传头像图片只能是 JPG 或 PNG 格式!"),e},imgInter:function(){if(this.form.imgList.length<1)return this.$message({type:"error",message:"请选择图片"}),!1;var t="";this.form.big?t+="width:100%;":t+="width:70%",this.form.center&&(t="display:block;margin:auto");var e='<img src="'+this.form.imgList[0].url+'" style="'+t+'"/>';l.a.activeEditor.insertContent(e),this.dialogVisible=!1},uploadFile:function(t){var e=this;Object(a._148)({file:t.file,type:"local"}).then(function(t){e.$message({type:"success",message:"上传成功!"}),e.form.imgList=[{name:t.name,url:"https://cdn.singsingenglish.com/"+t.url}]})},showDialog:function(){this.dialogVisible=!0,this.form={imgList:[],big:!1,weight:"",center:!0}},insertContent:function(t){if(t){var e=null;if(document.selection)(e=document.selection).createRange().pasteHTML(t);else if((e=document.getElementById("tinymce_ifr").contentWindow.getSelection()).rangeCount>0){var o=e.getRangeAt(0);o.deleteContents();var i=document.createElement("div");i.innerHTML=t;var a=document.createDocumentFragment(),n=i.firstChild,s=a.appendChild(n);o.insertNode(a);var l=o.cloneRange();l.setStartAfter(s),l.collapse(!0),e.removeAllRanges(),e.addRange(l)}}}},d(i,"removeFile",function(){}),d(i,"handleExceed",function(){}),i),created:function(){l.a.init({})},components:{Editor:r.a}},u={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"tinymce"},[o("editor",{attrs:{id:"tinymce",init:t.init},model:{value:t.lookData.content,callback:function(e){t.$set(t.lookData,"content",e)},expression:"lookData.content"}}),t._v(" "),o("div",[o("div",{staticClass:"imgInter",on:{click:function(e){t.showDialog()}}},[t._v("插入图片")]),t._v(" "),o("div",{staticClass:"MP3Inter",on:{click:function(e){t.showDialogMP3()}}},[t._v("插入音频")])]),t._v(" "),o("el-dialog",{attrs:{title:"插入图片",visible:t.dialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,center:"","append-to-body":!0,width:"550px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[o("el-form",{attrs:{"label-width":"80px"}},[o("el-form-item",{attrs:{label:"图片"}},[o("el-upload",{attrs:{action:"/api/public/upload","http-request":t.uploadFile,"on-remove":t.removeFile,"before-upload":t.beforeAvatarUploadImg,drag:"","on-exceed":t.handleExceed,multiple:"",limit:1,"file-list":t.form.imgList}},[o("i",{staticClass:"el-icon-upload"}),t._v(" "),o("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),o("em",[t._v("点击上传")])]),t._v(" "),o("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传png或jpg文件")])])],1),t._v(" "),o("el-form-item",{attrs:{label:"铺满"}},[o("el-switch",{model:{value:t.form.big,callback:function(e){t.$set(t.form,"big",e)},expression:"form.big"}})],1),t._v(" "),o("el-form-item",{attrs:{label:"居中"}},[o("el-switch",{model:{value:t.form.center,callback:function(e){t.$set(t.form,"center",e)},expression:"form.center"}})],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.imgInter}},[t._v("确 定")])],1)],1),t._v(" "),o("el-dialog",{attrs:{title:"插入音频",visible:t.dialogVisibleMp3,"modal-append-to-body":!1,"close-on-click-modal":!1,center:"","append-to-body":!0,width:"550px"},on:{"update:visible":function(e){t.dialogVisibleMp3=e}}},[o("el-form",{attrs:{"label-width":"80px"}},[o("el-form-item",{attrs:{label:"音频"}},[o("el-upload",{attrs:{action:"/api/public/upload","http-request":t.uploadFileMp3,"before-upload":t.beforeAvatarUploadAudio,"on-remove":t.removeFileMp3,drag:"","on-exceed":t.handleExceed,multiple:"",limit:1,"file-list":t.radio}},[o("i",{staticClass:"el-icon-upload"}),t._v(" "),o("div",{staticClass:"el-upload__text"},[t._v("将文件拖到此处,或"),o("em",[t._v("点击上传")])]),t._v(" "),o("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("只能上传MP3文件,且不超过10MB")])])],1)],1),t._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.dialogVisibleMp3=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.audioInter}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var p={name:"index",data:function(){return{total:0,nowPage:1,limit:10,contentTotal:0,contentNowPage:1,contentLimit:10,activeName:"keywords_reply",modularList:[],modularContent:[],selectModular:[],questionListParams:{type:"1",pid:""},postModularParams:{type:"1",title:"",pid:"",keywords:"",content:""},postModularDialog:!1,modularTitle:"新建模块",postModularContentDialog:!1,modularContentTitle:"新建话术内容",typeArr:[{value:"1",label:"话术类型"},{value:"2",label:"流程类型"}],modularId:"",contentType:""}},components:{editorDetail:o("VU/8")(c,u,!1,function(t){o("Q1xo")},"data-v-36033905",null).exports,page:n.a},mounted:function(){this.getList()},filters:{type:function(t){return"text"===t?"文本":"voice"===t?"语音":"video"===t?"视频":"image"===t?"图片":"news"===t?"图文":"link"===t?"链接":"news-item"===t?"图文链接":t}},methods:{upcontent:function(t,e){var o=this;if(console.log(t,e),0!=e){var i={question_up_id:this.modularContent[e].id,question_down_id:this.modularContent[e-1].id};Object(a._123)(i).then(function(t){o.handleChange(o.modularId)})}},downcontent:function(t,e){var o=this;if(e<=this.modularContent.length-1){var i={question_up_id:this.modularContent[e+1].id,question_down_id:this.modularContent[e].id};Object(a._123)(i).then(function(t){o.handleChange(o.modularId)})}},upIndex:function(t,e){var o=this;if(0!=e){var i={question_up_id:this.modularList[e].id,question_down_id:this.modularList[e-1].id};Object(a._123)(i).then(function(t){o.getList()})}},downIndex:function(t,e){var o=this;if(e<=this.modularList.length-1){var i={question_up_id:this.modularList[e+1].id,question_down_id:this.modularList[e].id};Object(a._123)(i).then(function(t){o.getList()})}},delIndex:function(t){var e=this;console.log(t),this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log(t),Object(a.W)(t.id).then(function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})})})},handleChange:function(){var t=this;this.modularContent=[];var e={type:this.questionListParams.type,page:this.contentNowPage,limit:this.contentLimit};this.modularId&&(e.pid=this.modularId),this.postModularParams.pid=this.modularId,Object(a._70)(e.type,e).then(function(e){t.modularContent=e.list,console.log(e),t.contentTotal=e.total})},postModularContentInit:function(){this.contentType="new",this.postModularParams.title="",this.postModularParams.keywords="",this.postModularParams.content="",this.postModularParams.type=this.questionListParams.type,this.postModularContentDialog=!0},postModularContentFn:function(){var t=this;console.log(this.postModularParams);var e={};if("new"==this.contentType){if(this.modularContentTitle="新建话术内容",!this.postModularParams.type)return void this.$message({message:"请选择类型!"});if(!this.postModularParams.title)return void this.$message({message:"请输入标题!"});if(!this.postModularParams.pid)return void this.$message({message:"请选择模块!"});if(!this.postModularParams.keywords)return void this.$message({message:"请输入关键词!"});if(!this.postModularParams.content)return void this.$message({message:"请填写内容!"});e=Object.assign({},this.postModularParams),Object(a._111)(e).then(function(e){console.log(e),t.getList(),t.$message({type:"success",message:"提交成功!"});var o={type:t.questionListParams.type,pid:t.postModularParams.pid};Object(a._70)(o.type,o).then(function(e){t.modularContent=e.list,console.log(e)}),t.postModularContentDialog=!1})}else this.modularContentTitle="编辑话术内容",e=Object.assign({},this.postModularParams),console.log(e),Object(a._144)(e.id,e).then(function(e){console.log(e),t.$message({type:"success",message:"更新成功!"}),t.postModularContentDialog=!1})},editContent:function(t){var e=this;this.contentType="edit";Object(a._69)(t.id).then(function(t){e.postModularParams=Object.assign({},t),console.log(e.postModularParams),e.postModularContentDialog=!0})},editContentFn:function(){},editModular:function(t){this.postModularDialog=!0,this.modularTitle="编辑模块",this.postModularParams=Object.assign({},t)},postModularInit:function(){this.postModularDialog=!0,this.modularTitle="新建模块",this.postModularParams.title=""},postModularFn:function(){var t=this,e={};if("新建模块"==this.modularTitle){if(!this.postModularParams.type)return void this.$message({message:"请选择类型!"});if(!this.postModularParams.title)return void this.$message({message:"请填写标题!"});e.type=this.postModularParams.type,e.title=this.postModularParams.title,console.log(e),Object(a._111)(e).then(function(e){console.log(e),t.getList(),t.$message({type:"success",message:"提交成功!"}),t.postModularDialog=!1})}else this.postModularParams.pid="",e.type=this.postModularParams.type,e.title=this.postModularParams.title,e.id=this.postModularParams.id,console.log(e),Object(a._144)(e.id,e).then(function(e){t.getList(),t.$message({type:"success",message:"更新成功!"}),t.postModularDialog=!1})},onPageChange:function(t){this.nowPage=t,this.getList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},onPageChangeC:function(t){this.contentNowPage=t,this.handleChange()},onSizeChangeC:function(t){this.contentNowPage=1,this.contentLimit=t,this.handleChange()},getList:function(){var t=this,e={type:this.questionListParams.type,page:this.nowPage,limit:this.limit};this.questionListParams.pid&&(e.pid=this.questionListParams.pid),Object(a._70)(e.type,e).then(function(e){t.modularList=e.list,console.log(t.modularList),t.total=e.total})},delContent:function(t){var e=this;console.log(t),this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log(t),Object(a.W)(t.id).then(function(t){var o={type:e.questionListParams.type};o.pid=e.postModularParams.pid,Object(a._70)(o.type,o).then(function(t){e.modularContent=t.list,console.log(t)}),e.$message({type:"success",message:"删除成功!"})})})},handleClick:function(t){this.questionListParams.type=t.name,this.postModularParams.type=t.name,this.getList()},typeChange:function(){var t=this,e={type:this.postModularParams.type};Object(a._70)(e.type,e).then(function(e){t.selectModular=e.list})}}},m={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"cssbox"},[o("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.questionListParams.type,callback:function(e){t.$set(t.questionListParams,"type",e)},expression:"questionListParams.type"}},[o("el-tab-pane",{attrs:{label:"话术",name:"1"}}),t._v(" "),o("el-tab-pane",{attrs:{label:"流程",name:"2"}})],1),t._v(" "),o("div",{staticClass:"btnBox"},[t.$store.state.readonly?t._e():o("el-button",{attrs:{type:"success",plain:""},on:{click:t.postModularInit}},[t._v("新建模块")])],1),t._v(" "),o("el-collapse",{attrs:{accordion:""},on:{change:t.handleChange},model:{value:t.modularId,callback:function(e){t.modularId=e},expression:"modularId"}},t._l(t.modularList,function(e,i){return o("el-collapse-item",{key:i,attrs:{name:e.id}},[o("template",{slot:"title"},[t._v("\n "+t._s(e.title)+"\n "),o("div",{staticClass:"btn-block list2-btn"},[t.$store.state.readonly?t._e():o("el-button",{staticStyle:{"margin-left":"20px"},attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){t.editModular(e)}}},[t._v("编辑")]),t._v(" "),t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){t.delIndex(e)}}},[t._v("删除")]),t._v(" "),t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){t.upIndex(e,i)}}},[t._v("上移")]),t._v(" "),t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){t.downIndex(e,i)}}},[t._v("下移")])],1)]),t._v(" "),o("div",{staticClass:"btnBox"},[t.$store.state.readonly?t._e():o("el-button",{attrs:{type:"success",plain:""},on:{click:t.postModularContentInit}},[t._v("新建模块内容")])],1),t._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:t.modularContent}},[o("el-table-column",{attrs:{prop:"title",label:"标题"}}),t._v(" "),o("el-table-column",{attrs:{prop:"keywords",label:"关键字"}}),t._v(" "),o("el-table-column",{attrs:{label:"创建时间",prop:"created_at"}}),t._v(" "),t.$store.state.readonly?t._e():o("el-table-column",{attrs:{width:"330",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){t.editContent(e.row)}}},[t._v("编辑查看")]),t._v(" "),t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){t.delContent(e.row)}}},[t._v("删除")]),t._v(" "),t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){t.upcontent(e.row,e.$index)}}},[t._v("上移")]),t._v(" "),t.$store.state.readonly?t._e():o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){t.downcontent(e.row,e.$index)}}},[t._v("下移")])]}}])})],1),t._v(" "),o("page",{attrs:{total:t.contentTotal,limit:t.contentLimit},on:{pageChange:t.onPageChangeC,sizeChange:t.onSizeChangeC}})],2)})),t._v(" "),o("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),o("el-dialog",{attrs:{title:t.modularTitle,center:"",visible:t.postModularDialog,width:"800px"},on:{"update:visible":function(e){t.postModularDialog=e}}},[o("el-form",{ref:"form",attrs:{model:t.postModularParams}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"标题","label-width":"80px",required:""}},[o("el-input",{model:{value:t.postModularParams.title,callback:function(e){t.$set(t.postModularParams,"title",e)},expression:"postModularParams.title"}})],1)],1)],1)],1),t._v(" "),1!==t.type?o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.postModularDialog=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:t.postModularFn}},[t._v("确 定")])],1):t._e()],1),t._v(" "),o("el-dialog",{ref:"ruleForm",attrs:{title:t.modularContentTitle,center:"",visible:t.postModularContentDialog,width:"800px"},on:{"update:visible":function(e){t.postModularContentDialog=e}}},[o("el-form",{ref:"form",attrs:{model:t.postModularParams}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"标题","label-width":"80px",required:""}},[o("el-input",{model:{value:t.postModularParams.title,callback:function(e){t.$set(t.postModularParams,"title",e)},expression:"postModularParams.title"}})],1)],1)],1),t._v(" "),o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"关键词","label-width":"80px",required:""}},[o("el-input",{model:{value:t.postModularParams.keywords,callback:function(e){t.$set(t.postModularParams,"keywords",e)},expression:"postModularParams.keywords"}})],1)],1)],1),t._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"商品详情","label-width":"80px",required:""}},[o("editor-detail",{attrs:{lookData:t.postModularParams}})],1)],1)],1)],1),t._v(" "),1!==t.type?o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(e){t.postModularContentDialog=!1}}},[t._v("取 消")]),t._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(e){t.postModularContentFn("ruleForm")}}},[t._v("确 定")])],1):t._e()],1)],1)},staticRenderFns:[]};var g=o("VU/8")(p,m,!1,function(t){o("Cpxi"),o("G99E")},"data-v-e2fedbb6",null);e.default=g.exports},Cpxi:function(t,e){},G99E:function(t,e){},Q1xo:function(t,e){}});
\ No newline at end of file
webpackJsonp([24],{"0gIA":function(e,t){},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),o={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(e){this.nowPage=e,this.classListOption()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.classListOption()},classListOption:function(){var e=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var t={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(r._83)(t,this.dialogObj.teacher_id).then(function(t){e.classList=t.list,e.total=t.total})}},watch:{"dialogObj.show":function(e){e&&this.classListOption()}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var s={name:"index",data:function(){var e=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[],squad:"1"},today:{text:"今天",onClick:function(){e.searchFirstFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)],e.searchSecondFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFirstFrom.dateValue=[t,t],e.searchSecondFrom.dateValue=[t,t]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},searchSecondFrom:{dateValue:[],squad:"1"},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:a("VU/8")(o,l,!1,function(e){a("jAlk"),a("0gIA")},"data-v-43828d16",null).exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(e,t){return Number(e.total_money)-Number(t.total_money)},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]},11!=this.searchFirstFrom.squad&&(t.squad=this.searchFirstFrom.squad)),Object(r._87)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]},11!=this.searchSecondFrom.squad&&(t.squad=this.searchSecondFrom.squad)),Object(r._84)(t).then(function(t){e.secondList=t})},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var o=t+"-"+a+"-01",l=t+"-"+a+"-"+r;this.searchFirstFrom.dateValue=[o,l],this.searchSecondFrom.dateValue=[o,l]},nameClick:function(e,t){this.dialogObj.teacher_id=e.tid,this.dialogObj.timeValue=void 0!=t?t:[e.cur_date,e.cur_date],this.dialogObj.show=!0}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.searchFirstPage},model:{value:e.searchFirstFrom.squad,callback:function(t){e.$set(e.searchFirstFrom,"squad",t)},expression:"searchFirstFrom.squad"}},[e._l(10,function(e){return a("el-tab-pane",{key:e,attrs:{label:"T"+e,name:e.toString()}})}),e._v(" "),a("el-tab-pane",{key:"",attrs:{label:"总排行",name:"11"}})],2),e._v(" "),a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row,e.searchFirstFrom.dateValue)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_to_two",label:"续课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.searchSecondPage},model:{value:e.searchSecondFrom.squad,callback:function(t){e.$set(e.searchSecondFrom,"squad",t)},expression:"searchSecondFrom.squad"}},[e._l(10,function(e){return a("el-tab-pane",{key:e,attrs:{label:"T"+e,name:e.toString()}})}),e._v(" "),a("el-tab-pane",{key:"",attrs:{label:"总排行",name:"11"}})],2),e._v(" "),a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("u2eo")},"data-v-29ab3fa8",null);t.default=i.exports},jAlk:function(e,t){},u2eo:function(e,t){}});
\ No newline at end of file
webpackJsonp([51],{"0HId":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s("CCn6"),n=s("NC6I"),o=s.n(n),i={data:function(){return{login:{username:"",password:""},loginRules:{username:[{required:!0,message:"请输入您的用户名",trigger:"blur"}],password:[{required:!0,message:"请输入您的密码",trigger:"blur"}]}}},mounted:function(){var e=this;document.onkeydown=function(t){var s=t||window.event;if(13===(s.keyCode||s.which||s.charCode)&&"login"===e.$route.name)return e.submitForm(),!1;return!0}},methods:{submitForm:function(){var e=this;this.$refs.loginForm.validate(function(t){if(t){var s={username:e.login.username,password:o()(e.login.password)};Object(r._101)(s).then(function(t){if(t.teacher_info){var s=JSON.stringify(t.teacher_info);localStorage.setItem("phoneNum",s)}else localStorage.setItem("phoneNum","");e.$store.dispatch("setToken",t.token),e.$store.dispatch("setUserName",t.desc),e.$store.dispatch("setPermission",JSON.parse(t.roles.menu_ids)),window.location.href="/"})}})}}},a={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login"},[s("div",{staticClass:"wrap-main"},[s("h1",{staticClass:"title"},[e._v("唱唱启蒙——后台管理系统")]),e._v(" "),s("el-form",{ref:"loginForm",attrs:{model:e.login,rules:e.loginRules}},[s("el-form-item",{attrs:{prop:"username"}},[s("el-input",{attrs:{placeholder:"用户名"},model:{value:e.login.username,callback:function(t){e.$set(e.login,"username",t)},expression:"login.username"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"password"}},[s("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.login.password,callback:function(t){e.$set(e.login,"password",t)},expression:"login.password"}})],1),e._v(" "),s("el-form-item",[s("el-button",{staticClass:"btn",attrs:{size:"medium",type:"primary"},on:{click:e.submitForm}},[e._v("登陆")])],1)],1)],1)])},staticRenderFns:[]};var l=s("VU/8")(i,a,!1,function(e){s("1QlP")},"data-v-1a4cff7e",null);t.default=l.exports},"1QlP":function(e,t){}});
\ No newline at end of file
webpackJsonp([52],{"5/hE":function(t,n){},SKyX:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=e("CCn6"),r={name:"index",data:function(){return{list:[],dateList:[],propertyList:["title","start_at","total_join_num","total_max_join_num","total_target_join_num","complete_rate","target_diff","wait_join_num","other_wait_join_num"]}},methods:{initPage:function(){var t=this;Object(a._63)().then(function(n){t.list=n,n[0].date&&n[0].date.forEach(function(n){t.dateList.push(n.pay_date)})})},tableRowClassName:function(t){t.row;return 0===t.rowIndex?"warning-row":""},arraySpanMethod:function(t){if(this.propertyList.indexOf(t.column.property)>-1){if(0===t.rowIndex||t.row.id!==this.list[t.rowIndex-1].id){for(var n=1,e=t.rowIndex+1;e<this.list.length&&t.row.id===this.list[e].id;e++)n++;return{rowspan:n,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}}},created:function(){this.initPage()}},o={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("el-table",{attrs:{border:"",align:"center","header-cell-style":{background:"#5f5f5f",color:"#fff"},data:t.list,height:"calc(100vh - 60px)",size:"mini","row-class-name":t.tableRowClassName,"span-method":t.arraySpanMethod}},[e("el-table-column",{attrs:{"min-width":"180",prop:"wait_join_num",align:"left",fixed:"left",label:"期数总状况"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n 期数名称:"+t._s(n.row.title)+"\n "),e("br"),t._v("\n 开始时间:"+t._s(n.row.start_at)+"\n "),e("br"),t._v("\n 团购待进班人数:"+t._s(n.row.wait_join_num)+"\n "),e("br"),t._v("\n 外部订单待进班人数:"+t._s(n.row.other_wait_join_num)+"\n "),e("br"),t._v("\n 总进班人数:"+t._s(n.row.total_join_num)+"\n "),e("br"),t._v("\n 需求供量:"+t._s(n.row.total_max_join_num)+"\n "),e("br"),t._v("\n 目标差距:"+t._s(n.row.target_diff<0?"超标"+-1*n.row.target_diff:n.row.target_diff)+"个\n "),e("br"),t._v("\n 完成率:"),e("el-progress",{staticStyle:{display:"inline-block",width:"calc(90% - 50px)"},attrs:{"text-inside":!0,"stroke-width":16,status:n.row.complete_rate>=1?"exception":"success",percentage:1e3*n.row.complete_rate/10}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"class_name",align:"center","min-width":"80",fixed:"left",label:"班级名称"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s("合计"===n.row.title?"合计":n.row.class_name)+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"max_join_num","min-width":"60",align:"center",label:"预计加入人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"join_num","min-width":"60",align:"center",label:"已进班人数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"other_allot_num",align:"center","min-width":"60",label:"外部订单已分配人数"}}),t._v(" "),t._l(t.dateList,function(n,a){return e("el-table-column",{key:a,attrs:{align:"center",label:n}},[e("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"系统招生量"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(n.row.date[a].total_buy_num)+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"外部订单招生量"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(n.row.date[a].total_other_buy_num)+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{align:"center","min-width":"60px",label:"进班量"},scopedSlots:t._u([{key:"default",fn:function(n){return[t._v("\n "+t._s(n.row.date[a].total_into_num)+"\n ")]}}])})],1)})],2)],1)},staticRenderFns:[]};var l=e("VU/8")(r,o,!1,function(t){e("5/hE")},"data-v-1957a46f",null);n.default=l.exports}});
\ No newline at end of file
webpackJsonp([53],{"5t3x":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{searchFrom:{watchTime:[]},tableData:[],tableHead:[]}},methods:{defaultTime:function(){var t=new Date,e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var r=t.getDate();r<10&&(r="0"+r);var s=e+"-"+a+"-01",l=e+"-"+a+"-"+r;this.searchFrom.watchTime=[s,l]},getList:function(){var t=this,e={};this.searchFrom.watchTime&&this.searchFrom.watchTime.length>0&&(e.start_at=this.searchFrom.watchTime[0],e.end_at=this.searchFrom.watchTime[1]),Object(r._96)(e).then(function(e){t.tableHead=e[0],t.tableData=e.slice(1)})}},mounted:function(){this.defaultTime(),this.getList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期"},model:{value:t.searchFrom.watchTime,callback:function(e){t.$set(t.searchFrom,"watchTime",e)},expression:"searchFrom.watchTime"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:6,offset:6}},[a("el-form-item",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:""}},t._l(t.tableHead,function(e,r){return a("el-table-column",{key:e,attrs:{label:e},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{domProps:{innerHTML:t._s(e.row[r])}})]}}])})}))],1)},staticRenderFns:[]};var n=a("VU/8")(s,l,!1,function(t){a("rRcd")},"data-v-162158ea",null);e.default=n.exports},rRcd:function(t,e){}});
\ No newline at end of file
webpackJsonp([54],{Vt1u:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("CCn6"),a={components:{page:o("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],exportMenuList:["2-3","5-10","5-2","5-1","5-3","5-8","5-9","3-1","7-9"],dialog:{title:"新增角色",show:!1,select:[],chooseed:[],rules:{name:[{required:!0,message:"请填写角色名称",trigger:"change"}]},form:{name:"",menu_ids:[],id:""}}}},created:function(){this.getList(),this.getMenuList()},methods:{distribution:function(e){},rowClick:function(e){this.$router.push({name:"admin",query:{roleId:e.id}})},getMenuList:function(){var e=this;Object(n._55)().then(function(t){t&&(t.forEach(function(t){t.children&&t.children.forEach(function(t){t.readonly=!1,t.delete=!1,e.exportMenuList.indexOf(t.cover)>-1&&(t.export=!1),"5-9"!==t.cover&&"7-9"!==t.cover||(t.distribution=!1),"月课订单列表"!==t.name&&"日课订单列表"!==t.name&&"来源码管理"!==t.name&&"5-9"!==t.cover&&"2-3"!==t.cover&&"3-1"!==t.cover||(t.refund=!1),"2-3"!==t.cover&&"3-1"!==t.cover||(t.classManageUnlimited=!1,t.classManage=!1,t.classTakeUnlimited=!1),"5-1"===t.cover&&(t.promoter=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(n._74)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(n._55)().then(function(o){o&&(o.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1,t.exportMenuList.indexOf(e.cover)>-1&&(e.export=!1),"5-9"!==e.cover&&"7-9"!==e.cover||(e.distribution=!1),"月课订单列表"!==e.name&&"日课订单列表"!==e.name&&"来源码管理"!==e.name&&"5-9"!==e.cover&&"2-3"!==e.cover&&"3-1"!==e.cover||(e.refund=!1),"2-3"!==e.cover&&"3-1"!==e.cover||(e.classManageUnlimited=!1,e.classManage=!1,e.classTakeUnlimited=!1),"5-1"===e.cover&&(e.promoter=!1)})}),t.dialog.select=o,Object(n._73)(e.id).then(function(e){console.log(e),t.dialog.form.name=e.name,t.dialog.form.menu_ids=JSON.parse(e.menu_ids),t.dialog.chooseed=[],t.dialog.form.menu_ids.forEach(function(e){t.dialog.chooseed.push(e.id),t.dialog.select.forEach(function(o){o.children&&o.children.forEach(function(o){o.id===e.id&&(o.readonly=!!e.readonly,o.delete=!!e.delete,t.exportMenuList.indexOf(e.cover)>-1&&(o.export=!!e.export),"5-1"!==e.cover&&"5-10"!==e.cover&&"10-1"!==e.cover&&"5-9"!==e.cover&&"2-3"!==e.cover&&"3-1"!==e.cover||(o.refund=!!e.refund),"2-3"!==e.cover&&"3-1"!==e.cover||(o.classManage=!!e.classManage,o.classManageUnlimited=!!e.classManageUnlimited,o.classTakeUnlimited=!!e.classTakeUnlimited),"5-9"!==e.cover&&"7-9"!==e.cover||(o.distribution=!!e.distribution),"5-1"===e.cover&&(o.promoter=!!e.promoter))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed)})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.P)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=[];e.$refs.tree.getCheckedNodes().forEach(function(e){var t=void 0;!1!==e.readonly&&!0!==e.readonly||(t={id:e.id,cover:e.cover,readonly:e.readonly}),!1!==e.delete&&!0!==e.delete||(t.delete=e.delete),!1!==e.refund&&!0!==e.refund||(t.refund=e.refund),!1!==e.classManage&&!0!==e.classManage||(t.classManage=e.classManage),!1!==e.classManageUnlimited&&!0!==e.classManageUnlimited||(t.classManageUnlimited=e.classManageUnlimited),!1!==e.classTakeUnlimited&&!0!==e.classTakeUnlimited||(t.classTakeUnlimited=e.classTakeUnlimited),!1!==e.promoter&&!0!==e.promoter||(t.promoter=e.promoter),!1!==e.export&&!0!==e.export||(t.export=e.export),!1!==e.distribution&&!0!==e.distribution||(t.distribution=e.distribution),t&&o.push(t)});var a=e.dialog;if(a.form.id){var i={name:a.form.name,menu_ids:JSON.stringify(o)};e.$confirm("此操作将修改该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n._145)(a.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),a.show=!1,e.getList()})})}else{var s={name:a.form.name,menu_ids:JSON.stringify(o)};e.$confirm("此操作将添加新角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n._117)(s).then(function(){e.$message({type:"success",message:"添加成功!"}),a.show=!1,e.getList()})})}}})}}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"role"},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[o("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),o("el-table-column",{attrs:{label:"角色名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"text"},on:{click:function(o){e.rowClick(t.row)}}},[e._v(" "+e._s(t.row.name))])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"100vw"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"角色名称",prop:"name"}},[o("el-input",{model:{value:e.dialog.form.name,callback:function(t){e.$set(e.dialog.form,"name",t)},expression:"dialog.form.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"菜单选项"}},[o("div",{staticClass:"custom-tree-container"},[o("el-tree",{ref:"tree",attrs:{data:e.dialog.select,"show-checkbox":"","node-key":"id","default-checked-keys":e.dialog.chooseed,"default-expand-all":"","expand-on-click-node":!1,props:{children:"children",label:"name",value:!1}},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return o("span",{staticClass:"custom-tree-node"},[o("span",[e._v(e._s(n.label))]),e._v(" "),0!==a.pid?o("span",["5-1"===a.cover||"5-10"===a.cover||"5-9"===a.cover?o("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),"10-1"===a.cover?o("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("类别管理")]):e._e(),e._v(" "),"5-1"===a.cover?o("el-checkbox",{model:{value:a.promoter,callback:function(t){e.$set(a,"promoter",t)},expression:"data.promoter"}},[e._v("编辑推广人")]):e._e(),e._v(" "),"2-3"===a.cover||"3-1"===a.cover?o("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("添加观摩班用户")]):e._e(),e._v(" "),"2-3"===a.cover||"3-1"===a.cover?o("el-checkbox",{model:{value:a.classManage,callback:function(t){e.$set(a,"classManage",t)},expression:"data.classManage"}},[e._v("添加带班班用户")]):e._e(),e._v(" "),"2-3"===a.cover||"3-1"===a.cover?o("el-checkbox",{model:{value:a.classManageUnlimited,callback:function(t){e.$set(a,"classManageUnlimited",t)},expression:"data.classManageUnlimited"}},[e._v("添加观摩班(无限制)")]):e._e(),e._v(" "),"2-3"===a.cover||"3-1"===a.cover?o("el-checkbox",{model:{value:a.classTakeUnlimited,callback:function(t){e.$set(a,"classTakeUnlimited",t)},expression:"data.classTakeUnlimited"}},[e._v("添加带班班(无限制)")]):e._e(),e._v(" "),"5-9"===a.cover||"7-9"===a.cover?o("el-checkbox",{on:{change:e.distribution},model:{value:a.distribution,callback:function(t){e.$set(a,"distribution",t)},expression:"data.distribution"}},[e._v("批量分配")]):e._e(),e._v(" "),e.exportMenuList.indexOf(a.cover)>-1?o("el-checkbox",{model:{value:a.export,callback:function(t){e.$set(a,"export",t)},expression:"data.export"}},[e._v("导出")]):e._e(),e._v(" "),o("el-checkbox",{model:{value:a.readonly,callback:function(t){e.$set(a,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),o("el-checkbox",{model:{value:a.delete,callback:function(t){e.$set(a,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=o("VU/8")(a,i,!1,function(e){o("zr2o")},"data-v-0ef95fa5",null);t.default=s.exports},zr2o:function(e,t){}});
\ No newline at end of file
webpackJsonp([8],{"2qmY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("CCn6"),o=i("kmJW"),r=i("P0f4"),s=i("xGts"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{}},watch:{"dialogObj.show":{deep:!0,handler:function(){console.log(this.dialogObj)}}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),a=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=a.length>0?a[0].label:i[0].children[0].label,this.dialogObj.district=a.length>0?a[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(a.Y)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:r.a},mounted:function(){console.log(this.dialogObj)}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var c=i("VU/8")(n,l,!1,function(e){i("fj09")},"data-v-746d5f77",null).exports,d=i("O6Rd"),_=i("zA5m"),u=i("kmsh"),h=i("+TkF"),m={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return h.k[e]},status:function(e){return h.q[e]},buyType:function(e){return h.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)},staticRenderFns:[]};var v=i("VU/8")(m,p,!1,function(e){i("w+vU")},"data-v-fcd42b82",null).exports,f=i("G2rA"),g=(i("sf/l"),{name:"index",data:function(){var e=this;return{nowPage:1,total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",wait_into_course:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:"",is_captain:""},tableData:[],dialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:h.l,orderStatusOption:h.r,buyTypeOption:h.c,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1,isLeaderOption:h.n}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var a=e.getDate();return a<10&&(a="0"+a),t+"-"+i+"-"+a},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._72)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(e.is_captain=this.searchFrom.is_captain),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=this.searchFrom.payTime[0],e.pay_end_at=this.searchFrom.payTime[1]),this.searchFrom.wait_into_course&&(e.wait_into_course=this.searchFrom.wait_into_course),e.course_type=1,Object(a._19)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(a._47)({page:1,limit:100,course_type:1,status:"1,2"}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var o=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._11)(e,"order",{desc:o}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(t.is_captain=this.searchFrom.is_captain),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=this.searchFrom.payTime[0],t.pay_end_at=this.searchFrom.payTime[1]),this.searchFrom.wait_into_course&&(t.wait_into_course=this.searchFrom.wait_into_course),t.course_type=1,Object(a._59)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=s.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var a=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:a[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(a._86)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(a._141)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})}},components:{addressDialog:c,refundDialog:_.a,detailDialog:v,refundDetail:f.a,sourceDialog:d.a,couponDialog:u.a,page:o.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{},filters:{isLeader:function(e){return h.m[e]},payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return h.k[e]},status:function(e){return h.q[e]},buyType:function(e){return h.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+e.id+"]["+h.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}}}),b={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:"",size:"small"}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{staticStyle:{width:"110px"},model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,a){return i("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{staticStyle:{width:"80px"},attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"团ID"}},[i("el-input",{staticStyle:{width:"80px"},model:{value:e.searchFrom.order_group_id,callback:function(t){e.$set(e.searchFrom,"order_group_id",t)},expression:"searchFrom.order_group_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否团长"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.is_captain,callback:function(t){e.$set(e.searchFrom,"is_captain",t)},expression:"searchFrom.is_captain"}},e._l(e.isLeaderOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"是否入课"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.wait_into_course,callback:function(t){e.$set(e.searchFrom,"wait_into_course",t)},expression:"searchFrom.wait_into_course"}},[i("el-option",{attrs:{label:"已入课",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"未入课",value:"1"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),e.$store.state.export?i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")]):e._e()],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,size:"small",fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称",width:"160"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_group_id",label:"团ID",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"是否团长",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isLeader")(t.row.is_captain))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v(" "+e._s(t.row.address_info.receive_mobile)+"\n "),i("br"),e._v(" "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 下单时间:"+e._s(t.row.created_at)),i("br"),e._v("\n 购买时间:"+e._s(t.row.pay_at)),i("br"),e._v(" "),1!=t.row.buy_type?i("div",[e._v("\n 成团时间:"+e._s(t.row.group_success_time)),i("br"),e._v("\n 截止时间:"+e._s(t.row.deadline)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]),e._v(" "),e.$store.state.promoter?i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")]):e._e()],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var y=i("VU/8")(g,b,!1,function(e){i("MSYr"),i("ekkw")},"data-v-493813db",null);t.default=y.exports},GB5s:function(e,t){},MSYr:function(e,t){},ekkw:function(e,t){},fj09:function(e,t){},"w+vU":function(e,t){},zA5m:function(e,t,i){"use strict";var a=i("CCn6"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};e.dialogObj.order_type&&(i.order_type=e.dialogObj.order_type),Object(a._113)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])},staticRenderFns:[]};var s=i("VU/8")(o,r,!1,function(e){i("GB5s")},"data-v-189146f3",null);t.a=s.exports}});
\ No newline at end of file
webpackJsonp([58],{IcnI:function(e,t,n){"use strict";var a=n("NYxO"),o=n("lRwf"),r=n.n(o),i=n("zSLJ"),u={setToken:function(e,t){e.token=t,i.a.set("cc_token",t)},setUserName:function(e,t){e.userName=t,i.a.set("cc_user_name",t)},setPermission:function(e,t){e.progressList=t,localStorage.setItem("permission",JSON.stringify(t))},setMenu:function(e,t){e.menuList=t},readonly:function(e,t){e.readonly=t},deletePermission:function(e,t){e.deletePermission=t},distribution:function(e,t){e.distribution=t},classManage:function(e,t){e.classManage=t},classManageUnlimited:function(e,t){e.classManageUnlimited=t},classTakeUnlimited:function(e,t){e.classTakeUnlimited=t},promoter:function(e,t){e.promoter=t},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,t){e.menuList.find(function(e){return e.name===t.name}).routerName=t.to.name},progress:function(e,t){switch(t.type){case"new":e.progressList.push({num:0,id:t.id});break;case"change":e.progressList.find(function(e){return e.id===t.id}).num=t.num;break;case"delete":e.progressList.find(function(e){return e.id===t.id})}}};r.a.use(a.a);t.a=new a.a.Store({state:{show:!1,userName:"",token:"",export:!1,orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,distribution:!1,classManage:!1,classManageUnlimited:!1,classTakeUnlimited:!1,promoter:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:u,actions:{setToken:function(e,t){(0,e.commit)("setToken",t)},setUserName:function(e,t){(0,e.commit)("setUserName",t)},setProgress:function(e,t){(0,e.commit)("progress",t)},setPermission:function(e,t){(0,e.commit)("setPermission",t)},setMenu:function(e,t){(0,e.commit)("setMenu",t)},readonly:function(e,t){(0,e.commit)("readonly",t)},deletePermission:function(e,t){(0,e.commit)("deletePermission",t)},distribution:function(e,t){(0,e.commit)("distribution",t)},classManage:function(e,t){(0,e.commit)("classManage",t)},classManageUnlimited:function(e,t){(0,e.commit)("classManageUnlimited",t)},classTakeUnlimited:function(e,t){(0,e.commit)("classTakeUnlimited",t)},promoter:function(e,t){(0,e.commit)("promoter",t)}}})},NAsj:function(e,t){},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([n.e(0),n.e(1)]).then(function(){var t=[n("z5EG")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([n.e(0),n.e(9)]).then(function(){var t=[n("AbSL")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"商品列表",routerName:"shop",path:"/shop",cover:"4-1",router:{path:"/shop",name:"shop",component:function(e){return Promise.all([n.e(0),n.e(15)]).then(function(){var t=[n("1djJ")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"期数管理",icon:"icon-kecheng",list:[{value:"期数列表",routerName:"periods",path:"/periods",cover:"2-2",router:{path:"/periods",name:"periods",component:function(e){return Promise.all([n.e(0),n.e(25)]).then(function(){var t=[n("ayGs")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([n.e(0),n.e(13)]).then(function(){var t=[n("OX9A")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"市场招生统计",routerName:"marketStatistics",path:"/marketStatistics",cover:"2-5",router:{path:"/marketStatistics",name:"marketStatistics",component:function(e){return Promise.all([n.e(0),n.e(52)]).then(function(){var t=[n("SKyX")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([n.e(0),n.e(34)]).then(function(){var t=[n("sg/1")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"自化课列表",routerName:"autoClass",path:"/autoClass",cover:"2-6",router:{path:"/autoClass",name:"autoClass",component:function(e){return Promise.all([n.e(0),n.e(28)]).then(function(){var t=[n("f9Sx")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"销售管理",icon:"icon-laoshi",list:[{value:"教师列表",routerName:"teacher",path:"/teacher",cover:"3-1",router:{path:"/teacher",name:"teacher",component:function(e){return Promise.all([n.e(0),n.e(2)]).then(function(){var t=[n("Y0Vi")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([n.e(0),n.e(5)]).then(function(){var t=[n("xdzM")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([n.e(0),n.e(43)]).then(function(){var t=[n("v/LD")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([n.e(0),n.e(39)]).then(function(){var t=[n("89rD")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([n.e(0),n.e(24)]).then(function(){var t=[n("Fmgy")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"话术列表",routerName:"talkingSkill",path:"/talkingSkill",cover:"11-6",router:{path:"/talkingSkill",name:"talkingSkill",component:function(e){return Promise.all([n.e(0),n.e(23)]).then(function(){var t=[n("CUAv")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([n.e(0),n.e(4)]).then(function(){var t=[n("jFLA")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"老系统用户列表",routerName:"oldUser",path:"/oldUser",cover:"3-3",router:{path:"/oldUser",name:"oldUser",component:function(e){return Promise.all([n.e(0),n.e(38)]).then(function(){var t=[n("K2yr")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"用户积分列表",routerName:"integral",path:"/integral",cover:"3-4",router:{path:"/integral",name:"integral",component:function(e){return Promise.all([n.e(0),n.e(14)]).then(function(){var t=[n("NDyu")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"绑定子账号列表",routerName:"subList",path:"/subList",cover:"3-5",router:{path:"/subList",name:"subList",component:function(e){return Promise.all([n.e(0),n.e(35)]).then(function(){var t=[n("L5jB")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"日课订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([n.e(0),n.e(8)]).then(function(){var t=[n("2qmY")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([n.e(0),n.e(40)]).then(function(){var t=[n("F5pf")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"发货管理",routerName:"consignment",path:"/consignment",cover:"5-4",router:{path:"/consignment",name:"consignment",component:function(e){return n.e(48).then(function(){var t=[n("usUK")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([n.e(0),n.e(55)]).then(function(){var t=[n("s7i+")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"日课订单统计",routerName:"dayOrderCount",path:"/dayOrderCount",cover:"5-11",router:{path:"/dayOrderCount",name:"dayOrderCount",component:function(e){return Promise.all([n.e(0),n.e(44)]).then(function(){var t=[n("mjLz")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([n.e(0),n.e(33)]).then(function(){var t=[n("WvRy")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"扫码入课列表",routerName:"notBuyClass",path:"/notBuyClass",cover:"5-8",router:{path:"/notBuyClass",name:"notBuyClass",component:function(e){return Promise.all([n.e(0),n.e(22)]).then(function(){var t=[n("E6Zo")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"外部订单列表",routerName:"yunji",path:"/yunji",cover:"5-9",router:{path:"/yunji",name:"yunji",component:function(e){return Promise.all([n.e(0),n.e(16)]).then(function(){var t=[n("69L+")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([n.e(0),n.e(12)]).then(function(){var t=[n("CvLZ")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([n.e(0),n.e(21)]).then(function(){var t=[n("B31M")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"盒子列表",routerName:"box",path:"/box",cover:"6-2",router:{path:"/box",name:"box",component:function(e){return Promise.all([n.e(0),n.e(18)]).then(function(){var t=[n("+vCD")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"公众号",icon:"icon-ai-weixin",list:[{value:"自动回复",routerName:"focusReply",path:"/focusReply",cover:"7-1",router:{path:"/focusReply",name:"focusReply",component:function(e){return Promise.all([n.e(0),n.e(19)]).then(function(){var t=[n("CK6D")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([n.e(0),n.e(20)]).then(function(){var t=[n("65NY")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([n.e(0),n.e(26)]).then(function(){var t=[n("q5av")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"素材管理",routerName:"weChatResource",path:"/weChatResource",cover:"7-4",router:{path:"/weChatResource",name:"weChatResource",component:function(e){return Promise.all([n.e(0),n.e(27)]).then(function(){var t=[n("Xhqp")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"二维码管理",routerName:"qrcode",path:"/qrcode",cover:"7-6",router:{path:"/qrcode",name:"qrcode",component:function(e){return Promise.all([n.e(0),n.e(17)]).then(function(){var t=[n("lNiQ")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"群发助手",routerName:"groupSend",path:"/groupSend",cover:"7-7",router:{path:"/groupSend",name:"groupSend",component:function(e){return Promise.all([n.e(0),n.e(10)]).then(function(){var t=[n("oerw")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"关注取关统计",routerName:"watchCount",path:"/watchCount",cover:"7-8",router:{path:"/watchCount",name:"watchCount",component:function(e){return Promise.all([n.e(0),n.e(50)]).then(function(){var t=[n("Dq6T")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"微信统计",routerName:"weChatStatistics",path:"/weChatStatistics",cover:"7-10",router:{path:"/weChatStatistics",name:"weChatStatistics",component:function(e){return Promise.all([n.e(0),n.e(53)]).then(function(){var t=[n("5t3x")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"测试",routerName:"test",path:"/test",cover:"7-11",router:{path:"/test",name:"test",component:function(e){return Promise.all([n.e(0),n.e(31)]).then(function(){var t=[n("9ZSL")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"首页管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([n.e(0),n.e(36)]).then(function(){var t=[n("CGL6")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"外部投放管理",routerName:"externalLaunch",path:"/externalLaunch",cover:"7-9",router:{path:"/externalLaunch",name:"externalLaunch",component:function(e){return Promise.all([n.e(0),n.e(45)]).then(function(){var t=[n("NrkQ")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"来源码管理",routerName:"sourceManage",path:"/sourceManage",cover:"10-1",router:{path:"/sourceManage",name:"sourceManage",component:function(e){return Promise.all([n.e(0),n.e(37)]).then(function(){var t=[n("/ubI")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"短信发送记录",routerName:"smsRecord",path:"/smsRecord",cover:"10-2",router:{path:"/smsRecord",name:"smsRecord",component:function(e){return Promise.all([n.e(0),n.e(29)]).then(function(){var t=[n("qjS+")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"系统配置",routerName:"config",path:"/config",cover:"10-3",router:{path:"/config",name:"config",component:function(e){return Promise.all([n.e(0),n.e(47)]).then(function(){var t=[n("TPCG")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]},{name:"",value:"后台管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([n.e(0),n.e(42)]).then(function(){var t=[n("+jTk")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([n.e(0),n.e(54)]).then(function(){var t=[n("Vt1u")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([n.e(0),n.e(56)]).then(function(){var t=[n("aTXs")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"系统配置",routerName:"sysConfig",path:"/sysConfig",cover:"8-4",router:{path:"/sysConfig",name:"sysConfig",component:function(e){return Promise.all([n.e(0),n.e(32)]).then(function(){var t=[n("gaNG")];e.apply(null,t)}.bind(this)).catch(n.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([n.e(0),n.e(41)]).then(function(){var t=[n("WZgi")];e.apply(null,t)}.bind(this)).catch(n.oe)}}}]}],o={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var t=this.$store.state.progressList;console.log(this.$store.state);var o=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([n.e(0),n.e(11)]).then(function(){var t=[n("9PRC")];e.apply(null,t)}.bind(this)).catch(n.oe)}},i={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([n.e(0),n.e(6)]).then(function(){var t=[n("hFUZ")];e.apply(null,t)}.bind(this)).catch(n.oe)}};a.forEach(function(n){var a=!1,u=[];n.list.forEach(function(n){var o=t.find(function(e){return e.cover===n.cover});o&&(n.router.meta={},n.router.meta.readonly=!!o.readonly,n.router.meta.delete=!!o.delete,n.router.meta.export=!!o.export,n.router.meta.refund=!!o.refund,n.router.meta.distribution=!!o.distribution,n.router.meta.classManage=!!o.classManage,n.router.meta.classManageUnlimited=!!o.classManageUnlimited,n.router.meta.classTakeUnlimited=!!o.classTakeUnlimited,n.router.meta.promoter=!!o.promoter,u.push(n),"3-1"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),"3-2"===o.cover&&(r.meta={},r.meta.readonly=o.readonly,r.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(n.router),a=!0)}),a&&(n.list=u,o.push(n))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},staticRenderFns:[]};var i=n("VU/8")(o,r,!1,function(e){n("NAsj")},null,null).exports,u=n("lRwf"),c=n.n(u),l=n("YaEn"),s=n("IcnI"),m=n("zL8q"),p=n.n(m);c.a.use(p.a),c.a.config.productionTip=!1,new c.a({el:"#app",store:s.a,router:l.a,components:{App:i},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},YaEn:function(e,t,n){"use strict";var a=n("IcnI"),o=n("/ocq"),r=n("zSLJ"),i=new o.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([n.e(0),n.e(7)]).then(function(){var t=[n("jHcp")];e.apply(null,t)}.bind(this)).catch(n.oe)},redirect:{name:"first"},children:[{path:"",name:"first",component:function(e){return n.e(30).then(function(){var t=[n("sJm1")];e.apply(null,t)}.bind(this)).catch(n.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([n.e(0),n.e(51)]).then(function(){var t=[n("0HId")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([n.e(0),n.e(49)]).then(function(){var t=[n("hLMI")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}},{path:"/upload",name:"upload",component:function(e){return Promise.all([n.e(0),n.e(46)]).then(function(){var t=[n("iPJD")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}},{path:"/newLesson",name:"newLesson",component:function(e){return Promise.all([n.e(0),n.e(3)]).then(function(){var t=[n("4t0V")];e.apply(null,t)}.bind(this)).catch(n.oe)},meta:{skip_auth:!0}}]});i.beforeEach(function(e,t,n){if(a.a.commit("mainCanShow"),r.a.get("cc_token")&&(a.a.dispatch("setToken",r.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&a.a.dispatch("setUserName",r.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,i=0;i<a.a.state.menuList.length;i++)for(var u=a.a.state.menuList[i],c=0;c<u.list.length;c++){var l=u.list[c];l.path===e.path&&(o=l)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),a.a.state.orderRefund=e.meta.refund,a.a.state.export=e.meta.export,a.a.state.distribution=e.meta.distribution,a.a.state.classManage=e.meta.classManage,a.a.dispatch("promoter",e.meta.promoter),a.a.dispatch("classManageUnlimited",e.meta.classManageUnlimited),a.a.dispatch("classTakeUnlimited",e.meta.classTakeUnlimited),console.log(e.meta),"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",s)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?n({path:"/login"}):n()}),i.onError(function(e){var t=e.message.match(/Loading chunk (\d)+ failed/g),n=i.history.pending.fullPath;t&&i.replace(n)}),t.a=i},lRwf:function(e,t){e.exports=Vue},zSLJ:function(e,t,n){"use strict";t.a={set:function(e,t,n){var a=new Date;a.setTime(a.getTime()+864e5*n),window.document.cookie=e+"="+t+";path=/;expires="+a.toGMTString()},get:function(e){var t=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,d,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(c&&c(a,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var a={},f={59:0};function b(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,b),f.l=!0,f.exports}b.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,b){c=f[e]=[a,b]});c[2]=a;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"7982a0664de135b30159",1:"d8b0676de9833b9021c7",2:"5e6646315ae04b68360f",3:"308ac190d708f733a364",4:"3ed3c98f0e8bb8f4ef9c",5:"ad9300c494d4c666286a",6:"38ce216bfbb49211be9f",7:"1157891ad5749be5d64b",8:"a33ba640133ba94f5719",9:"e49c8141a4ef2734a0e5",10:"4a2a058fcfdc3a9ede7b",11:"77b0b715272bfe303c20",12:"7c180d5981bcb5433992",13:"9c5d5f1f83b6129f498c",14:"1e38b6fdde5584ef3181",15:"52f3190e2b6e37ce517b",16:"91106ddf055a867a2b98",17:"a794e0f38ab5137556b3",18:"c35f05005c52cabe7a24",19:"934769d40f2856534a7b",20:"5475c964eccb15a80955",21:"ac6f1f47f0e69a69e851",22:"6d9d2b506c71a5a1f28e",23:"3aaa4b300c0e76c73d4b",24:"d3563553604e5da2a82b",25:"5499cab5ab4497b0e45b",26:"2c7281b9cc34e7903508",27:"942372ddcb3494d33291",28:"dff1313541beec47ffcb",29:"65bf42ad1887cf2b948e",30:"3eb7e7a7715e62c5de5e",31:"d0edc9700f5efa5efbca",32:"24fa6f4fcdbe8fbe125d",33:"286019c2c47106096b06",34:"3e4b421119ac865ddd38",35:"4e0aa7e86d8aeaeda4ce",36:"a8b70a1bfbaed393b163",37:"7c85f847967402dd7e55",38:"1c86a4d4e7d757c4c511",39:"c86f142e587554b79a16",40:"50fcf555a30fb1cd8238",41:"420efca685d2e4644b27",42:"8099572a329ce3071e67",43:"6dfefaf3a648746d5cb4",44:"9eb91994c6ca6794918a",45:"e285f4f6d22542005945",46:"c20595efb614a3364b74",47:"8d7e2e82a5af31e353d0",48:"b163cd5e2750e3f00800",49:"c9f06a23be62226c4b86",50:"b2c79cde1d7d573924e8",51:"4ff155c922622727e0ab",52:"bd1c0027e87d7839cd3e",53:"cd2447661b62f0118d21",54:"2bf32544174ba9bd772b",55:"13f76f726131d89f89c2",56:"0211d693d9108d37aa6b"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),a},b.m=e,b.c=a,b.d=function(e,c,a){b.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},b.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(c,"a",c),c},b.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={59:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"7982a0664de135b30159",1:"d8b0676de9833b9021c7",2:"5e6646315ae04b68360f",3:"308ac190d708f733a364",4:"3ed3c98f0e8bb8f4ef9c",5:"ad9300c494d4c666286a",6:"38ce216bfbb49211be9f",7:"1157891ad5749be5d64b",8:"a4fe446cc35fde868e60",9:"e49c8141a4ef2734a0e5",10:"4a2a058fcfdc3a9ede7b",11:"77b0b715272bfe303c20",12:"7c180d5981bcb5433992",13:"9c5d5f1f83b6129f498c",14:"1e38b6fdde5584ef3181",15:"52f3190e2b6e37ce517b",16:"91106ddf055a867a2b98",17:"a794e0f38ab5137556b3",18:"c35f05005c52cabe7a24",19:"934769d40f2856534a7b",20:"5475c964eccb15a80955",21:"ac6f1f47f0e69a69e851",22:"6d9d2b506c71a5a1f28e",23:"3aaa4b300c0e76c73d4b",24:"d3563553604e5da2a82b",25:"5499cab5ab4497b0e45b",26:"2c7281b9cc34e7903508",27:"942372ddcb3494d33291",28:"dff1313541beec47ffcb",29:"65bf42ad1887cf2b948e",30:"3eb7e7a7715e62c5de5e",31:"d0edc9700f5efa5efbca",32:"24fa6f4fcdbe8fbe125d",33:"286019c2c47106096b06",34:"3e4b421119ac865ddd38",35:"4e0aa7e86d8aeaeda4ce",36:"a8b70a1bfbaed393b163",37:"7c85f847967402dd7e55",38:"1c86a4d4e7d757c4c511",39:"c86f142e587554b79a16",40:"50fcf555a30fb1cd8238",41:"420efca685d2e4644b27",42:"8099572a329ce3071e67",43:"6dfefaf3a648746d5cb4",44:"9eb91994c6ca6794918a",45:"e285f4f6d22542005945",46:"c20595efb614a3364b74",47:"8d7e2e82a5af31e353d0",48:"b163cd5e2750e3f00800",49:"c9f06a23be62226c4b86",50:"b2c79cde1d7d573924e8",51:"4ff155c922622727e0ab",52:"bd1c0027e87d7839cd3e",53:"cd2447661b62f0118d21",54:"2bf32544174ba9bd772b",55:"13f76f726131d89f89c2",56:"0211d693d9108d37aa6b"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -44,6 +44,7 @@ export default {
j.router.meta.distribution = !!find.distribution;
j.router.meta.classManage = !!find.classManage;
j.router.meta.classManageUnlimited = !!find.classManageUnlimited;
j.router.meta.classTakeUnlimited = !!find.classTakeUnlimited;
j.router.meta.promoter = !!find.promoter;
t.push(j);
if(find.cover === '3-1'){
......
......@@ -3,6 +3,10 @@
<h2 class="title">班主任业绩排行</h2>
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="业绩总排行" name="first">
<el-tabs v-model="searchFirstFrom.squad" type="card" style="background: white;padding-top: 10px" @tab-click="searchFirstPage">
<el-tab-pane v-for="i in 10" :key="i" :label="'T'+i" :name="i.toString()"/>
<el-tab-pane key="" label="总排行" name="11"/>
</el-tabs>
<el-form ref="searchFirstFrom" inline :model="searchFirstFrom" label-width="100px">
<el-form-item label="起止日期">
<el-date-picker
......@@ -65,6 +69,7 @@
<el-tab-pane label="业绩按天排行" name="second">
<el-tabs v-model="searchSecondFrom.squad" type="card" style="background: white;padding-top: 10px" @tab-click="searchSecondPage">
<el-tab-pane v-for="i in 10" :key="i" :label="'T'+i" :name="i.toString()"/>
<el-tab-pane key="" label="总排行" name="11"/>
</el-tabs>
<el-form ref="searchSecondFrom" inline :model="searchSecondFrom" label-width="100px">
<el-form-item label="起止日期">
......@@ -142,7 +147,8 @@
firstList: [],
secondList: [],
searchFirstFrom: {
dateValue:[]
dateValue:[],
squad:'1'
},
today:{
text:'今天',
......@@ -213,6 +219,9 @@
start_at:this.searchFirstFrom.dateValue[0],
end_at:this.searchFirstFrom.dateValue[1]
};
if(this.searchFirstFrom.squad!=11){
json.squad = this.searchFirstFrom.squad
}
}
getTeacherRankListApi(json).then(res=>{
this.firstList = res;
......@@ -223,9 +232,11 @@
if(this.searchSecondFrom.dateValue){
json = {
start_at:this.searchSecondFrom.dateValue[0],
end_at:this.searchSecondFrom.dateValue[1],
squad:this.searchSecondFrom.squad
end_at:this.searchSecondFrom.dateValue[1]
};
if(this.searchSecondFrom.squad!=11){
json.squad = this.searchSecondFrom.squad
}
}
getTeacherDayRankListApi(json).then(res=>{
this.secondList = res;
......
......@@ -53,7 +53,8 @@
<el-button type="primary" @click="searchList2(classUserLimit)">搜索</el-button>
<el-button type="success" @click="changeClass" v-if="!$store.state.readonly">切换班级</el-button>
<el-button type="success" @click="onAddUser(false)" v-if="$store.state.orderRefund&&userObj.type==2&&userObj.watch_num<60">+添加用户</el-button>
<el-button type="success" @click="onAddUser(false)" v-if="$store.state.classManage&&userObj.type==1">+添加用户</el-button>
<el-button type="success" @click="onAddUser(false)" v-if="$store.state.classManage&&userObj.type==1&&userObj.watch_num<60">+添加用户</el-button>
<el-button type="success" @click="onAddUser(false)" v-if="$store.state.classTakeUnlimited&&userObj.type==1">+添加用户</el-button>
<el-button type="success" @click="onAddUser(false)" v-if="$store.state.classManageUnlimited&&userObj.type==2">+添加用户</el-button>
<el-button type="primary" @click="exportTable(userTable)" v-if="$store.state.export">导出</el-button>
<el-button type="success" @click="onRank()" >看课排行</el-button>
......
......@@ -179,11 +179,9 @@
<el-button @click="updateTeacher(scope.row)" v-if="$store.state.promoter" type="warning" plain size="mini">
编辑推广人
</el-button>
</div>
<el-button slot="reference" size="mini" type="text">操作</el-button>
</el-popover>
</template>
</el-table-column>
</el-table>
......
......@@ -39,7 +39,7 @@
center
append-to-body
:visible.sync="dialog.show"
width="1100px">
width="100vw">
<el-form ref="form" :rules="dialog.rules" :model="dialog.form" label-width="100px">
<el-form-item label="角色名称" prop="name">
<el-input v-model="dialog.form.name"></el-input>
......@@ -63,6 +63,7 @@
<el-checkbox v-model="data.refund" v-if="data.cover ==='2-3'|| data.cover=== '3-1' ">添加观摩班用户</el-checkbox>
<el-checkbox v-model="data.classManage" v-if="data.cover ==='2-3'|| data.cover=== '3-1' ">添加带班班用户</el-checkbox>
<el-checkbox v-model="data.classManageUnlimited" v-if="data.cover ==='2-3'|| data.cover=== '3-1' ">添加观摩班(无限制)</el-checkbox>
<el-checkbox v-model="data.classTakeUnlimited" v-if="data.cover ==='2-3'|| data.cover=== '3-1' ">添加带班班(无限制)</el-checkbox>
<el-checkbox v-model="data.distribution" v-if="data.cover ==='5-9'||data.cover ==='7-9'" @change="distribution" >批量分配</el-checkbox>
<el-checkbox v-model="data.export" v-if="exportMenuList.indexOf(data.cover) >-1" >导出</el-checkbox>
<el-checkbox v-model="data.readonly">只读</el-checkbox>
......@@ -139,6 +140,7 @@
if(j.cover==="2-3"||j.cover==="3-1" ){
j.classManageUnlimited= false;
j.classManage = false;
j.classTakeUnlimited = false;
}
if(j.cover==="5-1")j.promoter = false;
// promoter
......@@ -187,6 +189,7 @@
if(j.cover==="2-3"||j.cover==="3-1" ){
j.classManageUnlimited= false;
j.classManage = false;
j.classTakeUnlimited = false;
}
if(j.cover==="5-1")j.promoter = false;
})
......@@ -215,6 +218,7 @@
if(i.cover==="2-3"||i.cover==="3-1"){
x.classManage = !!i.classManage;
x.classManageUnlimited = !!i.classManageUnlimited;
x.classTakeUnlimited = !!i.classTakeUnlimited;
}
if(i.cover==="5-9"||i.cover==="7-9"){
x.distribution = !!i.distribution;
......@@ -280,6 +284,9 @@
if(i.classManageUnlimited === false || i.classManageUnlimited === true){
json.classManageUnlimited = i.classManageUnlimited
}
if(i.classTakeUnlimited === false || i.classTakeUnlimited === true){
json.classTakeUnlimited = i.classTakeUnlimited
}
if(i.promoter === false || i.promoter === true){
json.promoter = i.promoter
}
......
......@@ -88,6 +88,7 @@ router.beforeEach((to,from,next)=> {
store.state.classManage=to.meta.classManage;
store.dispatch('promoter',to.meta.promoter)
store.dispatch('classManageUnlimited',to.meta.classManageUnlimited)
store.dispatch('classTakeUnlimited',to.meta.classTakeUnlimited)
console.log(to.meta)
if(to.name==='userDetail'){
let list = JSON.parse(localStorage.getItem('permission'))
......
......@@ -32,6 +32,9 @@ export default{
classManageUnlimited({commit},data){
commit('classManageUnlimited',data)
},
classTakeUnlimited({commit},data){
commit('classTakeUnlimited',data)
},
promoter({commit},data){
commit('promoter',data)
}
......
......@@ -16,6 +16,7 @@ export default new vuex.Store({
distribution:false,
classManage:false,
classManageUnlimited:false,
classTakeUnlimited:false,
promoter:false,
mainLoad:true,
menuList:[],
......
......@@ -33,6 +33,9 @@ const mutations={
classManageUnlimited(state,data){
state.classManageUnlimited=data;
},
classTakeUnlimited(state,data){
state.classTakeUnlimited=data;
},
promoter(state,data){
state.promoter=data;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment