712

parent f848b472
<!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.9080657c8f474b19f2c4.js></script><script type=text/javascript src=/static/js/vendor.a8f02460e99f2b68b806.js></script><script type=text/javascript src=/static/js/app.4a27039b1cfb8d3f068f.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.35d63c89049eac9fa0e6.js></script><script type=text/javascript src=/static/js/vendor.a8f02460e99f2b68b806.js></script><script type=text/javascript src=/static/js/app.4a27039b1cfb8d3f068f.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([44],{E2ij:function(t,e,s){(t.exports=s("FZ+f")(!0)).push([t.i,"\n.channel-trans-list {\n padding: 20px 0;\n}\n.el-table .cell {\n text-align: center !important;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/conversionList/squadConversionList.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,8BAA8B;CAC/B",file:"squadConversionList.vue",sourcesContent:["\n.channel-trans-list {\n padding: 20px 0;\n}\n.el-table .cell {\n text-align: center !important;\n}\n"],sourceRoot:""}])},M7X6:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("CCn6"),n=s("kmJW"),i=s("+TkF");function r(t,e,s){return e in t?Object.defineProperty(t,e,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[e]=s,t}var o={name:"squadConversionList",data:function(){var t,e=this;return r(t={width:0,nowPage:1,total:0,limit:20,list:[],goods_id:null,teacherList:[],goodsList:[],periodList:[]},"total",0),r(t,"today",{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}}),r(t,"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"]}}),r(t,"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"]}}),r(t,"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"]}}),r(t,"propertyList",[]),r(t,"spanArr",[]),r(t,"contentSpanArr",[]),r(t,"searchFrom",{payTime:[],start_at:"",end_at:"",invite_type:"",invite_name:"",watch_num:"",periods_id:"",squad:"",teacher_id:"",periods_title:""}),r(t,"propertyList",[]),r(t,"watchList",[{id:0,title:5},{id:1,title:6},{id:2,title:10},{id:3,title:20}]),t},components:{page:n.a},methods:{sortMethod:function(t){this.searchFrom.sort_key=t.prop,"ascending"==t.order?this.searchFrom.sort_value="asc":this.searchFrom.sort_value="dasc",this.getChannelTransList()},seachData:function(){this.total=0,this.nowPage=1,this.getChannelTransList()},onPeriodChange:function(t){var e="";e=t.length>1?t.join(","):t[0],this.periods_id=e,console.log(e)},objectSpanMethod:function(t){},handleItemChange:function(t){var e=this;getPeriodsApi({goods_id:t[0],limit:100}).then(function(s){s.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=s.list})},changePeriods:function(t){if(t.length>1){this.goods_id=t[0];var e=this.goodsList.find(function(e){return e.id===t[0]});this.periods=e.children.find(function(e){return e.id===t[1]}),this.searchFrom.periods_id=this.periods.id,this.getChannelTransList()}},changeTeacher:function(t){this.searchFrom.teacher_id=t,this.getChannelTransList()},selectChange:function(t){this.searchFrom.watch_num=this.watchList[t].title,this.getChannelTransList()},formatTime:function(t){var e=t.getFullYear(),s=t.getMonth()+1;s<10&&(s="0"+s);var a=t.getDate();return a<10&&(a="0"+a),e+"-"+s+"-"+a},onPageChange:function(t){this.nowPage=t,this.getChannelTransList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getChannelTransList()},getGoodsList:function(){var t=this;Object(a._59)({page:1,limit:100,goods_type:"1,2"}).then(function(e){e.list.forEach(function(t){t.name="["+t.id+"]["+i.h[t.goods_type]+"]["+t.current_price/100+"元]"+t.name,t.children=[]}),t.goodsList=e.list})},getPeriodsOtherList:function(){var t=this;Object(a._78)({limit:1e3,page:1}).then(function(e){t.periodList=e.list})},getChannelTransList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.sort_value&&(e.sort_value=this.searchFrom.sort_value,e.sort_key=this.searchFrom.sort_key),this.searchFrom.squad&&(e.squad=this.searchFrom.squad),this.searchFrom.watch_num&&(e.watch_num=this.searchFrom.watch_num),this.periods_id&&(e.periods_ids=this.periods_id),this.searchFrom.teacher_id&&(e.teacher_id=this.searchFrom.teacher_id),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(this.searchFrom.payTime[0]&&this.searchFrom.payTime[0].length>0&&(this.searchFrom.start_at=this.searchFrom.payTime[0],e.start_at=this.searchFrom.start_at),this.searchFrom.payTime[1]&&this.searchFrom.payTime[1].length>0&&(this.searchFrom.end_at=this.searchFrom.payTime[1],e.end_at=this.searchFrom.end_at)),Object(a._94)(e).then(function(e){if(e){if(e.list&&e.list.length>0){for(var s in t.total=e.total,t.list=e.list.map(function(s,a){s.index=a,0==a?(t.spanArr.push(1),t.pos=0):s.cur_date==e.list[a-1].cur_date?(t.spanArr[t.pos]+=1,t.spanArr.push(0)):(t.spanArr.push(1),t.pos=a),s.squad="T"+s.squad;var n=s.invite_name&&s.invite_name.length>0?"("+s.invite_name+")":"",i=s.goods_id&&s.goods_id>0?"【"+s.goods_id+"】":"",r=s.watch_num&&s.watch_num>0?"【"+s.watch_num+"个课时】":"";return s.invite_type=""+s.invite_type+n,s.goods_name=""+i+s.goods_name+r,s}),t.list[0])t.propertyList.push(s);t.width=document.documentElement.clientWidth-200}e.list&&0===e.list.length&&(t.list=[])}else t.list=[]})}},mounted:function(){this.getChannelTransList(),this.getGoodsList(),this.getPeriodsOtherList()}},l=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"channel-trans-list"},[s("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"进量日期"}},[s("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[t.today,t.yesterday,t.last7Day,t.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:t.getChannelTransList},model:{value:t.searchFrom.payTime,callback:function(e){t.$set(t.searchFrom,"payTime",e)},expression:"searchFrom.payTime"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"渠道code"}},[s("el-input",{staticStyle:{width:"110px"},model:{value:t.searchFrom.invite_type,callback:function(e){t.$set(t.searchFrom,"invite_type",e)},expression:"searchFrom.invite_type"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"商品课时数"}},[s("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",clearable:"",placeholder:"请选择"},on:{change:t.selectChange},model:{value:t.searchFrom.watch_num,callback:function(e){t.$set(t.searchFrom,"watch_num",e)},expression:"searchFrom.watch_num"}},t._l(t.watchList,function(t,e){return s("el-option",{key:e,attrs:{label:t.title,value:t.id}})}))],1),t._v(" "),s("el-form-item",{attrs:{label:"期数名称",prop:"periods_title"}},[s("el-select",{attrs:{placeholder:"请选择",multiple:"",filterable:""},on:{change:t.onPeriodChange},model:{value:t.searchFrom.periods_id,callback:function(e){t.$set(t.searchFrom,"periods_id",e)},expression:"searchFrom.periods_id"}},t._l(t.periodList,function(t){return s("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})}))],1),t._v(" "),s("el-form-item",[s("div",{staticClass:"flexRow"},[s("el-button",{attrs:{type:"primary",plain:""},on:{click:t.seachData}},[t._v("搜索")])],1)])],1),t._v(" "),s("el-table",{style:{width:t.width+"px"},attrs:{border:"","span-method":t.objectSpanMethod,data:t.list,fixed:""},on:{"sort-change":t.sortMethod}},[s("el-table-column",{attrs:{prop:"squad",label:"组别"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_class_num",label:"到班数",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_friend_num",label:"好友数",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"friend_num_except_class_num",label:"好友率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.friend_num_except_class_num)+"%\n ")]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_come_num",label:"到课数",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"come_num_except_class_num",label:"到课率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.come_num_except_class_num)+"%\n ")]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_buy_num",label:"转化人数",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_buy_num_except_class_num",label:"转化率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sum_buy_num_except_class_num)+"%\n ")]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_one_buy_num",label:"一年课购买人数",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_two_buy_num",label:"两年课购买人数",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_one_buy_money",label:"一年课转化金额",sortable:"custom"}}),t._v(" "),s("el-table-column",{attrs:{prop:"sum_two_buy_money",label:"两年课转化金额",sortable:"custom"}})],1),t._v(" "),s("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},m=c;var h=!1;var u=s("VU/8")(o,m,!1,function(t){h||s("pgdF")},null,null);u.options.__file="src\\components\\conversionList\\squadConversionList.vue";e.default=u.exports},pgdF:function(t,e,s){var a=s("E2ij");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);s("rjj0")("11184946",a,!1,{})}});
\ No newline at end of file
webpackJsonp([48],{"04By":function(t,e,n){var a=n("PtE0");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("4ba4820a",a,!1,{})},PtE0:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.channel-trans-list {\n padding: 20px 0;\n}\n.el-table .cell {\n text-align: center !important;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/conversionList/channelConversionList.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,8BAA8B;CAC/B",file:"channelConversionList.vue",sourcesContent:["\n.channel-trans-list {\n padding: 20px 0;\n}\n.el-table .cell {\n text-align: center !important;\n}\n"],sourceRoot:""}])},h0PA:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("CCn6"),o=n("kmJW"),s=n("+TkF");function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r={name:"channelConversionList",data:function(){var t,e=this;return i(t={width:0,nowPage:1,total:0,limit:20,list:[],goods_id:null,teacherList:[],goodsList:[],periodList:[]},"total",0),i(t,"today",{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}}),i(t,"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"]}}),i(t,"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"]}}),i(t,"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"]}}),i(t,"propertyList",[]),i(t,"spanArr",[]),i(t,"contentSpanArr",[]),i(t,"searchFrom",{payTime:[],start_at:"",end_at:"",invite_type:"",invite_name:"",watch_num:"",periods_id:"",squad:"",teacher_id:"",periods_title:""}),i(t,"propertyList",[]),i(t,"watchList",[{id:0,title:5},{id:1,title:6},{id:2,title:10},{id:3,title:20}]),i(t,"goodList",[]),t},filters:{filterGoods:function(t){return"["+t.id+"]["+s.h[t.goods_type]+"]【"+t.current_price/100+"元】"+t.name}},components:{page:o.a},methods:{sortMethod:function(t){this.searchFrom.sort_key=t.prop,"ascending"==t.order?this.searchFrom.sort_value="asc":this.searchFrom.sort_value="dasc",this.getChannelTransList()},getGoodsOption:function(){var t=this;Object(a._59)({page:1,limit:100,goods_type:"1,2"}).then(function(e){t.goodList=e.list,console.log(t.goodList,176)})},seachData:function(){this.total=0,this.nowPage=1,this.getChannelTransList()},onPeriodChange:function(t){var e="";e=t.length>1?t.join(","):t[0],this.periods_id=e,console.log(e)},objectSpanMethod:function(t){},handleItemChange:function(t){var e=this;getPeriodsApi({goods_id:t[0],limit:100}).then(function(n){n.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=n.list})},changePeriods:function(t){if(t.length>1){this.goods_id=t[0];var e=this.goodsList.find(function(e){return e.id===t[0]});this.periods=e.children.find(function(e){return e.id===t[1]}),this.searchFrom.periods_id=this.periods.id,this.getChannelTransList()}},changeTeacher:function(t){this.searchFrom.teacher_id=t,this.getChannelTransList()},selectChange:function(t){this.searchFrom.watch_num=this.watchList[t].title,this.getChannelTransList()},formatTime:function(t){var e=t.getFullYear(),n=t.getMonth()+1;n<10&&(n="0"+n);var a=t.getDate();return a<10&&(a="0"+a),e+"-"+n+"-"+a},onPageChange:function(t){this.nowPage=t,this.getChannelTransList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getChannelTransList()},getPeriodsOtherList:function(){var t=this;getPeriodsOtherListApi({limit:1e3,page:1}).then(function(e){t.periodList=e.list})},getChannelTransList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.sort_value&&(e.sort_value=this.searchFrom.sort_value,e.sort_key=this.searchFrom.sort_key),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(this.searchFrom.payTime[0]&&this.searchFrom.payTime[0].length>0&&(this.searchFrom.start_at=this.searchFrom.payTime[0],e.start_at=this.searchFrom.start_at),this.searchFrom.payTime[1]&&this.searchFrom.payTime[1].length>0&&(this.searchFrom.end_at=this.searchFrom.payTime[1],e.end_at=this.searchFrom.end_at)),Object(a._42)(e).then(function(e){if(e){if(e.list&&e.list.length>0){for(var n in t.total=e.total,t.list=e.list.map(function(n,a){n.index=a,0==a?(t.spanArr.push(1),t.pos=0):n.cur_date==e.list[a-1].cur_date?(t.spanArr[t.pos]+=1,t.spanArr.push(0)):(t.spanArr.push(1),t.pos=a);var o=n.invite_name&&n.invite_name.length>0?"("+n.invite_name+")":"",s=n.goods_id&&n.goods_id>0?"【"+n.goods_id+"】":"",i=n.watch_num&&n.watch_num>0?"【"+n.watch_num+"个课时】":"";return n.invite_type=""+n.invite_type+o,n.goods_name=""+s+n.goods_name+i,n}),t.list[0])t.propertyList.push(n);t.width=document.documentElement.clientWidth-200}e.list&&0===e.list.length&&(t.list=[])}else t.list=[]})}},mounted:function(){this.getChannelTransList(),this.getGoodsOption()}},l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"channel-trans-list"},[n("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px",inline:""}},[n("el-form-item",{attrs:{label:"进量日期"}},[n("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[t.today,t.yesterday,t.last7Day,t.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:t.getChannelTransList},model:{value:t.searchFrom.payTime,callback:function(e){t.$set(t.searchFrom,"payTime",e)},expression:"searchFrom.payTime"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"渠道code"}},[n("el-input",{staticStyle:{width:"110px"},model:{value:t.searchFrom.invite_type,callback:function(e){t.$set(t.searchFrom,"invite_type",e)},expression:"searchFrom.invite_type"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"商品名称"}},[n("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:t.getChannelTransList},model:{value:t.searchFrom.goods_id,callback:function(e){t.$set(t.searchFrom,"goods_id",e)},expression:"searchFrom.goods_id"}},t._l(t.goodList,function(e,a){return n("el-option",{key:a,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),n("el-form-item",[n("div",{staticClass:"flexRow"},[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.seachData}},[t._v("搜索")])],1)])],1),t._v(" "),n("el-table",{style:{width:t.width+"px"},attrs:{border:"","span-method":t.objectSpanMethod,data:t.list,fixed:""},on:{"sort-change":t.sortMethod}},[n("el-table-column",{attrs:{prop:"is_other",label:"渠道来源"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.is_other?"内部":"外部")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"invite_type_name",label:"渠道类别"}}),t._v(" "),n("el-table-column",{attrs:{prop:"invite_type",label:"渠道类型"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_total_num",label:"订单数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_class_num",label:"到班数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"class_num_except_total_num",label:"到班率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.class_num_except_total_num)+"%\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_friend_num",label:"好友数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"friend_num_except_total_num",label:"好友率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.friend_num_except_total_num)+"%\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_come_num",label:"到课数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"come_num_except_total_num",label:"到课率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.come_num_except_total_num)+"%\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_buy_num",label:"转化人数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_buy_num_except_total_num",label:"转化率",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sum_buy_num_except_total_num)+"%\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_one_buy_num",label:"一年课购买人数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_two_buy_num",label:"两年课购买人数",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_one_buy_money",label:"一年课转化金额",sortable:"custom"}}),t._v(" "),n("el-table-column",{attrs:{prop:"sum_two_buy_money",label:"两年课转化金额",sortable:"custom"}})],1),t._v(" "),n("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},m=c;var u=!1;var h=n("VU/8")(r,m,!1,function(t){u||n("04By")},null,null);h.options.__file="src\\components\\conversionList\\channelConversionList.vue";e.default=h.exports}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
webpackJsonp([56],{"6yV8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("CCn6"),n=a("kmJW"),i=a("+TkF");function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var o={name:"teacherConversionList",data:function(){var e,t=this;return r(e={width:0,nowPage:1,total:0,limit:20,list:[],goods_id:null,teacherList:[],goodsList:[],periodList:[]},"total",0),r(e,"today",{text:"今天",onClick:function(){t.searchFrom.payTime=[t.formatTime(new Date)+" 00:00:00",t.formatTime(new Date)+" 23:59:59"]}}),r(e,"yesterday",{text:"昨天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-864e5));t.searchFrom.payTime=[e+" 00:00:00",e+" 23:59:59"]}}),r(e,"last30Day",{text:"过去30天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-2592e6));t.searchFrom.payTime=[e+" 00:00:00",t.formatTime(new Date)+" 23:59:59"]}}),r(e,"last7Day",{text:"过去7天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-6048e5));t.searchFrom.payTime=[e+" 00:00:00",t.formatTime(new Date)+" 23:59:59"]}}),r(e,"propertyList",[]),r(e,"spanArr",[]),r(e,"contentSpanArr",[]),r(e,"searchFrom",{payTime:[],start_at:"",end_at:"",invite_type:"",invite_name:"",watch_num:"",periods_id:"",squad:"",teacher_id:"",periods_title:""}),r(e,"propertyList",[]),r(e,"watchList",[{id:0,title:5},{id:1,title:6},{id:2,title:10},{id:3,title:20}]),e},components:{page:n.a},methods:{sortMethod:function(e){this.searchFrom.sort_key=e.prop,"ascending"==e.order?this.searchFrom.sort_value="asc":this.searchFrom.sort_value="dasc",this.getChannelTransList()},seachData:function(){this.total=0,this.nowPage=1,this.getChannelTransList()},onPeriodChange:function(e){var t="";t=e.length>1?e.join(","):e[0],this.periods_id=t,console.log(t)},objectSpanMethod:function(e){},handleItemChange:function(e){var t=this;getPeriodsApi({goods_id:e[0],limit:100}).then(function(a){a.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=a.list})},changePeriods:function(e){if(e.length>1){this.goods_id=e[0];var t=this.goodsList.find(function(t){return t.id===e[0]});this.periods=t.children.find(function(t){return t.id===e[1]}),this.searchFrom.periods_id=this.periods.id,this.getChannelTransList()}},changeTeacher:function(e){this.searchFrom.teacher_id=e,this.getChannelTransList()},selectChange:function(e){this.searchFrom.watch_num=this.watchList[e].title,this.getChannelTransList()},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var s=e.getDate();return s<10&&(s="0"+s),t+"-"+a+"-"+s},onPageChange:function(e){this.nowPage=e,this.getChannelTransList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getChannelTransList()},getGoodsList:function(){var e=this;Object(s._59)({page:1,limit:100,goods_type:"1,2"}).then(function(t){t.list.forEach(function(e){e.name="["+e.id+"]["+i.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list})},getPeriodsOtherList:function(){var e=this;Object(s._78)({limit:1e3,page:1}).then(function(t){e.periodList=t.list})},getChannelTransList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.sort_value&&(t.sort_value=this.searchFrom.sort_value,t.sort_key=this.searchFrom.sort_key),this.searchFrom.squad&&(t.squad=this.searchFrom.squad),this.searchFrom.watch_num&&(t.watch_num=this.searchFrom.watch_num),this.periods_id&&(t.periods_ids=this.periods_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(this.searchFrom.payTime[0]&&this.searchFrom.payTime[0].length>0&&(this.searchFrom.start_at=this.searchFrom.payTime[0],t.start_at=this.searchFrom.start_at),this.searchFrom.payTime[1]&&this.searchFrom.payTime[1].length>0&&(this.searchFrom.end_at=this.searchFrom.payTime[1],t.end_at=this.searchFrom.end_at)),Object(s._102)(t).then(function(t){if(t){if(t.list&&t.list.length>0){for(var a in e.total=t.total,e.list=t.list.map(function(a,s){a.index=s,0==s?(e.spanArr.push(1),e.pos=0):a.cur_date==t.list[s-1].cur_date?(e.spanArr[e.pos]+=1,e.spanArr.push(0)):(e.spanArr.push(1),e.pos=s),a.squad="T"+a.squad;var n=a.invite_name&&a.invite_name.length>0?"("+a.invite_name+")":"",i=a.goods_id&&a.goods_id>0?"【"+a.goods_id+"】":"",r=a.watch_num&&a.watch_num>0?"【"+a.watch_num+"个课时】":"";return a.invite_type=""+a.invite_type+n,a.goods_name=""+i+a.goods_name+r,a}),e.list[0])e.propertyList.push(a);e.width=document.documentElement.clientWidth-200}t.list&&0===t.list.length&&(e.list=[])}else e.list=[]})}},mounted:function(){this.getChannelTransList(),this.getPeriodsOtherList(),this.getGoodsList()}},l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"channel-trans-list"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"进量日期"}},[a("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.getChannelTransList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"渠道code"}},[a("el-input",{staticStyle:{width:"110px"},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"组ID"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:e.searchFrom.squad,callback:function(t){e.$set(e.searchFrom,"squad",t)},expression:"searchFrom.squad"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品课时数"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",clearable:"",placeholder:"请选择"},on:{change:e.selectChange},model:{value:e.searchFrom.watch_num,callback:function(t){e.$set(e.searchFrom,"watch_num",t)},expression:"searchFrom.watch_num"}},e._l(e.watchList,function(e,t){return a("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"期数名称",prop:"periods_title"}},[a("el-select",{attrs:{placeholder:"请选择",multiple:"",filterable:""},on:{change:e.onPeriodChange},model:{value:e.searchFrom.periods_id,callback:function(t){e.$set(e.searchFrom,"periods_id",t)},expression:"searchFrom.periods_id"}},e._l(e.periodList,function(e){return a("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"flexRow"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.seachData}},[e._v("搜索")])],1)])],1),e._v(" "),a("el-table",{style:{width:e.width+"px"},attrs:{border:"","span-method":e.objectSpanMethod,data:e.list,fixed:""},on:{"sort-change":e.sortMethod}},[a("el-table-column",{attrs:{prop:"squad",label:"组别"}}),e._v(" "),a("el-table-column",{attrs:{prop:"teacher_name",label:"老师名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_class_num",label:"到班数",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_friend_num",label:"好友数",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"friend_num_except_class_num",label:"好友率",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.friend_num_except_class_num)+"%\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_come_num",label:"到课数",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"come_num_except_class_num",label:"到课率",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.come_num_except_class_num)+"%\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_buy_num",label:"转化人数",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_buy_num_except_class_num",label:"转化率",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.sum_buy_num_except_class_num)+"%\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_one_buy_num",label:"一年课购买人数",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_two_buy_num",label:"两年课购买人数",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_one_buy_money",label:"一年课转化金额",sortable:"custom"}}),e._v(" "),a("el-table-column",{attrs:{prop:"sum_two_buy_money",label:"两年课转化金额",sortable:"custom"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},m=c;var h=!1;var u=a("VU/8")(o,m,!1,function(e){h||a("cZQw")},null,null);u.options.__file="src\\components\\conversionList\\teacherConversionList.vue";t.default=u.exports},NNn0:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.channel-trans-list {\n padding: 20px 0;\n}\n.el-table .cell {\n text-align: center !important;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/conversionList/teacherConversionList.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,8BAA8B;CAC/B",file:"teacherConversionList.vue",sourcesContent:["\n.channel-trans-list {\n padding: 20px 0;\n}\n.el-table .cell {\n text-align: center !important;\n}\n"],sourceRoot:""}])},cZQw:function(e,t,a){var s=a("NNn0");"string"==typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);a("rjj0")("4d51ee49",s,!1,{})}});
\ No newline at end of file
webpackJsonp([64],{"6f06":function(e,t,a){var r=a("dBL8");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("0a77a854",r,!1,{})},dBL8:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.searchFrom[data-v-1517799c] {\n position: absolute;\n top: 20px;\n}\n.el-table[data-v-1517799c] {\n margin-top: 130px;\n}\n[data-v-1517799c] .el-table--enable-row-hover .el-table__body tr:hover > td {\n background-color: #fff;\n}\n[data-v-1517799c] .el-table .warning-row {\n background: oldlace;\n}\n[data-v-1517799c] .el-progress-bar__inner {\n max-width: 100% !important;\n}\n.el-main .content .router-block .child-view[data-v-1517799c] {\n height: 100vh;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/conversionList/marketEnrollmentConversionList.vue"],names:[],mappings:";AACA;EACE,mBAAmB;EACnB,UAAU;CACX;AACD;EACE,kBAAkB;CACnB;AACD;EACE,uBAAuB;CACxB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,2BAA2B;CAC5B;AACD;EACE,cAAc;CACf",file:"marketEnrollmentConversionList.vue",sourcesContent:["\n.searchFrom[data-v-1517799c] {\n position: absolute;\n top: 20px;\n}\n.el-table[data-v-1517799c] {\n margin-top: 130px;\n}\n[data-v-1517799c] .el-table--enable-row-hover .el-table__body tr:hover > td {\n background-color: #fff;\n}\n[data-v-1517799c] .el-table .warning-row {\n background: oldlace;\n}\n[data-v-1517799c] .el-progress-bar__inner {\n max-width: 100% !important;\n}\n.el-main .content .router-block .child-view[data-v-1517799c] {\n height: 100vh;\n}\n"],sourceRoot:""}])},lWjU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6");function n(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var i={name:"index",data:function(){var e,t=this;return n(e={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"],periodList:[],searchFrom:{payTime:[],start_at:"",end_at:"",invite_type:"",invite_name:"",watch_num:"",periods_id:"",squad:"",teacher_id:"",periods_title:""},periods_id:""},"periodList",[]),n(e,"total",0),n(e,"today",{text:"今天",onClick:function(){t.searchFrom.payTime=[t.formatTime(new Date)+" 00:00:00",t.formatTime(new Date)+" 23:59:59"]}}),n(e,"yesterday",{text:"昨天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-864e5));t.searchFrom.payTime=[e+" 00:00:00",e+" 23:59:59"]}}),n(e,"last30Day",{text:"过去30天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-2592e6));t.searchFrom.payTime=[e+" 00:00:00",t.formatTime(new Date)+" 23:59:59"]}}),n(e,"last7Day",{text:"过去7天",onClick:function(){var e=t.formatTime(new Date((new Date).getTime()-6048e5));t.searchFrom.payTime=[e+" 00:00:00",t.formatTime(new Date)+" 23:59:59"]}}),n(e,"watchList",[{id:0,title:5},{id:1,title:6},{id:2,title:10},{id:3,title:20}]),e},methods:{selectChange:function(e){this.searchFrom.watch_num=this.watchList[e].title,this.getList()},onPeriodChange:function(e){var t="";t=e.length>1?e.join(","):e[0],this.periods_id=t,console.log(t)},getPeriodsOtherList:function(){var e=this;Object(r._78)({limit:1e3,page:1}).then(function(t){e.periodList=t.list})},getList:function(){var e=this;this.list=[],this.dateList=[];var t={};this.searchFrom.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.sort_value&&(t.sort_value=this.searchFrom.sort_value,t.sort_key=this.searchFrom.sort_key),this.searchFrom.squad&&(t.squad=this.searchFrom.squad),this.searchFrom.watch_num&&(t.watch_num=this.searchFrom.watch_num),this.periods_id&&(t.periods_ids=this.periods_id),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(this.searchFrom.payTime[0]&&this.searchFrom.payTime[0].length>0&&(this.searchFrom.start_at=this.searchFrom.payTime[0],t.start_at=this.searchFrom.start_at),this.searchFrom.payTime[1]&&this.searchFrom.payTime[1].length>0&&(this.searchFrom.end_at=this.searchFrom.payTime[1],t.end_at=this.searchFrom.end_at)),Object(r._66)(t).then(function(t){e.list=t,t[0].date&&t[0].date.forEach(function(t){e.dateList.push(t.cur_date)})})},tableRowClassName:function(e){e.row;return 0===e.rowIndex?"warning-row":""},arraySpanMethod:function(e){}},created:function(){this.getList(),this.getPeriodsOtherList()}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"进量日期"}},[a("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.getList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品课时数"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.selectChange},model:{value:e.searchFrom.watch_num,callback:function(t){e.$set(e.searchFrom,"watch_num",t)},expression:"searchFrom.watch_num"}},e._l(e.watchList,function(e,t){return a("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"渠道code"}},[a("el-input",{staticStyle:{width:"110px"},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"期数名称",prop:"periods_title"}},[a("el-select",{attrs:{placeholder:"请选择",multiple:"",clearable:"",filterable:""},on:{change:e.onPeriodChange},model:{value:e.searchFrom.periods_id,callback:function(t){e.$set(e.searchFrom,"periods_id",t)},expression:"searchFrom.periods_id"}},e._l(e.periodList,function(e){return a("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"flexRow"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)])],1),e._v(" "),a("el-table",{attrs:{border:"",align:"center","header-cell-style":{background:"#5f5f5f",color:"#fff"},data:e.list,size:"mini",height:"calc(100vh - 210px)","row-class-name":e.tableRowClassName,"span-method":e.arraySpanMethod}},[a("el-table-column",{attrs:{prop:"periods_title",align:"center","min-width":"80",fixed:"",label:"期数名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"is_other","min-width":"160",align:"left",fixed:"",label:"渠道信息"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 来源:"+e._s(0==t.row.is_other?"内部":"外部")),a("br"),e._v("\n 类别:"+e._s(t.row.invite_type_name)),a("br"),e._v("\n 名称:"+e._s(t.row.invite_name)),a("br"),e._v("\n 类型:"+e._s(t.row.invite_type)+"\n ")]}}])}),e._v(" "),e._l(e.dateList,function(t,r){return a("el-table-column",{key:r,attrs:{align:"center",label:t}},[a("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"系统招生量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date[r].friend_num_except_class_num))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"外部订单招生量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date[r].sum_class_num))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center","min-width":"60px",label:"进班量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.date[r].sum_friend_num))]}}])})],1)})],2)],1)};o._withStripped=!0;var s={render:o,staticRenderFns:[]},l=s;var c=!1;var m=a("VU/8")(i,l,!1,function(e){c||a("6f06")},"data-v-1517799c",null);m.options.__file="src\\components\\conversionList\\marketEnrollmentConversionList.vue";t.default=m.exports}});
\ No newline at end of file
This diff is collapsed.
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},c={69:0};function d(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,d){a=c[e]=[f,d]});a[2]=f;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:"7a0639ad241bbb2ede33",1:"bf063802f977067e6dcb",2:"58515f7de13acb470595",3:"8075cb21f900661084cf",4:"46ba00a32ce2a96802af",5:"f5df6b22487543b31cf2",6:"55bd2621c6306ec809d3",7:"7cd8f754a296b96aba40",8:"1f86566f56e62280ad0e",9:"82f98289b89aa27a7160",10:"961ca4d0347850a084c8",11:"30af493b1c6d275259c5",12:"8f6b10c9c8cfaf2e8d97",13:"50663e61b70f56cb4985",14:"2c65e9b3613310e0f5bd",15:"e011d1d5608b8d910bb5",16:"a3d5b4cb2154e2e4836d",17:"e00d1ac1a86f2c222b00",18:"f09f84aeb4f418f912bf",19:"da3a0283eafb4e04a716",20:"1cc78c64bad5349650a8",21:"f118885a967869b2b935",22:"9252180f1a6a496ee274",23:"32b5a7ae5b71f11bb86f",24:"822524dcf38c127a1320",25:"d9f5016f6cea4469d12a",26:"ac16a5f3a08abe6020b6",27:"90552a13645fe8abff17",28:"0ba8646f3ee974df6f0e",29:"006eb1ddf50f9ea166ed",30:"3893509b6f1914b62688",31:"3741b6fd7d9b2e4dca3c",32:"961782ad3591c4391187",33:"869cb4bb09a271b84d1d",34:"a6b761044177d11dc207",35:"419b27e83d767376dfbb",36:"8e6c26316404d22cd185",37:"cabfa2b10c40efd29f2f",38:"163d4f1ab103efb9d425",39:"8eefc4e60e084886a3e5",40:"2a07db6c5afaa1547dfa",41:"f5cbc80a06389832a034",42:"6b54a7fc7c4b4dd9c205",43:"6311911ee98f880190d8",44:"e84d65050c9c698f3886",45:"b421efb2f40501e85b86",46:"b7e42a2cc12d2ff4b500",47:"6f9ab1126a4fe3f259cd",48:"86beb807e24422a8990d",49:"0d7d1519f6dcfe76790c",50:"dedd88db239da35e7e68",51:"afc07ee28b9977a4e86c",52:"58e3a3086ec9b6ec4630",53:"7f1936bedff731843b72",54:"f8cf388a9a5fb44c97d5",55:"07a78bea0bfe42aad53d",56:"2034e3a8ec33940647da",57:"08afe6a1839060b15104",58:"4016b753eaae61443c9d",59:"7a704aedef6bf84cbe7e",60:"1ec4d0f9d1946f2428ce",61:"4d9ce79aed296aa868b8",62:"c8d9edfff11188eb6802",63:"03b46b1821a190c5e2bf",64:"a5785f07146111d6d79c",65:"654549618ef286409099",66:"3f40d2fdd36e80197a09"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,a,f){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="/",d.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.7ddde9b68f78980d301dfe01594b2dab.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.faa17efd54a5a649d7b8.js></script><script type=text/javascript src=/static/js/vendor.564a9feac6b6b03b930d.js></script><script type=text/javascript src=/static/js/app.fbe4304c735d495ff034.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.4cd8300bb539b827828ce36e54d24cdf.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.04e1a1a9e1413f8ddd9e.js></script><script type=text/javascript src=/static/js/vendor.c51fd44cbf7149072a68.js></script><script type=text/javascript src=/static/js/app.e24a9e52fc149053a459.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 diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([21],{B31M:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),i=a("kmJW"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,uploadShow:!0,type:0,title:"",form:{name:"",num:0,cover:""},imageList:[],rules:{},inputVisible:!1,inputValue:"",teacherDetail:{}}},methods:{handleClose:function(e){this.form.category_name.splice(this.form.category_name.indexOf(e),1)},showInput:function(){var e=this;this.inputVisible=!0,this.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.form.category_name.push(e),this.inputVisible=!1,this.inputValue=""},sub:function(){var e=this;switch(this.dialogObj.type){case 0:this.$refs.form.validate(function(t){if(t){e.imageList.length>0&&(e.form.cover=e.imageList[0].name);var a=e.form;a.category_name=a.category_name.join(","),Object(n.o)(a).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}});break;case 1:this.$refs.form.validate(function(t){if(t){e.imageList.length>0&&(e.form.cover=e.imageList[0].name);var a=e.form;a.category_name=a.category_name.join(","),Object(n._20)(e.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}})}},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},beforeAvatarUpload:function(){this.uploadShow=!1},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(n._172)({file:e.file,type:"local"}).then(function(e){t.imageList=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url}],t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},handleRemove:function(){this.uploadShow=!0},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增单品",this.show=this.dialogObj.show,this.type=0,this.imageList=[],this.form={name:"",num:0,cover:"",category_name:[]},this.uploadShow=!0,this.loading=!1;break;case 1:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(n._90)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,num:t.num,cover:t.cover,category_name:t.category_name?t.category_name.split(","):[]},e.form.cover&&""!==e.form.cover?(e.imageList=[{name:t.cover,url:"https://cdn.singsingenglish.com/"+t.cover}],e.uploadShow=!1):(e.imageList=[],e.uploadShow=!0)})}}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("单品名称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"规则:主题名+单品名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("库存数量")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input-number",{model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("标签")])]),e._v(" "),a("el-col",{attrs:{span:20}},[a("el-form-item",[e._l(e.form.category_name,function(t,n){return a("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")])}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleInputConfirm(t):null}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 新增")])],2)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("封面图片")])]),e._v(" "),a("el-col",{attrs:{span:20}},[a("div",{staticClass:"upload-block"},[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1)])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(o,s,!1,function(e){a("EQY0"),a("vgm/")},"data-v-6feb975c",null).exports,r={name:"index",components:{page:i.a,dialogCom:l},data:function(){return{total:0,nowPage:1,limit:10,searchFrom:{name:""},tableData:[],dialogObj:{type:0,show:!1,id:""}}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.category_name&&(t.category_name=this.searchFrom.category_name),Object(n._91)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.initPage()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.initPage()},changeShow:function(){},delthat:function(e){var t=this;this.$confirm("此操作将删除该单品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.S)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.initPage()})},onAdd:function(){this.dialogObj={type:0,show:!0}},edit:function(e){this.dialogObj={type:1,show:!0,id:e.id}}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"single"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"分类名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.category_name,callback:function(t){e.$set(e.searchFrom,"category_name",t)},expression:"searchFrom.category_name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"单品名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4,offset:8}},[a("el-form-item",[e.$store.state.readonly?e._e():a("el-button",{attrs:{type:"success",plain:"",size:"small"},on:{click:e.onAdd}},[e._v("\n 添加单品\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"default-sort":{prop:"num",order:"descending"}}},[a("el-table-column",{attrs:{prop:"id",label:"id"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"category_name",label:"分类"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",sortable:"",label:"库存"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delthat(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.initPage}})],1)},staticRenderFns:[]};var m=a("VU/8")(r,c,!1,function(e){a("JTBX")},"data-v-d3a26312",null);t.default=m.exports},EQY0:function(e,t){},JTBX:function(e,t){},"vgm/":function(e,t){}});
\ No newline at end of file
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._50)({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._50)({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._59)({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._136)(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._75)({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._59)({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._44)(t).then(function(t){e.total=t.total,e.configList=t.list})},getGoodsOption:function(){var e=this;Object(o._59)({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._161)({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._26)("/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
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([29],{"8O+l":function(e,t){},"Z7Q/":function(e,t){},f9Sx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("CCn6"),s={name:"index",data:function(){return{searchFrom:{nickName:"",mobile:"",level:"",userId:""},dialogDetail:{show:!1,id:""},userList:[],total:0,nowPage:1,limit:10,showDetail:!1,showId:"",dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},dialogDetailObj:{show:!1,id:""},loading:!1}},components:{page:a("kmJW").a},mounted:function(){this.getUser()},methods:{sexFormatter:function(e){return 0==e.sex?"保密":1==e.sex?"男":2==e.sex?"女":void 0},onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},getUser:function(){var e=this,t={page:this.nowPage,limit:this.limit};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),Object(l._34)(t).then(function(t){console.log(t),e.userList=t.result.list,e.total=t.result.total})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"user"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),a("el-form-item",[a("div",{staticClass:"flexRow"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"注册时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"last_login_at",label:"最后登录时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"course_title",label:"课程标题"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"优惠券"}}),e._v(" "),a("el-table-column",{attrs:{prop:"order_id",label:"订单Id"}})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var i=a("VU/8")(s,r,!1,function(e){a("8O+l"),a("Z7Q/")},"data-v-9ca7940e",null);t.default=i.exports}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([56],{iPJD:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(n._172)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),i("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return i("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),i("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=i("VU/8")(l,a,!1,function(e){i("wi9J")},"data-v-3a2ff3b1",null);t.default=r.exports},wi9J:function(e,t){}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
webpackJsonp([60],{iXaR:function(e,n){},usUK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i={render:function(){var e=this.$createElement;return(this._self._c||e)("div",[this._v("\n 发货列表\n")])},staticRenderFns:[]};var a=t("VU/8")({name:"index"},i,!1,function(e){t("iXaR")},"data-v-25f084f7",null);n.default=a.exports}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -8,6 +8,7 @@
:props="{value:'id',label:'name'}"
@active-item-change="handleItemChange"
@change="changePeriods"
filterable
v-model="selectedGoods"
></el-cascader>
</el-form-item>
......
......@@ -353,7 +353,7 @@ export default {
});
},
getPeriodsOtherList() {
let json = { max_watch_num: 20 };
let json = { limit: 1000,page:1 };
getPeriodsOtherListApi(json).then(res => {
this.periodList = res.list;
});
......
......@@ -194,7 +194,7 @@ export default {
console.log(str);
},
getPeriodsOtherList() {
let json = { max_watch_num: 20 };
let json = { limit: 1000,page:1 };
getPeriodsOtherListApi(json).then(res => {
this.periodList = res.list;
});
......
......@@ -20,6 +20,7 @@
:props="{value:'id',label:'name'}"
@active-item-change="handleItemChange"
@change="changePeriods"
filterable
v-model="selectedGoods"
></el-cascader>
</el-form-item>
......
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