Commit 39e2f92a authored by wangwei's avatar wangwei

12-18 问题修改

parent 8281daff
<!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.7811aedc29ba7e845a1a.js></script><script type=text/javascript src=/static/js/vendor.14d7484eb2c1e77c5000.js></script><script type=text/javascript src=/static/js/app.0d0014dcb77feff6e486.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.f85d6386c7e8d6446a9d.js></script><script type=text/javascript src=/static/js/vendor.14d7484eb2c1e77c5000.js></script><script type=text/javascript src=/static/js/app.5a1b6dcec9f2d8c0fca5.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);
}; };
......
<!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.cdc1608fa18c564a9f811d2c46e45c48.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.efe8aee754cb2a176601.js></script><script type=text/javascript src=/static/js/vendor.b3fa793c64cacc9d7887.js></script><script type=text/javascript src=/static/js/app.29a64e93e60dbb01937f.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.cdc1608fa18c564a9f811d2c46e45c48.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.cffbde75cb1e44ea63e4.js></script><script type=text/javascript src=/static/js/vendor.b3fa793c64cacc9d7887.js></script><script type=text/javascript src=/static/js/app.122aeece991280711cac.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);
}; };
......
webpackJsonp([31],{"9nWa":function(e,t){},"b6P+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),c={data:function(){return{cacheList:[{name:"主题列表",key:"course_relation_list"},{name:"课包列表",key:"course_category_list "},{name:"课包内容",key:"element_detail"}]}},methods:{cache:function(e){var t=this;this.$confirm("此操作将清除该缓存记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.u)(e).then(function(e){t.$message({type:"success",message:"清除成功!"})})})}}},s={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"clearCache"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.cacheList}},[n("el-table-column",{staticStyle:{"padding-left":"30px"},attrs:{prop:"name",label:"缓存列表"}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){e.cache(t.row.key)}}},[e._v("\n 清除缓存\n ")])]}}])})],1)],1)},staticRenderFns:[]};var i=n("VU/8")(c,s,!1,function(e){n("9nWa")},"data-v-acfd2756",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([42],{"/Jai":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(5)]).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(15)]).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(12)]).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(21)]).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(8)]).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:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(19)]).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(37).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(35)]).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:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(28)]).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(11)]).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(18)]).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(16)]).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(17)]).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(9)]).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(22)]).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(39)]).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(40)]).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(13)]).then(function(){var n=[t("/ubI")];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(29)]).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(32)]).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(36)]).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(25)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"清除缓存",routerName:"clearCache",path:"/clearCache",cover:"8-6",router:{path:"/clearCache",name:"clearCache",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("b6P+")];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(27)]).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=n.find(function(e){return"5-1"===e.cover});r&&r.refund&&(this.$store.state.orderRefund=!0);var i={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(4)]).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(7)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};o.forEach(function(t){var o=!1,r=[];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,r.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&&(i.meta={},i.meta.readonly=a.readonly,i.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(i)),e.$router.options.routes[0].children.push(t.router),o=!0)}),o&&(t.list=r,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 i=t("VU/8")(a,r,!1,function(e){t("/Jai")},null,null).exports,u=t("YaEn"),c=t("IcnI");Vue.config.productionTip=!1,new Vue({el:"#app",store:c.a,router:u.a,components:{App:i},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(30).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(33)]).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(38)]).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(34)]).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 l=u.list[c];l.path===e.path&&(a=l)}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),"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;o.a.dispatch("readonly",s)}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 c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var b,o,d,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(b in r)Object.prototype.hasOwnProperty.call(r,b)&&(e[b]=r[b]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)d=n(n.s=t[i]);return d};var a={},f={44:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"4ce4ad0e10b321edc5cf",1:"88a7a5d5f64607f7680c",2:"05cbb5cddbb996934f87",3:"7ae24e94e14860c1eec4",4:"b62e0a48c6b3f81884fd",5:"c49513a1a31477216784",6:"0ea7fda41e8a1aaedb86",7:"f8957879794fc81298e6",8:"43978c2af5c48059ebe5",9:"a5a18cb5e331e78cc446",10:"07fb2f523be2fefdf898",11:"2f25d2d4f3787c64f11d",12:"2f3f80b3f9e1005dab5e",13:"52f31f2f1f2ec784d032",14:"671edaf32c08204c887d",15:"95c4305160cd67aadcbc",16:"bbcf5a750ae0f322d156",17:"4946ab3c8f0ad3737582",18:"bc1941a101bd47cfcc27",19:"3b0a203bf198800a9a32",20:"9ba73221b5f3631ee058",21:"a5ba24d1b30c154e6362",22:"b8d0318967f722313415",23:"48e4c4b60e8851cdb450",24:"c2a0f56496b43bb953f6",25:"64cc98ef405b27ed5ec2",26:"0c0e4e4b3b1532b1de87",27:"c72da290311c7c779c27",28:"fb148890c340592352e4",29:"e80ca28babd19c0e98eb",30:"1cf13e08b26e88cf9743",31:"39e500475089e3b5ee54",32:"6f97cba9284ebd2d315d",33:"27c9fa8c3aa2ba28f96c",34:"ef1faed5d9194e7fc894",35:"a51a27a67dc62c513a2c",36:"e743bbb5b0a15a273b49",37:"e4fba7cd617a6408a479",38:"9d3e73e68aaef44778f3",39:"03c2325a674ea03a7680",40:"32db5e6b04da31ebec3b",41:"ec024773819fe02a63e0"}[e]+".js";var b=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(b);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
{{ scope.row['register_num'] }} {{ scope.row['register_num'] }}
</span> </span>
<span v-if="data === '总金额'"> <span v-if="data === '总金额'">
{{ scope.row['total_money'] }} {{ scope.row['total_money']}}
</span> </span>
<span v-if="data !== '时间' && data !== '注册数' && data !== '总金额'"> <span v-if="data !== '时间' && data !== '注册数' && data !== '总金额'">
{{ scope.row[data] }} {{ scope.row[data] | toFixed2}}
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
...@@ -82,6 +82,20 @@ ...@@ -82,6 +82,20 @@
this.defaultTime(); this.defaultTime();
this.initPage() this.initPage()
}, },
filters:{
toFixed2(value){
if(typeof value === 'number'){
let v2 = value.toString().split(".");
if(v2.length > 1 && v2[1].length > 2){
return Number(value).toFixed(2)
}else{
return value
}
}else {
return value
}
}
},
methods:{ methods:{
initPage(){ initPage(){
getGoodsListApi({limit:99999}).then(res=>{ getGoodsListApi({limit:99999}).then(res=>{
......
...@@ -241,7 +241,6 @@ ...@@ -241,7 +241,6 @@
limit: 100 limit: 100
}; };
getTeacherListApi(json1).then((res)=>{ getTeacherListApi(json1).then((res)=>{
console.log(res.list)
this.teacherOptions = res.list; this.teacherOptions = res.list;
this.teacher1Options = res.list; this.teacher1Options = res.list;
this.teacher2Options = res.list; this.teacher2Options = res.list;
...@@ -295,7 +294,9 @@ ...@@ -295,7 +294,9 @@
if (this.dialogObj.form.id){ if (this.dialogObj.form.id){
this.form = this.dialogObj.form; this.form = this.dialogObj.form;
} else { } else {
this.form = {}; this.form = {
rest_week_day:[]
};
} }
if(this.dialogObj.form.course_id){ if(this.dialogObj.form.course_id){
this.getLessonDetail(this.dialogObj.form.course_id); this.getLessonDetail(this.dialogObj.form.course_id);
......
<template> <template>
<div class="admin"> <div class="admin">
<el-form ref="searchFrom" :model="searchFrom" label-width="80px"> <el-button @click="add" plain type="success" style="float: right;margin-bottom:10px;" v-if="!$store.state.readonly">新增角色</el-button>
<el-row> <el-form ref="searchFrom" :model="searchFrom" inline label-width="80px">
<el-col :span="4">
<el-form-item label="用户名"> <el-form-item label="用户名">
<el-input v-model="searchFrom.user_name"></el-input> <el-input v-model="searchFrom.user_name"></el-input>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="状态"> <el-form-item label="状态">
<el-select v-model="searchFrom.status" placeholder="请选择用户等级" @change="getList"> <el-select v-model="searchFrom.status" placeholder="请选择用户等级" @change="getList">
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
...@@ -15,25 +12,17 @@ ...@@ -15,25 +12,17 @@
<el-option label="冻结" :value="1"></el-option> <el-option label="冻结" :value="1"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="4">
<el-form-item label="角色"> <el-form-item label="角色">
<el-select v-model="searchFrom.role_name" placeholder="请选择用户等级" @change="getList"> <el-select v-model="searchFrom.role_id" placeholder="请选择用户等级" @change="getList">
<el-option label="全部" value=""></el-option> <el-option
<el-option label="超级管理员" value="超级管理员"></el-option> v-for="data in roleList"
<el-option label="管理员" value="管理员"></el-option> :label="data.name"
:value="data.id" ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="4">
<el-form-item> <el-form-item>
<el-button type="primary" plain @click="getList">搜索</el-button> <el-button type="primary" plain @click="getList">搜索</el-button>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="16" :offset="8">
<el-button @click="add" plain type="success" style="float: right;margin-bottom:10px;" v-if="!$store.state.readonly">新增角色</el-button>
</el-col>
</el-row>
</el-form> </el-form>
<!--<div class="head clear-both">--> <!--<div class="head clear-both">-->
<!----> <!---->
...@@ -207,7 +196,7 @@ ...@@ -207,7 +196,7 @@
searchFrom:{ searchFrom:{
user_name: '', user_name: '',
status: '', status: '',
role_name:"" role_id:""
}, },
dialog:{ dialog:{
dialogType:0, dialogType:0,
...@@ -246,6 +235,9 @@ ...@@ -246,6 +235,9 @@
}, },
}, },
created(){ created(){
if(this.$route.query.roleId){
this.searchFrom.role_id = this.$route.query.roleId
}
this.getList(); this.getList();
this.getRoleList(); this.getRoleList();
}, },
...@@ -258,12 +250,12 @@ ...@@ -258,12 +250,12 @@
}) })
}, },
onPageChange(val){ onPageChange(val){
this.nowPage = val this.nowPage = val;
this.getList() this.getList()
}, },
onSizeChange(val){ onSizeChange(val){
this.nowPage = 1 this.nowPage = 1;
this.limit = val this.limit = val;
this.getList() this.getList()
}, },
getList(){ getList(){
...@@ -277,21 +269,21 @@ ...@@ -277,21 +269,21 @@
if (this.searchFrom.status !== ''){ if (this.searchFrom.status !== ''){
json.status = this.searchFrom.status json.status = this.searchFrom.status
} }
// if (this.searchFrom.role_id !== ''){ if (this.searchFrom.role_id !== ''){
// json.role_id = this.searchFrom.role_id json.role_id = this.searchFrom.role_id
// } }
getAdminListApi(json).then(res=>{ getAdminListApi(json).then(res=>{
if(this.searchFrom.role_name !== ''){ if(this.searchFrom.role_name !== ''){
switch(this.searchFrom.role_name){ switch(this.searchFrom.role_name){
case '超级管理员': case '超级管理员':
res.list=res.list.filter(function(item,i){ res.list=res.list.filter(function(item,i){
return item.role_name == "超级管理员" return item.role_name == "超级管理员"
}) });
break; break;
case '管理员': case '管理员':
res.list=res.list.filter(function(item,i){ res.list=res.list.filter(function(item,i){
return item.role_name == "管理员" return item.role_name == "管理员"
}) });
break; break;
} }
} }
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</div> </div>
<el-table <el-table
:data="roleList" :data="roleList"
@row-click="rowClick"
style="width: 100%"> style="width: 100%">
<el-table-column <el-table-column
prop="id" prop="id"
...@@ -108,6 +109,9 @@ ...@@ -108,6 +109,9 @@
this.getMenuList(); this.getMenuList();
}, },
methods:{ methods:{
rowClick(data){
this.$router.push({name:'admin',query:{roleId:data.id}})
},
getMenuList(){ getMenuList(){
getMenuListApi().then(res=>{ getMenuListApi().then(res=>{
if (res) { if (res) {
......
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
<div class="sys"> <div class="sys">
<div class="clear-both top"> <div class="clear-both top">
<el-button type="success" plain @click="add" style="float: right" v-if="!$store.state.readonly">添加配置</el-button> <el-button type="success" plain @click="add" style="float: right" v-if="!$store.state.readonly">添加配置</el-button>
<el-form inline="">
<el-form-item label="关键字">
<el-input placeholder="输入关键字搜索" v-model="searchKey"></el-input>
</el-form-item>
<el-form-item >
<el-button type="primary" @click="getList">搜索</el-button>
</el-form-item>
</el-form>
</div> </div>
<el-table <el-table
:data="list" :data="list"
...@@ -66,6 +74,7 @@ ...@@ -66,6 +74,7 @@
return { return {
total:0, total:0,
nowPage:1, nowPage:1,
searchKey:"",
limit: 10, limit: 10,
dialogObj:{ dialogObj:{
value:'', value:'',
...@@ -91,6 +100,9 @@ ...@@ -91,6 +100,9 @@
let json = { let json = {
limit: this.limit, limit: this.limit,
page: this.nowPage page: this.nowPage
};
if(this.searchKey){
json.key = this.searchKey
} }
getConfigListApi(json).then(res => { getConfigListApi(json).then(res => {
this.list = res.list this.list = res.list
......
...@@ -169,7 +169,7 @@ ...@@ -169,7 +169,7 @@
ImageStyle = 'display:block;margin:auto' ImageStyle = 'display:block;margin:auto'
} }
let str= `<img src="${this.form.imgList[0].url}" style="${ImageStyle}"/>`; let str= `<img src="${this.form.imgList[0].url}" style="${ImageStyle}"/>`;
this.insertContent(str) tinymce.activeEditor.insertContent(str);
this.dialogVisible = false this.dialogVisible = false
}, },
audioInter(){ audioInter(){
...@@ -180,11 +180,8 @@ ...@@ -180,11 +180,8 @@
}); });
return false return false
} }
let str = `<p style="text-align: center"><img class="mce-object mce-object-audio" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="280" height="55" data-mce-p-controls="controls" data-mce-html="%0A%3Csource%20src%3D%22https%3A//cdn.singsingenglish.com/${this.radio[0].url}%22%20type%3D%22audio/mpeg%22%20/%3E" data-mce-object="audio"></p>`; let str = `<p style="text-align: center"><img class="mce-object mce-object-audio" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="280" height="55" data-mce-p-controls="controls" data-mce-html="%0A%3Csource%20src%3D%22https%3A//cdn.singsingenglish.com/${this.radio[0].url}%22%20type%3D%22audio/mpeg%22%20/%3E" data-mce-object="audio"></p>`;
console.log(str); tinymce.activeEditor.insertContent(str);
this.insertContent(str);
console.log(this.lookData.content);
this.dialogVisibleMp3 = false this.dialogVisibleMp3 = false
}, },
uploadFile(a){ uploadFile(a){
...@@ -218,34 +215,6 @@ ...@@ -218,34 +215,6 @@
center:true center:true
} }
}, },
insertContent(content) {
if (!content) {//如果插入的内容为空则返回
return;
}
let sel = null;
if (document.selection) {//IE9以下
sel = document.selection;
sel.createRange().pasteHTML(content);
} else {
sel = document.getElementById('tinymce_ifr').contentWindow.getSelection();
if (sel.rangeCount > 0) {
let range = sel.getRangeAt(0); //获取选择范围
range.deleteContents(); //删除选中的内容
let el = document.createElement("div"); //创建一个空的div外壳
el.innerHTML = content; //设置div内容为我们想要插入的内容。
let frag = document.createDocumentFragment();//创建一个空白的文档片段,便于之后插入dom树
let node = el.firstChild;
let lastNode = frag.appendChild(node);
range.insertNode(frag); //设置选择范围的内容为插入的内容
let contentRange = range.cloneRange(); //克隆选区
contentRange.setStartAfter(lastNode); //设置光标位置为插入内容的末尾
contentRange.collapse(true); //移动光标位置到末尾
sel.removeAllRanges(); //移出所有选区
sel.addRange(contentRange); //添加修改后的选区
}
}
},
removeFile(){}, removeFile(){},
removeFileMp3(){}, removeFileMp3(){},
handleExceed(){} handleExceed(){}
......
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