Commit 5f3cc0bc authored by wangwei's avatar wangwei

打包发布

parent db55621d
<!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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.4e01a2bf81aec983ba26.js></script><script type=text/javascript src=/static/js/vendor.68d94aff5e92be59d058.js></script><script type=text/javascript src=/static/js/app.18a4e5987362e9227edf.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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.73e0ddfd07afd7303df2.js></script><script type=text/javascript src=/static/js/vendor.68d94aff5e92be59d058.js></script><script type=text/javascript src=/static/js/app.2bc66900fae5843774f4.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',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.
webpackJsonp([45],{Cwy8:function(e,n,t){var o=t("LgZj");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);t("rjj0")("bf21a3b6",o,!1,{})},IcnI:function(e,n,t){"use strict";var o=t("NYxO"),a=t("zSLJ"),r={setToken:function(e,n){e.token=n,a.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,a.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},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})}}};n.a=new o.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:r,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)}}})},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}\r\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/App.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;IACI,aAAa;IACb,UAAU;IACV,WAAW;CACd",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}\r\n"],sourceRoot:""}])},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=[{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(8)]).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(2)]).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(16)]).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(15)]).then(function(){var n=[t("OX9A")];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(23)]).then(function(){var n=[t("sg/1")];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(14)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("jFLA")];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(3)]).then(function(){var n=[t("2qmY")];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(4)]).then(function(){var n=[t("xdzM")];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(31)]).then(function(){var n=[t("89rD")];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(24)]).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(40).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(42)]).then(function(){var n=[t("s7i+")];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(21)]).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(17)]).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(29)]).then(function(){var n=[t("69L+")];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(25)]).then(function(){var n=[t("Fmgy")];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(13)]).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(10)]).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(12)]).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(18)]).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(22)]).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(26)]).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(7)]).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(27)]).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(38)]).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(44)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(20)]).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(41)]).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(19)]).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(30)]).then(function(){var n=[t("qjS+")];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(33)]).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(34)]).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(32)]).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(28)]).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(43)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],a={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,a=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(5)]).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(11)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};o.forEach(function(t){var o=!1,u=[];t.list.forEach(function(t){var a=n.find(function(e){return e.cover===t.cover});a&&(t.router.meta={},t.router.meta.readonly=a.readonly,t.router.meta.delete=!!a.delete,t.router.meta.refund=a.refund,u.push(t),"3-1"===a.cover&&(i.meta={},i.meta.readonly=a.readonly,i.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(i)),"3-2"===a.cover&&(r.meta={},r.meta.readonly=a.readonly,r.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),o=!0)}),o&&(t.list=u,a.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",a)}}},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 s=t("VU/8")(a,u,!1,function(e){c||t("Cwy8")},null,null);s.options.__file="src\\App.vue";var l=s.exports,p=t("YaEn"),h=t("IcnI");Vue.config.productionTip=!1,new Vue({el:"#app",store:h.a,router:p.a,components:{App:l},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("IcnI"),a=t("/ocq"),r=t("zSLJ"),i=new a.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(6)]).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(37).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(36)]).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(35)]).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(39)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});i.beforeEach(function(e,n,t){if(o.a.commit("mainCanShow"),r.a.get("cc_token")&&(o.a.dispatch("setToken",r.a.get("cc_token")),o.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&o.a.dispatch("setUserName",r.a.get("cc_user_name"))),o.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var a=void 0,i=0;i<o.a.state.menuList.length;i++)for(var u=o.a.state.menuList[i],c=0;c<u.list.length;c++){var s=u.list[c];s.path===e.path&&(a=s)}o.a.state.openedTab.indexOf(a)<0&&o.a.state.openedTab.push(a)}if(e.meta.readonly?o.a.dispatch("readonly",!0):o.a.dispatch("readonly",!1),o.a.state.orderRefund=e.meta.refund,"userDetail"===e.name){var l=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;o.a.dispatch("readonly",l)}e.meta.delete?o.a.dispatch("deletePermission",!0):o.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!o.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 o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.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 a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,o,b,i=0,u=[];i<c.length;i++)o=c[i],f[o]&&u.push(f[o][0]),f[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var c={},f={47:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"fd65852fbc287d20e80c",1:"3151d866ee7247920bdc",2:"ee11506e31bb1f6e6f8f",3:"b7435cc0b6cdda494d0d",4:"d7c7fe78bb2e43779fc2",5:"f1fd0e80c24c263e3ad6",6:"87869421222ea462e63b",7:"e3c6748bc9ea11bb77cf",8:"93e85c18ad1a2bde0d6d",9:"605f3910437c9170c0cc",10:"4475e7971cd3fe79517b",11:"0879eaaefdc9a9e1cb7b",12:"a9cf891ee52b388fa411",13:"305fe4d9f030f615c1e3",14:"df088b54f3643a74587d",15:"cf8b190baaef6a61d52f",16:"c0e2051a384f9f43588f",17:"3e3c45a1f437a5aad49f",18:"677a590c5eefaa9642c8",19:"3326319cef9f6fa1cb83",20:"bd7fd2772a93d8c15763",21:"c8344e2969285e49c136",22:"ad1fe7f7e9e8f592cc99",23:"aa8535349c5b8629ee2c",24:"ff1e1e56e28de7ca6e54",25:"125edf1558a75926aa8c",26:"434b10580e5ac9deee90",27:"ed284ade6b59509371be",28:"98b5dcb2774cc519cf81",29:"f9c9abe16100e3f7e876",30:"9f2e709d5575d079d3df",31:"dafcdc84d9ef3ec5a3a1",32:"fa20a623ed591aee05b2",33:"a7dfa270ff930ca5c595",34:"d6be6052653228038581",35:"d8594e5e1190ae00f64a",36:"4f352c373ab3abd4a719",37:"33aa15ea8919ee747a7a",38:"49ed28a6021d6473955d",39:"f7341db79b3d01089134",40:"c67e557492ac6321e7a7",41:"da885522e96b1406034f",42:"1daa6f06ae3da19622f3",43:"b01606a69396b60dbbf7",44:"f723508e3f97ccd30017"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.8b6fb5e2a70cd5ac6f4ef8c1140ca2bb.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.783066d7eafd7fa6d8a4.js></script><script type=text/javascript src=/static/js/vendor.367a4ffb8727f1ac789e.js></script><script type=text/javascript src=/static/js/app.e5e258bdbb0138fb0e3d.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://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.c6f28938530d662753f7c88965b47275.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.4c42bf9366ec1d32df38.js></script><script type=text/javascript src=/static/js/vendor.367a4ffb8727f1ac789e.js></script><script type=text/javascript src=/static/js/app.ac9053704037cbfb8fde.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',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.
webpackJsonp([17],{"2oe3":function(t,e){},CK6D:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a=i("kmJW"),n=i("C+jy"),o={name:"focusReplyDialog",props:["dialogObj"],data:function(){return{show:!1,loading:!1,showEmotion:!1,total:0,nowPage:1,limit:3,id:null,list:[],index:-1,form:{key:"",value:"",desc:""},content:"",imageContent:"",newsContent:"",videoContent:"",voiceContent:"",type:"news",mediaList:[],mediaListMock:[],showMedia:!1,pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},newsItemForm:{type:"news-item",title:"",description:"",thumb_url:"",url:""},newsItemImageList:[],rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}],title:[{required:!0,message:"请输入图文标题",trigger:"change"}],description:[{required:!0,message:"请输入图文描述",trigger:"change"}],url:[{required:!0,message:"请输入图文链接",trigger:"change"}]},imageList:[],uploadShow:!0,newsItemUploadShow:!0}},components:{page:a.a,page2:a.a,page3:a.a,page4:a.a,emotion:n.a},mounted:function(){this.initDialog()},filters:{},methods:{addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"},handleEmotion:function(t){this.content+=t},onChangeType:function(t){this.type=t,this.mediaList=[],this.showMedia=!1,this.nowPage=1},initDialog:function(){if(this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.index=this.dialogObj.index,this.list=this.dialogObj.list||[],-1===this.index)"mini_auto_reply"===this.dialogObj.key?this.type="text":(this.type="news",this.newsContent="");else if(this.type=this.list[this.index].type,"text"===this.type)this.content=this.list[this.index].content;else{var t={type:this.type};this.list[this.index].content&&(t.content=this.list[this.index].content),this.list[this.index].media_id&&(t.media_id=this.list[this.index].media_id),this.list[this.index].variable&&(t.variable=this.list[this.index].variable),"image"===this.type?(this.imageContent=t,"mini_auto_reply"===this.dialogObj.key&&(this.imageList=[{name:"mini-image",url:t.content}],this.uploadShow=!1)):"news"===this.type?this.newsContent=t:"news-item"===this.type||"link"===this.type?(this.newsItemForm.description=this.list[this.index].description,this.newsItemForm.thumb_url=this.list[this.index].thumb_url,this.newsItemForm.title=this.list[this.index].title,this.newsItemForm.url=this.list[this.index].url,this.newsItemImageList=[{name:this.list[this.index].thumb_url,url:this.list[this.index].thumb_url}],this.newsItemUploadShow=!1):"voice"===this.type?this.voiceContent=t:"video"===this.type&&(this.videoContent=t)}},close:function(){this.$emit("changeShow",!1)},save:function(){var t=this,e=this.form,i=this.list||[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});var a={type:this.type,content:this.content};this.index>-1?i[this.index]=a:i.push(a)}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});this.index>-1?i[this.index]=this.imageContent:i.push(this.imageContent)}else if("news"===this.type){if(!this.newsContent)return void this.$message({showClose:!0,message:"请选择图文"});this.index>-1?i[this.index]=this.newsContent:i.push(this.newsContent)}else if("video"===this.type){if(!this.videoContent)return void this.$message({showClose:!0,message:"请选择视频"});this.index>-1?i[this.index]=this.videoContent:i.push(this.videoContent)}else if("news-item"===this.type||"link"===this.type){if(this.newsItemForm.type=this.type,!this.newsItemForm.thumb_url)return void this.$message({showClose:!0,message:"请上传图文图片"});this.index>-1?i[this.index]=this.newsItemForm:i.push(this.newsItemForm)}e.desc=JSON.stringify(i),this.id?Object(s._81)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1),t.show=!1}):Object(s._71)(e).then(function(e){t.$message({type:"success",message:"保存成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1)})},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._33)(i).then(function(i){e.loading=!1,e.type=t,e.total=i.total_count,0===i.item.length?(e.$message({showClose:!0,message:"暂无数据"}),e.showMedia=!1):(e.showMedia=!0,e.mediaList=i.item)}).catch(function(){e.loading=!1,e.showMedia=!1})},onChooseMedia:function(t){"news"===this.type?this.addContent(this.type,t.content,t.media_id):"video"===this.type?this.addContent(this.type,t.info,t.media_id):this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addTeacherQrcode:function(){this.imageContent={type:"image",variable:"my_teacher"}},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),"news"===t?this.newsContent=s:"video"===t?this.videoContent=s:this.imageContent=s},handleNewsItemAvatarSuccess:function(t){this.newsItemImageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]},beforeAvatarUpload:function(){this.uploadShow=!1},handleAvatarSuccess:function(t){this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]},beforeNewsItemAvatarUpload:function(){this.newsItemUploadShow=!1},uploadNewsItemFile:function(t){var e=this;this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),Object(s._91)({file:t.file,type:"local"}).then(function(t){e.newsItemImageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.loading=!1,e.$message({type:"success",message:"上传成功!"}),e.newsItemForm.thumb_url="https://cdn.singsingenglish.com/"+t.url}).catch(function(){e.loading=!1})},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,Object(s._91)({file:t.file,type:"mini"}).then(function(i){e.uploadFileToQiniu(t,i),e.loading=!1}).catch(function(){e.loading=!1})},uploadFileToQiniu:function(t,e){var i=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),Object(s._91)({file:t.file,type:"local"}).then(function(t){i.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],i.loading=!1,i.$message({type:"success",message:"上传成功!"}),i.imageContent={type:"image",content:"https://cdn.singsingenglish.com/"+t.url,media_id:e.media_id}}).catch(function(){i.loading=!1})},handleRemove:function(){this.uploadShow=!0},handleNewsItemRemove:function(){this.newsItemUploadShow=!0}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"自动回复",center:"",visible:t.dialogObj.show,width:"900px"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"content"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"inner"},[i("ul",{staticClass:"weui-desktop-msg-sender__tabs"},[t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg",class:"news"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("news")}}},[t._v("图文")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg",class:"news-item"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("news-item")}}},[t._v("图文链接")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg",class:"link"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("link")}}},[t._v("链接")]):t._e(),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text",class:"text"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("text")}}},[t._v("文字")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"image"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("image")}}},[t._v("图片")]),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_audio",class:"voice"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("voice")}}},[t._v("语音")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_video",class:"video"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("video")}}},[t._v("视频")]):t._e()]),t._v(" "),i("div",{staticClass:"inner-bottom"},["image"===t.type?i("div",{staticClass:"img-action"},[t.imageContent&&"mini_auto_reply"!==t.dialogObj.key?[t.imageContent.variable?i("div",{staticClass:"my-teacher"},[t._v("我的老师二维码")]):t._e(),t._v(" "),t.imageContent.content?i("img",{staticStyle:{"max-width":"80%"},attrs:{src:t.imageContent.content}}):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[!t.showMedia&&t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList("image")}}},[t._v("从素材库中选择")])]):t._e(),t._v(" "),!t.showMedia&&t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:t.addTeacherQrcode}},[t._v("添加老师二维码")])]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"===t.dialogObj.key?i("el-upload",{class:{disabled:!t.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})]):t._e()],1),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"news"===t.type?i("div",{staticClass:"img-action"},[t.newsContent&&t.newsContent.content?[i("div",{staticClass:"news-media"},t._l(t.newsContent.content.news_item,function(e,s){return i("div",{staticStyle:{position:"relative"}},[1===t.newsContent.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(e.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t.newsContent.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===s?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(e.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:e.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"图文",className:"news-media"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])})}}])})],1),t._v(" "),i("page2",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"video"===t.type?i("div",{staticClass:"img-action",staticStyle:{"text-align":"left"}},[t.videoContent&&t.videoContent.content?[t.videoContent.content&&t.videoContent.content.down_url?i("a",{attrs:{href:t.videoContent.content.down_url,target:"_blank"}},[t._v("\n "+t._s(t.videoContent.content.title)+"\n ")]):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e()]}}])})],1),t._v(" "),i("page3",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"voice"===t.type?i("div",{staticClass:"img-action",staticStyle:{"text-align":"left"}},[i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e()]}}])})],1),t._v(" "),i("page4",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]):"text"===t.type?i("div",{staticClass:"inner-emotion_editor"},[i("div",{staticClass:"inner-edit_area"},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),i("div",{staticStyle:{float:"right"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("el-button",{attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("el-button",{attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")]):t._e()],1)]):"news-item"===t.type||"link"===t.type?i("div",{staticClass:"inner-emotion_editor"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.newsItemForm,rules:t.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"图文标题",prop:"title"}},[i("el-input",{model:{value:t.newsItemForm.title,callback:function(e){t.$set(t.newsItemForm,"title",e)},expression:"newsItemForm.title"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"图文描述",prop:"description"}},[i("el-input",{attrs:{type:"textarea"},model:{value:t.newsItemForm.description,callback:function(e){t.$set(t.newsItemForm,"description",e)},expression:"newsItemForm.description"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"图文图片"}},[i("el-upload",{class:{disabled:!t.newsItemUploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadNewsItemFile,"before-upload":t.beforeNewsItemAvatarUpload,"list-type":"picture-card","file-list":t.newsItemImageList,"on-success":t.handleNewsItemAvatarSuccess,"on-remove":t.handleNewsItemRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})])],1),t._v(" "),i("el-form-item",{attrs:{label:"图文链接",prop:"url"}},[i("el-input",{model:{value:t.newsItemForm.url,callback:function(e){t.$set(t.newsItemForm,"url",e)},expression:"newsItemForm.url"}})],1)],1)],1):t._e()]),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:t.save}},[t._v("保存")])],1)])])])])},staticRenderFns:[]};var r=i("VU/8")(o,l,!1,function(t){i("Fni6"),i("Xf0p")},"data-v-22813d83",null).exports,c={name:"focusReply",data:function(){return{loading:!1,total:0,nowPage:1,limit:10,activeName:"focus_reply_new",id:null,list:[],form:{key:"focus_reply_new",value:"focus_reply_new",desc:""},content:"",imageContent:"",type:"text",mediaList:[],showMedia:!1,rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},dialogObj:{show:!1,id:"",index:-1,list:[]}}},components:{page:a.a,dialogCom:r},mounted:function(){this.getList()},filters:{typeFilter:function(t){return t?"text"===t?"文字":"image"===t?"图片":"news"===t?"图文":"video"===t?"视频":"voice"===t?"语音":"news-item"===t?"图文链接":"link"===t?"链接":val:""},contentFilter:function(t){return"text"===t.type?t.content:"image"===t.type?"<img src='"+t.content+"'>":void 0}},methods:{emotion:function(t){var e=t.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},handleClick:function(t){this.form={key:t.name,value:t.name,desc:""},this.nowPage=1,this.getList(),this.id=""},save:function(){var t=this,e=this.form,i=[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});i[0]={type:this.type,content:this.content}}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});i[0]=this.imageContent}e.desc=JSON.stringify(i),this.id?Object(s._81)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"})}):Object(s._71)(e).then(function(e){t.$message({type:"success",message:"保存成功!"})})},onChooseMedia:function(t){this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),this.imageContent=s},getList:function(){var t=this;Object(s._22)({key:this.form.key}).then(function(e){if(e.list.length>0){t.id=e.list[0].id;var i=JSON.parse(e.list[0].desc);t.list=i||[]}else t.list=[]})},add:function(){this.dialogObj={show:!0,id:this.id?this.id:null,index:-1,list:this.list,key:this.form.key,value:this.form.value}},editRow:function(t,e){this.dialogObj={show:!0,id:this.id,index:t,list:this.list,key:this.form.key,value:this.form.value}},deleteRow:function(t,e){var i=this;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a=e;a.splice(t,1);var n={key:i.form.key,value:i.form.value};n.desc=JSON.stringify(a),Object(s._81)(i.id,n).then(function(t){i.$message({type:"success",message:"删除成功!"}),i.getList()})}).catch(function(){i.$message({type:"success",message:"已取消删除!"})})},moveRow:function(t,e){var i=this,a=this.list[t],n=this.list[e];this.list[t]=n,this.list[e]=a;var o=this.list,l={key:this.form.key,value:this.form.value};l.desc=JSON.stringify(o),Object(s._81)(this.id,l).then(function(t){i.$message({type:"success",message:"保存成功!"}),i.getList()})},changeShow:function(t){this.dialogObj.show=t}}},d={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"clear-both top"},[i("span",{staticClass:"title"},[t._v("自动回复")]),t._v(" "),t.$store.state.readonly?t._e():i("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1),t._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"新用户关注",name:"focus_reply_new"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"无课用户关注",name:"focus_reply_no_course"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"有课用户关注",name:"focus_reply_course"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"有订单无课用户关注",name:"order_no_course_reply"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"自动回复",name:"auto_reply"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"小程序自动回复",name:"mini_auto_reply"}})],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,"max-height":"800"}},[i("el-table-column",{attrs:{fixed:"",label:"类型",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("typeFilter")(e.row.type))+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return["text"===e.row.type?i("div",{domProps:{innerHTML:t._s(e.row.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,t.emotion))}}):"image"===e.row.type&&e.row.content?i("a",{attrs:{href:e.row.content,target:"_blank"}},[i("img",{staticClass:"shotcut",attrs:{src:e.row.content}})]):"image"===e.row.type&&e.row.variable?i("div",[t._v("\n 老师二维码\n ")]):"video"===e.row.type?i("div",[i("a",{attrs:{href:e.row.content.down_url,target:"_blank"}},[t._v(t._s(e.row.content.title))])]):"voice"===e.row.type?i("div",[i("a",{attrs:{href:e.row.content.down_url,target:"_blank"}},[t._v(t._s(e.row.content.title))])]):"news"===e.row.type?i("div",[i("div",{staticClass:"news-media"},t._l(e.row.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))]):"news-item"===e.row.type?i("div",[i("div",{staticClass:"news-media"},[i("div",{staticStyle:{position:"relative"}},[i("a",{staticStyle:{"text-decoration":"none"},attrs:{href:e.row.url,target:"_blank"}},[i("div",{staticClass:"single-cover"},[i("img",{staticStyle:{width:"100%"},attrs:{src:e.row.thumb_url}}),t._v(" "),i("div",{staticClass:"title"},[t._v(t._s(e.row.title))]),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(e.row.description))])])])])])]):"link"===e.row.type?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"150px"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("a",{staticStyle:{position:"relative",color:"#333","text-decoration":"none"},attrs:{href:e.row.url,target:"_blank"}},[i("div",{staticClass:"ellip",staticStyle:{margin:"3px","line-height":"2"}},[t._v(t._s(e.row.title))]),t._v(" "),i("div",{staticClass:"f-bt",staticStyle:{position:"relative","margin-left":"3px"}},[i("div",{staticStyle:{color:"#666",width:"63%","word-break":"break-all","word-wrap":"break-word","line-height":"1"}},[t._v(t._s(e.row.description))]),t._v(" "),i("img",{staticStyle:{width:"35%",height:"auto"},attrs:{src:e.row.thumb_url}})])])])],1):t._e()]}}])}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.editRow(e.$index,t.list)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.deleteRow(e.$index,t.list)}}},[t._v("\n 移除\n ")]):t._e(),t._v(" "),0!==e.$index?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index-1,e.$index)}}},[t._v("\n 上移\n ")]):t._e(),t._v(" "),e.$index!==t.list.length-1?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index,e.$index+1)}}},[t._v("\n 下移\n ")]):t._e()]}}])})],1),t._v(" "),t.dialogObj.show?i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}}):t._e()],1)},staticRenderFns:[]};var m=i("VU/8")(c,d,!1,function(t){i("2oe3")},"data-v-7d10bada",null);e.default=m.exports},Fni6:function(t,e){},Xf0p:function(t,e){}});
\ No newline at end of file
webpackJsonp([19],{BBpc:function(t,e){},OX9A:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),o=i("+TkF"),n={props:["dialogObj"],data:function(){return{form:{teacher_id:"",max_join_num:"",class_name:""},teacherList:[],exitTeacherList:[],goodsList:[],periods:{}}},methods:{findDifferentArray:function(t,e){var i=[];return t.forEach(function(t){-1===e.findIndex(function(e){return e.teacher_id===t.id})&&i.push(t)}),i},getTeacher:function(){var t=this;Object(s._53)({limit:100}).then(function(e){t.teacherList=e.list})},getTeacherByPeriods:function(){var t=this;Object(s._53)().then(function(e){t.teacherList=e.list})},initPage:function(){var t=this;switch(this.periods=this.dialogObj.periods,this.dialogObj.type){case 0:this.dialogObj.periodsId||this.getPeriodList(),this.form={teacher_id:"",max_join_num:""},this.getTeacher();break;case 1:Object(s._17)(this.dialogObj.id).then(function(e){t.form={teacher_id:parseInt(e.teacher_id),max_join_num:e.max_join_num,class_name:e.class_name},t.getTeacher()})}},getPeriodList:function(){var t=this;Object(s._28)().then(function(e){e.list.forEach(function(t){t.name="["+o.f[t.goods_type]+"]["+t.current_price/100+"元]"+t.name,t.children=[]}),t.goodsList=e.list,t.periods||Object(s._37)({goods_id:t.goodsList[0].id}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList[0].children=e.list,t.periods=e.list[0]})})},onSave:function(){var t=this;switch(this.form.max_join_num=String(this.form.max_join_num),this.form.teacher_id=String(this.form.teacher_id),this.dialogObj.type){case 0:var e=this.dialogObj.periodsId?this.dialogObj.periodsId:this.periods.id;Object(s.f)(e,this.form).then(function(e){t.$message({type:"success",message:"添加成功!"}),t.$emit("reflash",t.periods),t.dialogObj.show=!1});break;case 1:Object(s.U)(this.dialogObj.id,this.form).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash",t.periods),t.dialogObj.show=!1})}},handleItemChange:function(t){var e=this;Object(s._37)({goods_id:t[0]}).then(function(i){i.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=i.list})},changePeriods:function(t){if(t.length>1){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.getTeacherByPeriods()}},selectName:function(t,e){var i=t.filter(function(t,i){return t.id==e});this.form.class_name=i[0].name+"一班"}},watch:{dialogObj:function(t){this.initPage()}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[this.dialogObj.periodsId?t._e():i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:t.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":t.handleItemChange,change:t.changePeriods}})],1),t._v(" "),i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:function(e){t.selectName(t.teacherList,t.form.teacher_id)}},model:{value:t.form.teacher_id,callback:function(e){t.$set(t.form,"teacher_id",e)},expression:"form.teacher_id"}},t._l(t.teacherList,function(t,e){return i("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),i("el-form-item",{attrs:{label:"班级名称"}},[i("el-input",{staticStyle:{width:"220px"},model:{value:t.form.class_name,callback:function(e){t.$set(t.form,"class_name",e)},expression:"form.class_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"最大学员"}},[i("el-input-number",{model:{value:t.form.max_join_num,callback:function(e){t.$set(t.form,"max_join_num",e)},expression:"form.max_join_num"}})],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var r=i("VU/8")(n,a,!1,function(t){i("t6pA")},"data-v-6c80b9e7",null).exports,l=i("0qGg"),c=i("kmJW"),d={data:function(){return{nowPage:1,total:0,limit:10,periodsId:null,goods_id:null,goodsList:[],teacher_id:"",classList:[],title:"",countObj:"",teacherList:[],userObj:{classId:"",title:"",show:!1,goods_id:null},dialogObj:{show:!1,title:"添加班级",periodsId:"",type:0,id:0},selectedGoods:[]}},components:{UserList:l.a,classDialog:r,page:c.a},filters:{classTypeFilter:function(t){var e=parseInt(t);return 1===e?"带班班级":2===e?"观摩班级":""},percent:function(t){return(100*t).toFixed(2)+"%"}},mounted:function(){this.initPage()},methods:{changeRow:function(t,e){e.indexOf(t)>-1&&Object(s._19)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},initQuery:function(){var t=this,e=this.$route.query;e&&e.goods_id&&e.periods_id?(this.goods_id=e.goods_id,this.selectedGoods=[parseInt(e.goods_id),parseInt(e.periods_id)],Object(s._37)({goods_id:this.selectedGoods[0]}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList.find(function(e){return e.id===t.selectedGoods[0]}).children=e.list;var i=t.goodsList.find(function(e){return e.id===t.selectedGoods[0]});t.periods=i.children.find(function(e){return e.id===t.selectedGoods[1]}),t.teacher_id="",t.getClassList()})):Object(s._24)().then(function(e){e&&(t.goods_id=e.goods_id,t.selectedGoods=[parseInt(e.goods_id),parseInt(e.id)],Object(s._37)({goods_id:t.selectedGoods[0]}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList.find(function(e){return e.id===t.selectedGoods[0]}).children=e.list;var i=t.goodsList.find(function(e){return e.id===t.selectedGoods[0]});t.periods=i.children.find(function(e){return e.id===t.selectedGoods[1]}),t.teacher_id="",t.getClassList()}))})},initPage:function(){var t=this;Object(s._28)({page:1,limit:100,goods_type:"1,2"}).then(function(e){e.list.forEach(function(t){t.name="["+o.f[t.goods_type]+"]["+t.current_price/100+"元]"+t.name,t.children=[]}),t.goodsList=e.list,t.initQuery()})},showUser:function(t){this.userObj={classId:t.id,periods_id:t.periods_id,show:!0,goods_id:this.goods_id,title:t.teacher_name+"班级用户列表",teacherId:t.teacher_id,class_name:t.class_name}},getTeacher:function(){var t=this;this.periods&&Object(s._39)(this.periods.id).then(function(e){var i={};e=e.reduce(function(t,e){return!i[e.teacher_id]&&(i[e.teacher_id]=t.push(e)),t},[]),t.teacherList=e})},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.teacher_id="",this.getTeacher(),this.getClassList()}},onPageChange:function(t){this.nowPage=t,this.getClassList()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getClassList()},onReflash:function(t){this.periods=t,this.selectedGoods=[t.goods_id,t.id],this.getClassList()},getClassList:function(){var t=this;if(this.periods){this.getTeacher();var e={limit:this.limit,page:this.nowPage};this.teacher_id&&(e.teacher_id=this.teacher_id),Object(s._18)(this.periods.id,e).then(function(e){e.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.title=e.periods,t.countObj=e.count?e.count:"",t.classList=e.list,t.total=e.total})}},handleItemChange:function(t){var e=this;Object(s._37)({goods_id:t[0]}).then(function(i){i.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=i.list})},delClass:function(t){var e=this;this.$confirm("此操作将删除该班级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.C)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getClassList()})})},onAdd:function(){this.dialogObj={show:!0,title:"添加班级",type:0,teacherList:this.teacherList?this.teacherList:[]},this.periods&&(this.dialogObj.periods=this.periods,this.dialogObj.periodsId=this.periods.id)},editClass:function(t){this.dialogObj={show:!0,title:"编辑班级",type:1,id:t.id,teacherList:this.teacherList?this.teacherList:[]},this.periods&&(this.dialogObj.periods=this.periods,this.dialogObj.periodsId=this.periods.id)}}},_={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"class"},[i("div",{staticClass:"form-block"},[i("el-form",{attrs:{"label-width":"90px",inline:""}},[i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:t.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":t.handleItemChange,change:t.changePeriods},model:{value:t.selectedGoods,callback:function(e){t.selectedGoods=e},expression:"selectedGoods"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getClassList},model:{value:t.teacher_id,callback:function(e){t.teacher_id=e},expression:"teacher_id"}},t._l(t.teacherList,function(t,e){return i("el-option",{key:e,attrs:{label:t.teacher_name,value:t.teacher_id}})}))],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{attrs:{type:"primary"},on:{click:t.getClassList}},[t._v("\n 搜索\n ")])],1),t._v(" "),i("el-form-item",{staticStyle:{float:"right"}},[t.$store.state.readonly?t._e():i("el-button",{attrs:{type:"success"},on:{click:t.onAdd}},[t._v("+添加班级")])],1)],1)],1),t._v(" "),t.title&&t.title.title?i("div",{staticClass:"intro"},[i("el-form",{attrs:{"label-width":"100px"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"期数名称"}},[t._v(t._s(t.title.title))])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"可看课包数"}},[t._v(t._s(t.title.watch_num))])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"已看课包数"}},[t._v(t._s(t.title.has_watch_num))])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"开始时间"}},[t._v(t._s(t.title.start_at))])],1)],1),t._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"老师数量"}},[t._v(t._s(t.countObj.count_teacher_num))])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"预计学员总数"}},[t._v(t._s(t.countObj.count_max_join_num))])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"学员总数"}},[t._v(t._s(t.countObj.count_join_num))])],1),t._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"结束时间"}},[t._v(t._s(t.title.over_at))])],1)],1)],1)],1):t._e(),t._v(" "),t.title&&t.title.title?t._e():i("div",[i("el-form",{attrs:{"label-width":"300px",inline:""}},[i("el-form-item",{attrs:{label:"暂无期数信息,请先选择期数"}})],1)],1),t._v(" "),i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.classList},on:{"expand-change":t.changeRow}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[i("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"班级名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.class_name)+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"teacher_name",label:"班主任"}}),t._v(" "),i("el-table-column",{attrs:{label:"班级类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("classTypeFilter")(e.row.type))+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"max_join_num",label:"最大人数"}}),t._v(" "),i("el-table-column",{attrs:{prop:"join_num",label:"现有人数"}}),t._v(" "),i("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){t.showUser(e.row)}}},[t._v("班级成员")]),t._v(" "),t.$store.state.readonly?t._e():i("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(i){t.editClass(e.row)}}},[t._v("编辑")]),t._v(" "),t.$store.state.deletePermission&&!t.$store.state.readonly?i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){t.delClass(e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),i("class-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.onReflash}}),t._v(" "),i("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getClassList}})],1)},staticRenderFns:[]};var u=i("VU/8")(d,_,!1,function(t){i("qJp6"),i("BBpc")},"data-v-135a3068",null);e.default=u.exports},qJp6:function(t,e){},t6pA:function(t,e){}});
\ No newline at end of file
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([35],{O4Ak:function(e,t){},Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),i={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],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:{rowClick:function(e){this.$router.push({name:"admin",query:{roleId:e.id}})},getMenuList:function(){var e=this;Object(o._34)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1,"月课订单列表"!==e.name&&"日课订单列表"!==e.name||(e.refund=!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(o._45)(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(o._34)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(e){e.readonly=!1,e.delete=!1,"月课订单列表"!==e.name&&"日课订单列表"!==e.name||(e.refund=!1)})}),t.dialog.select=n,Object(o._44)(e.id).then(function(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(t){t.children&&t.children.forEach(function(t){t.id===e.id&&(t.readonly=!!e.readonly,t.delete=!!e.delete,"5-1"===e.cover&&(t.refund=!!e.refund))})})}),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(o.H)(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),t&&n.push(t)});var i=e.dialog;if(i.form.id){var a={name:i.form.name,menu_ids:JSON.stringify(n)};e.$confirm("此操作将修改该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._88)(i.form.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),i.show=!1,e.getList()})})}else{var l={name:i.form.name,menu_ids:JSON.stringify(n)};e.$confirm("此操作将添加新角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o._74)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),i.show=!1,e.getList()})})}}})}}},a={render: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:"40%"},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 o=t.node,i=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(o.label))]),e._v(" "),0!==i.pid?n("span",["5-1"===i.cover||"5-10"===i.cover?n("el-checkbox",{model:{value:i.refund,callback:function(t){e.$set(i,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:i.readonly,callback:function(t){e.$set(i,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:i.delete,callback:function(t){e.$set(i,"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)},staticRenderFns:[]};var l=n("VU/8")(i,a,!1,function(e){n("O4Ak")},"data-v-7859fb17",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([36],{"+jTk":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),i=o("+TkF"),s=o("kmJW"),l=o("NC6I"),r=o.n(l),n={name:"admin",components:{page:s.a},data:function(){var e=this;return{nowPage:1,total:0,limit:10,adminList:[],searchFrom:{user_name:"",status:"",role_id:""},dialog:{dialogType:0,title:"新增账号",show:!1,select:[{code:0,value:i.a[0]},{code:1,value:i.a[1]}],rules:{username:[{validator:function(t,o,a){""===o&&0===e.dialog.dialogType?a(new Error("请输入账号")):a()},trigger:"blur"}],password:[{validator:function(t,o,a){""!==o||0!==e.dialog.dialogType&&2!==e.dialog.dialogType?(""===e.dialog.form.surePassword||0!==e.dialog.dialogType&&2!==e.dialog.dialogType||e.$refs.form.validateField("surePassword"),a()):a(new Error("请输入密码"))},trigger:"blur"}],surePassword:[{validator:function(t,o,a){0===e.dialog.dialogType||2===e.dialog.dialogType?""===o?a(new Error("请再次输入密码")):o!==e.dialog.form.password?a(new Error("两次输入密码不一致!")):a():a()},trigger:"blur"}],role_id:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入角色")):a()},trigger:"blur"}],desc:[{validator:function(t,o,a){0===e.dialog.dialogType||1===e.dialog.dialogType?""===o&&a(new Error("请输入简述")):a()},trigger:"blur"}]},form:{id:"",username:"",password:"",surePassword:"",role_id:"",status:0,desc:""}},roleList:[]}},filters:{adminStatus:function(e){return i.a[e]}},created:function(){this.$route.query.roleId&&(this.searchFrom.role_id=this.$route.query.roleId),this.getList(),this.getRoleList()},methods:{getRoleList:function(){var e=this;Object(a._45)({page:1,limit:100}).then(function(t){t&&(e.roleList=t.list)})},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_name&&(t.user_name=this.searchFrom.user_name),""!==this.searchFrom.status&&(t.status=this.searchFrom.status),""!==this.searchFrom.role_id&&(t.role_id=this.searchFrom.role_id),Object(a._5)(t).then(function(t){if(""!==e.searchFrom.role_name)switch(e.searchFrom.role_name){case"超级管理员":t.list=t.list.filter(function(e,t){return"超级管理员"==e.role_name});break;case"管理员":t.list=t.list.filter(function(e,t){return"管理员"==e.role_name})}e.adminList=t.list,e.total=Number(t.total),e.$store.commit("mainCanShow")})},editPW:function(e){this.dialog.form.id=e.id,this.dialog.dialogType=2,this.dialog.title="修改密码",this.dialog.form.password="",this.dialog.form.surePassword="",this.dialog.show=!0},edit:function(e){this.dialog.show=!0,this.dialog.dialogType=1,this.dialog.form.id=e.id,this.dialog.title="编辑",this.dialog.form.username=e.user_name,this.dialog.form.password="",this.dialog.form.status=e.status,this.dialog.form.role_id=e.role_id,this.dialog.form.desc=e.desc},add:function(){this.dialog.show=!0,this.dialog.dialogType=0,this.dialog.form.id="",this.dialog.title="新增",this.dialog.form.username="",this.dialog.form.status=0,this.dialog.form.password="",this.dialog.form.role_id="",this.dialog.form.desc=""},del:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.y)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getList()})},onSub:function(){var e=this,t=this.dialog;if(1===t.dialogType){var o={role_id:t.form.role_id,desc:t.form.desc,status:t.form.status};this.$confirm("此操作将编辑该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.Q)(t.form.id,o).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})})}else if(0===t.dialogType){var i={role_id:t.form.role_id,desc:t.form.desc,passwd:r()(t.form.password),username:t.form.username};this.$confirm("此操作将添加新账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.a)(i).then(function(){e.$message({type:"success",message:"添加成功!"}),t.show=!1,e.getList()})})}else if(2===t.dialogType){var s={passwd_new:r()(t.form.password)};this.$confirm("此操作将修改此账号密码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._0)(t.form.id,s).then(function(){e.$message({type:"success",message:"修改成功!"}),t.show=!1,e.getList()})})}}}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")]),e._v(" "),o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,inline:"","label-width":"80px"}},[o("el-form-item",{attrs:{label:"用户名"}},[o("el-input",{model:{value:e.searchFrom.user_name,callback:function(t){e.$set(e.searchFrom,"user_name",t)},expression:"searchFrom.user_name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"状态"}},[o("el-select",{attrs:{placeholder:"请选择用户状态"},on:{change:e.getList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),o("el-option",{attrs:{label:"启用",value:0}}),e._v(" "),o("el-option",{attrs:{label:"冻结",value:1}})],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"角色"}},[o("el-select",{attrs:{placeholder:"请选择角色类型"},on:{change:e.getList},model:{value:e.searchFrom.role_id,callback:function(t){e.$set(e.searchFrom,"role_id",t)},expression:"searchFrom.role_id"}},[o("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{prop:"id",label:"账号ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"user_name",label:"用户名"}}),e._v(" "),o("el-table-column",{attrs:{prop:"role_name",label:"角色"}}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("adminStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"last_login_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[o("el-popover",{attrs:{placement:"top",width:"280"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",type:"warning",plain:""},on:{click:function(o){e.editPW(t.row)}}},[e._v("\n 修改密码\n ")]),e._v(" "),e.$store.state.deletePermission?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("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],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:"30%"},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":"80px"}},[0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"账号",prop:"username"}},[o("el-input",{model:{value:e.dialog.form.username,callback:function(t){e.$set(e.dialog.form,"username",t)},expression:"dialog.form.username"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"密码",prop:"password"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.password,callback:function(t){e.$set(e.dialog.form,"password",t)},expression:"dialog.form.password"}})],1):e._e(),e._v(" "),2===e.dialog.dialogType||0===e.dialog.dialogType?o("el-form-item",{attrs:{label:"确认密码",prop:"surePassword"}},[o("el-input",{attrs:{type:"password"},model:{value:e.dialog.form.surePassword,callback:function(t){e.$set(e.dialog.form,"surePassword",t)},expression:"dialog.form.surePassword"}})],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"角色",prop:"role_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.role_id,callback:function(t){e.$set(e.dialog.form,"role_id",t)},expression:"dialog.form.role_id"}},e._l(e.roleList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1):e._e(),e._v(" "),2!==e.dialog.dialogType?o("el-form-item",{attrs:{label:"简述",prop:"desc"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1):e._e(),e._v(" "),1===e.dialog.dialogType?o("el-form-item",{attrs:{label:"状态",prop:"status"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.status,callback:function(t){e.$set(e.dialog.form,"status",t)},expression:"dialog.form.status"}},e._l(e.dialog.select,function(e){return o("el-option",{key:e.code,attrs:{label:e.value,value:e.code}})}))],1):e._e()],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.onSub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var c=o("VU/8")(n,d,!1,function(e){o("UymJ")},"data-v-6955e2ca",null);t.default=c.exports},UymJ:function(e,t){}});
\ No newline at end of file
webpackJsonp([37],{"0HId":function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var r=t("CCn6"),n=t("NC6I"),o=t.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(s){var t=s||window.event;if(13===(t.keyCode||t.which||t.charCode)&&"login"===e.$route.name)return e.submitForm(),!1;return!0}},methods:{submitForm:function(){var e=this;this.$refs.loginForm.validate(function(s){if(s){var t={username:e.login.username,password:o()(e.login.password)};Object(r._63)(t).then(function(s){e.$store.dispatch("setToken",s.token),e.$store.dispatch("setUserName",s.desc),e.$store.dispatch("setPermission",JSON.parse(s.roles.menu_ids)),window.location.href="/"})}})}}},a={render:function(){var e=this,s=e.$createElement,t=e._self._c||s;return t("div",{staticClass:"login"},[t("div",{staticClass:"wrap-main"},[t("h1",{staticClass:"title"},[e._v("唱唱启蒙——后台管理系统")]),e._v(" "),t("el-form",{ref:"loginForm",attrs:{model:e.login,rules:e.loginRules}},[t("el-form-item",{attrs:{prop:"username"}},[t("el-input",{attrs:{placeholder:"用户名"},model:{value:e.login.username,callback:function(s){e.$set(e.login,"username",s)},expression:"login.username"}})],1),e._v(" "),t("el-form-item",{attrs:{prop:"password"}},[t("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:e.login.password,callback:function(s){e.$set(e.login,"password",s)},expression:"login.password"}})],1),e._v(" "),t("el-form-item",[t("el-button",{staticClass:"btn",attrs:{size:"medium",type:"primary"},on:{click:e.submitForm}},[e._v("登陆")])],1)],1)],1)])},staticRenderFns:[]};var l=t("VU/8")(i,a,!1,function(e){t("TrQ5")},"data-v-53d08e97",null);s.default=l.exports},TrQ5:function(e,s){}});
\ No newline at end of file
webpackJsonp([38],{rNd7:function(e,t){},"s7i+":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),s={name:"index",data:function(){return{goodsList:[],headList:[],tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{initPage:function(){var e=this;Object(r._28)({limit:99999}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._66)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(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 s=t+"-"+a+"-01",n=t+"-"+a+"-"+r;this.searchFrom.dateValue=[s,n]}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("rNd7")},"data-v-47bc2fac",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([39],{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._91)({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 source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([40],{aTXs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("CCn6"),n={data:function(){return{nowPage:1,total:0,menuList:[],plist:[],dialog:{title:"新增菜单",show:!1,rules:{name:[{required:!0,message:"请填写菜单名称",trigger:"change"}],cover:[{required:!0,message:"请填写菜单code",trigger:"change"}]},form:{id:"",name:"",cover:"",pid:0,type:2}}}},created:function(){this.getList()},methods:{getList:function(){var e=this;Object(i._34)().then(function(t){t&&(e.menuList=[],e.plist=[],t.forEach(function(t){e.menuList.push(t),e.plist.push(t),t.children&&t.children.forEach(function(t){e.menuList.push(t)})}))})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑菜单",this.dialog.form.name=e.name,this.dialog.form.cover=e.cover,this.dialog.form.pid=e.pid},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.pid=0,this.dialog.form.cover=""},del:function(e){var t=this;this.$confirm("此操作将删除该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.F)(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.dialog;if(o.form.id){var n={name:o.form.name,cover:o.form.cover,pid:o.form.pid};e.$confirm("此操作将修改该菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._84)(o.form.id,n).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})})}else{var a={name:o.form.name,cover:o.form.cover,pid:o.form.pid};e.$confirm("此操作将添加新菜单?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._72)(a).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})})}}})}}},a={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[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.menuList}},[o("el-table-column",{attrs:{prop:"name",label:"菜单名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"cover",label:"菜单Code"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[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?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("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"30%"},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:"菜单Code",prop:"cover"}},[o("el-input",{model:{value:e.dialog.form.cover,callback:function(t){e.$set(e.dialog.form,"cover",t)},expression:"dialog.form.cover"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"上级菜单",prop:"cover"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.dialog.form.pid,callback:function(t){e.$set(e.dialog.form,"pid",t)},expression:"dialog.form.pid"}},[o("el-option",{attrs:{label:"无",value:0}}),e._v(" "),e._l(e.plist,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})],2)],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 l=o("VU/8")(n,a,!1,function(e){o("tdTk")},"data-v-2a1ecd9d",null);t.default=l.exports},tdTk:function(e,t){}});
\ No newline at end of file
webpackJsonp([45],{"9r2m":function(e,n){},IcnI:function(e,n,t){"use strict";var o=t("NYxO"),a=t("zSLJ"),r={setToken:function(e,n){e.token=n,a.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,a.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},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})}}};n.a=new o.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:r,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)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=[{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(7)]).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(2)]).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(14)]).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(19)]).then(function(){var n=[t("OX9A")];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(26)]).then(function(){var n=[t("sg/1")];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(16)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(9)]).then(function(){var n=[t("jFLA")];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(3)]).then(function(){var n=[t("2qmY")];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(4)]).then(function(){var n=[t("xdzM")];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(29)]).then(function(){var n=[t("89rD")];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(27)]).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(41).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(38)]).then(function(){var n=[t("s7i+")];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(23)]).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(15)]).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(22)]).then(function(){var n=[t("69L+")];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(31)]).then(function(){var n=[t("Fmgy")];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(12)]).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(11)]).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(17)]).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(18)]).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(20)]).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(30)]).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(28)]).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(43)]).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(44)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(25)]).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(32)]).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(13)]).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(24)]).then(function(){var n=[t("qjS+")];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(36)]).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(35)]).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(40)]).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(21)]).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(34)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],a={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,a=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},u={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};o.forEach(function(t){var o=!1,i=[];t.list.forEach(function(t){var a=n.find(function(e){return e.cover===t.cover});a&&(t.router.meta={},t.router.meta.readonly=a.readonly,t.router.meta.delete=!!a.delete,t.router.meta.refund=a.refund,i.push(t),"3-1"===a.cover&&(u.meta={},u.meta.readonly=a.readonly,u.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(u)),"3-2"===a.cover&&(r.meta={},r.meta.readonly=a.readonly,r.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),o=!0)}),o&&(t.list=i,a.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",a)}}},r={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(a,r,!1,function(e){t("9r2m")},null,null).exports,i=t("YaEn"),c=t("IcnI");Vue.config.productionTip=!1,new Vue({el:"#app",store:c.a,router:i.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("IcnI"),a=t("/ocq"),r=t("zSLJ"),u=new a.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(6)]).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(33).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(37)]).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(42)]).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(39)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(o.a.commit("mainCanShow"),r.a.get("cc_token")&&(o.a.dispatch("setToken",r.a.get("cc_token")),o.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&o.a.dispatch("setUserName",r.a.get("cc_user_name"))),o.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var a=void 0,u=0;u<o.a.state.menuList.length;u++)for(var i=o.a.state.menuList[u],c=0;c<i.list.length;c++){var s=i.list[c];s.path===e.path&&(a=s)}o.a.state.openedTab.indexOf(a)<0&&o.a.state.openedTab.push(a)}if(e.meta.readonly?o.a.dispatch("readonly",!0):o.a.dispatch("readonly",!1),o.a.state.orderRefund=e.meta.refund,"userDetail"===e.name){var l=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;o.a.dispatch("readonly",l)}e.meta.delete?o.a.dispatch("deletePermission",!0):o.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!o.a.state.token?t({path:"/login"}):t()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},lRwf:function(e,n){e.exports=Vue},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.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 a=window.webpackJsonp;window.webpackJsonp=function(c,d,t){for(var f,o,b,i=0,u=[];i<c.length;i++)o=c[i],n[o]&&u.push(n[o][0]),n[o]=0;for(f in d)Object.prototype.hasOwnProperty.call(d,f)&&(e[f]=d[f]);for(a&&a(c,d,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=r(r.s=t[i]);return b};var c={},n={47:0};function r(a){if(c[a])return c[a].exports;var n=c[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var a=n[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,r){a=n[e]=[c,r]});a[2]=c;var d=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,r.nc&&t.setAttribute("nonce",r.nc),t.src=r.p+"static/js/"+e+"."+{0:"5e73b10825c136aed36c",1:"23458ca4a0d9085c492a",2:"871ab6589bf0207b704a",3:"d785a23fe6c293105dae",4:"db7b17c6e6d027e760ea",5:"a0312cb439cd357542b8",6:"a16fadb144c4ddc7a341",7:"b64faa27096a562d34b9",8:"4c778e894531f5667892",9:"f8f2feec1875a5994935",10:"b4375346032b263d6a83",11:"6143ccc788d8058f5cec",12:"69f7643a9a15b1934a77",13:"78d24937ec23c3d024bf",14:"8a607a0823e03e536248",15:"6bd9a522a46bd6d9b851",16:"b540f56cfcb97b23ba1b",17:"ca07b35f56819fe1ad5f",18:"029beb1017d0778b3bd0",19:"73a590745402f3186388",20:"05be83d41f3d0173485f",21:"d30e8584cc10304a69ae",22:"2608561c8c049ed20524",23:"c98a1a9eb9512509cb96",24:"e4f91b92677bc8882450",25:"6e1d35594cfe3b72aa58",26:"4b08358281be5da777fd",27:"ac24b0e7591c7f26b0c5",28:"ac434670992ad96a3b77",29:"0f7fde9d908d63bf621f",30:"e83ae9d0804a6f4d925c",31:"3de1263e839781129e8a",32:"d9ddb07e59045b0449e8",33:"c71fa96de9b653c864f6",34:"f4a2e082fc4318264c4f",35:"79aa074e0ce454d21cac",36:"50d170f4c7793e31d934",37:"ea3eb0d7d84e3c38ea83",38:"7885512680dfc1b193ad",39:"e1004106c9caad0cefec",40:"e0cec6f2426ecc2e6ac6",41:"e21892d6297f3f2a734b",42:"86d668db83d239eda50e",43:"81883c56a0f4307cfb23",44:"2b1d42a37ebeb8037a39"}[e]+".js";var f=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(f);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return t.onerror=t.onload=o,d.appendChild(t),c},r.m=e,r.c=c,r.d=function(e,a,c){r.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,"a",a),a},r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},r.p="/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
width="250" width="250"
prop="invite_id" prop="invite_id"
className="f-c" className="f-c"
label="来源"> label="推广人">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click="showSource(scope.row)" v-if="scope.row.invite_earnings > 0 && scope.row.invite_id !== 0" style="width:100%;display: flex;color: #409eff;cursor: pointer"> <div @click="showSource(scope.row)" v-if="scope.row.invite_earnings > 0 && scope.row.invite_id !== 0" style="width:100%;display: flex;color: #409eff;cursor: pointer">
<img :src="scope.row.invite_avatar" class="avatar"/> <img :src="scope.row.invite_avatar" class="avatar"/>
......
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