5.13

parent 774570be
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.a16301fdace2e972e95c.js></script><script type=text/javascript src=/static/js/vendor.7f99eb3e4c8df41adc4c.js></script><script type=text/javascript src=/static/js/app.d5e8251fb154d035d48e.js></script></body><script>let el = document.getElementsByTagName("script"); <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.0e0688e2054420e1a878.js></script><script type=text/javascript src=/static/js/vendor.7f99eb3e4c8df41adc4c.js></script><script type=text/javascript src=/static/js/app.d5e8251fb154d035d48e.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([30],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),o={name:"putForward",data:function(){var t=this;return{today:{text:"今天",onClick:function(e){e.$emit("pick",[t.formatTime(new Date)+" 00:00:00",t.formatTime(new Date)+" 23:59:59"])}},yesterday:{text:"昨天",onClick:function(e){var a=t.formatTime(new Date((new Date).getTime()-864e5));e.$emit("pick",[a+" 00:00:00",a+" 23:59:59"])}},last30Day:{text:"过去30天",onClick:function(e){var a=t.formatTime(new Date((new Date).getTime()-2592e6));e.$emit("pick",[a+" 00:00:00",t.formatTime(new Date)+" 23:59:59"])}},last7Day:{text:"过去7天",onClick:function(e){var a=t.formatTime(new Date((new Date).getTime()-6048e5));e.$emit("pick",[a+" 00:00:00",t.formatTime(new Date)+" 23:59:59"])}},nowPage:1,total:0,limit:10,search:{key:"",status:"1",payTime:[]},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0},putForwardDialog:{show:!1,user_id:"",userLabel:"",money:0,desc:""},userList:[],rules:{userLabel:[{required:!0,message:"请选择用户",trigger:"change"}],money:[{required:!0,message:"请输入提现金额",trigger:"change"}],desc:[{required:!0,message:"请输入提现说明",trigger:"change"}]},searchFrom:{},selectUserList:[],userDialog:{show:!1,nowPage:1,total:0,limit:5}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":"0元"},filterStatus:function(t){var e="";return 0===t.status?e="审核中":1===t.status?e="提现成功":2===t.status&&(e="提现失败("+t.reason+")"),e},userLabel:function(t){return t.nickname+"["+t.user_id+"]"}},mounted:function(){this.getList()},methods:{formatTime:function(t){var e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var s=t.getDate();return s<10&&(s="0"+s),e+"-"+a+"-"+s},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},exportTable:function(){var t={};this.search.withdraw_no&&(t.withdraw_no=this.search.withdraw_no),this.search.out_trade_no&&(t.out_trade_no=this.search.out_trade_no),(this.search.status||0===this.search.status)&&(t.status=this.search.status),this.search.user_id&&(t.user_id=this.search.user_id),this.search.money&&(t.money=100*parseFloat(this.search.money)),Object(s._15)("/api/admin/withdraw/export",t)},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.search.withdraw_no&&(e.withdraw_no=this.search.withdraw_no),this.search.out_trade_no&&(e.out_trade_no=this.search.out_trade_no),this.search.status&&"-1"!==this.search.status&&(e.status=this.search.status),this.search.user_id&&(e.user_id=this.search.user_id),this.search.payTime&&this.search.payTime.length>0&&(e.success_start_at=this.search.payTime[0],e.success_end_at=this.search.payTime[1]),this.search.money&&(e.money=100*parseFloat(this.search.money)),Object(s._84)(e).then(function(e){t.tableData=e.list,t.total=e.total})},onSearch:function(){this.nowPage=1,this.getList()},checkMoney:function(t){this.nowObj.id=t,this.showDesc=!1,this.showDialog=!0},addDesc:function(t,e){this.nowObj.id=t,this.nowObj.desc=e,this.showDesc=!0,this.showDialog=!0},onPageChange:function(t){this.nowPage=t,this.page.current=t,this.getList()},doCallback:function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})},onSave:function(t){var e=this;if(t){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(s._7)(this.nowObj.id,"withdraw",a).then(function(t){e.doCallback()})}else{var o={reason:this.nowObj.reason,status:this.nowObj.status};if((""===o.reason||null==o.reason)&&2===o.status)return this.$message.error("请填写失败理由"),!1;o.reason="",Object(s._132)(this.nowObj.id,o).then(function(t){e.doCallback()})}},manualPutForward:function(){this.putForwardDialog.show=!0,this.putForwardDialog.user_id="",this.putForwardDialog.userLabel="",this.putForwardDialog.money=0,this.putForwardDialog.desc="",this.getUserList()},getUserList:function(){var t=this,e={limit:this.userDialog.limit,page:this.userDialog.nowPage};this.searchFrom.userId&&(e.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(e.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),Object(s._79)(e).then(function(e){t.userList=e.list,t.userDialog.total=e.total})},confirmPutForward:function(){var t=this,e={user_id:this.putForwardDialog.user_id,money:this.putForwardDialog.money,desc:this.putForwardDialog.desc};this.$refs.refPutForward.validate(function(a){if(!a)return!1;t.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._94)(e).then(function(e){t.$message({type:"success",message:"保存成功"}),t.getList(),t.putForwardDialog.show=!1})})})},handleSelectionChange:function(t){this.selectUserList=t},onUserPageChange:function(t){this.userDialog.nowPage=t,this.getUserList()},onUserSizeChange:function(t){this.userDialog.limit=t,this.userDialog.nowPage=1,this.getUserList()},onAdd:function(){0!==this.selectUserList.length?1===this.selectUserList.length?(this.putForwardDialog.userLabel=this.selectUserList[0].nickname+"["+this.selectUserList[0].user_id+"]",this.putForwardDialog.user_id=this.selectUserList[0].user_id,this.userDialog.show=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}}},r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{model:t.search,inline:"","label-width":"80px"}},[a("el-form-item",{attrs:{label:"提现单号"}},[a("el-input",{attrs:{placeholder:"提现单号"},model:{value:t.search.withdraw_no,callback:function(e){t.$set(t.search,"withdraw_no",e)},expression:"search.withdraw_no"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("el-input",{attrs:{placeholder:"订单号"},model:{value:t.search.out_trade_no,callback:function(e){t.$set(t.search,"out_trade_no",e)},expression:"search.out_trade_no"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{attrs:{placeholder:"用户ID"},model:{value:t.search.user_id,callback:function(e){t.$set(t.search,"user_id",e)},expression:"search.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"提现金额"}},[a("el-input",{attrs:{placeholder:"提现金额"},model:{value:t.search.money,callback:function(e){t.$set(t.search,"money",e)},expression:"search.money"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"提现时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"picker-options":{shortcuts:[t.today,t.yesterday,t.last7Day,t.last30Day]}},model:{value:t.search.payTime,callback:function(e){t.$set(t.search,"payTime",e)},expression:"search.payTime"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),t.$store.state.export?a("el-button",{attrs:{type:"primary"},on:{click:t.exportTable}},[t._v("导出")]):t._e(),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{attrs:{type:"primary"},on:{click:t.manualPutForward}},[t._v("手动提现")])],1)],1),t._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":t.onSearch},model:{value:t.search.status,callback:function(e){t.$set(t.search,"status",e)},expression:"search.status"}},[a("el-tab-pane",{attrs:{label:"提现成功",name:"1"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"申请中",name:"0"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"申请失败",name:"2"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,border:"",fixed:""}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},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)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.checkMoney(e.row.id,e.row.desc)}}},[t._v("\n 审核\n ")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.addDesc(e.row.id,e.row.desc)}}},[t._v("\n 添加备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),t.showDialog?a("el-dialog",{attrs:{title:t.dialogTitle,visible:t.showDialog},on:{"update:visible":function(e){t.showDialog=e}}},[a("el-form",{ref:"saveuser",attrs:{model:t.nowObj,"label-width":"70px"}},[t.showDesc?t._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:t.nowObj.status,callback:function(e){t.$set(t.nowObj,"status",e)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[t._v("提现成功")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("提现失败")])],1)]],2),t._v(" "),2!==t.nowObj.status||t.showDesc?t._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.reason,callback:function(e){t.$set(t.nowObj,"reason",e)},expression:"nowObj.reason"}})],1),t._v(" "),t.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:t.nowObj.desc,callback:function(e){t.$set(t.nowObj,"desc",e)},expression:"nowObj.desc"}})],1):t._e()],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.onSave(t.showDesc)}}},[t._v("保 存")]),t._v(" "),a("el-button",{on:{click:function(e){t.showDialog=!1}}},[t._v("取 消")])],1)],1):t._e(),t._v(" "),t.putForwardDialog.show?a("el-dialog",{attrs:{title:"手动提现",visible:t.putForwardDialog.show},on:{"update:visible":function(e){t.$set(t.putForwardDialog,"show",e)}}},[a("el-form",{ref:"refPutForward",attrs:{model:t.putForwardDialog,rules:t.rules,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"用户",prop:"userLabel"}},[a("el-input",{attrs:{readonly:"",placeholder:"请选择用户"},model:{value:t.putForwardDialog.userLabel,callback:function(e){t.$set(t.putForwardDialog,"userLabel",e)},expression:"putForwardDialog.userLabel"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:function(e){t.userDialog.show=!0}}},[t._v("选择用户")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"提现金额",prop:"money"}},[a("el-input-number",{attrs:{min:0,placeholder:"提现金额"},model:{value:t.putForwardDialog.money,callback:function(e){t.$set(t.putForwardDialog,"money",e)},expression:"putForwardDialog.money"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"提现说明",prop:"desc"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:t.putForwardDialog.desc,callback:function(e){t.$set(t.putForwardDialog,"desc",e)},expression:"putForwardDialog.desc"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.putForwardDialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.confirmPutForward}},[t._v("确 定")])],1),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.userDialog.show},on:{"update:visible":function(e){t.$set(t.userDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:t.searchFrom.userId,callback:function(e){t.$set(t.searchFrom,"userId",e)},expression:"searchFrom.userId"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:t.searchFrom.nickName,callback:function(e){t.$set(t.searchFrom,"nickName",e)},expression:"searchFrom.nickName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:t.searchFrom.mobile,callback:function(e){t.$set(t.searchFrom,"mobile",e)},expression:"searchFrom.mobile"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8,offset:16}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:t.getUserList}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.userList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),t._v(" "),a("page",{attrs:{total:t.userDialog.total,limit:t.userDialog.limit},on:{pageChange:t.onUserPageChange,sizeChange:t.onUserSizeChange}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.userDialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1):t._e()],1)};r._withStripped=!0;var n={render:r,staticRenderFns:[]},i=n;var l=!1;var c=a("VU/8")(o,i,!1,function(t){l||(a("teZk"),a("k6C/"))},"data-v-5621cbc8",null);c.options.__file="src\\components\\putForward\\index.vue";e.default=c.exports},JJOv:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/putForward/index.vue"],names:[],mappings:";AACA;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},"k6C/":function(t,e,a){var s=a("JJOv");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("33054797",s,!1,{})},teZk:function(t,e,a){var s=a("wJWK");"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);a("rjj0")("e8a70c02",s,!1,{})},wJWK:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n.avatar[data-v-5621cbc8]{\n width: 50px;\n margin-right: 5px;\n border-radius: 50%;\n height: 50px;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/putForward/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;CAChB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,mBAAmB;EACnB,aAAa;CACd",file:"index.vue",sourcesContent:["\n.putForward[data-v-5621cbc8] {\n padding: 20px 0;\n}\n.status[data-v-5621cbc8]{\n color: #e9a038;\n}\n.status.red[data-v-5621cbc8]{\n color: #c30005;\n}\n.status.green[data-v-5621cbc8]{\n color: #00ac00;\n}\n.avatar[data-v-5621cbc8]{\n width: 50px;\n margin-right: 5px;\n border-radius: 50%;\n height: 50px;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,d,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(a&&a(f,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var f={},c={56:0};function b(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,b),c.l=!0,c.exports}b.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,b){a=c[e]=[f,b]});a[2]=f;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"d4ec55b27753cddc44e3",1:"f62db7aac0412a9bcdc0",2:"c9d6456415354b03aece",3:"3fc390a367bb0764306c",4:"6fb268ddf6cf3a7c3ed7",5:"aec317b84ac3ba9ebe97",6:"870040aa84e73f10e5b0",7:"a6a232e91003c1b3bbb9",8:"082b66f5792fdc0b0174",9:"7a46d5ae567e82ce8956",10:"e02173854284a6ab1e6a",11:"7a226ddda76d595f72c2",12:"9b1b6ea4dbd0c038bfa2",13:"6ef2595ffaee349d9dc4",14:"257566f3616a7d64d347",15:"fb759c22467da413f2cc",16:"4a7d1fe999d21120fdfe",17:"064a07125f9db1a40197",18:"90af607a7cb28dbfeec9",19:"8091d7ba2e31f66ffa9b",20:"8c2b54f7fd91a4cca783",21:"e582d268529a269e3fae",22:"4e54e877be9f174c769b",23:"794d08218666522f329e",24:"5b5ebd28fe1a4a1f9ebe",25:"b58e798b8706b34f11d5",26:"942ffbc28263221bd8fe",27:"b8932db9c96063d1915c",28:"3154771c54cef0262417",29:"acdbe39024fc60882aa2",30:"fa744feefd8a256af9c4",31:"0fd2a012f0f777402621",32:"a519f66e657fa7af6899",33:"549c0e56eaf7b14d7e0d",34:"c25bbd6b467ef25aa551",35:"a3d4394025a670b9beb7",36:"e324afca9116cee23a60",37:"8e3e104961edd84f19c8",38:"13cf755b5c9830b58e8e",39:"c9280907827741eb506b",40:"c6fc0e6f989ba98e9f8e",41:"f9dff26abe1cf6f97b76",42:"efd6a76a84ee15ec7474",43:"790e9555b1ee2e9221d3",44:"a2ddf7b75d5364269d61",45:"e3b232667dc4305cb314",46:"2b6bd996d5e1d9b81baf",47:"d85e1a086a91efa5dc33",48:"3658f97bdd8758f0677e",49:"4656c32efe7298adc060",50:"6bbf6120d36f406cf382",51:"09c5acbef0983dd76eed",52:"b9a79bf191b805d21334",53:"53ba3a032bfb838b3139"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),f},b.m=e,b.c=f,b.d=function(e,a,f){b.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},b.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(a,"a",a),a},b.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.6a3aa4da276fc97d6ca3ca6480405b8d.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.211af78855b910f4e94a.js></script><script type=text/javascript src=/static/js/vendor.7079320e0f54c7cba3cd.js></script><script type=text/javascript src=/static/js/app.f0a2eb2d016fbf5fb358.js></script></body><script>let el = document.getElementsByTagName("script"); <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.1cca9446126682dd347531933db59ae3.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.a08d0e51024459191fb8.js></script><script type=text/javascript src=/static/js/vendor.7079320e0f54c7cba3cd.js></script><script type=text/javascript src=/static/js/app.c981a6a090495fa8b07f.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',a,b,c); console.log('error:',a,b,c);
}; };
......
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([33],{"/ubI":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("CCn6"),i=o("kmJW"),a=o("CfzE"),r={name:"manageDialog",props:["manageObj"],data:function(){return{sourceTypeList:[],addTypeObj:{title:"来源码类别",show:!1},form:{value:"",desc:"",id:""},rules:{value:[{required:!0,message:"请输入类别",trigger:"change"}],desc:[{message:"请输入描述",trigger:"change"}]}}},methods:{sub:function(){var e=this,t={value:this.form.value,key:"code_rule_type"};this.form.desc&&(t.desc=this.form.desc),this.form.id?this.$refs.form.validate(function(o){o&&e.$confirm("此操作将修改来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._118)(e.form.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.addTypeObj.show=!1,e.sourceTypeOptions()})})}):this.$refs.form.validate(function(o){o&&e.$confirm("此操作将新增来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._99)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.addTypeObj.show=!1,e.sourceTypeOptions()})})})},add:function(){this.form.id="",this.form.value="",this.form.desc="",this.addTypeObj.show=!0},sourceTypeOptions:function(){var e=this;Object(s._34)({limit:2e3,page:1,key:"code_rule_type"}).then(function(t){e.sourceTypeList=t.list})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.R)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.sourceTypeOptions()})})},edit:function(e){var t=this;Object(s._33)(e.id).then(function(e){t.addTypeObj.show=!0,t.form.id=e.id,t.form.value=e.value,t.form.desc=e.desc})}},mounted:function(){},watch:{"manageObj.show":function(e){e?this.sourceTypeOptions():this.$emit("reflash")}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:e.manageObj.title,center:"","append-to-body":"",visible:e.manageObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.manageObj,"show",t)}}},[o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"primary"},on:{click:e.add}},[e._v("新增来源码类别")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sourceTypeList}},[o("el-table-column",{attrs:{prop:"desc",label:"描述"}}),e._v(" "),o("el-table-column",{attrs:{prop:"value",label:"类别"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){e.edit(t.row)}}},[e._v("\r\n 编辑\r\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){e.del(t.row)}}},[e._v("\r\n 删除\r\n ")]):e._e()]}}])})],1)],1),e._v(" "),o("el-dialog",{attrs:{title:e.addTypeObj.title,center:"","append-to-body":"",visible:e.addTypeObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.addTypeObj,"show",t)}}},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("来源码类别")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"value"}},[o("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("描述")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"desc"}},[o("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1)],1)],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.addTypeObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var n=o("VU/8")(r,l,!1,function(e){o("4uvB")},"data-v-2a5d3fc1",null).exports,c={components:{page:i.a,userPage:i.a,chooseGoodDialog:a.a,manageDialog:n},data:function(){return{nowPage:1,total:0,limit:10,sourceList:[],codeSelect:[{value:"USER",label:"用户"},{value:"TEACHER",label:"老师"}],dialog:{title:"新增来源码",show:!1,rules:{title:[{required:!0,message:"请填写来源码名字",trigger:"change"}],code:[{required:!0,message:"请填写来源码类型",trigger:"change"}],type_id:[{required:!0,message:"请填写来源码类别",trigger:"change"}]},form:{id:"",title:"",code:"",is_withdraw:0,desc:"",no_cash_user:"",type_id:""}},userDialog:{total:0,limit:10,nowPage:1,show:!1},userList:[],searchUserFrom:{type_id:"",title:"",code:""},multipleSelection:[],noCashUserDialog:{total:0,limit:200,nowPage:1,show:!1},noCashUserList:[],chooseGoodDialogObj:{show:!1,code:""},manageObj:{show:!1,title:"来源码类别管理"},searchFrom:{},codeType:[]}},filters:{sourceType:function(e){return"user"===e.toLowerCase()?"用户":"teacher"===e.toLowerCase()?"老师":e},isWithdraw:function(e){return 1===e?"是":"否"}},created:function(){this.getList()},methods:{getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.type_id&&(t.type_id=this.searchFrom.type_id),this.searchFrom.title&&(t.title=this.searchFrom.title),this.searchFrom.code&&(t.code=this.searchFrom.code),Object(s._69)(t).then(function(t){t&&(e.sourceList=t.list?t.list:[],e.total=t.total)})},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},onSelectUser:function(){this.userDialog.show=!0,this.dialog.form.no_cash_user?this.multipleSelection=this.dialog.form.no_cash_user.split(","):this.multipleSelection=[],this.getUser()},onUserPageChange:function(e){this.userDialog.nowPage=e,this.getUser()},onUserSizeChange:function(e){this.userDialog.nowPage=1,this.userDialog.limit=e,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},onConfirm:function(){var e=this.multipleSelection;if(0===e.length);else{var t=[];e.forEach(function(e){t.push(e.user_id)});var o=t;this.dialog.form.no_cash_user&&(o=t.concat(this.stringToInt(this.dialog.form.no_cash_user.split(","))));var s=this.dedupe(o);this.dialog.form.no_cash_user=s.join(","),this.userDialog.show=!1}},stringToInt:function(e){var t=e||[];return t=t.map(function(e){return parseInt(e,10)})},dedupe:function(e){return Array.from(new Set(e))},getUser:function(){var e=this,t={page:this.userDialog.nowPage,limit:this.userDialog.limit};this.searchUserFrom.userId&&(t.user_id=this.searchUserFrom.userId),this.searchUserFrom.nickName&&(t.nickname=this.searchUserFrom.nickName),this.searchUserFrom.mobile&&(t.mobile=this.searchUserFrom.mobile),Object(s._79)(t).then(function(t){e.userList=t.list,e.userDialog.total=t.total})},getNoCashUser:function(e){var t=this,o={page:this.noCashUserDialog.nowPage,limit:this.noCashUserDialog.limit};e&&(o.user_id=e),Object(s._79)(o).then(function(e){t.noCashUserList=e.list,t.noCashUserDialog.total=e.total,t.noCashUserDialog.show=!0})},edit:function(e){this.dialog.show=!0,this.dialog.form.id=e.id,this.dialog.title="编辑来源码",this.dialog.form.title=e.title,this.dialog.form.code=e.code,this.dialog.form.type_id=e.type_id,this.dialog.form.is_withdraw=1===e.is_withdraw,this.dialog.form.desc=e.desc,this.dialog.form.no_cash_user=e.no_cash_user},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增来源码",this.dialog.form.title="",this.dialog.form.code="USER",this.dialog.form.type_id="",this.dialog.form.is_withdraw=!1,this.dialog.form.desc="",this.dialog.form.no_cash_user=""},del:function(e){var t=this;this.$confirm("此操作将删除该来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.P)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getList()})})},sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.dialog;if(o.form.id){var i={title:o.form.title,code:o.form.code,type_id:o.form.type_id,is_withdraw:o.form.is_withdraw?1:0,desc:o.form.desc};o.form.no_cash_user&&(i.no_cash_user=o.form.no_cash_user),e.$confirm("此操作将修改该来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._128)(o.form.id,i).then(function(){e.$message({type:"success",message:"修改成功!"}),o.show=!1,e.getList()})})}else{var a={title:o.form.title,code:o.form.code,type_id:o.form.type_id,no_cash_user:o.form.no_cash_user,is_withdraw:o.form.is_withdraw?1:0,desc:o.form.desc};e.$confirm("此操作将添加来源码?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.o)(a).then(function(){e.$message({type:"success",message:"添加成功!"}),o.show=!1,e.getList()})})}}})},goToOrder:function(e){this.$router.push("/order?code="+e)},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},createInviteLink:function(e){this.chooseGoodDialogObj.show=!0,this.chooseGoodDialogObj.code="CC-"+e},sourceOptions:function(){var e=this;Object(s._34)({limit:2e3,page:1,key:"code_rule_type"}).then(function(t){e.codeType=t.list})},changeList:function(){this.sourceOptions(),this.getList()}},mounted:function(){this.sourceOptions()}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"menu"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",size:"small",inline:""}},[o("el-form-item",{attrs:{label:"名字"}},[o("el-input",{model:{value:e.searchFrom.title,callback:function(t){e.$set(e.searchFrom,"title",t)},expression:"searchFrom.title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源CODE"}},[o("el-input",{model:{value:e.searchFrom.code,callback:function(t){e.$set(e.searchFrom,"code",t)},expression:"searchFrom.code"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源码类别"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.type_id,callback:function(t){e.$set(e.searchFrom,"type_id",t)},expression:"searchFrom.type_id"}},e._l(e.codeType,function(e,t){return o("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),e.$store.state.readonly?e._e():o("el-button",{attrs:{plain:"",type:"success"},on:{click:e.add}},[e._v("新增来源码")]),e._v(" "),e.$store.state.orderRefund?o("el-button",{attrs:{plain:"",type:"primary"},on:{click:function(t){e.manageObj.show=!0}}},[e._v("来源码类别管理")]):e._e()],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sourceList,size:"small"}},[o("el-table-column",{attrs:{prop:"title",label:"名字"}}),e._v(" "),o("el-table-column",{attrs:{prop:"code",label:"来源CODE"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("a",{attrs:{href:"javascript:void(0);"},on:{click:function(o){e.goToOrder(t.row.code)}}},[e._v(e._s(t.row.code))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否可提现"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isWithdraw")(t.row.is_withdraw))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"no_cash_user",label:"不可提现用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("a",{attrs:{href:"javascript:void(0);"},on:{click:function(o){e.getNoCashUser(t.row.no_cash_user)}}},[e._v(e._s(t.row.no_cash_user))])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"type_id",label:"来源码类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.type_name)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{label:"操作",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.readonly?e._e():o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),!e.$store.state.readonly&&e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.createInviteLink(t.row.code)}}},[e._v("\n 复制链接\n ")])]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("el-dialog",{attrs:{title:e.dialog.title,center:"","append-to-body":"",visible:e.dialog.show,width:"50%"},on:{"update:visible":function(t){e.$set(e.dialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{rules:e.dialog.rules,model:e.dialog.form,"label-width":"120px"}},[o("el-form-item",{attrs:{label:"名字",prop:"title"}},[o("el-input",{model:{value:e.dialog.form.title,callback:function(t){e.$set(e.dialog.form,"title",t)},expression:"dialog.form.title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源CODE",prop:"code"}},[o("el-input",{model:{value:e.dialog.form.code,callback:function(t){e.$set(e.dialog.form,"code",t)},expression:"dialog.form.code"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"来源码类别",prop:"type_id"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.dialog.form.type_id,callback:function(t){e.$set(e.dialog.form,"type_id",t)},expression:"dialog.form.type_id"}},e._l(e.codeType,function(e,t){return o("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"是否可提现"}},[o("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#eee"},model:{value:e.dialog.form.is_withdraw,callback:function(t){e.$set(e.dialog.form,"is_withdraw",t)},expression:"dialog.form.is_withdraw"}})],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:16}},[o("el-form-item",{attrs:{label:"不可提现用户ID"}},[o("el-input",{model:{value:e.dialog.form.no_cash_user,callback:function(t){e.$set(e.dialog.form,"no_cash_user",t)},expression:"dialog.form.no_cash_user"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:6,offset:2}},[o("el-button",{attrs:{type:"primary"},on:{click:e.onSelectUser}},[e._v("选择用户")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"备注"}},[o("el-input",{model:{value:e.dialog.form.desc,callback:function(t){e.$set(e.dialog.form,"desc",t)},expression:"dialog.form.desc"}})],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1),e._v(" "),o("el-dialog",{attrs:{visible:e.userDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.userDialog,"show",t)}}},[o("el-form",{attrs:{"label-width":"90px"}},[o("el-row",[o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"ID"}},[o("el-input",{model:{value:e.searchUserFrom.userId,callback:function(t){e.$set(e.searchUserFrom,"userId",t)},expression:"searchUserFrom.userId"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"昵称"}},[o("el-input",{model:{value:e.searchUserFrom.nickName,callback:function(t){e.$set(e.searchUserFrom,"nickName",t)},expression:"searchUserFrom.nickName"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"电话"}},[o("el-input",{model:{value:e.searchUserFrom.mobile,callback:function(t){e.$set(e.searchUserFrom,"mobile",t)},expression:"searchUserFrom.mobile"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:8,offset:16}},[o("el-form-item",[o("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),o("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),o("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),o("user-page",{attrs:{total:e.userDialog.total,limit:e.userDialog.limit},on:{pageChange:e.onUserPageChange,sizeChange:e.onUserSizeChange}}),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.userDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)],1)],1),e._v(" "),o("el-dialog",{attrs:{visible:e.noCashUserDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.noCashUserDialog,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.noCashUserList}},[o("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.noCashUserDialog.show=!1}}},[e._v("确 定")])],1)],1),e._v(" "),o("choose-good-dialog",{attrs:{dialogObj:e.chooseGoodDialogObj},on:{changeShow:e.changeShow}}),e._v(" "),o("manage-dialog",{attrs:{manageObj:e.manageObj},on:{reflash:e.changeList}})],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(e){o("L30u")},"data-v-4c3a233c",null);t.default=d.exports},"4uvB":function(e,t){},L30u:function(e,t){}});
\ No newline at end of file
webpackJsonp([34],{"3Wk/":function(e,t){},AEsg:function(e,t){},K2yr:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s("CCn6"),o={name:"index",data:function(){return{searchFrom:{mobile:"",old_user_id:"",course_title:""},userList:[],total:0,nowPage:1,limit:10,showDetail:!1}},components:{page:s("kmJW").a},mounted:function(){this.getUser()},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},getUser:function(){var e=this,t={page:this.nowPage,limit:this.limit};this.searchFrom.old_user_id&&(t.old_user_id=this.searchFrom.old_user_id),this.searchFrom.course_title&&(t.course_title=this.searchFrom.course_title),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(r._52)(t).then(function(t){e.userList=t.list,e.total=t.total})},deleteOption:function(e){var t=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r.L)(e).then(function(e){t.$message({type:"success",message:"删除成功"}),t.getUser()})})}}},i={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user"},[s("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[s("el-form-item",{attrs:{label:"用户ID"}},[s("el-input",{model:{value:e.searchFrom.old_user_id,callback:function(t){e.$set(e.searchFrom,"old_user_id",t)},expression:"searchFrom.old_user_id"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程名称"}},[s("el-input",{model:{value:e.searchFrom.course_title,callback:function(t){e.$set(e.searchFrom,"course_title",t)},expression:"searchFrom.course_title"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"手机号"}},[s("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[s("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("img",{staticClass:"avatar",attrs:{src:t.row.headimgurl}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.old_user_id)+")\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"mobile",label:"手机号"}}),e._v(" "),s("el-table-column",{attrs:{prop:"course_title",label:"课程名字"}}),e._v(" "),s("el-table-column",{attrs:{prop:"start_time",label:"开课时间"}}),e._v(" "),e.$store.state.readonly?e._e():s("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$store.state.deletePermission?s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){e.deleteOption(t.row.id)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),s("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var a=s("VU/8")(o,i,!1,function(e){s("AEsg"),s("3Wk/")},"data-v-29f63a32",null);t.default=a.exports}});
\ No newline at end of file
webpackJsonp([35],{"6y4w":function(t,e){},"89rD":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("CCn6"),s={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:"1"},list:[]}},filters:{filterStatus:function(t){var e="";return 0===t.status?e="退款中":1===t.status?e="退款成功":2===t.status&&(e="退款失败("+t.err_msg+")"),e}},mounted:function(){this.getRefundList()},methods:{editComment:function(t,e){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:e}).then(function(e){var s=e.value;Object(n._7)(t,"refund",{desc:s}).then(function(t){a.$message({type:"success",message:"编辑备注成功"}),a.getRefundList()})})},onPageChange:function(t){this.nowPage=t,this.getRefundList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getRefundList()},getRefundList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.status&&"-1"!==this.searchFrom.status&&(e.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),Object(n._63)(e).then(function(e){t.total=e.total,t.list=e.list})},exportTable:function(){var t={};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._15)("/api/admin/refund/export",t)}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"refund"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:t.searchFrom.nickname,callback:function(e){t.$set(t.searchFrom,"nickname",e)},expression:"searchFrom.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:t.searchFrom.user_id,callback:function(e){t.$set(t.searchFrom,"user_id",e)},expression:"searchFrom.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单编号"}},[a("el-input",{model:{value:t.searchFrom.out_trade_no,callback:function(e){t.$set(t.searchFrom,"out_trade_no",e)},expression:"searchFrom.out_trade_no"}})],1),t._v(" "),a("el-form-item",{attrs:{"label-width":"10px"}},[a("el-button",{attrs:{type:"primary"},on:{click:t.getRefundList}},[t._v("搜索")]),t._v(" "),t.$store.state.export?a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.exportTable}},[t._v("导出")]):t._e()],1)],1),t._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":t.getRefundList},model:{value:t.searchFrom.status,callback:function(e){t.$set(t.searchFrom,"status",e)},expression:"searchFrom.status"}},[a("el-tab-pane",{attrs:{label:"退款成功",name:"1"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"退款中",name:"0"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"退款失败",name:"2"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间",sortable:""}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(a){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 备注\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)},staticRenderFns:[]};var o=a("VU/8")(s,r,!1,function(t){a("6y4w"),a("oYnt")},"data-v-1b533a9c",null);e.default=o.exports},oYnt:function(t,e){}});
\ No newline at end of file
webpackJsonp([36],{"8b9g":function(e,t){},CTBU:function(e,t){},F5pf:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("CCn6"),o={name:"putForward",data:function(){var e=this;return{today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a+" 00:00:00",a+" 23:59:59"])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},nowPage:1,total:0,limit:10,search:{key:"",status:"1",payTime:[]},liStatus:[{label:"全部",status:""},{label:"申请中",status:0},{label:"提现成功",status:1},{label:"提现失败",status:2}],tableData:[],showDialog:!1,showDesc:!1,dialogTitle:"审核",nowObj:{id:"",status:1,reason:"",desc:""},page:{current:1,pageSize:100,total:0},putForwardDialog:{show:!1,user_id:"",userLabel:"",money:0,desc:""},userList:[],rules:{userLabel:[{required:!0,message:"请选择用户",trigger:"change"}],money:[{required:!0,message:"请输入提现金额",trigger:"change"}],desc:[{required:!0,message:"请输入提现说明",trigger:"change"}]},searchFrom:{},selectUserList:[],userDialog:{show:!1,nowPage:1,total:0,limit:5}}},components:{page:a("kmJW").a},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":"0元"},filterStatus:function(e){var t="";return 0===e.status?t="审核中":1===e.status?t="提现成功":2===e.status&&(t="提现失败("+e.reason+")"),t},userLabel:function(e){return e.nickname+"["+e.user_id+"]"}},mounted:function(){this.getList()},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var s=e.getDate();return s<10&&(s="0"+s),t+"-"+a+"-"+s},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},exportTable:function(){var e={};this.search.withdraw_no&&(e.withdraw_no=this.search.withdraw_no),this.search.out_trade_no&&(e.out_trade_no=this.search.out_trade_no),(this.search.status||0===this.search.status)&&(e.status=this.search.status),this.search.user_id&&(e.user_id=this.search.user_id),this.search.money&&(e.money=100*parseFloat(this.search.money)),Object(s._15)("/api/admin/withdraw/export",e)},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.search.withdraw_no&&(t.withdraw_no=this.search.withdraw_no),this.search.out_trade_no&&(t.out_trade_no=this.search.out_trade_no),this.search.status&&"-1"!==this.search.status&&(t.status=this.search.status),this.search.user_id&&(t.user_id=this.search.user_id),this.search.payTime&&this.search.payTime.length>0&&(t.success_start_at=this.search.payTime[0],t.success_end_at=this.search.payTime[1]),this.search.money&&(t.money=100*parseFloat(this.search.money)),Object(s._84)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onSearch:function(){this.nowPage=1,this.getList()},checkMoney:function(e){this.nowObj.id=e,this.showDesc=!1,this.showDialog=!0},addDesc:function(e,t){this.nowObj.id=e,this.nowObj.desc=t,this.showDesc=!0,this.showDialog=!0},onPageChange:function(e){this.nowPage=e,this.page.current=e,this.getList()},doCallback:function(){this.nowObj.id="",this.nowObj.status=1,this.nowObj.reason="",this.nowObj.desc="",this.page.current=1,this.showDialog=!1,this.getList(),this.$message({message:"提交成功",type:"success"})},onSave:function(e){var t=this;if(e){var a={desc:this.nowObj.desc};if(""===a.desc||null==a.desc)return this.$message.error("请填写备注"),!1;Object(s._7)(this.nowObj.id,"withdraw",a).then(function(e){t.doCallback()})}else{var o={reason:this.nowObj.reason,status:this.nowObj.status};if((""===o.reason||null==o.reason)&&2===o.status)return this.$message.error("请填写失败理由"),!1;o.reason="",Object(s._132)(this.nowObj.id,o).then(function(e){t.doCallback()})}},manualPutForward:function(){this.putForwardDialog.show=!0,this.putForwardDialog.user_id="",this.putForwardDialog.userLabel="",this.putForwardDialog.money=0,this.putForwardDialog.desc="",this.getUserList()},getUserList:function(){var e=this,t={limit:this.userDialog.limit,page:this.userDialog.nowPage};this.searchFrom.userId&&(t.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(t.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(s._79)(t).then(function(t){e.userList=t.list,e.userDialog.total=t.total})},confirmPutForward:function(){var e=this,t={user_id:this.putForwardDialog.user_id,money:this.putForwardDialog.money,desc:this.putForwardDialog.desc};this.$refs.refPutForward.validate(function(a){if(!a)return!1;e.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._94)(t).then(function(t){e.$message({type:"success",message:"保存成功"}),e.getList(),e.putForwardDialog.show=!1})})})},handleSelectionChange:function(e){this.selectUserList=e},onUserPageChange:function(e){this.userDialog.nowPage=e,this.getUserList()},onUserSizeChange:function(e){this.userDialog.limit=e,this.userDialog.nowPage=1,this.getUserList()},onAdd:function(){0!==this.selectUserList.length?1===this.selectUserList.length?(this.putForwardDialog.userLabel=this.selectUserList[0].nickname+"["+this.selectUserList[0].user_id+"]",this.putForwardDialog.user_id=this.selectUserList[0].user_id,this.userDialog.show=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"putForward"},[a("el-form",{staticClass:"demo-form-inline",attrs:{model:e.search,inline:"","label-width":"80px"}},[a("el-form-item",{attrs:{label:"提现单号"}},[a("el-input",{attrs:{placeholder:"提现单号"},model:{value:e.search.withdraw_no,callback:function(t){e.$set(e.search,"withdraw_no",t)},expression:"search.withdraw_no"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"订单号"}},[a("el-input",{attrs:{placeholder:"订单号"},model:{value:e.search.out_trade_no,callback:function(t){e.$set(e.search,"out_trade_no",t)},expression:"search.out_trade_no"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{attrs:{placeholder:"用户ID"},model:{value:e.search.user_id,callback:function(t){e.$set(e.search,"user_id",t)},expression:"search.user_id"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"提现金额"}},[a("el-input",{attrs:{placeholder:"提现金额"},model:{value:e.search.money,callback:function(t){e.$set(e.search,"money",t)},expression:"search.money"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"提现时间"}},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]}},model:{value:e.search.payTime,callback:function(t){e.$set(e.search,"payTime",t)},expression:"search.payTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")]),e._v(" "),e.$store.state.export?a("el-button",{attrs:{type:"primary"},on:{click:e.exportTable}},[e._v("导出")]):e._e(),e._v(" "),e.$store.state.readonly?e._e():a("el-button",{attrs:{type:"primary"},on:{click:e.manualPutForward}},[e._v("手动提现")])],1)],1),e._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.onSearch},model:{value:e.search.status,callback:function(t){e.$set(e.search,"status",t)},expression:"search.status"}},[a("el-tab-pane",{attrs:{label:"提现成功",name:"1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"申请中",name:"0"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"申请失败",name:"2"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",fixed:""}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyYuan")(t.row.money))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row))+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.success_at)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.created_at)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.checkMoney(t.row.id,t.row.desc)}}},[e._v("\n 审核\n ")]):e._e(),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.addDesc(t.row.id,t.row.desc)}}},[e._v("\n 添加备注\n ")])]}}])})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),e.showDialog?a("el-dialog",{attrs:{title:e.dialogTitle,visible:e.showDialog},on:{"update:visible":function(t){e.showDialog=t}}},[a("el-form",{ref:"saveuser",attrs:{model:e.nowObj,"label-width":"70px"}},[e.showDesc?e._e():a("el-form-item",{attrs:{label:"订单状态"}},[[a("el-radio-group",{model:{value:e.nowObj.status,callback:function(t){e.$set(e.nowObj,"status",t)},expression:"nowObj.status"}},[a("el-radio",{attrs:{label:1}},[e._v("提现成功")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("提现失败")])],1)]],2),e._v(" "),2!==e.nowObj.status||e.showDesc?e._e():a("el-form-item",{attrs:{label:"失败理由"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:e.nowObj.reason,callback:function(t){e.$set(e.nowObj,"reason",t)},expression:"nowObj.reason"}})],1),e._v(" "),e.showDesc?a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{attrs:{type:"textarea",rows:"3","auto-complete":"off"},model:{value:e.nowObj.desc,callback:function(t){e.$set(e.nowObj,"desc",t)},expression:"nowObj.desc"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.onSave(e.showDesc)}}},[e._v("保 存")]),e._v(" "),a("el-button",{on:{click:function(t){e.showDialog=!1}}},[e._v("取 消")])],1)],1):e._e(),e._v(" "),e.putForwardDialog.show?a("el-dialog",{attrs:{title:"手动提现",visible:e.putForwardDialog.show},on:{"update:visible":function(t){e.$set(e.putForwardDialog,"show",t)}}},[a("el-form",{ref:"refPutForward",attrs:{model:e.putForwardDialog,rules:e.rules,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-form-item",{attrs:{label:"用户",prop:"userLabel"}},[a("el-input",{attrs:{readonly:"",placeholder:"请选择用户"},model:{value:e.putForwardDialog.userLabel,callback:function(t){e.$set(e.putForwardDialog,"userLabel",t)},expression:"putForwardDialog.userLabel"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:function(t){e.userDialog.show=!0}}},[e._v("选择用户")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"提现金额",prop:"money"}},[a("el-input-number",{attrs:{min:0,placeholder:"提现金额"},model:{value:e.putForwardDialog.money,callback:function(t){e.$set(e.putForwardDialog,"money",t)},expression:"putForwardDialog.money"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"提现说明",prop:"desc"}},[a("el-input",{attrs:{type:"textarea",rows:2,placeholder:"请输入内容"},model:{value:e.putForwardDialog.desc,callback:function(t){e.$set(e.putForwardDialog,"desc",t)},expression:"putForwardDialog.desc"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.putForwardDialog.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.confirmPutForward}},[e._v("确 定")])],1),e._v(" "),a("el-dialog",{attrs:{modal:!1,visible:e.userDialog.show},on:{"update:visible":function(t){e.$set(e.userDialog,"show",t)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:e.searchFrom.userId,callback:function(t){e.$set(e.searchFrom,"userId",t)},expression:"searchFrom.userId"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:8}},[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:8}},[a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:8,offset:16}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUserList}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:t.row.avatar}}),e._v(e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),a("page",{attrs:{total:e.userDialog.total,limit:e.userDialog.limit},on:{pageChange:e.onUserPageChange,sizeChange:e.onUserSizeChange}}),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.userDialog.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)],1):e._e()],1)},staticRenderFns:[]};var i=a("VU/8")(o,r,!1,function(e){a("8b9g"),a("CTBU")},"data-v-0ea31af6",null);t.default=i.exports}});
\ No newline at end of file
webpackJsonp([55],{IcnI:function(e,n,t){"use strict";var o=t("NYxO"),a=t("lRwf"),r=t.n(a),i=t("zSLJ"),u={setToken:function(e,n){e.token=n,i.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,i.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},distribution:function(e,n){e.distribution=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};r.a.use(o.a);n.a=new o.a.Store({state:{show:!1,userName:"",token:"",export:!1,orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,distribution:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:u,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)},distribution:function(e,n){(0,e.commit)("distribution",n)}}})},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(10)]).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(24)]).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(13)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"市场招生统计",routerName:"marketStatistics",path:"/marketStatistics",cover:"2-5",router:{path:"/marketStatistics",name:"marketStatistics",component:function(e){return Promise.all([t.e(0),t.e(50)]).then(function(){var n=[t("SKyX")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(32)]).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(3)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("xdzM")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([t.e(0),t.e(39)]).then(function(){var n=[t("v/LD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(35)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(21)]).then(function(){var n=[t("Fmgy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("jFLA")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"老系统用户列表",routerName:"oldUser",path:"/oldUser",cover:"3-3",router:{path:"/oldUser",name:"oldUser",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("K2yr")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户积分列表",routerName:"integral",path:"/integral",cover:"3-4",router:{path:"/integral",name:"integral",component:function(e){return Promise.all([t.e(0),t.e(14)]).then(function(){var n=[t("NDyu")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"日课订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(36)]).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(47).then(function(){var n=[t("usUK")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"订单统计",routerName:"orderCount",path:"/orderCount",cover:"5-5",router:{path:"/orderCount",name:"orderCount",component:function(e){return Promise.all([t.e(0),t.e(52)]).then(function(){var n=[t("s7i+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"日课订单统计",routerName:"dayOrderCount",path:"/dayOrderCount",cover:"5-11",router:{path:"/dayOrderCount",name:"dayOrderCount",component:function(e){return Promise.all([t.e(0),t.e(40)]).then(function(){var n=[t("mjLz")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("WvRy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"扫码入课列表",routerName:"notBuyClass",path:"/notBuyClass",cover:"5-8",router:{path:"/notBuyClass",name:"notBuyClass",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("E6Zo")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"外部订单列表",routerName:"yunji",path:"/yunji",cover:"5-9",router:{path:"/yunji",name:"yunji",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("69L+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("CvLZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(20)]).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(17)]).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(19)]).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(25)]).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(16)]).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(11)]).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(49)]).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(51)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"测试",routerName:"test",path:"/test",cover:"7-11",router:{path:"/test",name:"test",component:function(e){return Promise.all([t.e(0),t.e(29)]).then(function(){var n=[t("9ZSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"首页管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(27)]).then(function(){var n=[t("CGL6")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"外部投放管理",routerName:"externalLaunch",path:"/externalLaunch",cover:"7-9",router:{path:"/externalLaunch",name:"externalLaunch",component:function(e){return Promise.all([t.e(0),t.e(44)]).then(function(){var n=[t("NrkQ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"来源码管理",routerName:"sourceManage",path:"/sourceManage",cover:"10-1",router:{path:"/sourceManage",name:"sourceManage",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("/ubI")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"短信发送记录",routerName:"smsRecord",path:"/smsRecord",cover:"10-2",router:{path:"/smsRecord",name:"smsRecord",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("qjS+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"系统配置",routerName:"config",path:"/config",cover:"10-3",router:{path:"/config",name:"config",component:function(e){return Promise.all([t.e(0),t.e(41)]).then(function(){var n=[t("TPCG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"后台管理",icon:"icon-shezhi",list:[{value:"账号管理",routerName:"admin",path:"/admin",cover:"8-1",router:{path:"/admin",name:"admin",component:function(e){return Promise.all([t.e(0),t.e(38)]).then(function(){var n=[t("+jTk")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"角色管理",routerName:"role",path:"/role",cover:"8-2",router:{path:"/role",name:"role",component:function(e){return Promise.all([t.e(0),t.e(43)]).then(function(){var n=[t("Vt1u")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"菜单管理",routerName:"menu",path:"/menu",cover:"8-3",router:{path:"/menu",name:"menu",component:function(e){return Promise.all([t.e(0),t.e(53)]).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(30)]).then(function(){var n=[t("gaNG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"操作日志",routerName:"adminLog",path:"/adminLog",cover:"8-5",router:{path:"/adminLog",name:"adminLog",component:function(e){return Promise.all([t.e(0),t.e(37)]).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;console.log(this.$store.state);var a=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(23)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},i={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};o.forEach(function(t){var o=!1,u=[];t.list.forEach(function(t){var a=n.find(function(e){return e.cover===t.cover});a&&(t.router.meta={},t.router.meta.readonly=!!a.readonly,t.router.meta.delete=!!a.delete,t.router.meta.export=!!a.export,t.router.meta.refund=!!a.refund,t.router.meta.distribution=!!a.distribution,u.push(t),"3-1"===a.cover&&(i.meta={},i.meta.readonly=a.readonly,i.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(i)),"3-2"===a.cover&&(r.meta={},r.meta.readonly=a.readonly,r.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),o=!0)}),o&&(t.list=u,a.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",a)}}},r={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("R3Es")},null,null).exports,u=t("lRwf"),c=t.n(u),l=t("YaEn"),s=t("IcnI"),h=t("zL8q"),p=t.n(h);c.a.use(p.a),c.a.config.productionTip=!1,new c.a({el:"#app",store:s.a,router:l.a,components:{App:i},template:"<App/>"})},OMN4:function(e,n){e.exports=axios},R3Es:function(e,n){},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(9)]).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(42).then(function(){var n=[t("sJm1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}]},{path:"/login",name:"login",component:function(e){return Promise.all([t.e(0),t.e(46)]).then(function(){var n=[t("0HId")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/outManager",name:"outManager",component:function(e){return Promise.all([t.e(0),t.e(48)]).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(45)]).then(function(){var n=[t("iPJD")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}},{path:"/newLesson",name:"newLesson",component:function(e){return Promise.all([t.e(0),t.e(4)]).then(function(){var n=[t("4t0V")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});i.beforeEach(function(e,n,t){if(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),o.a.state.orderRefund=e.meta.refund,o.a.state.export=e.meta.export,o.a.state.distribution=e.meta.distribution,"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,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],d[t]&&u.push(d[t][0]),d[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var a={},d={56:0};function f(c){if(a[c])return a[c].exports;var d=a[c]={i:c,l:!1,exports:{}};return e[c].call(d.exports,d,d.exports,f),d.l=!0,d.exports}f.e=function(e){var c=d[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,f){c=d[e]=[a,f]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"226e2e12b1d425d1f439",1:"c2fb57a4ace8bf880b7b",2:"aabeaa89c4edd8bdda0e",3:"3a47ff9c20e7860a142c",4:"9614703290bf3bc8385b",5:"2812bbac5d273ec8a1c5",6:"999e06f0753741769b17",7:"d4de427f3bd8c97dc154",8:"7405da947bf9aa56a456",9:"aa61064262ea6f82ec98",10:"c38acdea24bad7e6d0ea",11:"6430798c1ee4298752ed",12:"42dde46a30da9983395b",13:"141c4febf52ff888ca22",14:"03db95918d559abb9069",15:"a697dc5969c2d2121a6f",16:"f1d82ec155b9d979f266",17:"f6fadfc7e2b96add122d",18:"8155e588986966f015fe",19:"a27f7051d88f34f8f64f",20:"7b43755b197f2d06c31f",21:"7035355890755a45265a",22:"c284efc5f3c5d7f2359c",23:"c5b768a116f14ea0e8c5",24:"1288bc4e8b8366bc6937",25:"3deea444bf89452d5db8",26:"1e48618c6c5c6775485f",27:"24d5e7e8e1290b40f732",28:"29391d914ba292114320",29:"9a72d2bf627d83eafd47",30:"9dce57acaf872b8d2286",31:"2e44fda6cbac83234a74",32:"f6c4bbbf6ccf37637192",33:"833bf63e53c9ec4332c2",34:"c57dc1cfc70f9330b53b",35:"279eda948aefa19d35f6",36:"98cc6291dedb0e963078",37:"83b9b209a51f70bcadd3",38:"02e7d7abdba5a015e078",39:"f017f978a4a781477e3d",40:"832a53a880dff273e261",41:"b513245c28bda61372bd",42:"bfcf4d980f9588d2fc8b",43:"4644281c714fd7abb294",44:"c6b00db07024bba60c59",45:"af8be2d3273906820177",46:"135273af6eddb75d4921",47:"9cf806e0d226649b8d50",48:"29b5d7fcf0d5ddf6a587",49:"c8f75ce7dde5498a45c8",50:"607f0d6725c2051139e2",51:"b694de29ecac2039aa81",52:"bd1d5cf359961f398c29",53:"92849ba1647dd9de0949"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=d[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),d[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},f.m=e,f.c=a,f.d=function(e,c,a){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="/",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -96,11 +96,11 @@ ...@@ -96,11 +96,11 @@
{{ scope.row.created_at }} {{ scope.row.created_at }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column
prop="reason" prop="reason"
label="失败原因" label="失败原因"
> >
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
prop="desc" prop="desc"
label="备注" label="备注"
......
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