Commit fa6496f6 authored by wangwei's avatar wangwei

js错误处理

后台看课情况
parent a2be8c42
...@@ -12,8 +12,8 @@ module.exports = { ...@@ -12,8 +12,8 @@ module.exports = {
//本地代理设置 //本地代理设置
proxyTable: { proxyTable: {
'/api': { '/api': {
target: 'http://local.base-api.sing.com', // 接口的域名 // target: 'http://local.base-api.sing.com', // 接口的域名
// target: 'https://wechat-test.changchangenglish.com/', target: 'https://wechat-test.changchangenglish.com/',
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置 changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
} }
}, },
......
<!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_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.47522eb6a68d6d41ad23b5eb163afbdd.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.78dec4f19a92e0ba9807.js></script><script type=text/javascript src=/static/js/vendor.4a52c6513a395e5eac06.js></script><script type=text/javascript src=/static/js/app.a1c941364d90ca11e4f7.js></script></body></html> <!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_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.47522eb6a68d6d41ad23b5eb163afbdd.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.da764d5242593fab54f2.js></script><script type=text/javascript src=/static/js/vendor.4a52c6513a395e5eac06.js></script><script type=text/javascript src=/static/js/app.a1c941364d90ca11e4f7.js></script></body><script>let el = document.getElementsByTagName("script");
\ No newline at end of file el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
window.onerror = function(a,b,c){
console.log('error:',a,b,c);
}
// document.getElementsByTagName('script').onerror</script></html>
\ 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([26],{TkUD:function(e,t,n){var a=n("i3sb");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("70ad75b8",a,!1,{})},Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),o={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],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:{getMenuList:function(){var e=this;Object(a._17)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(a._25)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(a._17)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),t.dialog.select=n,Object(a._24)(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,"订单列表"===e.name&&(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(a.B)(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 o=e.dialog;if(o.form.id){var i={name:o.form.name,menu_ids:JSON.stringify(n)};Object(a._45)(o.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var l={name:o.form.name,menu_ids:JSON.stringify(n)};Object(a._40)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role"},[n("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():n("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[n("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),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}}),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 a=t.node,o=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(a.label))]),e._v(" "),0!==o.pid?n("span",["订单列表"===o.name?n("el-checkbox",{model:{value:o.refund,callback:function(t){e.$set(o,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:o.readonly,callback:function(t){e.$set(o,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:o.delete,callback:function(t){e.$set(o,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)};i._withStripped=!0;var l={render:i,staticRenderFns:[]},s=l;var r=!1;var d=n("VU/8")(o,s,!1,function(e){r||n("TkUD")},"data-v-baf7767a",null);d.options.__file="src\\components\\system\\role.vue";t.default=d.exports},i3sb:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.custom-tree-node[data-v-baf7767a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n padding-right: 8px;\n}\n.role[data-v-baf7767a] {\n width: 100%;\n padding: 20px 0;\n}\n.role .head[data-v-baf7767a] {\n margin-bottom: 10px;\n}\n.role .page-div[data-v-baf7767a] {\n text-align: center;\n padding-top: 20px;\n}\n.clear-both[data-v-baf7767a]:after {\n content: '';\n display: block;\n clear: both;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/system/role.vue"],names:[],mappings:";AACA;EACE,oBAAoB;MAChB,YAAY;UACR,QAAQ;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,0BAA0B;MACtB,uBAAuB;UACnB,+BAA+B;EACvC,gBAAgB;EAChB,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb",file:"role.vue",sourcesContent:["\n.custom-tree-node[data-v-baf7767a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n padding-right: 8px;\n}\n.role[data-v-baf7767a] {\n width: 100%;\n padding: 20px 0;\n}\n.role .head[data-v-baf7767a] {\n margin-bottom: 10px;\n}\n.role .page-div[data-v-baf7767a] {\n text-align: center;\n padding-top: 20px;\n}\n.clear-both[data-v-baf7767a]:after {\n content: '';\n display: block;\n clear: both;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([26],{TkUD:function(e,t,n){var a=n("i3sb");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("70ad75b8",a,!1,{})},Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),o={components:{page:n("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,roleList:[],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:{getMenuList:function(){var e=this;Object(a._17)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(a._25)(t).then(function(t){t&&(e.roleList=t.list,e.total=t.total)})},edit:function(e){var t=this;this.dialog.form.id=e.id,this.dialog.title="编辑角色",Object(a._17)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),t.dialog.select=n,Object(a._24)(e.id).then(function(n){t.dialog.form.name=n.name,t.dialog.form.menu_ids=JSON.parse(n.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,"订单列表"===e.name&&(t.refund=!!e.refund))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed),console.log(this.$refs.tree.getNode(e))})}))})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增菜单",this.dialog.form.name="",this.dialog.form.menu_ids=[],this.getMenuList()},del:function(e){var t=this;this.$confirm("此操作将删除该角色?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.B)(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 o=e.dialog;if(o.form.id){var i={name:o.form.name,menu_ids:JSON.stringify(n)};Object(a._45)(o.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})}else{var l={name:o.form.name,menu_ids:JSON.stringify(n)};Object(a._40)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})}}})}}},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role"},[n("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():n("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增角色")])],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.roleList}},[n("el-table-column",{attrs:{prop:"id",label:"角色ID"}}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"角色名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),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}}),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 a=t.node,o=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(a.label))]),e._v(" "),0!==o.pid?n("span",["订单列表"===o.name?n("el-checkbox",{model:{value:o.refund,callback:function(t){e.$set(o,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:o.readonly,callback:function(t){e.$set(o,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:o.delete,callback:function(t){e.$set(o,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)};i._withStripped=!0;var l={render:i,staticRenderFns:[]},s=l;var r=!1;var d=n("VU/8")(o,s,!1,function(e){r||n("TkUD")},"data-v-baf7767a",null);d.options.__file="src\\components\\system\\role.vue";t.default=d.exports},i3sb:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.custom-tree-node[data-v-baf7767a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n padding-right: 8px;\n}\n.role[data-v-baf7767a] {\n width: 100%;\n padding: 20px 0;\n}\n.role .head[data-v-baf7767a] {\n margin-bottom: 10px;\n}\n.role .page-div[data-v-baf7767a] {\n text-align: center;\n padding-top: 20px;\n}\n.clear-both[data-v-baf7767a]:after {\n content: '';\n display: block;\n clear: both;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/system/role.vue"],names:[],mappings:";AACA;EACE,oBAAoB;MAChB,YAAY;UACR,QAAQ;EAChB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,0BAA0B;MACtB,uBAAuB;UACnB,+BAA+B;EACvC,gBAAgB;EAChB,mBAAmB;CACpB;AACD;EACE,YAAY;EACZ,gBAAgB;CACjB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb",file:"role.vue",sourcesContent:["\n.custom-tree-node[data-v-baf7767a] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n font-size: 14px;\n padding-right: 8px;\n}\n.role[data-v-baf7767a] {\n width: 100%;\n padding: 20px 0;\n}\n.role .head[data-v-baf7767a] {\n margin-bottom: 10px;\n}\n.role .page-div[data-v-baf7767a] {\n text-align: center;\n padding-top: 20px;\n}\n.clear-both[data-v-baf7767a]:after {\n content: '';\n display: block;\n clear: both;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,r,t){for(var o,d,b,i=0,u=[];i<c.length;i++)d=c[i],f[d]&&u.push(f[d][0]),f[d]=0;for(o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);for(a&&a(c,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var c={},f={33:0};function n(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,n),f.l=!0,f.exports}n.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,n){a=f[e]=[c,n]});a[2]=c;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:"b7de9b80d52e0871a763",1:"53453ff34127f12d46c4",2:"acb4e1e5f46a42da9c7e",3:"a2dccb8fd3d179552bb9",4:"ca9711fc473f2d5d51fd",5:"e165a9a94a9e4262c4ea",6:"64a1849b88d9587a84f3",7:"73035aa120b4d121032b",8:"a4c656e120a4d1334dcf",9:"25109bcb22febf84dc0c",10:"07d34d4b19edfbb9e874",11:"ef4f6b8448e8101d42cf",12:"66f76f628982d43def2b",13:"9db52c3e976beb3b595c",14:"ac73135d35df07b2e199",15:"c1259270f2b6d9a5ac65",16:"a517c9ff87e7ab38fb11",17:"a5dd661bc79dfa043095",18:"4479aab12a86c8f34555",19:"edf27d751742b491cb26",20:"5b6fb4659f7801a6c082",21:"39952afc0550bf5025af",22:"5863dff943d65687630f",23:"2eaaa42063637b7edb84",24:"246d329ab2590ff57958",25:"41d9edf49b76c8c85349",26:"fba3d89198a38e733cfc",27:"81008757847d1d0c4c97",28:"5a7d735b139d75449d1b",29:"2ab4a390bf4296cec1a1",30:"11e3cfc39562cfadc95f"}[e]+".js";var o=setTimeout(d,12e4);function d(){t.onerror=t.onload=null,clearTimeout(o);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=d,r.appendChild(t),c},n.m=e,n.c=c,n.d=function(e,a,c){n.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},n.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(a,"a",a),a},n.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},n.p="/",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,t,f){for(var o,d,b,i=0,u=[];i<c.length;i++)d=c[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(a&&a(c,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=r(r.s=f[i]);return b};var c={},n={33: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 t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"5ca042217d5b9cb7d920",1:"1871934ca7b3a77934e5",2:"3faf640d37e133ae20de",3:"9894ce6b3759fc4267f2",4:"ca9711fc473f2d5d51fd",5:"3620b1c764c9330a538f",6:"5513adfbecc524f15956",7:"08132a3517d8ac06a670",8:"ba6880baff2639ad9544",9:"6185b5dc1cbab93cdbf3",10:"8cb9adcd5aa0f85d8839",11:"1c8ca50a73415bf27def",12:"f6490be245f90afabc6f",13:"d3d020f7ae5dcb8756fd",14:"4881aaeec5577c553970",15:"e2f1692c4d5ce3f12106",16:"129c4f08663c78115241",17:"f8aba2b0c2853b11ea80",18:"890473049161348fce72",19:"3d106dc8f8d7aad659f5",20:"32d4eeaf129a9e03e625",21:"74a439bf1a0461033dab",22:"34ce9d13a07b04c5028e",23:"b89d8a468eee89413544",24:"67013d6ba2ad456617d8",25:"98e6c04d12b219478813",26:"6cd43dcb6c7f4ffc4921",27:"75fff564b6e3c5032daf",28:"51ae89493bf8e2545b84",29:"2ab4a390bf4296cec1a1",30:"a4cab5f9b5d37773496c"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var a=n[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=d,t.appendChild(f),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
<!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_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.8e936b286c172953468cf96afa8ad467.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.7a168cd999d0cdfc8ac3.js></script><script type=text/javascript src=/static/js/vendor.870830d4f06345c43c87.js></script><script type=text/javascript src=/static/js/app.b96095a62739a45e580c.js></script></body></html> <!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_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.67ef6856c0d5455a5f9ece34f65b2e13.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.5df765c7b45b5d3d51a3.js></script><script type=text/javascript src=/static/js/vendor.870830d4f06345c43c87.js></script><script type=text/javascript src=/static/js/app.db77a8c2894f9648f27b.js></script></body><script>let el = document.getElementsByTagName("script");
\ No newline at end of file el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
window.onerror = function(a,b,c){
console.log('error:',a,b,c);
}
// document.getElementsByTagName('script').onerror</script></html>
\ No newline at end of file
webpackJsonp([12],{"2JsX":function(t,e){},"9PRC":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("CCn6"),i=a("kmJW"),s=a("+TkF"),n={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var t=this;Object(l._29)().then(function(e){t.teacherList=e.list}),this.form={id:this.dialogObj.id,teacher_id:this.dialogObj.teacher_id?this.dialogObj.teacher_id:""}},onSave:function(){var t=this,e={teacher_id:this.form.teacher_id?this.form.teacher_id:0};Object(l.l)(this.form.id,e).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.$emit("reflash"),t.dialogObj.show=!1})}},watch:{dialogObj:function(t){this.initPage()}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{attrs:{placeholder:"请选择"},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 a("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("TVUX")},"data-v-3058106a",null).exports,_={name:"index",data:function(){return{userList:[],total:0,nowPage:1,limit:3,id:"",detail:{},periodList:[],dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0}}},components:{page:i.a,teacherDialog:o},mounted:function(){this.id=this.$route.params.id,this.getDetail(),this.getUser()},methods:{onPageChange:function(t){this.nowPage=t,this.getUser()},getUser:function(){var t=this,e={user_id:this.id,limit:this.limit,page:this.nowPage,status:1};Object(l._18)(e).then(function(e){t.userList=e.list,t.total=e.total})},getDetail:function(){var t=this;this.id&&Object(l._30)(this.id).then(function(e){t.detail=e,e.periods_list&&(t.periodList=e.periods_list)})},bindTeacher:function(){var t=this.detail;this.dialogObj={show:!0,title:"绑定老师",id:t.user_id,teacher_id:t.teacher_id}}},filters:{payMentFilter:function(t){return"1"==t?"已付款":"未付款"},courseTypeFilter:function(t){return"1"==t.type?"正式课("+t.duration+"个月)":"试听课("+t.duration+"天)"},inviteType:function(t){return s.f[t]},status:function(t){return s.j[t]},buyType:function(t){return s.b[t]},moneytFilter:function(t){return t/100+"元"}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user"},[a("div",{staticClass:"header"},[t.detail?a("div",{staticClass:"clear-both",staticStyle:{"margin-top":"20px"}},[t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"success"},on:{click:t.bindTeacher}},[t._v("\n 绑定老师\n ")])],1):t._e(),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("label",[t._v("昵称:")]),t._v(" "),a("a",{attrs:{href:t.detail.qr}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.avatar}})]),t._v("\n "+t._s(t.detail.nickname)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("手机号:")]),t._v(" "+t._s(t.detail.mobile)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("生日:")]),t._v(t._s(t.detail.birthday)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("等级:")]),t._v(t._s(t.detail.level)+"\n ")])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("label",[t._v("邀请类型:")]),t._v(t._s(t._f("inviteType")(t.detail.invite_type))+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("邀请人ID:")]),t._v(t._s(t.detail.invite_user_id?t.detail.invite_user_id:"")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("已绑定老师:")]),t._v(t._s(t.detail.teacher_name)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("注册时间:")]),t._v(t._s(t.detail.created_at)+"\n ")])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("label",[t._v("最后登录:")]),t._v(t._s(t.detail.last_login_at)+"\n ")])],1)],1),t._v(" "),a("div",{staticClass:"b-title"},[t._v("期数列表")]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList}},[a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.periods_id}}}},[t._v("\n "+t._s(e.row.periods_title)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"开课权限"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.is_view_course?"开":"关")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:"/teacher/"+e.row.teacher_id}},[a("div",{staticClass:"f-c"},[a("div",[a("img",{staticClass:"avatar",attrs:{src:e.row.teacher_qr}}),t._v(" "+t._s(e.row.teacher_name)+"\n ")])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"加入人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"max_join_num",label:"最大加入人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),t._v(" "),a("div",{staticClass:"b-title"},[t._v("订单列表")]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.userList}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_id",label:"期数ID"}}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"推广人",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 类型:"+t._s(t._f("inviteType")(e.row.invite_type))),a("br"),t._v("\n "+t._s(e.row.invite_id?"ID:"+e.row.invite_id:"")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"购买方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.buy_type?"团购":"单买")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否是团长"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.is_captain?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("status")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),a("teacher-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.getDetail}})],1)},staticRenderFns:[]};var d=a("VU/8")(_,c,!1,function(t){a("2JsX"),a("O3fC")},"data-v-5cf85976",null);e.default=d.exports},O3fC:function(t,e){},TVUX:function(t,e){}});
\ No newline at end of file
webpackJsonp([12],{"9PRC":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l=a("CCn6"),i=a("kmJW"),s=a("+TkF"),n={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var t=this;Object(l._29)().then(function(e){t.teacherList=e.list}),this.form={id:this.dialogObj.id,teacher_id:this.dialogObj.teacher_id?this.dialogObj.teacher_id:""}},onSave:function(){var t=this,e={teacher_id:this.form.teacher_id?this.form.teacher_id:0};Object(l.l)(this.form.id,e).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.$emit("reflash"),t.dialogObj.show=!1})}},watch:{dialogObj:function(t){this.initPage()}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{attrs:{placeholder:"请选择"},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 a("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("TVUX")},"data-v-3058106a",null).exports,_={name:"index",data:function(){return{userList:[],total:0,nowPage:1,limit:3,id:"",detail:{},periodList:[],dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0}}},components:{page:i.a,teacherDialog:o},mounted:function(){this.id=this.$route.params.id,this.getDetail(),this.getUser()},methods:{onPageChange:function(t){this.nowPage=t,this.getUser()},getUser:function(){var t=this,e={user_id:this.id,limit:this.limit,page:this.nowPage,status:1};Object(l._18)(e).then(function(e){t.userList=e.list,t.total=e.total})},getDetail:function(){var t=this;this.id&&Object(l._30)(this.id).then(function(e){t.detail=e,e.periods_list&&(t.periodList=e.periods_list)})},bindTeacher:function(){var t=this.detail;this.dialogObj={show:!0,title:"绑定老师",id:t.user_id,teacher_id:t.teacher_id}}},filters:{payMentFilter:function(t){return"1"==t?"已付款":"未付款"},courseTypeFilter:function(t){return"1"==t.type?"正式课("+t.duration+"个月)":"试听课("+t.duration+"天)"},inviteType:function(t){return s.f[t]},status:function(t){return s.j[t]},buyType:function(t){return s.b[t]},moneytFilter:function(t){return t/100+"元"}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user"},[a("div",{staticClass:"header"},[t.detail?a("div",{staticClass:"clear-both",staticStyle:{"margin-top":"20px"}},[t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"success"},on:{click:t.bindTeacher}},[t._v("\n 绑定老师\n ")])],1):t._e(),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("label",[t._v("昵称:")]),t._v(" "),a("a",{attrs:{href:t.detail.qr}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.avatar}})]),t._v("\n "+t._s(t.detail.nickname)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("手机号:")]),t._v(" "+t._s(t.detail.mobile)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("生日:")]),t._v(t._s(t.detail.birthday)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("等级:")]),t._v(t._s(t.detail.level)+"\n ")])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("label",[t._v("邀请类型:")]),t._v(t._s(t._f("inviteType")(t.detail.invite_type))+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("邀请人ID:")]),t._v(t._s(t.detail.invite_user_id?t.detail.invite_user_id:"")+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("已绑定老师:")]),t._v(t._s(t.detail.teacher_name)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:6}},[a("label",[t._v("注册时间:")]),t._v(t._s(t.detail.created_at)+"\n ")])],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:6}},[a("label",[t._v("最后登录:")]),t._v(t._s(t.detail.last_login_at)+"\n ")])],1)],1),t._v(" "),a("div",{staticClass:"b-title"},[t._v("期数列表")]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList}},[a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.periods_id}}}},[t._v("\n "+t._s(e.row.periods_title)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"开课权限"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.is_view_course?"开":"关")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:"/teacher/"+e.row.teacher_id}},[a("div",{staticClass:"f-c"},[a("div",[a("img",{staticClass:"avatar",attrs:{src:e.row.teacher_qr}}),t._v(" "+t._s(e.row.teacher_name)+"\n ")])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"加入人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"max_join_num",label:"最大加入人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),t._v(" "),a("div",{staticClass:"b-title"},[t._v("订单列表")]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.userList}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_id",label:"期数ID"}}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"推广人",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 类型:"+t._s(t._f("inviteType")(e.row.invite_type))),a("br"),t._v("\n "+t._s(e.row.invite_id?"ID:"+e.row.invite_id:"")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"购买方式"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.buy_type?"团购":"单买")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否是团长"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1===e.row.is_captain?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("status")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange}}),t._v(" "),a("teacher-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.getDetail}})],1)},staticRenderFns:[]};var d=a("VU/8")(_,c,!1,function(t){a("B4lI"),a("lhFu")},"data-v-277df428",null);e.default=d.exports},B4lI:function(t,e){},TVUX:function(t,e){},lhFu:function(t,e){}});
\ No newline at end of file
webpackJsonp([16],{"4CEZ":function(e,t){},"89rD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),r={name:"index",components:{page:a("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,refundTypeList:[{id:0,value:"退款中"},{id:1,value:"退款成功"},{id:2,value:"退款失败"}],searchFrom:{nickname:"",user_id:"",out_trade_no:"",status:""},list:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var a=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t}).then(function(t){var r=t.value;Object(n.Q)(e,"refund",{desc:r}).then(function(e){a.$message({type:"success",message:"编辑备注成功"}),a.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},getRefundList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),Object(n._23)(t).then(function(t){e.total=t.total,e.list=t.list})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"refund"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"订单编号"}},[a("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"退款状态"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.refundTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getRefundList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,s,!1,function(e){a("4CEZ"),a("PUph")},"data-v-f89634f4",null);t.default=o.exports},PUph:function(e,t){}});
\ No newline at end of file
webpackJsonp([17],{"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=t("Nr3E"),a=t.n(i),l={data:function(){return{bgUrl:a.a,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._33)(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="/"})}})}}},u={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 d=t("VU/8")(l,u,!1,function(e){t("PZlQ")},"data-v-a758ff78",null);s.default=d.exports},Nr3E:function(e,s,t){e.exports=t.p+"static/img/skyBackground.d3b1524.png"},PZlQ:function(e,s){}}); webpackJsonp([18],{"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=t("Nr3E"),a=t.n(i),l={data:function(){return{bgUrl:a.a,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._33)(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="/"})}})}}},u={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 d=t("VU/8")(l,u,!1,function(e){t("PZlQ")},"data-v-a758ff78",null);s.default=d.exports},Nr3E:function(e,s,t){e.exports=t.p+"static/img/skyBackground.d3b1524.png"},PZlQ:function(e,s){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([18],{"89rD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),r={name:"index",components:{page:a("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,refundTypeList:[{id:0,value:"退款中"},{id:1,value:"退款成功"},{id:2,value:"退款失败"}],searchFrom:{nickname:"",user_id:"",out_trade_no:"",status:""},list:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var a=this;this.$prompt("编辑备注","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t}).then(function(t){var r=t.value;Object(n.Q)(e,"refund",{desc:r}).then(function(e){a.$message({type:"success",message:"编辑备注成功"}),a.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},getRefundList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),Object(n._23)(t).then(function(t){e.total=t.total,e.list=t.list})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"refund"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"订单编号"}},[a("el-input",{model:{value:e.searchFrom.out_trade_no,callback:function(t){e.$set(e.searchFrom,"out_trade_no",t)},expression:"searchFrom.out_trade_no"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-form-item",{attrs:{label:"退款状态"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.refundTypeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getRefundList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v("\n "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.order_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.refund_money/100))+"元\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(r,s,!1,function(e){a("I4FZ"),a("vq0x")},"data-v-87e295e2",null);t.default=o.exports},I4FZ:function(e,t){},vq0x:function(e,t){}});
\ No newline at end of file
webpackJsonp([30],{ANlI:function(e,t){},Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),a={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:{getMenuList:function(){var e=this;Object(o._17)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(o._25)(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._17)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),t.dialog.select=n,Object(o._24)(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,"订单列表"===e.name&&(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.B)(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 a=e.dialog;if(a.form.id){var i={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._45)(a.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),a.show=!1,e.getList()})}else{var l={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._40)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),a.show=!1,e.getList()})}}})}}},i={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:{prop:"name",label:"角色名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),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}}),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,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(o.label))]),e._v(" "),0!==a.pid?n("span",["订单列表"===a.name?n("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:a.readonly,callback:function(t){e.$set(a,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:a.delete,callback:function(t){e.$set(a,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),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")(a,i,!1,function(e){n("ANlI")},"data-v-0e6492a2",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([30],{Vt1u:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("CCn6"),a={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:{getMenuList:function(){var e=this;Object(o._17)().then(function(t){t&&(t.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),e.dialog.select=t)})},onPageChange:function(e){this.nowPage=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(o._25)(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._17)().then(function(n){n&&(n.forEach(function(e){e.children&&e.children.forEach(function(t){t.readonly=!1,t.delete=!1,"订单列表"===e.name&&(t.refund=!1)})}),t.dialog.select=n,Object(o._24)(e.id).then(function(n){t.dialog.form.name=n.name,t.dialog.form.menu_ids=JSON.parse(n.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,"订单列表"===e.name&&(t.refund=!!e.refund))})})}),t.dialog.show=!0,t.$nextTick(function(){this.$refs.tree.setCheckedKeys(this.dialog.chooseed),console.log(this.$refs.tree.getNode(e))})}))})},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.B)(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 a=e.dialog;if(a.form.id){var i={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._45)(a.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),a.show=!1,e.getList()})}else{var l={name:a.form.name,menu_ids:JSON.stringify(n)};Object(o._40)(l).then(function(){e.$message({type:"success",message:"添加成功!"}),a.show=!1,e.getList()})}}})}}},i={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:{prop:"name",label:"角色名称"}}),e._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),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}}),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,a=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(o.label))]),e._v(" "),0!==a.pid?n("span",["订单列表"===a.name?n("el-checkbox",{model:{value:a.refund,callback:function(t){e.$set(a,"refund",t)},expression:"data.refund"}},[e._v("退款")]):e._e(),e._v(" "),n("el-checkbox",{model:{value:a.readonly,callback:function(t){e.$set(a,"readonly",t)},expression:"data.readonly"}},[e._v("只读")]),e._v(" "),n("el-checkbox",{model:{value:a.delete,callback:function(t){e.$set(a,"delete",t)},expression:"data.delete"}},[e._v("删除")])],1):e._e()])}}])})],1)])],1),e._v(" "),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")(a,i,!1,function(e){n("dLlI")},"data-v-11a4276e",null);t.default=l.exports},dLlI:function(e,t){}});
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,t,f){for(var o,d,b,i=0,u=[];i<a.length;i++)d=a[i],n[d]&&u.push(n[d][0]),n[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(a,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=r(r.s=f[i]);return b};var a={},n={33:0};function r(c){if(a[c])return a[c].exports;var n=a[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.e=function(e){var c=n[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,r){c=n[e]=[a,r]});c[2]=a;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,r.nc&&f.setAttribute("nonce",r.nc),f.src=r.p+"static/js/"+e+"."+{0:"cf244d18b861e5614994",1:"7f60a51e0286fa5795f8",2:"2ef3d4467d5f1bc88ccd",3:"58df26638cb030357eb5",4:"84776f9abf4585293d82",5:"01cef1d5549a84d2065f",6:"fc48035e877aa3a9412a",7:"f563844019b7ad0e133d",8:"5eefa2aec9125cd5dd6d",9:"8b0611015c947ecfb6ab",10:"fca006e7a215fb8576b0",11:"b5ac022443301aa10897",12:"b118c7d9c78ba18a7394",13:"493713928437a56fc01d",14:"652885868c5e7158e198",15:"64b9621aef03d2a46cec",16:"f61af6550198186460cf",17:"91f33c4dc4659c49f638",18:"c0a5a22b3a0157e18e49",19:"e8d7d16dbab2a862bea8",20:"e1bbcd7cbe8028f912ea",21:"5bf9b10d972e3224edd9",22:"df70e293d4175d7a7ec5",23:"3bc2d95c4d5c0824310a",24:"276d08562a325a7f4b50",25:"4cc25ab8c7d5dd7c6614",26:"b736ed973503fb223ff9",27:"f1f6ab0ef0d8e9b26f89",28:"e469d5671f79a4684dc7",29:"0c7d527ac1c50fe269cd",30:"566af776e4fdb415bf93"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var c=n[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),n[e]=void 0)}return f.onerror=f.onload=d,t.appendChild(f),a},r.m=e,r.c=a,r.d=function(e,c,a){r.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},r.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(c,"a",c),c},r.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},r.p="/",r.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(n,c,d){for(var f,o,b,i=0,u=[];i<n.length;i++)o=n[i],r[o]&&u.push(r[o][0]),r[o]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(a&&a(n,c,d);u.length;)u.shift()();if(d)for(i=0;i<d.length;i++)b=t(t.s=d[i]);return b};var n={},r={33:0};function t(a){if(n[a])return n[a].exports;var r=n[a]={i:a,l:!1,exports:{}};return e[a].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var a=r[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var n=new Promise(function(n,t){a=r[e]=[n,t]});a[2]=n;var c=document.getElementsByTagName("head")[0],d=document.createElement("script");d.type="text/javascript",d.charset="utf-8",d.async=!0,d.timeout=12e4,t.nc&&d.setAttribute("nonce",t.nc),d.src=t.p+"static/js/"+e+"."+{0:"e78c304e82d239a1b2ad",1:"c72dda5b3dd053b65477",2:"1fe7ec05f814212b4651",3:"58df26638cb030357eb5",4:"800f4b130112fc5655d3",5:"dfe6aa366b94bb5a90c4",6:"1a7d5ef2d4c60153c293",7:"55f5fe3107ac45e5de59",8:"12b50c36db9a452786e8",9:"5cb29eb0a72d2f1505d9",10:"b122cf14401ac0376d70",11:"8de437a8ae292313bf85",12:"76b0d08f9e5380e7e82e",13:"fed8eae7745b116a48fe",14:"94b33dd13a68392a4d7c",15:"a61d9c426b2eab3371bf",16:"c6699ceb8c2ba8bedd95",17:"6a0d98e35d2e22431ef2",18:"dadbb425687e4501e4a0",19:"79388aa9782c3f8e1ff1",20:"efd414fdce50d191863e",21:"f9d6b06b980eb3cf1da0",22:"69e8f77e70710f2f722c",23:"adcd34a6682eba15998d",24:"f914abf8526ca52c3399",25:"19e983d821f53a275949",26:"3eb816b9662dde189f05",27:"a74e7e2eae9902d3d7c1",28:"e469d5671f79a4684dc7",29:"377cab3b3b3903a87f63",30:"9f5960bd2ffb48d0b266"}[e]+".js";var f=setTimeout(o,12e4);function o(){d.onerror=d.onload=null,clearTimeout(f);var a=r[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return d.onerror=d.onload=o,c.appendChild(d),n},t.m=e,t.c=n,t.d=function(e,a,n){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},t.p="/",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -10,4 +10,14 @@ ...@@ -10,4 +10,14 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
</body> </body>
<script>
let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
window.onerror = function(a,b,c){
console.log('error:',a,b,c);
}
// document.getElementsByTagName('script').onerror
</script>
</html> </html>
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
i.list = t; i.list = t;
menuList.push(i) menuList.push(i)
} }
}) });
this.$router.addRoutes([this.$router.options.routes[0]]);//调用add this.$router.addRoutes([this.$router.options.routes[0]]);//调用add
this.$store.dispatch('setMenu',menuList) this.$store.dispatch('setMenu',menuList)
} }
......
...@@ -75,7 +75,8 @@ ...@@ -75,7 +75,8 @@
<el-table-column label="操作" v-if="!$store.state.readonly" width="300"> <el-table-column label="操作" v-if="!$store.state.readonly" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="warning" size="mini" @click="editComment(scope.row.id, scope.row.desc)" v-if="!$store.state.readonly">编辑备注</el-button> <el-button type="warning" size="mini" @click="editComment(scope.row.id, scope.row.desc)" v-if="!$store.state.readonly">编辑备注</el-button>
<el-button type="warning" size="mini" @click="changeUser(scope.row)" v-if="!$store.state.readonly">更改看课权限</el-button> <el-button type="warning" size="mini" @click="changeUser(scope.row)" v-if="!$store.state.readonly">看课权限</el-button>
<el-button type="primary" size="mini" @click="userLook(scope.row)" v-if="!$store.state.readonly">看课情况</el-button>
<el-button type="danger" size="mini" @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button> <el-button type="danger" size="mini" @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -139,11 +140,22 @@ ...@@ -139,11 +140,22 @@
<el-button type="primary" @click="onAdd">确 定</el-button> <el-button type="primary" @click="onAdd">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog :modal="false":visible.sync="lookDetail.show">
<el-table
v-loading="lookDetail.loading"
:data="lookDetail.list"
style="width: 100%">
<el-table-column
prop="periods_id"
label="期数">
</el-table-column>
</el-table>
</el-dialog>
</el-dialog> </el-dialog>
</template> </template>
<script> <script>
import {addClassUesrApi,getClassUserApi,changeUserApi,delClassUserApi,getUserListApi,addPeriodsClassUserDescApi} from "../../service/api"; import {addClassUesrApi,getClassUserApi,changeUserApi,delClassUserApi,getUserListApi,addPeriodsClassUserDescApi,userLookApi} from "../../service/api";
import page from '../framework/page' import page from '../framework/page'
import {ISORNOT} from "../../util/wordbook"; import {ISORNOT} from "../../util/wordbook";
...@@ -156,8 +168,12 @@ ...@@ -156,8 +168,12 @@
return { return {
userTable:[], userTable:[],
addId:'', addId:'',
lookDetail:{
show:false,
loading:false,
list:[]
},
addShow:false, addShow:false,
searchFrom: {},
userList: [], userList: [],
nowPage: 1, nowPage: 1,
limit: 5, limit: 5,
...@@ -182,6 +198,14 @@ ...@@ -182,6 +198,14 @@
} }
}, },
methods:{ methods:{
userLook(data){
this.lookDetail.show = true;
this.lookDetail.loading = true;
userLookApi(data.periods_id,data.id).then(res=>{
this.lookDetail.list = res.list;
this.lookDetail.loading = false;
})
},
initPage(){ initPage(){
getClassUserApi(this.userObj.classId).then(res=>{ getClassUserApi(this.userObj.classId).then(res=>{
this.userTable = res.list this.userTable = res.list
......
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="60" width="60"
v-if="!$store.state.readonly"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
...@@ -87,6 +86,9 @@ ...@@ -87,6 +86,9 @@
<el-button size="mini" plain type="primary" @click="detail(scope.row)"> <el-button size="mini" plain type="primary" @click="detail(scope.row)">
查看详情 查看详情
</el-button> </el-button>
<el-button size="mini" plain @click="copyUrl(scope.row.id)">
复制链接
</el-button>
<template v-if="!$store.state.readonly"> <template v-if="!$store.state.readonly">
<el-button v-if="scope.row.status === 2 || scope.row.status === 0" size="mini" plain type="primary" @click="onUp(scope.row)"> <el-button v-if="scope.row.status === 2 || scope.row.status === 0" size="mini" plain type="primary" @click="onUp(scope.row)">
上架 上架
...@@ -100,9 +102,6 @@ ...@@ -100,9 +102,6 @@
<el-button size="mini" plain type="success" @click="copyShop(scope.row)"> <el-button size="mini" plain type="success" @click="copyShop(scope.row)">
复制商品 复制商品
</el-button> </el-button>
<el-button size="mini" plain @click="copyUrl(scope.row.id)">
复制链接
</el-button>
<el-button size="mini" plain v-if="scope.row.status === 2" @click="bindOther(scope.row)"> <el-button size="mini" plain v-if="scope.row.status === 2" @click="bindOther(scope.row)">
绑定商品 绑定商品
</el-button> </el-button>
......
...@@ -527,5 +527,5 @@ export const getClassStatisticsApi = function (periods_id, class_id) { ...@@ -527,5 +527,5 @@ export const getClassStatisticsApi = function (periods_id, class_id) {
// 用户看课情况 // 用户看课情况
const userLookUrl = `/api/admin/user/static/list/`; const userLookUrl = `/api/admin/user/static/list/`;
export const userLookApi = function (periods_id,user_id) { export const userLookApi = function (periods_id,user_id) {
return Vue.prototype.$fetch(`${userLookUrl}${periods_id}/${user_id}`)
}; };
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