Commit 8b86c646 authored by wangwei's avatar wangwei

后台修改

parent 842de42c
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.74e3fb33f3831396890c.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.a66b396d56a4c6f8f7a7.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.883dd3185cd425616247.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.a66b396d56a4c6f8f7a7.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
webpackJsonp([10],{"24Av":function(n,e,t){var a=t("yWpl");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("6389d74b",a,!1,{})},"3o3x":function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,'\n.search-btn-block[data-v-beb21cdc] {\n margin-left: 20px;\n}\n.search-form[data-v-beb21cdc] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-beb21cdc] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-beb21cdc] {\n float: right;\n}\n.text-c[data-v-beb21cdc] {\n text-align: center;\n}\n.text-b[data-v-beb21cdc] {\n font-weight: bold;\n}\n.color-b[data-v-beb21cdc] {\n color: #6ba8e6;\n}\n.text-r[data-v-beb21cdc] {\n text-align: right;\n}\n.main-block[data-v-beb21cdc] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-beb21cdc] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-beb21cdc]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.avatar[data-v-beb21cdc] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/integral/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-beb21cdc] {\n margin-left: 20px;\n}\n.search-form[data-v-beb21cdc] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-beb21cdc] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-beb21cdc] {\n float: right;\n}\n.text-c[data-v-beb21cdc] {\n text-align: center;\n}\n.text-b[data-v-beb21cdc] {\n font-weight: bold;\n}\n.color-b[data-v-beb21cdc] {\n color: #6ba8e6;\n}\n.text-r[data-v-beb21cdc] {\n text-align: right;\n}\n.main-block[data-v-beb21cdc] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-beb21cdc] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-beb21cdc]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-beb21cdc]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.avatar[data-v-beb21cdc] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n'],sourceRoot:""}])},CtjZ:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.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:["D:/myproject/changchang-admin-new/src/components/integral/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:""}])},NDyu:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("CCn6"),i=t("+TkF"),r=t("kmJW"),s={name:"newIntegral",props:["newIntegral"],data:function(){var n=[];for(var e in i.i)n.push({id:e,value:i.i[e]});return{is_addOption:n}},methods:{onAdd:function(){this.newIntegral.user_id&&""!==this.newIntegral.user_id?this.newIntegral.is_add&&""!==this.newIntegral.is_add?this.newIntegral.value&&""!==this.newIntegral.value?this.newIntegral.desc&&""!==this.newIntegral.desc?this.$emit("subAdd"):this.$message("请填写描述"):this.$message("请填写积分值"):this.$message("请选择积分类型"):this.$message("请填写用户ID")},showUserList:function(){this.$emit("showUserList")}}},o=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{visible:n.newIntegral.show,width:"800px",center:"",title:"积分变更"},on:{"update:visible":function(e){n.$set(n.newIntegral,"show",e)}}},[t("el-form",{attrs:{"label-width":"150px"}},[t("el-form-item",{attrs:{label:"用户ID"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:14}},[t("el-input",{model:{value:n.newIntegral.user_id,callback:function(e){n.$set(n.newIntegral,"user_id",e)},expression:"newIntegral.user_id"}})],1),n._v(" "),t("el-col",{attrs:{span:6}},[t("el-button",{on:{click:n.showUserList}},[n._v("查询")])],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"积分类型"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-select",{model:{value:n.newIntegral.is_add,callback:function(e){n.$set(n.newIntegral,"is_add",e)},expression:"newIntegral.is_add"}},n._l(n.is_addOption,function(n,e){return t("el-option",{key:e,attrs:{label:n.value,value:n.id}})}))],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"积分值"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input-number",{model:{value:n.newIntegral.value,callback:function(e){n.$set(n.newIntegral,"value",e)},expression:"newIntegral.value"}})],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"描述【用户可见】"}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:20}},[t("el-input",{model:{value:n.newIntegral.desc,callback:function(e){n.$set(n.newIntegral,"desc",e)},expression:"newIntegral.desc"}})],1)],1)],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.newIntegral.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onAdd}},[n._v("确 定")])],1)],1)};o._withStripped=!0;var l={render:o,staticRenderFns:[]},c=l;var d=!1;var u=t("VU/8")(s,c,!1,function(n){d||t("24Av")},"data-v-718e312c",null);u.options.__file="src\\components\\integral\\newIntegral.vue";var m=u.exports,b={name:"userList",props:["show"],components:{page:r.a},data:function(){return{userList:[],form:{userId:"",nickName:"",mobile:""},nowPage:1,limit:5,total:0,multipleSelection:null}},methods:{handleCurrentChange:function(n){n&&(this.multipleSelection=n.user_id)},onAdd:function(){this.multipleSelection?this.$emit("addUser",this.multipleSelection):this.$message("请点击选择用户")},onPageChange:function(n){this.nowPage=n,this.getUserList()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.getUserList()},getUserList:function(){var n=this,e={page:this.nowPage,limit:this.limit};this.form.userId&&(e.user_id=this.form.userId),this.form.nickName&&(e.nickname=this.form.nickName),this.form.mobile&&(e.mobile=this.form.mobile),Object(a._69)(e).then(function(e){n.userList=e.list,n.total=e.total})},initPage:function(){this.multipleSelection=null,this.form={userId:"",nickName:"",mobile:""},this.getUserList()}},watch:{"show.show":function(n){n&&this.initPage()}}},f=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("el-dialog",{attrs:{visible:n.show.show,width:"700px",center:"",title:"用户列表"},on:{"update:visible":function(e){n.$set(n.show,"show",e)}}},[t("el-form",{attrs:{"label-width":"40px",inline:""}},[t("el-form-item",{attrs:{label:"ID"}},[t("el-input",{model:{value:n.form.userId,callback:function(e){n.$set(n.form,"userId",e)},expression:"form.userId"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"昵称"}},[t("el-input",{model:{value:n.form.nickName,callback:function(e){n.$set(n.form,"nickName",e)},expression:"form.nickName"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"电话"}},[t("el-input",{model:{value:n.form.mobile,callback:function(e){n.$set(n.form,"mobile",e)},expression:"form.mobile"}})],1),n._v(" "),t("el-form-item",[t("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:n.getUserList}},[n._v("搜索")])],1)],1),n._v(" "),t("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:n.userList,"highlight-current-row":""},on:{"current-change":n.handleCurrentChange}},[t("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),n._v(n._s(e.row.nickname)+"(ID:"+n._s(e.row.user_id)+")\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}}),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.show.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onAdd}},[n._v("确 定")])],1)],1)};f._withStripped=!0;var h={render:f,staticRenderFns:[]},p=h;var g=!1;var A=t("VU/8")(b,p,!1,function(n){g||t("zDTg")},"data-v-551038f9",null);A.options.__file="src\\components\\integral\\userList.vue";var v=A.exports,w={name:"index",components:{page:r.a,newIntegral:m,userListPage:v},data:function(){var n=[];for(var e in i.i)n.push({id:e,value:i.i[e]});var t=[];for(var a in i.h)t.push({id:a,value:i.h[a]});return{list:[],total:0,newIntegral:{show:!1,user_id:"",is_add:"",value:"",desc:""},is_addOption:n,sourceOption:t,limit:10,userListShow:{show:!1},nowPage:1,form:{is_add:"-1",source:"",user_id:"",mobile:"",nickname:""}}},mounted:function(){this.initPage()},filters:{INTEGRALTYPE:function(n){return i.i[n]},INTEGRALFUN:function(n){return i.h[n]}},methods:{subAdd:function(){var n=this,e={user_id:this.newIntegral.user_id,is_add:this.newIntegral.is_add,value:this.newIntegral.value,desc:this.newIntegral.desc};Object(a.v)(e).then(function(e){n.getList(),n.newIntegral.show=!1})},showUserList:function(){this.userListShow.show=!0},addUser:function(n){this.userListShow.show=!1,this.newIntegral.user_id=n},changeUserList:function(){},addIntegral:function(){this.newIntegral={show:!0,user_id:"",is_add:"",value:"",desc:""}},initPage:function(){this.form={is_add:"-1",source:"",user_id:"",mobile:"",nickname:""},this.getList()},onPageChange:function(n){this.nowPage=n,this.getList()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.getList()},getList:function(){var n=this,e={limit:this.limit,page:this.nowPage};""!==this.form.is_add&&"-1"!==this.form.is_add&&(e.is_add=this.form.is_add),""!==this.form.source&&(e.source=this.form.source),""!==this.form.user_id&&(e.user_id=this.form.user_id),""!==this.form.mobile&&(e.mobile=this.form.mobile),""!==this.form.nickname&&(e.nickname=this.form.nickname),Object(a._38)(e).then(function(e){n.list=e.list,n.total=e.total})}}},_=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"integral-page"},[t("el-form",{ref:"searchFrom",staticStyle:{"padding-top":"20px",background:"white"},attrs:{model:n.form,"label-width":"100px",inline:""}},[t("el-form-item",{attrs:{label:"昵称"}},[t("el-input",{model:{value:n.form.nickname,callback:function(e){n.$set(n.form,"nickname",e)},expression:"form.nickname"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"用户ID"}},[t("el-input",{model:{value:n.form.user_id,callback:function(e){n.$set(n.form,"user_id",e)},expression:"form.user_id"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"手机号"}},[t("el-input",{model:{value:n.form.mobile,callback:function(e){n.$set(n.form,"mobile",e)},expression:"form.mobile"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"获/抵方式"}},[t("el-select",{attrs:{clearable:""},on:{change:n.getList},model:{value:n.form.source,callback:function(e){n.$set(n.form,"source",e)},expression:"form.source"}},n._l(n.sourceOption,function(n,e){return t("el-option",{key:e,attrs:{label:n.value,value:n.id}})}))],1),n._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary",plain:""},on:{click:n.getList}},[n._v("搜索")])],1)],1),n._v(" "),n.$store.state.readonly?n._e():t("div",{staticClass:"new-block"},[t("el-button",{attrs:{type:"success",plain:""},on:{click:n.addIntegral}},[n._v("变更用户积分")])],1),n._v(" "),t("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":n.getList},model:{value:n.form.is_add,callback:function(e){n.$set(n.form,"is_add",e)},expression:"form.is_add"}},[t("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"添加积分",name:"1"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"减少积分",name:"0"}})],1),n._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.list}},[t("el-table-column",{attrs:{width:"220",className:"f-c",label:"用户"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("img",{staticClass:"avatar",attrs:{src:e.row.avatar}}),n._v(" "+n._s(e.row.nickname)+"(ID:"+n._s(e.row.user_id)+")"),t("br"),n._v("手机:"+n._s(e.row.mobile)+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"来源"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("INTEGRALFUN")(e.row.source))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"desc",label:"积分变更描述"}}),n._v(" "),t("el-table-column",{attrs:{label:"变更积分值"},scopedSlots:n._u([{key:"default",fn:function(e){return[1===e.row.is_add?t("span",{staticStyle:{color:"green"}},[n._v("+"+n._s(e.row.value))]):n._e(),n._v(" "),0===e.row.is_add?t("span",{staticStyle:{color:"red"}},[n._v("-"+n._s(e.row.value))]):n._e()]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"last_value",label:"变更后积分值"}}),n._v(" "),t("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}}),n._v(" "),t("new-integral",{attrs:{newIntegral:n.newIntegral},on:{subAdd:n.subAdd,showUserList:n.showUserList}}),n._v(" "),t("user-list-page",{attrs:{show:n.userListShow},on:{addUser:n.addUser}})],1)};_._withStripped=!0;var C={render:_,staticRenderFns:[]},x=C;var k=!1;var B=t("VU/8")(w,x,!1,function(n){k||(t("wk0a"),t("WUeu"))},"data-v-beb21cdc",null);B.options.__file="src\\components\\integral\\index.vue";e.default=B.exports},UrNJ:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"userList.vue",sourceRoot:""}])},WUeu:function(n,e,t){var a=t("CtjZ");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("d0ddde46",a,!1,{})},wk0a:function(n,e,t){var a=t("3o3x");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("f41e3bc8",a,!1,{})},yWpl:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"newIntegral.vue",sourceRoot:""}])},zDTg:function(n,e,t){var a=t("UrNJ");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);t("rjj0")("11f77d8c",a,!1,{})}});
\ No newline at end of file
webpackJsonp([11],{"+kPx":function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-496564ac] {\n /*height: 50px;*/\n text-align: center;\n margin-bottom: 20px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-496564ac] {\n width: 100%;\n}\n.el-col img[data-v-496564ac] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-496564ac] {\n color: #5982e6;\n}\n.dialog-footer[data-v-496564ac] {\n display: block;\n text-align: center;\n}\n.selected-block[data-v-496564ac] {\n width: 46%;\n white-space: nowrap;\n height: auto;\n padding: 5px;\n margin: 0;\n text-align: left;\n float: left;\n}\n.move[data-v-496564ac] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin: 3px;\n}\n.name[data-v-496564ac] {\n line-height: 20px;\n}\n.directionIcon[data-v-496564ac] {\n width: 16px !important;\n}\n.grey[data-v-496564ac] {\n color: #666;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/lesson/dialog.vue"],names:[],mappings:";AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB;CACnB;AACD;EACE,YAAY;CACb;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB;AACD;EACE,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,WAAW;EACX,oBAAoB;EACpB,aAAa;EACb,aAAa;EACb,UAAU;EACV,iBAAiB;EACjB,YAAY;CACb;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,sBAAsB;MAClB,mBAAmB;UACf,0BAA0B;EAClC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,YAAY;CACb;AACD;EACE,kBAAkB;CACnB;AACD;EACE,uBAAuB;CACxB;AACD;EACE,YAAY;CACb",file:"dialog.vue",sourcesContent:["\n.el-col[data-v-496564ac] {\n /*height: 50px;*/\n text-align: center;\n margin-bottom: 20px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-496564ac] {\n width: 100%;\n}\n.el-col img[data-v-496564ac] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-496564ac] {\n color: #5982e6;\n}\n.dialog-footer[data-v-496564ac] {\n display: block;\n text-align: center;\n}\n.selected-block[data-v-496564ac] {\n width: 46%;\n white-space: nowrap;\n height: auto;\n padding: 5px;\n margin: 0;\n text-align: left;\n float: left;\n}\n.move[data-v-496564ac] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: end;\n -ms-flex-pack: end;\n justify-content: flex-end;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n margin: 3px;\n}\n.name[data-v-496564ac] {\n line-height: 20px;\n}\n.directionIcon[data-v-496564ac] {\n width: 16px !important;\n}\n.grey[data-v-496564ac] {\n color: #666;\n}\n"],sourceRoot:""}])},AbSL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),i=n("kmJW"),o=n("lP78"),s=n.n(o),l=n("WY0H"),c=n.n(l),r={name:"dialogObj",props:["dialogObj"],data:function(){return{selectedLesson:[],selectedLessonList:[],lessonList:[],showLessonList:[],selectedBox:[],selectedBoxList:[],boxList:[],showBoxList:[],imageList:[],loading:!1,uploadShow:!0,downSrc:s.a,upSrc:c.a,form:{title:"",type:0,text_category_ids:[],item_category_ids:[],cover:0},rules:{title:[{required:!0,message:"请输入课程标题",trigger:"change"}]}}},methods:{handleItemChange:function(e){},changLessonItem:function(){0===this.form.type?this.showLessonList.forEach(function(e){e.children=e.children||[],e.children.forEach(function(e){e.children&&delete e.children})}):this.showLessonList=this.lessonList},delLesson:function(e){this.selectedLessonList=this.selectedLessonList.filter(function(t){return t.id!==e.id})},delBox:function(e){this.selectedBoxList=this.selectedBoxList.filter(function(t){return t.id!==e.id})},selectLesson:function(e){var t=this.showLessonList.find(function(t){return t.id===e[0]});t.children&&(t=t.children.find(function(t){return t.id===e[1]}),3===e.length&&(t=t.children.find(function(t){return t.id===e[2]})),-1===this.selectedLessonList.findIndex(function(e){return e===t})?this.selectedLessonList.push(t):this.$message({type:"info",message:"不能重复添加!"}))},selectBox:function(e){var t=this.showBoxList.find(function(t){return t.id===e[0]});-1===this.selectedBoxList.findIndex(function(e){return e===t})?this.selectedBoxList.push(t):this.$message({type:"info",message:"不能重复添加!"})},sub:function(){var e=this;this.$refs.form.validate(function(t){var n=[],i=[];e.selectedBoxList.forEach(function(e){n.push(e.id)}),e.selectedLessonList.forEach(function(e){i.push(e.id)}),e.imageList[0]&&(e.form.cover=e.imageList[0].name);var o=e.form;if(o.item_category_ids=n.toString(),o.text_category_ids=i.toString(),t){if(!e.form.cover)return void e.$message({type:"error",message:"请上传封面!"});if(!o.text_category_ids)return void e.$message({type:"error",message:"请选择课程!"});switch(e.dialogObj.type){case 1:Object(a._3)(e.dialogObj.id,o).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(a.k)(o).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}}})},initDialog:function(){var e=this;Object(a._21)().then(function(t){t&&(e.boxList=t,e.showBoxList=JSON.parse(JSON.stringify(t)))}),Object(a._23)().then(function(t){switch(e.lessonList=t,e.showLessonList=JSON.parse(JSON.stringify(t)),e.dialogObj.type){case 0:e.form={title:"",type:0,text_category_ids:[],item_category_ids:[],cover:0},e.uploadShow=!0,e.imageList=[],e.selectedLessonList=[],e.selectedBoxList=[];break;case 1:Object(a._41)(e.dialogObj.id).then(function(t){e.form={title:t.title,type:t.type,text_category_ids:[],item_category_ids:[],cover:""},e.imageList=[{name:t.cover,url:"https://cdn.singsingenglish.com/"+t.cover}],e.uploadShow=!1,e.selectedLessonList=[],e.selectedBoxList=[],0===t.type?t.detail[0].forEach(function(t){e.selectLesson([t.pid,t.id])}):1===t.type&&t.detail[1].forEach(function(t){var n=e.showLessonList.find(function(e){return e.children=e.children||[],e.children.find(function(e){return e.id===t.pid})});e.selectLesson([n.id,t.pid,t.id])}),t.detail[2]&&t.detail[2].forEach(function(t){e.selectBox([t.id])})});break;case 2:e.title="编辑",e.show=e.dialogObj.show,e.id=e.dialogObj.id,e.type=2}})},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(a._109)({file:e.file,type:"local"}).then(function(e){t.form.cover="https://cdn.singsingenglish.com/"+e.url,t.imageList[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}})},moveBox:function(e,t){var n=this.selectedBoxList,a=n[e],i=n[t];this.selectedBoxList.splice(e,1,i),this.selectedBoxList.splice(t,1,a)},moveItem:function(e,t){var n=this.selectedLessonList,a=n[e],i=n[t];this.selectedLessonList.splice(e,1,i),this.selectedLessonList.splice(t,1,a)}},watch:{"dialogObj.show":function(e){e&&this.initDialog()}}},d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules,disabled:e.dialogObj.read}},[n("el-form-item",{attrs:{label:"课程标题",prop:"title"}},[n("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"课程封面(670*472)"}},[n("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload","http-request":e.uploadFileMain,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[n("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:10}},[n("el-form-item",{attrs:{label:"课程类型"}},[n("el-select",{attrs:{placeholder:"请选择课程类型"},on:{change:function(t){e.selectedLesson=[],e.selectedLessonList=[]}},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[n("el-option",{attrs:{label:"月课",value:0}}),e._v(" "),n("el-option",{attrs:{label:"日课",value:1}})],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:10}},[n("el-form-item",{attrs:{label:"选择课程"}},[n("el-cascader",{attrs:{clearable:"",value:e.selectedLesson,options:e.showLessonList,"show-all-levels":!1,props:{label:"name",value:"id",children:"children"}},on:{"active-item-change":e.changLessonItem,change:e.selectLesson}})],1)],1)],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"已选课程"}},e._l(e.selectedLessonList,function(t,a){return n("div",{key:a,staticClass:"selected-block"},[n("el-card",{attrs:{shadow:"always"}},[n("div",{staticClass:"name"},[e._v(e._s(a+1)+"."+e._s(t.name))]),e._v(" "),e.dialogObj.read?e._e():n("div",{staticClass:"move"},[0!==a?n("img",{staticClass:"directionIcon",attrs:{src:e.upSrc},on:{click:function(t){e.moveItem(a-1,a)}}}):e._e(),e._v(" "),a!==e.selectedLessonList.length-1?n("img",{staticClass:"directionIcon",attrs:{src:e.downSrc},on:{click:function(t){e.moveItem(a,a+1)}}}):e._e(),e._v(" "),n("i",{staticClass:"el-icon-delete grey",on:{click:function(n){e.delLesson(t)}}})])])],1)}))],1)],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:10}},[n("el-form-item",{attrs:{label:"选择盒子"}},[n("el-cascader",{attrs:{clearable:"",value:e.selectedBox,options:e.showBoxList,"show-all-levels":!1,"expand-trigger":"hover",props:{label:"name",value:"id",children:"children"}},on:{change:e.selectBox}})],1)],1)],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24}},[n("el-form-item",{attrs:{label:"已选盒子"}},e._l(e.selectedBoxList,function(t,a){return n("div",{key:t.id,staticClass:"selected-block"},[n("el-card",{attrs:{shadow:"always"}},[n("div",{staticClass:"name"},[e._v(e._s(t.name))]),e._v(" "),e.dialogObj.read?e._e():n("div",{staticClass:"move"},[0!==a?n("img",{staticClass:"directionIcon",attrs:{src:e.upSrc},on:{click:function(t){e.moveBox(a-1,a)}}}):e._e(),e._v(" "),a!==e.selectedBoxList.length-1?n("img",{staticClass:"directionIcon",attrs:{src:e.downSrc},on:{click:function(t){e.moveBox(a,a+1)}}}):e._e(),e._v(" "),n("i",{staticClass:"el-icon-delete grey",on:{click:function(n){e.delBox(t)}}})])])],1)}))],1)],1)],1),e._v(" "),2===e.dialogObj.type||e.dialogObj.read?e._e():n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)])};d._withStripped=!0;var A={render:d,staticRenderFns:[]},h=A;var g=!1;var p=n("VU/8")(r,h,!1,function(e){g||(n("rqMy"),n("Yrsj"))},"data-v-496564ac",null);p.options.__file="src\\components\\lesson\\dialog.vue";var f=p.exports,u=n("+TkF"),m={name:"index",data:function(){return{searchFrom:{title:"",type:"-1"},userList:[],total:0,nowPage:1,limit:10,dialogObj:{type:0,show:!1,id:""}}},components:{page:i.a,dialogCom:f},filters:{lessonType:function(e){return u.o[e]}},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;this.searchFrom.page=this.nowPage;var t={limit:this.limit,page:this.nowPage};this.searchFrom.title&&(t.title=this.searchFrom.title),this.searchFrom.type&&"-1"!==this.searchFrom.type&&(t.type=this.searchFrom.type),Object(a._40)(t).then(function(t){e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,show:!0,id:e.id,title:"编辑课程"}},add:function(){this.dialogObj={type:0,show:!0,id:"",title:"新增课程"}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=1,this.dialogObj.show=!0,this.dialogObj.read=!0},delTeacher:function(e){var t=this;this.$confirm("此操作将删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.R)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e}}},b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user"},[n("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[n("el-form-item",{attrs:{label:"课程标题"}},[n("el-input",{model:{value:e.searchFrom.title,callback:function(t){e.$set(e.searchFrom,"title",t)},expression:"searchFrom.title"}})],1),e._v(" "),n("el-form-item",{attrs:{label:""}},[n("div",{staticClass:"search-btn-block"},[n("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),n("div",{staticClass:"new-block"},[e.$store.state.readonly?e._e():n("el-button",{attrs:{type:"success",plain:"",icon:"el-icon-plus"},on:{click:e.add}},[e._v("新增课程")])],1),e._v(" "),n("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getUser},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[n("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"日课",name:"1"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"月课",name:"0"}})],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[n("el-table-column",{attrs:{prop:"title",label:"课程名"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("router-link",{attrs:{to:{name:"periods",query:{id:t.row.id}}}},[e._v("\n "+e._s(t.row.title)+"\n ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.type))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"theme_num",label:"主题数"}}),e._v(" "),n("el-table-column",{attrs:{prop:"sing_num",label:"歌曲数"}}),e._v(" "),n("el-table-column",{attrs:{prop:"item_num",label:"实体包数量"}}),e._v(" "),n("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(n){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),e.$store.state.readonly?e._e():n("el-button",{attrs:{size:"mini",plain:"",type:"warning"},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",plain:"",type:"danger"},on:{click:function(n){e.delTeacher(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),n("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}})],1)};b._withStripped=!0;var v={render:b,staticRenderFns:[]},C=v;var x=!1;var B=n("VU/8")(m,C,!1,function(e){x||n("YO8W")},"data-v-2fac401e",null);B.options.__file="src\\components\\lesson\\index.vue";t.default=B.exports},Bbv3:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.disabled .el-upload--picture-card {\n display: none !important;\n}\n.el-card__body {\n padding: 3px 10px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/lesson/dialog.vue"],names:[],mappings:";AACA;EACE,yBAAyB;CAC1B;AACD;EACE,kBAAkB;CACnB",file:"dialog.vue",sourcesContent:["\n.disabled .el-upload--picture-card {\n display: none !important;\n}\n.el-card__body {\n padding: 3px 10px;\n}\n"],sourceRoot:""}])},Sz9Q:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,'\n.search-btn-block[data-v-2fac401e] {\n margin-left: 20px;\n}\n.search-form[data-v-2fac401e] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-2fac401e] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-2fac401e] {\n float: right;\n}\n.text-c[data-v-2fac401e] {\n text-align: center;\n}\n.text-b[data-v-2fac401e] {\n font-weight: bold;\n}\n.color-b[data-v-2fac401e] {\n color: #6ba8e6;\n}\n.text-r[data-v-2fac401e] {\n text-align: right;\n}\n.main-block[data-v-2fac401e] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-2fac401e] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-2fac401e]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-2fac401e]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-2fac401e]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-2fac401e]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.el-form-item[data-v-2fac401e] {\n margin: 0;\n}\n.user[data-v-2fac401e] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-2fac401e] {\n text-align: center;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/lesson/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,UAAU;CACX;AACD;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;CACjB;AACD;EACE,mBAAmB;CACpB",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-2fac401e] {\n margin-left: 20px;\n}\n.search-form[data-v-2fac401e] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-2fac401e] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-2fac401e] {\n float: right;\n}\n.text-c[data-v-2fac401e] {\n text-align: center;\n}\n.text-b[data-v-2fac401e] {\n font-weight: bold;\n}\n.color-b[data-v-2fac401e] {\n color: #6ba8e6;\n}\n.text-r[data-v-2fac401e] {\n text-align: right;\n}\n.main-block[data-v-2fac401e] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-2fac401e] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-2fac401e]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-2fac401e]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-2fac401e]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-2fac401e]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.el-form-item[data-v-2fac401e] {\n margin: 0;\n}\n.user[data-v-2fac401e] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-2fac401e] {\n text-align: center;\n}\n'],sourceRoot:""}])},WY0H:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAL1JREFUOBHtUsENwyAMNKhiDz55Z4R2g47QbpQNmg26QkbIE/hkhUwA9akuoirwqNRfkU65+M5nJ4Lol8d7fwZ6M3RLDCFcWLsDwqtWVauiIaV0KzWl1HUYhrmsgX8EyMqYvBZ6Yj7WQt4+gSePbJwZqzHmxFvsADhqzCfx8Ovz5AAIbFi4vKHBWruLh8AlZIOnDMkBMcZjrbkWIt6X1H465xag7SDKG/RMPe0fQHTo/SC+eZPWOt+Hnvdr7QHl81VpSdWOuAAAAABJRU5ErkJggg=="},YO8W:function(e,t,n){var a=n("Sz9Q");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("be786634",a,!1,{})},Yrsj:function(e,t,n){var a=n("Bbv3");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("822cc0f6",a,!1,{})},lP78:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA0klEQVQ4T+2TsRHCMAxFpSZus4Ibx2VGCBuECYANGIUNgA3YAEagdJzCK6RNiogTh3PGJDkO7qhwpzv9J0v6Qvjy4Zy+ruui7/s0y7LTVN4swBhzYaHWuvgDfjEDY8wWEVdJkiyklA1PPd6Ccy7tuu5MREet9Y5zhjVaa3Mi4rU5DwkBXgwAEhELpdT1CcBBDGnb9m4gIUTJlWPxC+ABWRPRHgC4gv8hAUAOAMvYlaNOtNZ6yGBARNwopQ6xIyetHEKmxKMthBWqqio5/viY3rn0G9fOdxEKoA2QAAAAAElFTkSuQmCC"},rqMy:function(e,t,n){var a=n("+kPx");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("1fa49e78",a,!1,{})}});
\ No newline at end of file
webpackJsonp([18],{"0zIk":function(e,t,a){var n=a("mfSI");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("7ac4323a",n,!1,{})},"7HVr":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.disabled .el-upload--picture-card {\n display: none !important;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacher/dialog.vue"],names:[],mappings:";AACA;EACE,yBAAyB;CAC1B",file:"dialog.vue",sourcesContent:["\n.disabled .el-upload--picture-card {\n display: none !important;\n}\n"],sourceRoot:""}])},BnRR:function(e,t,a){var n=a("7HVr");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("20afb735",n,!1,{})},Y0Vi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),i=a("+TkF"),o=a("kmJW"),l={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",statusOption:[{label:"正常",value:0},{label:"禁用",value:1}],typeOption:[{label:"老师",value:0},{label:"新星妈妈",value:1},{label:"推广人",value:2},{label:"市场",value:3}],loading:!0,type:0,title:"",form:{name:"",type:0,squad:"",qr:"",alias:"",status:0,media_id:""},rules:{name:[{required:!0,message:"请输入名称",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},teacherDetail:{},imageList:[],uploadShow:!0}},methods:{sub:function(){var e=this;this.imageList.length>0&&(this.form.qr=this.imageList[0].url);var t={name:this.form.name,type:this.form.type,qr:this.form.qr,squad:this.form.squad,alias:this.form.alias,status:this.form.status,media_id:this.form.media_id};switch(this.dialogObj.type){case 2:this.$refs.form.validate(function(a){a&&Object(n._7)(e.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})});break;case 0:this.$refs.form.validate(function(a){a&&Object(n.p)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})}},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(n._109)({file:e.file,type:"all"}).then(function(e){t.form.media_id=e.wechat_info?e.wechat_info.media_id:"",t.imageList=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url}],t.uploadShow=!1,t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增教师",this.show=this.dialogObj.show,this.type=0,this.form.name="",this.form.alias="",this.form.qr="",this.form.squad="",this.form.type=0,this.form.status=0,this.imageList=[],this.loading=!1,this.uploadShow=!0,this.form.media_id="";break;case 1:this.title="教师详情",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(n._64)(this.id).then(function(t){e.teacherDetail=t,e.loading=!1});break;case 2:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2,Object(n._64)(this.id).then(function(t){e.form.name=t.name,e.form.squad=t.squad,e.form.alias=t.alias,e.form.qr=t.qr,e.form.type=t.type,e.form.status=t.status,e.form.media_id=t.media_id?t.media_id:"",e.imageList=[{name:t.qr,url:t.qr}],e.uploadShow=!t.qr,e.loading=!1})}}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[1===e.type?a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("ID")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.teacherDetail.id)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("创建时间")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.teacherDetail.created_at))])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("昵称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.name))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("微信号")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.alias))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-input",{model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("状态")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.status))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOption,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("类型")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.type))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.typeOption,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("二维码")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("img",{staticClass:"qr-img",attrs:{src:e.teacherDetail.qr}}):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1):e._e()],1),e._v(" "),1===e.type?[a("el-col",{attrs:{span:4}},[a("label",[e._v("邀请码")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.invite_code))]):e._e()])]:e._e(),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("分组")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.squad,callback:function(t){e.$set(e.form,"squad",t)},expression:"form.squad"}},e._l(10,function(e){return a("el-option",{key:e,attrs:{label:"T"+e,value:e}})}))],1)],2)],1),e._v(" "),1!==e.type?a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])};s._withStripped=!0;var r={render:s,staticRenderFns:[]},c=r;var d=!1;var h=a("VU/8")(l,c,!1,function(e){d||(a("toRX"),a("BnRR"))},"data-v-4f62551c",null);h.options.__file="src\\components\\teacher\\dialog.vue";var p=h.exports,u={name:"index",data:function(){return{searchFrom:{name:"",alias:"",squad:"",type:""},userList:[],total:0,nowPage:1,limit:10,dialogObj:{type:0,show:!1,id:""},dialogDetailObj:{show:!1,title:"班级列表",id:""},teacherTypeOption:[{id:0,label:"老师"},{id:1,label:"新星妈妈"},{id:2,label:"推广人"},{id:3,label:"市场"}]}},components:{page:o.a,dialogCom:p},filters:{teacherType:function(e){return i.u[e]}},mounted:function(){var e=localStorage.getItem("phoneNum");e?(e=JSON.parse(e),this.$router.push("/teacher/"+e.id)):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={limit:this.limit,page:this.nowPage};(this.searchFrom.type||0===this.searchFrom.type)&&(t.type=this.searchFrom.type),this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.alias&&(t.alias=this.searchFrom.alias),this.searchFrom.squad&&(t.squad=this.searchFrom.squad),Object(n._65)(t).then(function(t){e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.show=!0},add:function(){this.dialogObj.type=0,this.dialogObj.show=!0},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=1,this.dialogObj.show=!0},delTeacher:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.O)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},classDetail:function(e){this.dialogDetailObj={show:!0,title:e.name+"班级详情",id:e.id}},goToTeacherDetail:function(e){this.$router.push("/teacher/"+e.id)}}},m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"user"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{model:{value:e.searchFrom.alias,callback:function(t){e.$set(e.searchFrom,"alias",t)},expression:"searchFrom.alias"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"分组"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getUser},model:{value:e.searchFrom.squad,callback:function(t){e.$set(e.searchFrom,"squad",t)},expression:"searchFrom.squad"}},e._l(10,function(e){return a("el-option",{key:e,attrs:{label:"T"+e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"教师类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getUser},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},e._l(e.teacherTypeOption,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})}))],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1),e._v(" "),e.$store.state.readonly?e._e():a("el-form-item",[a("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增教师")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"alias",label:"微信号"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.status?"正常":"禁用")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"二维码"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("a",{attrs:{href:e.row.qr}},[a("img",{staticClass:"shortcut",attrs:{src:e.row.qr}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分组"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n T"+e._s(t.row.squad)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("teacherType")(t.row.type))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"280",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){e.goToTeacherDetail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),e.$store.state.readonly?e._e():a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delTeacher(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}})],1)};m._withStripped=!0;var f={render:m,staticRenderFns:[]},A=f;var g=!1;var v=a("VU/8")(u,A,!1,function(e){g||a("0zIk")},"data-v-4d0e9e98",null);v.options.__file="src\\components\\teacher\\index.vue";t.default=v.exports},mfSI:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,'\n.search-btn-block[data-v-4d0e9e98] {\n margin-left: 20px;\n}\n.search-form[data-v-4d0e9e98] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-4d0e9e98] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-4d0e9e98] {\n float: right;\n}\n.text-c[data-v-4d0e9e98] {\n text-align: center;\n}\n.text-b[data-v-4d0e9e98] {\n font-weight: bold;\n}\n.color-b[data-v-4d0e9e98] {\n color: #6ba8e6;\n}\n.text-r[data-v-4d0e9e98] {\n text-align: right;\n}\n.main-block[data-v-4d0e9e98] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-4d0e9e98] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-4d0e9e98]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-4d0e9e98]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-4d0e9e98]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-4d0e9e98]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user[data-v-4d0e9e98] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-4d0e9e98] {\n text-align: center;\n}\n.shortcut[data-v-4d0e9e98] {\n width: 50px;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacher/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,eAAe;EACf,gBAAgB;CACjB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,YAAY;CACb",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-4d0e9e98] {\n margin-left: 20px;\n}\n.search-form[data-v-4d0e9e98] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-4d0e9e98] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-4d0e9e98] {\n float: right;\n}\n.text-c[data-v-4d0e9e98] {\n text-align: center;\n}\n.text-b[data-v-4d0e9e98] {\n font-weight: bold;\n}\n.color-b[data-v-4d0e9e98] {\n color: #6ba8e6;\n}\n.text-r[data-v-4d0e9e98] {\n text-align: right;\n}\n.main-block[data-v-4d0e9e98] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-4d0e9e98] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-4d0e9e98]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-4d0e9e98]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-4d0e9e98]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-4d0e9e98]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user[data-v-4d0e9e98] {\n height: 100%;\n overflow: auto;\n padding: 20px 0;\n}\n.user .btn-content[data-v-4d0e9e98] {\n text-align: center;\n}\n.shortcut[data-v-4d0e9e98] {\n width: 50px;\n}\n'],sourceRoot:""}])},toRX:function(e,t,a){var n=a("zFQr");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("1cb17ed6",n,!1,{})},zFQr:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-4f62551c] {\n min-height: 50px;\n text-align: center;\n margin-bottom: 20px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-4f62551c] {\n width: 100%;\n}\n.el-col img[data-v-4f62551c] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-4f62551c] {\n color: #5982e6;\n}\n.qr-img[data-v-4f62551c] {\n width: 148px !important;\n border: none !important;\n border-radius: 0 !important;\n}\n.dialog-footer[data-v-4f62551c] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacher/dialog.vue"],names:[],mappings:";AACA;EACE,iBAAiB;EACjB,mBAAmB;EACnB,oBAAoB;EACpB,kBAAkB;CACnB;AACD;EACE,YAAY;CACb;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB;AACD;EACE,wBAAwB;EACxB,wBAAwB;EACxB,4BAA4B;CAC7B;AACD;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.el-col[data-v-4f62551c] {\n min-height: 50px;\n text-align: center;\n margin-bottom: 20px;\n line-height: 40px;\n}\n.el-col .el-select[data-v-4f62551c] {\n width: 100%;\n}\n.el-col img[data-v-4f62551c] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-4f62551c] {\n color: #5982e6;\n}\n.qr-img[data-v-4f62551c] {\n width: 148px !important;\n border: none !important;\n border-radius: 0 !important;\n}\n.dialog-footer[data-v-4f62551c] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([19],{"1/HN":function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/class/index.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;CAChB;AACD;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;CACZ",file:"index.vue",sourcesContent:["\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n"],sourceRoot:""}])},BenM:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])},JP4Q:function(e,t,n){var i=n("BenM");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("486a2a46",i,!1,{})},NzM9:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.class[data-v-426dc2ae] {\n padding: 20px 0;\n}\n.intro .el-form-item[data-v-426dc2ae] {\n margin-bottom: 0;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/class/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,iBAAiB;CAClB",file:"index.vue",sourcesContent:["\n.class[data-v-426dc2ae] {\n padding: 20px 0;\n}\n.intro .el-form-item[data-v-426dc2ae] {\n margin-bottom: 0;\n}\n"],sourceRoot:""}])},OX9A:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n("CCn6"),o=n("+TkF"),s={props:["dialogObj"],data:function(){return{form:{teacher_id:"",max_join_num:"",class_name:""},teacherList:[],exitTeacherList:[],goodsList:[],periods:{}}},methods:{findDifferentArray:function(e,t){var n=[];return e.forEach(function(e){-1===t.findIndex(function(t){return t.teacher_id===e.id})&&n.push(e)}),n},getTeacher:function(){var e=this;Object(i._65)({limit:100}).then(function(t){e.teacherList=t.list})},getTeacherByPeriods:function(){var e=this;Object(i._65)().then(function(t){e.teacherList=t.list})},initPage:function(){var e=this;switch(this.periods=this.dialogObj.periods,this.dialogObj.type){case 0:this.dialogObj.periodsId||this.getPeriodList(),this.form={teacher_id:"",max_join_num:""},this.getTeacher();break;case 1:Object(i._25)(this.dialogObj.id).then(function(t){e.form={teacher_id:parseInt(t.teacher_id),max_join_num:t.max_join_num,class_name:t.class_name},e.getTeacher()})}},getPeriodList:function(){var e=this;Object(i._37)().then(function(t){t.list.forEach(function(e){e.name="["+o.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list,e.periods||Object(i._48)({goods_id:e.goodsList[0].id}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList[0].children=t.list,e.periods=t.list[0]})})},onSave:function(){var e=this;switch(this.form.max_join_num=String(this.form.max_join_num),this.form.teacher_id=String(this.form.teacher_id),this.dialogObj.type){case 0:var t=this.dialogObj.periodsId?this.dialogObj.periodsId:this.periods.id;Object(i.f)(t,this.form).then(function(t){e.$message({type:"success",message:"添加成功!"}),e.$emit("reflash",e.periods),e.dialogObj.show=!1});break;case 1:Object(i.Y)(this.dialogObj.id,this.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash",e.periods),e.dialogObj.show=!1})}},handleItemChange:function(e){var t=this;Object(i._48)({goods_id:e[0]}).then(function(n){n.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=n.list})},changePeriods:function(e){if(e.length>1){var t=this.goodsList.find(function(t){return t.id===e[0]});this.periods=t.children.find(function(t){return t.id===e[1]}),this.getTeacherByPeriods()}},selectName:function(e,t){var n=e.filter(function(e,n){return e.id==t});this.form.class_name=n[0].name+"一班"}},watch:{"dialogObj.show":function(e){e&&this.initPage()}}},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[this.dialogObj.periodsId?e._e():n("el-form-item",{attrs:{label:"期数"}},[n("el-cascader",{attrs:{options:e.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods}})],1),e._v(" "),n("el-form-item",{attrs:{label:"老师"}},[n("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:function(t){e.selectName(e.teacherList,e.form.teacher_id)}},model:{value:e.form.teacher_id,callback:function(t){e.$set(e.form,"teacher_id",t)},expression:"form.teacher_id"}},e._l(e.teacherList,function(e,t){return n("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:"班级名称"}},[n("el-input",{staticStyle:{width:"220px"},model:{value:e.form.class_name,callback:function(t){e.$set(e.form,"class_name",t)},expression:"form.class_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"最大学员"}},[n("el-input-number",{model:{value:e.form.max_join_num,callback:function(t){e.$set(e.form,"max_join_num",t)},expression:"form.max_join_num"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.onSave}},[e._v("确 定")])],1)],1)};a._withStripped=!0;var r={render:a,staticRenderFns:[]},l=r;var c=!1;var d=n("VU/8")(s,l,!1,function(e){c||n("JP4Q")},"data-v-e25797c8",null);d.options.__file="src\\components\\class\\dialog.vue";var u=d.exports,_=n("0qGg"),h=n("kmJW"),f={data:function(){return{nowPage:1,total:0,limit:10,periodsId:null,goods_id:null,goodsList:[],teacher_id:"",classList:[],title:"",countObj:"",teacherList:[],userObj:{classId:"",title:"",show:!1,goods_id:null},dialogObj:{show:!1,title:"添加班级",periodsId:"",type:0,id:0},selectedGoods:[]}},components:{UserList:_.a,classDialog:u,page:h.a},filters:{classTypeFilter:function(e){var t=parseInt(e);return 1===t?"带班班级":2===t?"观摩班级":""},percent:function(e){return(100*e).toFixed(2)+"%"}},mounted:function(){this.initPage()},methods:{changeRow:function(e,t){t.indexOf(e)>-1&&Object(i._27)(e.periods_id,e.id).then(function(t){e.arrive_course_rate=t.arrive_course_rate,e.watch_course_rate=t.watch_course_rate,e.over_course_rate=t.over_course_rate,e.work_rate=t.work_rate,e.over_work_rate=t.over_work_rate,e.clock_rate=t.clock_rate,e.over_clock_rate=t.over_clock_rate,e.transform_rate=t.transform_rate})},initQuery:function(){var e=this,t=this.$route.query;t&&t.goods_id&&t.periods_id?(this.goods_id=t.goods_id,this.selectedGoods=[parseInt(t.goods_id),parseInt(t.periods_id)],Object(i._48)({goods_id:this.selectedGoods[0]}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList.find(function(t){return t.id===e.selectedGoods[0]}).children=t.list;var n=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=n.children.find(function(t){return t.id===e.selectedGoods[1]}),e.teacher_id="",e.getClassList()})):Object(i._32)().then(function(t){t&&(e.goods_id=t.goods_id,e.selectedGoods=[parseInt(t.goods_id),parseInt(t.id)],Object(i._48)({goods_id:e.selectedGoods[0]}).then(function(t){t.list.forEach(function(e){e.name=e.title}),e.goodsList.find(function(t){return t.id===e.selectedGoods[0]}).children=t.list;var n=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=n.children.find(function(t){return t.id===e.selectedGoods[1]}),e.teacher_id="",e.getClassList()}))})},initPage:function(){var e=this;Object(i._37)({page:1,limit:100,goods_type:"1,2"}).then(function(t){t.list.forEach(function(e){e.name="["+o.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list,e.initQuery()})},showUser:function(e){this.userObj={classId:e.id,periods_id:e.periods_id,show:!0,goods_id:this.goods_id,title:e.teacher_name+"班级用户列表",teacherId:e.teacher_id,class_name:e.class_name}},getTeacher:function(){var e=this;this.periods&&Object(i._50)(this.periods.id).then(function(t){var n={};t=t.reduce(function(e,t){return!n[t.teacher_id]&&(n[t.teacher_id]=e.push(t)),e},[]),e.teacherList=t})},changePeriods:function(e){if(e.length>1){this.goods_id=e[0];var t=this.goodsList.find(function(t){return t.id===e[0]});this.periods=t.children.find(function(t){return t.id===e[1]}),this.teacher_id="",this.getTeacher(),this.getClassList()}},onPageChange:function(e){this.nowPage=e,this.getClassList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getClassList()},onReflash:function(e){this.periods=e,this.selectedGoods=[e.goods_id,e.id],this.getClassList()},getClassList:function(){var e=this;if(this.periods){this.getTeacher();var t={limit:this.limit,page:this.nowPage};this.teacher_id&&(t.teacher_id=this.teacher_id),Object(i._26)(this.periods.id,t).then(function(t){t.list.forEach(function(e){e.arrive_course_rate=0,e.watch_course_rate=0,e.over_course_rate=0,e.work_rate=0,e.over_work_rate=0,e.clock_rate=0,e.over_clock_rate=0,e.transform_rate=0}),e.title=t.periods,e.title.count_join_num=t.count.count_join_num?t.count.count_join_num:"暂无",e.title.count_max_join_num=t.count.count_max_join_num?t.count.count_max_join_num:"暂无",e.title.count_teacher_num=t.count.count_teacher_num?t.count.count_teacher_num:"暂无",e.countObj=t.count?t.count:"",e.classList=t.list,e.total=t.total})}},handleItemChange:function(e){var t=this;Object(i._48)({goods_id:e[0]}).then(function(n){n.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=n.list})},delClass:function(e){var t=this;this.$confirm("此操作将删除该班级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.F)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getClassList()})})},onAdd:function(){this.dialogObj={show:!0,title:"添加班级",type:0,teacherList:this.teacherList?this.teacherList:[]},this.periods&&(this.dialogObj.periods=this.periods,this.dialogObj.periodsId=this.periods.id)},editClass:function(e){this.dialogObj={show:!0,title:"编辑班级",type:1,id:e.id,teacherList:this.teacherList?this.teacherList:[]},this.periods&&(this.dialogObj.periods=this.periods,this.dialogObj.periodsId=this.periods.id)}}},m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"class"},[n("div",{staticClass:"form-block"},[n("el-form",{attrs:{"label-width":"90px",inline:""}},[n("el-form-item",{attrs:{label:"期数"}},[n("el-cascader",{attrs:{options:e.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods},model:{value:e.selectedGoods,callback:function(t){e.selectedGoods=t},expression:"selectedGoods"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"老师"}},[n("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getClassList},model:{value:e.teacher_id,callback:function(t){e.teacher_id=t},expression:"teacher_id"}},e._l(e.teacherList,function(e,t){return n("el-option",{key:t,attrs:{label:e.teacher_name,value:e.teacher_id}})}))],1),e._v(" "),n("el-form-item",{attrs:{label:""}},[n("el-button",{attrs:{type:"primary"},on:{click:e.getClassList}},[e._v("\n 搜索\n ")])],1),e._v(" "),n("el-form-item",{staticStyle:{float:"right"}},[e.$store.state.readonly?e._e():n("el-button",{attrs:{type:"success"},on:{click:e.onAdd}},[e._v("+添加班级")])],1)],1)],1),e._v(" "),e.title&&e.title.title?n("div",{staticClass:"intro"},[n("el-table",{staticStyle:{display:"block",margin:"20px auto",background:"transparent"},attrs:{border:"",size:"mini",data:[e.title]}},[n("el-table-column",{attrs:{label:"期数名称",prop:"title"}}),e._v(" "),n("el-table-column",{attrs:{label:"可看课包数",prop:"watch_num"}}),e._v(" "),n("el-table-column",{attrs:{label:"已看课包数",prop:"has_watch_num"}}),e._v(" "),n("el-table-column",{attrs:{label:"开始时间",prop:"start_at"}}),e._v(" "),n("el-table-column",{attrs:{label:"老师数量",prop:"count_teacher_num"}}),e._v(" "),n("el-table-column",{attrs:{label:"预计学员总数",prop:"count_max_join_num"}}),e._v(" "),n("el-table-column",{attrs:{label:"学员总数",prop:"count_join_num"}}),e._v(" "),n("el-table-column",{attrs:{label:"结束时间",prop:"over_at"}})],1)],1):e._e(),e._v(" "),e.title&&e.title.title?e._e():n("div",[n("el-form",{attrs:{"label-width":"300px",inline:""}},[n("el-form-item",{attrs:{label:"暂无期数信息,请先选择期数"}})],1)],1),e._v(" "),n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList},on:{"expand-change":e.changeRow}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-table",{staticStyle:{width:"100%"},attrs:{data:[t.row]}},[n("el-table-column",{attrs:{label:"到课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("percent")(t.row.arrive_course_rate)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"看课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("percent")(t.row.watch_course_rate)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"完课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("percent")(t.row.over_course_rate)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("percent")(t.row.clock_rate)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("percent")(t.row.over_clock_rate)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"转化率"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("percent")(t.row.transform_rate)))])]}}])})],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"班级名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.class_name)+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"teacher_name",label:"班主任"}}),e._v(" "),n("el-table-column",{attrs:{label:"班级类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("classTypeFilter")(t.row.type))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"max_join_num",label:"最大人数"}}),e._v(" "),n("el-table-column",{attrs:{prop:"join_num",label:"现有人数"}}),e._v(" "),n("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){e.showUser(t.row)}}},[e._v("班级成员")]),e._v(" "),e.$store.state.readonly?e._e():n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){e.editClass(t.row)}}},[e._v("编辑")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){e.delClass(t.row)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),n("class-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onReflash}}),e._v(" "),n("user-list",{attrs:{userObj:e.userObj},on:{reflash:e.getClassList}})],1)};m._withStripped=!0;var p={render:m,staticRenderFns:[]},g=p;var b=!1;var v=n("VU/8")(f,g,!1,function(e){b||(n("rKW7"),n("a1h3"))},"data-v-426dc2ae",null);v.options.__file="src\\components\\class\\index.vue";t.default=v.exports},a1h3:function(e,t,n){var i=n("1/HN");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("171dfdde",i,!1,{})},rKW7:function(e,t,n){var i=n("NzM9");"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);n("rjj0")("94e58b82",i,!1,{})}});
\ 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([20],{"+P08":function(e,t,a){var n=a("8nR9");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("1d568812",n,!1,{})},"8nR9":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.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:["D:/myproject/changchang-admin-new/src/components/achievement/dialog.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:"dialog.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:""}])},BrLh:function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.title[data-v-394351a5] {\n font-size: 26px;\n font-weight: 400;\n line-height: 1;\n margin: 40px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/achievement/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;EAChB,iBAAiB;EACjB,eAAe;EACf,aAAa;CACd",file:"index.vue",sourcesContent:["\n.title[data-v-394351a5] {\n font-size: 26px;\n font-weight: 400;\n line-height: 1;\n margin: 40px;\n}\n"],sourceRoot:""}])},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),o={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(e){this.nowPage=e,this.classListOption()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.classListOption()},classListOption:function(){var e=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var t={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(n._62)(t,this.dialogObj.teacher_id).then(function(t){e.classList=t.list,e.total=t.total})}},watch:{"dialogObj.show":function(e){e&&this.classListOption()}}},r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};r._withStripped=!0;var i={render:r,staticRenderFns:[]},l=i;var s=!1;var c=a("VU/8")(o,l,!1,function(e){s||(a("vtn1"),a("+P08"))},"data-v-72b08405",null);c.options.__file="src\\components\\achievement\\dialog.vue";var m={name:"index",data:function(){var e=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[]},today:{text:"今天",onClick:function(){e.searchFirstFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)],e.searchSecondFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFirstFrom.dateValue=[t,t],e.searchSecondFrom.dateValue=[t,t]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},searchSecondFrom:{dateValue:[]},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:c.exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(e,t){return Number(e.total_money)-Number(t.total_money)},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]}),Object(n._66)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]}),Object(n._63)(t).then(function(t){e.secondList=t})},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();return n<10&&(n="0"+n),t+"-"+a+"-"+n},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var n=e.getDate();n<10&&(n="0"+n);var o=t+"-"+a+"-01",r=t+"-"+a+"-"+n;this.searchFirstFrom.dateValue=[o,r],this.searchSecondFrom.dateValue=[o,r]},nameClick:function(e,t){this.dialogObj.teacher_id=e.tid,this.dialogObj.timeValue=void 0!=t?t:[e.cur_date,e.cur_date],this.dialogObj.show=!0}}},d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row,e.searchFirstFrom.dateValue)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)};d._withStripped=!0;var u={render:d,staticRenderFns:[]},h=u;var p=!1;var b=a("VU/8")(m,h,!1,function(e){p||a("Pq+S")},"data-v-394351a5",null);b.options.__file="src\\components\\achievement\\index.vue";t.default=b.exports},"Pq+S":function(e,t,a){var n=a("BrLh");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("5bcb7c41",n,!1,{})},vtn1:function(e,t,a){var n=a("w+Do");"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);a("rjj0")("2243677e",n,!1,{})},"w+Do":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-72b08405]{\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-72b08405] {\r\n padding: 20px 0;\n}\r\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/achievement/dialog.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"dialog.vue",sourcesContent:["\n.avatar[data-v-72b08405]{\r\n width: 50px;\r\n min-width: 50px;\r\n height: 50px;\r\n margin-right: 5px;\r\n border-radius: 50%;\n}\n.order[data-v-72b08405] {\r\n padding: 20px 0;\n}\r\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([21],{"+IG6":function(n,e,t){var o=t("No7R");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);t("rjj0")("5f19e884",o,!1,{})},DZd7:function(n,e,t){var o=t("eVNj");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);t("rjj0")("1bd46fb3",o,!1,{})},No7R:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])},ayGs:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=t("CCn6"),a=t("+TkF"),r=t("kmJW"),i={props:["dialogObj"],data:function(){return{nowPage:1,total:0,goodList:[],currentRow:null}},components:{page:r.a},filters:{isOrNot:function(n){return a.n[n]},goodsType:function(n){return a.g[n]},lessonType:function(n){return a.o[n]},goodsStatus:function(n){return a.f[n]}},methods:{initPage:function(){var n=this;Object(o._37)().then(function(e){n.goodList=e.list,n.total=e.total})},handleCurrentChange:function(n){this.currentRow=n},onConfirm:function(){this.$emit("reflash",this.currentRow)}},mounted:function(){this.initPage()}},s=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("el-dialog",{attrs:{title:n.dialogObj.title,visible:n.dialogObj.show},on:{"update:visible":function(e){n.$set(n.dialogObj,"show",e)}}},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.goodList,"row-key":"id","highlight-current-row":""},on:{"current-change":n.handleCurrentChange}},[t("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),n._v(" "),t("el-table-column",{attrs:{prop:"name",label:"名称"}}),n._v(" "),t("el-table-column",{attrs:{label:"商品类型"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("goodsType")(e.row.goods_type))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"现价"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.current_price/100)+"元\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"课程类别"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("lessonType")(e.row.course_type))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("isOrNot")(e.row.is_real))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"状态"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("goodsStatus")(e.row.status))+"\n ")]}}])})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total}}),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.dialogObj.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.onConfirm}},[n._v("确 定")])],1)],1)],1)};s._withStripped=!0;var l={render:s,staticRenderFns:[]},c=l;var d=!1;var u=t("VU/8")(i,c,!1,function(n){d||t("+IG6")},"data-v-221aa882",null);u.options.__file="src\\components\\periods\\dialog.vue";var _=u.exports,f={props:["dialogObj"],data:function(){return{loading:!1,form:{is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",rest_week_day:[],title:"",goods_id:""},show:!1,viewTeacher:"",pickerOptions1:{disabledDate:function(n){return!(n.getTime()>Date.now())}},options:[{value:0,label:"周日"},{value:1,label:"周一"},{value:2,label:"周二"},{value:3,label:"周三"},{value:4,label:"周四"},{value:5,label:"周五"},{value:6,label:"周六"}],teacherOptions:[],teacher1Options:[],teacher2Options:[],goodList:[],itemOptions:[],rules:{title:[{required:!0,message:"请输入名称",trigger:"change"}],startNum:[{required:!0,message:"请输入开始主题",trigger:"change"}],start_at:[{required:!0,message:"请选择开始上课时间",trigger:"change"}],rest_week_day:[{required:!0,message:"请选择周几不上课",trigger:"change"}],teacher_ids:[{required:!0,message:"请选择老师ID",trigger:"change"}],goods_id:[{required:!0,message:"商品ID不能为空",trigger:"change"}],teacherList:[{required:!0,message:"带班老师不能为空",trigger:"change"}],viewTeacher:[{required:!0,message:"观摩老师不能为空",trigger:"change"}]},periodsList:[],selectedGoods:[]}},components:{goodDialog:_},watch:{"dialogObj.show":function(n){n&&(this.getTeachers(),this.getGoodsOption())},show:function(n){this.$emit("changeShow",n)}},filters:{isOrNot:function(n){return a.n[n]},goodsType:function(n){return a.g[n]},lessonType:function(n){return a.o[n]},goodsStatus:function(n){return a.f[n]},filterGoods:function(n){return"["+a.g[n.goods_type]+"]["+n.current_price/100+"元]"+n.name}},methods:{sub:function(){var n=this;this.$refs.form.validate(function(e){if(e){var t=n.form.goods_id,a={title:n.form.title,start_num:n.form.startNum,start_at:n.form.start_at,rest_week_day:n.form.rest_week_day?n.form.rest_week_day.join(","):""};a.is_add_teacher_to_class=n.form.is_add_teacher_to_class?1:0,n.form.id?Object(o._33)(n.form.id,a).then(function(e){n.$message({type:"success",message:"编辑成功!"}),n.$emit("reflash")}):(a.teacher_ids=n.form.teacherList.join(","),a.view_teacher_id=parseInt(n.form.viewTeacher),Object(o._12)(t,a).then(function(e){n.$message({type:"success",message:"添加成功!"}),n.$emit("reflash")})),n.show=!1}})},getTeachers:function(){var n=this;Object(o._65)({page:1,limit:100}).then(function(e){n.teacherOptions=e.list,n.teacher1Options=e.list,n.teacher2Options=e.list})},findDifferentArray:function(n,e){var t=[];return n.forEach(function(e){-1===n.findIndex(function(n){return e.id==n})&&t.push(e)}),t},onTeacher1Change:function(n){this.teacher2Options=n?this.findDifferentArray(this.teacherOptions,n):this.teacherOptions},onTeacher2Change:function(n){this.teacher1Options=n?this.findDifferentArray(this.teacherOptions,[n]):this.teacherOptions},onOptionChange:function(n){var e=this.goodList.findIndex(function(e){return e.id===n});e>-1&&this.getLessonDetail(this.goodList[e].course_id),delete this.form.startNum},getLessonDetail:function(n){var e=this;Object(o._41)(n,{}).then(function(n){e.itemOptions=n.detail[n.type]})},getGoodsOption:function(){var n=this;Object(o._37)({page:1,limit:100}).then(function(e){n.goodList=e.list,n.dialogObj.form.id?n.form=n.dialogObj.form:n.form={rest_week_day:[],is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",title:"",goods_id:""},n.dialogObj.form.course_id&&n.getLessonDetail(n.dialogObj.form.course_id),n.show=n.dialogObj.show})},changePeriods:function(n){n.length>1&&(this.form.title=String(n[1]))},handleItemChange:function(n){var e=this;Object(o._48)({goods_id:n[0]}).then(function(t){t.list.forEach(function(n){n.name=n.title}),e.periodsList.find(function(e){return e.id===n[0]}).children=t.list})}}},h=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("el-dialog",{attrs:{title:n.dialogObj.title,center:"","append-to-body":"",visible:n.show,width:"800px"},on:{"update:visible":function(e){n.show=e}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:n.loading,expression:"loading"}]},[t("el-form",{ref:"form",attrs:{model:n.form,"label-width":"120px",rules:n.rules}},[t("el-row",[t("el-col",{attrs:{span:10}},[t("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[t("el-select",{attrs:{placeholder:"请选择",disabled:!!n.form.id},on:{change:n.onOptionChange},model:{value:n.form.goods_id,callback:function(e){n.$set(n.form,"goods_id",e)},expression:"form.goods_id"}},n._l(n.goodList,function(e,o){return t("el-option",{key:o,attrs:{label:n._f("filterGoods")(e),value:e.id}})}))],1)],1)],1),n._v(" "),t("el-form-item",{attrs:{label:"期数名称",prop:"title"}},[t("el-input",{model:{value:n.form.title,callback:function(e){n.$set(n.form,"title",e)},expression:"form.title"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"开始主题",prop:"startNum"}},[t("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:n.form.startNum,callback:function(e){n.$set(n.form,"startNum",e)},expression:"form.startNum"}},n._l(n.itemOptions,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"开始上课时间",prop:"start_at"}},[t("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date","picker-options":n.pickerOptions1,placeholder:"选择日期"},model:{value:n.form.start_at,callback:function(e){n.$set(n.form,"start_at",e)},expression:"form.start_at"}})],1),n._v(" "),n.form.id?n._e():t("el-form-item",{attrs:{label:"带班老师",prop:"teacherList"}},[t("el-select",{attrs:{placeholder:"请选择",filterable:"",multiple:""},on:{change:n.onTeacher1Change},model:{value:n.form.teacherList,callback:function(e){n.$set(n.form,"teacherList",e)},expression:"form.teacherList"}},n._l(n.teacher1Options,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),n.form.id?n._e():t("el-form-item",{attrs:{label:"观摩老师",prop:"viewTeacher"}},[t("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:n.onTeacher2Change},model:{value:n.form.viewTeacher,callback:function(e){n.$set(n.form,"viewTeacher",e)},expression:"form.viewTeacher"}},n._l(n.teacher2Options,function(n){return t("el-option",{key:n.id,attrs:{label:n.name,value:n.id}})}))],1),n._v(" "),n.form.id?n._e():t("el-form-item",{attrs:{label:"将带班老师加入观摩班","label-width":"200"}},[t("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#eee"},model:{value:n.form.is_add_teacher_to_class,callback:function(e){n.$set(n.form,"is_add_teacher_to_class",e)},expression:"form.is_add_teacher_to_class"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"不上课日期"}},[t("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:n.form.rest_week_day,callback:function(e){n.$set(n.form,"rest_week_day",e)},expression:"form.rest_week_day"}},n._l(n.options,function(n){return t("el-option",{key:n.value,attrs:{label:n.label,value:n.value}})}))],1)],1),n._v(" "),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:function(e){n.show=!1}}},[n._v("取 消")]),n._v(" "),t("el-button",{attrs:{type:"primary"},on:{click:n.sub}},[n._v("确 定")])],1)],1)])],1)};h._withStripped=!0;var p={render:h,staticRenderFns:[]},m=p;var g=!1;var b=t("VU/8")(f,m,!1,function(n){g||t("iYnt")},"data-v-68d711be",null);b.options.__file="src\\components\\periods\\newDialog.vue";var v=b.exports,w=t("sf/l"),A={name:"index",data:function(){return{nowPage:1,total:0,limit:10,course_type:"-1",title:"",goodsId:null,lessonId:null,startAt:"",periodList:[],startTime:[],newDialog:{form:{},show:!1,title:""},goodList:[],lessonList:[]}},filters:{dayFilter:function(n){var e=n?n.split(","):[];return(e=e.map(function(n){return a.v[n]})).join(",")},filterGoods:function(n){return"["+a.g[n.goods_type]+"]["+n.current_price/100+"元]"+n.name},percent:function(n){return(100*n).toFixed(2)+"%"}},components:{goodDialog:_,newDialog:v,page:r.a},methods:{changeRow:function(n,e){e.indexOf(n)>-1&&Object(o._49)(n.id).then(function(e){n.arrive_course_rate=e.arrive_course_rate,n.watch_course_rate=e.watch_course_rate,n.over_course_rate=e.over_course_rate,n.work_rate=e.work_rate,n.over_work_rate=e.over_work_rate,n.clock_rate=e.clock_rate,n.over_clock_rate=e.over_clock_rate,n.transform_rate=e.transform_rate})},dateCompare:function(n){var e=w.a.dateFmt(new Date,"yyyy-MM-dd");return new Date(e.replace(/-/g,"/"))>new Date(n.replace(/-/g,"/"))},onPageChange:function(n){this.nowPage=n,this.onSearch()},onSizeChange:function(n){this.limit=n,this.nowPage=1,this.onSearch()},onSearch:function(){var n=this,e={limit:this.limit,page:this.nowPage};"-1"!==this.course_type&&(e.course_type=this.course_type),this.title&&(e.title=this.title),this.goodsId&&(e.goods_id=this.goodsId),this.lessonId&&(e.course_id=this.lessonId),this.startTime&&this.startTime.length>0&&(e.start_start_at=w.a.dateFmt(this.startTime[0],"yyyy-MM-dd"),e.start_end_at=w.a.dateFmt(this.startTime[1],"yyyy-MM-dd")),this.startAt&&(e.start_at=this.startAt),Object(o._48)(e).then(function(e){e.list.forEach(function(n){n.arrive_course_rate=0,n.watch_course_rate=0,n.over_course_rate=0,n.work_rate=0,n.over_work_rate=0,n.clock_rate=0,n.over_clock_rate=0,n.transform_rate=0}),n.periodList=e.list,n.total=e.total})},changeShow:function(n){this.newDialog.show=n},onAdd:function(){this.newDialog.form.id="",this.newDialog.form.startNum="",this.newDialog.form.goods_id="",this.newDialog.form.title="",this.newDialog.form.start_at="",this.newDialog.form.rest_week_day=[],this.newDialog.form.teacher_ids=[],this.newDialog.form.teacherList=[],this.newDialog.form.viewTeacher="",this.newDialog.title="添加期数",this.newDialog.show=!0},onEdit:function(n){if(this.dateCompare(n.start_at))this.$message({type:"error",message:"期数已开始,不能编辑!"});else{var e=[];n.rest_week_day&&n.rest_week_day.split(",").forEach(function(n){e.push(parseInt(n))});var t=[];n.teacher_ids&&n.teacher_ids.split(",").forEach(function(n){t.push(parseInt(n))}),this.newDialog.form={id:n.id,startNum:n.start_num,start_at:n.start_at,title:n.title,goods_id:n.goods_id,rest_week_day:e,teacher_ids:t,course_id:n.course_id},this.newDialog.title="编辑期数",this.newDialog.show=!0}},onSave:function(n){this.newDialog.show=!1,this.onSearch()},del:function(n){var e=this;this.$confirm("此操作将删除该期数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.K)(n.id).then(function(n){e.$message({type:"success",message:"删除成功!"}),e.onSearch()})})},getGoodsOption:function(){var n=this;Object(o._37)({page:1,limit:100,goods_type:"1,2"}).then(function(e){n.goodList=e.list})},getLessonOption:function(){var n=this;Object(o._40)({page:1,limit:100}).then(function(e){n.lessonList=e.list})}},mounted:function(){var n=this.$route.query;n&&n.goods_id?this.goodsId=parseInt(n.goods_id):n&&n.id&&(this.lessonId=parseInt(n.id)),this.onSearch(),this.getGoodsOption(),this.getLessonOption()}},y=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"periods"},[t("div",{staticClass:"form-block"},[t("el-form",{attrs:{"label-width":"90px",inline:""}},[t("el-form-item",{attrs:{label:"期数标题"}},[t("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:n.title,callback:function(e){n.title=e},expression:"title"}})],1),n._v(" "),t("el-form-item",{attrs:{label:"商品名称"}},[t("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:n.onSearch},model:{value:n.goodsId,callback:function(e){n.goodsId=e},expression:"goodsId"}},n._l(n.goodList,function(e,o){return t("el-option",{key:o,attrs:{label:n._f("filterGoods")(e),value:e.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"课程名称"}},[t("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:n.onSearch},model:{value:n.lessonId,callback:function(e){n.lessonId=e},expression:"lessonId"}},n._l(n.lessonList,function(n,e){return t("el-option",{key:e,attrs:{label:n.title,value:n.id}})}))],1),n._v(" "),t("el-form-item",{attrs:{label:"开始时间"}},[t("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:n.onSearch},model:{value:n.startTime,callback:function(e){n.startTime=e},expression:"startTime"}})],1),n._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:n.onSearch}},[n._v("查询")])],1),n._v(" "),n.$store.state.readonly?n._e():t("el-form-item",{staticStyle:{float:"right"}},[t("el-button",{attrs:{type:"success",size:"small"},on:{click:n.onAdd}},[n._v("添加期数")])],1)],1)],1),n._v(" "),t("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":n.onSearch},model:{value:n.course_type,callback:function(e){n.course_type=e},expression:"course_type"}},[t("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"月课",name:"0"}}),n._v(" "),t("el-tab-pane",{attrs:{label:"日课",name:"1"}})],1),n._v(" "),t("el-table",{staticStyle:{width:"100%"},attrs:{data:n.periodList,fixed:""},on:{"expand-change":n.changeRow}},[t("el-table-column",{attrs:{type:"expand"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[t("el-table-column",{attrs:{label:"到课率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.arrive_course_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"看课率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.watch_course_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"完课率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.over_course_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"打卡率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.clock_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.over_clock_rate)))])]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"转化率"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("span",[n._v(n._s(n._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"期数标题"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("router-link",{attrs:{to:{name:"class",query:{goods_id:e.row.goods_id,periods_id:e.row.id}}}},[n._v("\n "+n._s(e.row.title)+"\n ")])]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),n._v(" "),t("el-table-column",{attrs:{label:"商品价格"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.goods_price/100)+"元\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),n._v(" "),t("el-table-column",{attrs:{prop:"start_name",label:"开始主题/歌"}}),n._v(" "),t("el-table-column",{attrs:{prop:"current_category_name",label:"当前歌曲"}}),n._v(" "),t("el-table-column",{attrs:{label:"看课情况","min-width":"150"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n 可看课包数: "+n._s(e.row.watch_num)),t("br"),n._v(" 已看课包数:"+n._s(e.row.has_watch_num)+" "),t("br"),n._v(" "),9999!==e.row.duration_num?t("span",[n._v("续看课包数: "+n._s(e.row.duration_num)),t("br"),n._v(" 已续看课包数:"+n._s(e.row.has_duration_num))]):n._e(),n._v(" "),9999===e.row.duration_num?t("span",{staticStyle:{color:"#00af00"}},[n._v("永久观看")]):n._e()]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"不上课日期","min-width":"120"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(n._f("dayFilter")(e.row.rest_week_day))+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{label:"总学员数"},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.total_user_num?e.row.total_user_num:"")+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"watch_total_user_num",label:"可看课学员数"}}),n._v(" "),t("el-table-column",{attrs:{prop:"start_at",label:"起止时间",sortable:""},scopedSlots:n._u([{key:"default",fn:function(e){return[n._v("\n "+n._s(e.row.start_at)+"\n "),t("br"),n._v("\n "+n._s(e.row.over_at?e.row.over_at:"")+"\n ")]}}])}),n._v(" "),t("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),n._v(" "),n.$store.state.readonly?n._e():t("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:n._u([{key:"default",fn:function(e){return[t("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(t){n.onEdit(e.row)}}},[n._v("\n 编辑\n ")]),n._v(" "),n.$store.state.deletePermission?t("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(t){n.del(e.row)}}},[n._v("\n 删除\n ")]):n._e()]}}])})],1),n._v(" "),t("page",{attrs:{nowPage:n.nowPage,total:n.total,limit:n.limit},on:{pageChange:n.onPageChange,sizeChange:n.onSizeChange}}),n._v(" "),t("new-dialog",{attrs:{dialogObj:n.newDialog},on:{reflash:n.onSave,changeShow:n.changeShow}})],1)};y._withStripped=!0;var k={render:y,staticRenderFns:[]},C=k;var x=!1;var E=t("VU/8")(A,C,!1,function(n){x||t("DZd7")},null,null);E.options.__file="src\\components\\periods\\index.vue";e.default=E.exports},eVNj:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,'\n.search-btn-block {\n margin-left: 20px;\n}\n.search-form {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block {\n margin: 10px;\n text-align: right;\n}\n.fl-r {\n float: right;\n}\n.text-c {\n text-align: center;\n}\n.text-b {\n font-weight: bold;\n}\n.color-b {\n color: #6ba8e6;\n}\n.text-r {\n text-align: right;\n}\n.main-block {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both:after {\n content: \'\';\n display: block;\n clear: both;\n}\n::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n.periods {\n padding: 20px 0;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/periods/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;CAChB;AACD;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;CACZ;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:['\n.search-btn-block {\n margin-left: 20px;\n}\n.search-form {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block {\n margin: 10px;\n text-align: right;\n}\n.fl-r {\n float: right;\n}\n.text-c {\n text-align: center;\n}\n.text-b {\n font-weight: bold;\n}\n.color-b {\n color: #6ba8e6;\n}\n.text-r {\n text-align: right;\n}\n.main-block {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both:after {\n content: \'\';\n display: block;\n clear: both;\n}\n::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n.periods {\n padding: 20px 0;\n}\n'],sourceRoot:""}])},iYnt:function(n,e,t){var o=t("l9ol");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);t("rjj0")("5ccef541",o,!1,{})},l9ol:function(n,e,t){(n.exports=t("FZ+f")(!0)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"newDialog.vue",sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([28],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),o={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:"-1"},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?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e},userLabel:function(t){return t.nickname+"["+t.user_id+"]"}},mounted:function(){this.getList()},methods:{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._11)("/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.money&&(e.money=100*parseFloat(this.search.money)),Object(s._74)(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._4)(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._111)(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._69)(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._82)(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-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportTable}},[t._v("导出")]),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.status))+"\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:"reason",label:"失败原因"}}),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:["D:/myproject/changchang-admin-new/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:["D:/myproject/changchang-admin-new/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
webpackJsonp([3],{"+dYf":function(e,t,i){var a=i("eW9u");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("e77fce0c",a,!1,{})},"1d8X":function(e,t,i){var a=i("Yg4o");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("8bc76fe0",a,!1,{})},"2qmY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("CCn6"),r=i("kmJW"),o=i("P0f4"),n=i("xGts"),s={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),a=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=a.length>0?a[0].label:i[0].children[0].label,this.dialogObj.district=a.length>0?a[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(a.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:o.a},mounted:function(){}},l=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},d=c;var u=!1;var _=i("VU/8")(s,d,!1,function(e){u||i("ri1l")},"data-v-60e716f4",null);_.options.__file="src\\components\\order\\dialog.vue";var p=_.exports,m=i("O6Rd"),f={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(i),Object(a._84)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("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)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])};h._withStripped=!0;var v={render:h,staticRenderFns:[]},b=v;var g=!1;var w=i("VU/8")(f,b,!1,function(e){g||i("jKuw")},"data-v-7cbba59e",null);w.options.__file="src\\components\\order\\refundDialog.vue";var y=w.exports,A=i("kmsh"),C=i("+TkF"),x={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return C.j[e]},status:function(e){return C.p[e]},buyType:function(e){return C.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},j=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)};j._withStripped=!0;var O={render:j,staticRenderFns:[]},F=O;var k=!1;var D=i("VU/8")(x,F,!1,function(e){k||i("cCfO")},"data-v-375439e2",null);D.options.__file="src\\components\\order\\detail.vue";var B=D.exports,S=i("G2rA"),T=(i("sf/l"),{name:"index",data:function(){var e=this;return{nowPage:1,total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:"",is_captain:""},tableData:[],dialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:C.k,orderStatusOption:C.q,buyTypeOption:C.c,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1,isLeaderOption:C.m}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var a=e.getDate();return a<10&&(a="0"+a),t+"-"+i+"-"+a},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(e.is_captain=this.searchFrom.is_captain),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=this.searchFrom.payTime[0],e.pay_end_at=this.searchFrom.payTime[1]),e.course_type=1,Object(a._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100,course_type:1}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._4)(e,"order",{desc:r}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList: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.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(t.is_captain=this.searchFrom.is_captain),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=this.searchFrom.payTime[0],t.pay_end_at=this.searchFrom.payTime[1]),t.course_type=1,Object(a._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=n.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var a=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:a[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(a._65)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(a._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})}},components:{addressDialog:p,refundDialog:y,detailDialog:B,refundDetail:S.a,sourceDialog:m.a,couponDialog:A.a,page:r.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{},filters:{isLeader:function(e){return C.l[e]},payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return C.j[e]},status:function(e){return C.p[e]},buyType:function(e){return C.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+C.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}}}),E=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,a){return i("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"团ID"}},[i("el-input",{model:{value:e.searchFrom.order_group_id,callback:function(t){e.$set(e.searchFrom,"order_group_id",t)},expression:"searchFrom.order_group_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否团长"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.is_captain,callback:function(t){e.$set(e.searchFrom,"is_captain",t)},expression:"searchFrom.is_captain"}},e._l(e.isLeaderOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("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),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称",width:"160"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_group_id",label:"团ID",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"是否团长",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isLeader")(t.row.is_captain))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v(" "+e._s(t.row.address_info.receive_mobile)+"\n "),i("br"),e._v(" "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 下单时间:"+e._s(t.row.created_at)),i("br"),e._v("\n 购买时间:"+e._s(t.row.pay_at)),i("br"),e._v(" "),1!=t.row.buy_type?i("div",[e._v("\n 成团时间:"+e._s(t.row.group_success_time)),i("br"),e._v("\n 截止时间:"+e._s(t.row.deadline)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};E._withStripped=!0;var $={render:E,staticRenderFns:[]},L=$;var R=!1;var P=i("VU/8")(T,L,!1,function(e){R||(i("+dYf"),i("1d8X"))},"data-v-e25265f8",null);P.options.__file="src\\components\\order\\index.vue";t.default=P.exports},"6E06":function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"9Wh8":function(e,t,i){var a=i("udiB");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("3b8e9453",a,!1,{})},"F+JO":function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"refundDialog.vue",sourceRoot:""}])},G2rA:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("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(" "),i("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(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};o._withStripped=!0;var n={render:o,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("UAas")},"data-v-dcf5d7b2",null);c.options.__file="src\\components\\order\\refundDetail.vue";t.a=c.exports},O6Rd:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("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(" "),i("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(" "),i("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};o._withStripped=!0;var n={render:o,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("9Wh8")},"data-v-dcd002fe",null);c.options.__file="src\\components\\order\\sourceDialog.vue";t.a=c.exports},P0f4:function(e,t,i){"use strict";var a=1;function r(e,t){return e.filter(function(e){return e.value===t})[0].children}var o=i("xGts").a.filter(function(e){return e.type==a}),n={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?r(o,this.form.province):[]},districts:function(){return this.form.city?r(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:o}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"address"},[i("section",{staticStyle:{width:"100%",height:"100%"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"name",label:"收货人"}},[i("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[i("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"province",label:"省"}},[i("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"city",label:"市"}},[i("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"district",label:"县/区"}},[i("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[i("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])};s._withStripped=!0;var l={render:s,staticRenderFns:[]},c=l;var d=!1;var u=i("VU/8")(n,c,!1,function(e){d||i("VbwD")},"data-v-0fbf8c8d",null);u.options.__file="src\\components\\framework\\address-picker\\Address.vue";t.a=u.exports},TGA0:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-375439e2] {\n height: 60px;\n}\n.el-col img[data-v-375439e2] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-375439e2] {\n color: #5982e6;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/detail.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB",file:"detail.vue",sourcesContent:["\n.el-col[data-v-375439e2] {\n height: 60px;\n}\n.el-col img[data-v-375439e2] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-375439e2] {\n color: #5982e6;\n}\n"],sourceRoot:""}])},U05e:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-60e716f4] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/dialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.dialog-footer[data-v-60e716f4] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},UAas:function(e,t,i){var a=i("hMSk");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("984d55cc",a,!1,{})},VbwD:function(e,t,i){var a=i("mCCp");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("20bf94ac",a,!1,{})},Yg4o:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.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:["D:/myproject/changchang-admin-new/src/components/order/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:""}])},cCfO:function(e,t,i){var a=i("TGA0");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("dc96e79c",a,!1,{})},eCTS:function(e,t,i){var a=i("6E06");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("de7d4256",a,!1,{})},eW9u:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-e25265f8] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-e25265f8] {\n padding: 20px 0;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/index.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:["\n.avatar[data-v-e25265f8] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-e25265f8] {\n padding: 20px 0;\n}\n"],sourceRoot:""}])},hMSk:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},jKuw:function(e,t,i){var a=i("F+JO");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("679c3646",a,!1,{})},kmsh:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(a._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};o._withStripped=!0;var n={render:o,staticRenderFns:[]},s=n;var l=!1;var c=i("VU/8")(r,s,!1,function(e){l||i("eCTS")},"data-v-33d21ccc",null);c.options.__file="src\\components\\order\\couponDialog.vue";t.a=c.exports},mCCp:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/framework/address-picker/Address.vue"],names:[],mappings:";AACA;EACE,YAAY;CACb;AACD;EACE,+BAA+B;UACvB,uBAAuB;EAC/B,gBAAgB;EAChB,YAAY;EACZ,WAAW;EACX,QAAQ;EACR,aAAa;CACd;AACD;EACE,aAAa;CACd;AACD;EACE,gBAAgB;EAChB,kBAAkB;CACnB;AACD;EACE,aAAa;CACd",file:"Address.vue",sourcesContent:["\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n"],sourceRoot:""}])},ri1l:function(e,t,i){var a=i("U05e");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);i("rjj0")("cbfcbdae",a,!1,{})},udiB:function(e,t,i){(e.exports=i("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([35],{"89rD":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("CCn6"),r={name:"index",components:{page:n("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(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},mounted:function(){this.getRefundList()},methods:{editComment:function(e,t){var n=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t}).then(function(t){var r=t.value;Object(a._4)(e,"refund",{desc:r}).then(function(e){n.$message({type:"success",message:"编辑备注成功"}),n.getRefundList()})})},onPageChange:function(e){this.nowPage=e,this.getRefundList()},onSizeChange:function(e){this.nowPage=1,this.limit=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&&"-1"!==this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),Object(a._54)(t).then(function(t){e.total=t.total,e.list=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.status&&(e.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),Object(a._11)("/api/admin/refund/export",e)}}},s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"refund"},[n("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[n("el-form-item",{attrs:{label:"用户昵称"}},[n("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"用户ID"}},[n("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"订单编号"}},[n("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),e._v(" "),n("el-form-item",{attrs:{"label-width":"10px"}},[n("el-button",{attrs:{type:"primary"},on:{click:e.getRefundList}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1)],1),e._v(" "),n("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getRefundList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[n("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"退款成功",name:"1"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"退款中",name:"0"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"退款失败",name:"2"}})],1),e._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[n("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),n("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("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(" "),n("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(" "),n("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(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),n("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(" "),n("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():n("el-table-column",{attrs:{label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(n){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 备注\n ")])]}}])})],1),e._v(" "),n("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};s._withStripped=!0;var o={render:s,staticRenderFns:[]},i=o;var l=!1;var c=n("VU/8")(r,i,!1,function(e){l||(n("fwcX"),n("QIaU"))},"data-v-0539a25e",null);c.options.__file="src\\components\\refund\\index.vue";t.default=c.exports},QIaU:function(e,t,n){var a=n("S5Rm");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("0a29c1a1",a,!1,{})},S5Rm:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.userInfo >div{\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\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:["D:/myproject/changchang-admin-new/src/components/refund/index.vue"],names:[],mappings:";AACA;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,+BAA+B;EAC/B,8BAA8B;MAC1B,0BAA0B;UACtB,sBAAsB;EAC9B,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.userInfo >div{\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\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:""}])},fwcX:function(e,t,n){var a=n("iW9D");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("471c730e",a,!1,{})},iW9D:function(e,t,n){(e.exports=n("FZ+f")(!0)).push([e.i,"\n.refund[data-v-0539a25e]{\n padding: 20px 0;\n}\n.avatar[data-v-0539a25e] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/refund/index.vue"],names:[],mappings:";AACA;EACE,gBAAgB;CACjB;AACD;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"index.vue",sourcesContent:["\n.refund[data-v-0539a25e]{\n padding: 20px 0;\n}\n.avatar[data-v-0539a25e] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])}});
\ No newline at end of file
webpackJsonp([4],{"00Mx":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-444c5fd8]{\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-444c5fd8] {\n padding: 20px 0;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/index.vue"],names:[],mappings:";AACA;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB;AACD;EACE,gBAAgB;CACjB",file:"index.vue",sourcesContent:["\n.avatar[data-v-444c5fd8]{\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n.order[data-v-444c5fd8] {\n padding: 20px 0;\n}\n"],sourceRoot:""}])},"3yGV":function(e,t,o){var r=o("YWnz");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("1a4b587a",r,!1,{})},"7BML":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-60e9d376] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/dialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"dialog.vue",sourcesContent:["\n.dialog-footer[data-v-60e9d376] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},"7hmY":function(e,t,o){var r=o("cOPA");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("30c1366f",r,!1,{})},"91gd":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-0abb7f17] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-0abb7f17] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},D86L:function(e,t,o){var r=o("N3xQ");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("0096fb34",r,!1,{})},FU5t:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.dialog-footer[data-v-d1a2db6c] {\n display: block;\n text-align: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/newDialog.vue"],names:[],mappings:";AACA;EACE,eAAe;EACf,mBAAmB;CACpB",file:"newDialog.vue",sourcesContent:["\n.dialog-footer[data-v-d1a2db6c] {\n display: block;\n text-align: center;\n}\n"],sourceRoot:""}])},KuvE:function(e,t,o){var r=o("Ma/F");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("1b8e2cde",r,!1,{})},"Ma/F":function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-a5eef088] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-a5eef088] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},N3xQ:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.el-col[data-v-75b341ff] {\n height: 60px;\n}\n.el-col img[data-v-75b341ff] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-75b341ff] {\n color: #5982e6;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/detail.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,eAAe;CAChB",file:"detail.vue",sourcesContent:["\n.el-col[data-v-75b341ff] {\n height: 60px;\n}\n.el-col img[data-v-75b341ff] {\n width: 50px;\n border-radius: 100px;\n}\n.el-col label[data-v-75b341ff] {\n color: #5982e6;\n}\n"],sourceRoot:""}])},NA7D:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"refundDialog.vue",sourceRoot:""}])},P0f4:function(e,t,o){"use strict";var r=1;function i(e,t){return e.filter(function(e){return e.value===t})[0].children}var a=o("xGts").a.filter(function(e){return e.type==r}),n={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?i(a,this.form.province):[]},districts:function(){return this.form.city?i(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:a}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"address"},[o("section",{staticStyle:{width:"100%",height:"100%"}},[o("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"name",label:"收货人"}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[o("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"province",label:"省"}},[o("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return o("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"city",label:"市"}},[o("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return o("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"district",label:"县/区"}},[o("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return o("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),o("el-row",{staticClass:"address",attrs:{gutter:20}},[o("el-col",{attrs:{span:20}},[o("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[o("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])};s._withStripped=!0;var l={render:s,staticRenderFns:[]},c=l;var d=!1;var u=o("VU/8")(n,c,!1,function(e){d||o("VbwD")},"data-v-0fbf8c8d",null);u.options.__file="src\\components\\framework\\address-picker\\Address.vue";t.a=u.exports},VbwD:function(e,t,o){var r=o("mCCp");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("20bf94ac",r,!1,{})},YWnz:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.avatar[data-v-0ace6971] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/monthOrder/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-0ace6971] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},YziW:function(e,t,o){var r=o("7BML");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("44a51254",r,!1,{})},aXxj:function(e,t,o){var r=o("00Mx");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("536949d2",r,!1,{})},ao7n:function(e,t,o){var r=o("FU5t");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("53df1465",r,!1,{})},cOPA:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.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:["D:/myproject/changchang-admin-new/src/components/monthOrder/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:""}])},jvbJ:function(e,t,o){var r=o("91gd");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("5698d579",r,!1,{})},mCCp:function(e,t,o){(e.exports=o("FZ+f")(!0)).push([e.i,"\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/framework/address-picker/Address.vue"],names:[],mappings:";AACA;EACE,YAAY;CACb;AACD;EACE,+BAA+B;UACvB,uBAAuB;EAC/B,gBAAgB;EAChB,YAAY;EACZ,WAAW;EACX,QAAQ;EACR,aAAa;CACd;AACD;EACE,aAAa;CACd;AACD;EACE,gBAAgB;EAChB,kBAAkB;CACnB;AACD;EACE,aAAa;CACd",file:"Address.vue",sourcesContent:["\n.mint-popup[data-v-0fbf8c8d] {\n width: 100%;\n}\n.footer-btn[data-v-0fbf8c8d] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: fixed;\n width: 100%;\n z-index: 2;\n left: 0;\n bottom: 3rem;\n}\n.input[data-v-0fbf8c8d] {\n border: none;\n}\n.padding[data-v-0fbf8c8d] {\n padding: 1.5rem;\n font-size: 1.4rem;\n}\n.float-right[data-v-0fbf8c8d] {\n float: right;\n}\n\n"],sourceRoot:""}])},qZVp:function(e,t,o){var r=o("NA7D");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);o("rjj0")("2871da0e",r,!1,{})},xdzM:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("CCn6"),i=o("kmJW"),a=o("P0f4"),n=o("xGts"),s={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),o=t[0].children.filter(function(t){return t.value===e.city}),r=o[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=o[0].label,this.dialogObj.district_name=r.length>0?r[0].label:o[0].children[0].label,this.dialogObj.district=r.length>0?r[0].value:o[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(r.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:a.a},mounted:function(){}},l=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)};l._withStripped=!0;var c={render:l,staticRenderFns:[]},d=c;var u=!1;var m=o("VU/8")(s,d,!1,function(e){u||o("YziW")},"data-v-60e9d376",null);m.options.__file="src\\components\\monthOrder\\dialog.vue";var p=m.exports,_=o("+TkF"),f=o("sf/l"),h={name:"newdialogObj",props:["newdialogObj"],data:function(){return{rules:{periods_id:[{required:!0,message:"请输入期数名称",trigger:"change"}],goods_id:[{required:!0,message:"请输入商品名称",trigger:"change"}],money:[{required:!0,message:"请输入金额",trigger:"blur"}],user_id:[{required:!0,message:"请输入用户ID",trigger:"blur"}],pay_at:[{required:!0,message:"请选择日期",trigger:"change"}],order_type:[{required:!0,message:"请选择支付类型",trigger:"change"}]},nowPage:1,limit:200,total:0,form:{periods_id:"",goods_id:"",user_id:"",money:"",buy_type:"",invite_id:"",desc:"",province_name:"",city:"",area:"",city_name:"",district_name:"",district:"",province:"",address:"",receive_mobile:"",receive_name:"",order_type:"",pay_at:""},goodsList:[],periodsList:[],pickerOptions1:"",buyWayOptioms:_.e,teacherList:[],addShow:!1,searchFrom:{},userList:[],multipleSelection:[]}},components:{vueAddress:a.a,page:i.a},filters:{filterGoods:function(e){return"["+_.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},getUser:function(){var e=this,t={page:this.nowPage,limit:5};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(r._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},saveAddOrder:function(e){var t=this;this.$refs.form.validate(function(o){if(!o)return console.log("error submit!!"),!1;var i={periods_id:e.periods_id,goods_id:e.goods_id,user_id:e.user_id,money:e.money,province_name:e.province_name,city_id:e.city,city:e.city_name,area:e.district_name,area_id:e.district,province_id:e.province,address:e.address,receive_mobile:e.receive_mobile,receive_name:e.receive_name,order_type:e.order_type};i.money=i.money,e.pay_at&&(i.pay_at=f.a.dateFmt(e.pay_at,"yyyy-MM-dd hh:mm:ss")),t.form.invite_id&&(i.invite_id=t.form.invite_id),t.form.desc&&(i.desc=t.form.desc),i.invite_type="TEACHER",i.province_name&&i.address&&i.receive_mobile&&i.receive_name?Object(r._91)(i).then(function(e){t.newdialogObj.show=!1,t.$emit("reflash"),t.$message({message:"添加成功",type:"success"})}):t.$message({message:"缺少必填项",type:"warning"})})},handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.form.address=e.detail,this.form.province=e.province,this.form.city=e.city,this.form.receive_mobile=e.mobile,this.form.receive_name=e.name;var t=n.a.filter(function(t){return t.value===e.province}),o=t[0].children.filter(function(t){return t.value===e.city}),r=o[0].children.filter(function(t){return t.value===e.district});this.form.province_name=t[0].label,this.form.city_name=o[0].label,this.form.district_name=r.length>0?r[0].label:o[0].children[0].label,this.form.district=r.length>0?r[0].value:o[0].children[0].value}},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:200,course_type:0}).then(function(t){e.goodsList=t.list})},onOptionChange:function(e){var t=this;this.form.periods_id="",Object(r._48)({goods_id:e}).then(function(e){t.periodsList=e.list})},getTeacherList:function(e){var t=this,o={limit:100,page:1};e&&(o.name=e),Object(r._65)(o).then(function(e){t.teacherList=e.list})},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},onAddUser:function(){this.addShow=!0,this.getUser()},onAdd:function(){0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.form.user_id=this.multipleSelection[0].user_id,this.addShow=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}},watch:{"newdialogObj.show":function(e){e&&(this.getGoodsOption(),this.getTeacherList())}},mounted:function(){}},v=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"新增订单",center:"","append-to-body":"",visible:e.newdialogObj.show,width:"70%"},on:{"update:visible":function(t){e.$set(e.newdialogObj,"show",t)}}},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.onOptionChange},model:{value:e.form.goods_id,callback:function(t){e.$set(e.form,"goods_id",t)},expression:"form.goods_id"}},e._l(e.goodsList,function(t,r){return o("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"期数名称",prop:"periods_id"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.periods_id,callback:function(t){e.$set(e.form,"periods_id",t)},expression:"form.periods_id"}},e._l(e.periodsList,function(e,t){return o("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"用户ID",prop:"user_id"}},[o("el-input",{model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}}),e._v(" "),o("el-button",{attrs:{type:"success"},on:{click:e.onAddUser}},[e._v("+添加用户")])],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"添加推广人"}},[o("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod},model:{value:e.form.invite_id,callback:function(t){e.$set(e.form,"invite_id",t)},expression:"form.invite_id"}},e._l(e.teacherList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"支付类型",prop:"order_type"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.order_type,callback:function(t){e.$set(e.form,"order_type",t)},expression:"form.order_type"}},e._l(e.buyWayOptioms,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id,disabled:e.disabled}})}))],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"实付金额(元)",prop:"money"}},[o("el-input-number",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"支付时间",prop:"pay_at"}},[o("el-date-picker",{attrs:{type:"datetime","picker-options":e.pickerOptions1,"default-time":"12:00:00",placeholder:"选择日期时间"},model:{value:e.form.pay_at,callback:function(t){e.$set(e.form,"pay_at",t)},expression:"form.pay_at"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"备注"}},[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),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("vue-address",{attrs:{province:e.form.province_name,city:e.form.city,district:e.form.area,detail:e.form.address,mobile:e.form.receive_mobile,name:e.form.receive_name},on:{change:e.handlerAddressChange}})],1)],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.newdialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAddOrder(e.form)}}},[e._v("确定")])],1),e._v(" "),o("el-dialog",{attrs:{modal:!1,visible:e.addShow},on:{"update:visible":function(t){e.addShow=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.searchFrom.userId,callback:function(t){e.$set(e.searchFrom,"userId",t)},expression:"searchFrom.userId"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"昵称"}},[o("el-input",{model:{value:e.searchFrom.nickName,callback:function(t){e.$set(e.searchFrom,"nickName",t)},expression:"searchFrom.nickName"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{label:"电话"}},[o("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.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.getUser}},[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("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.addShow=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)],1)};v._withStripped=!0;var g={render:v,staticRenderFns:[]},b=g;var y=!1;var w=o("VU/8")(h,b,!1,function(e){y||o("ao7n")},"data-v-d1a2db6c",null);w.options.__file="src\\components\\monthOrder\\newDialog.vue";var A=w.exports,x={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},O=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[o("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("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(" "),o("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),o("el-table-column",{attrs:{label:"提现金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyYuan")(t.row.money))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),o("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(" "),o("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(" "),o("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};O._withStripped=!0;var C={render:O,staticRenderFns:[]},j=C;var k=!1;var F=o("VU/8")(x,j,!1,function(e){k||o("3yGV")},"data-v-0ace6971",null);F.options.__file="src\\components\\monthOrder\\sourceDialog.vue";var D=F.exports,B={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var o={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(o),Object(r._84)(e.dialogObj.id,o).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},S=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("退款金额")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",{attrs:{prop:"key"}},[o("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:6}},[o("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),o("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("退课")])]),e._v(" "),o("el-col",{attrs:{span:8}},[o("el-form-item",[o("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),o("el-row",{attrs:{gutter:20}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("退款原因")])]),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",[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)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])};S._withStripped=!0;var $={render:S,staticRenderFns:[]},E=$;var T=!1;var L=o("VU/8")(B,E,!1,function(e){T||o("qZVp")},"data-v-141bdee4",null);L.options.__file="src\\components\\monthOrder\\refundDialog.vue";var P=L.exports,R={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(r._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},z=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[o("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("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(" "),o("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),o("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(" "),o("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};z._withStripped=!0;var I={render:z,staticRenderFns:[]},q=I;var U=!1;var M=o("VU/8")(R,q,!1,function(e){U||o("KuvE")},"data-v-a5eef088",null);M.options.__file="src\\components\\monthOrder\\couponDialog.vue";var W=M.exports,Y={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,console.log("this.dialogObj.detail",this.dialogObj.detail),this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return _.j[e]},status:function(e){return _.p[e]},buyType:function(e){return _.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},N=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("订单号")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("商品名称")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("用户昵称")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("用户手机号")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("推广人类型")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("推广人ID")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),o("el-row",{attrs:{align:"middle",type:"flex"}},[o("el-col",{attrs:{span:4}},[o("label",[e._v("推广人收益")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[o("el-col",{attrs:{span:4}},[o("label",[e._v("团购信息")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),o("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("期数ID")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),o("el-col",{attrs:{span:4}},[o("label",[e._v("描述")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("收货地址")])]),e._v(" "),o("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),o("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),o("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:4}},[o("label",[e._v("付款时间")])]),e._v(" "),o("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)};N._withStripped=!0;var V={render:N,staticRenderFns:[]},Z=V;var G=!1;var X=o("VU/8")(Y,Z,!1,function(e){G||o("D86L")},"data-v-75b341ff",null);X.options.__file="src\\components\\monthOrder\\detail.vue";var J=X.exports,Q={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},K=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[o("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("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(" "),o("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(" "),o("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(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),o("el-table-column",{attrs:{label:"退款状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};K._withStripped=!0;var H={render:K,staticRenderFns:[]},ee=H;var te=!1;var oe=o("VU/8")(Q,ee,!1,function(e){te||o("jvbJ")},"data-v-0abb7f17",null);oe.options.__file="src\\components\\monthOrder\\refundDetail.vue";var re={name:"index",data:function(){var e=this;return{nowPage:1,total:0,sourceDialog:{show:!1,out_trade_no:""},today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",order_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:""},tableData:[],dialogObj:{show:!1},newdialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:_.k,orderStatusOption:_.q,buyTypeOption:_.c,buyWay:_.e,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1}},methods:{formatTime:function(e){var t=e.getFullYear(),o=e.getMonth()+1;o<10&&(o="0"+o);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+o+"-"+r},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(r._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(e.order_type=this.searchFrom.order_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=this.searchFrom.payTime[0],e.pay_end_at=this.searchFrom.payTime[1]),e.course_type=0,Object(r._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:100,course_type:0}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var o=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var i=t.value;o.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r._4)(e,"order",{desc:i}).then(function(e){o.$message({type:"success",message:"编辑备注成功"}),o.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList: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.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(t.order_type=this.searchFrom.order_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=this.searchFrom.payTime[0],t.pay_end_at=this.searchFrom.payTime[1]),t.course_type=0,Object(r._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=n.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var o=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:o[0].value,e.address_info.area){var r=o[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:r[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var o={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(o.name=e),Object(r._65)(o).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(r._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})},add:function(){this.newdialogObj.show=!0}},components:{addressDialog:p,orderDialog:A,refundDialog:P,detailDialog:J,refundDetail:oe.exports,sourceDialog:D,couponDialog:W,page:i.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{"newdialogObj.show":function(e){e||this.getOrderList()}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return _.j[e]},status:function(e){return _.p[e]},buyType:function(e){return _.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+_.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name},buyTypeWay:function(e){return _.d[e]}}},ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"order"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[o("el-form-item",{attrs:{label:"用户ID"}},[o("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"用户昵称"}},[o("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"收件人手机号"}},[o("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,r){return o("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),o("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[o("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[o("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"推广人ID"}},[o("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"购买方式"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"支付类型"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.order_type,callback:function(t){e.$set(e.searchFrom,"order_type",t)},expression:"searchFrom.order_type"}},e._l(e.buyWay,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"订单状态"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return o("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"交易订单号"}},[o("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),e._v(" "),o("el-form-item",{attrs:{label:"购买时间"}},[o("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1),e._v(" "),o("el-form-item",{staticStyle:{float:"right"}},[e.$store.state.readonly?e._e():o("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增订单")])],1)],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[o("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),o("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),o("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),o("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),o("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),o("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?o("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(o){e.showSource(t.row)}}},[o("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),o("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),o("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),o("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),o("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?o("div",{staticStyle:{display:"flex"}},[o("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),o("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),o("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),o("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),o("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?o("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?o("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?o("el-button",{attrs:{type:"text"},on:{click:function(o){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?o("el-button",{attrs:{type:"text"},on:{click:function(o){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?o("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"支付类型",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("buyTypeWay")(t.row.order_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?o("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),o("br"),e._v("\n "+e._s(t.row.address_info.receive_mobile)),o("br"),e._v("\n "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"400"}},[o("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund||3==t.row.order_type?e._e():o("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(o){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),o("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(o){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?o("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(o){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(o){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),o("order-dialog",{attrs:{newdialogObj:e.newdialogObj},on:{reflash:e.getOrderList}}),e._v(" "),o("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),o("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),o("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),o("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),o("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),o("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{"label-width":"120px"}},[o("el-form-item",{attrs:{label:"老师"}},[o("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)};ie._withStripped=!0;var ae={render:ie,staticRenderFns:[]},ne=ae;var se=!1;var le=o("VU/8")(re,ne,!1,function(e){se||(o("aXxj"),o("7hmY"))},"data-v-444c5fd8",null);le.options.__file="src\\components\\monthOrder\\index.vue";t.default=le.exports}});
\ No newline at end of file
webpackJsonp([40],{RjIq:function(e,t,a){var r=a("Wt+1");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("327b2a86",r,!1,{})},"Wt+1":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.orderCount[data-v-7ef9545c] {\n padding: 10px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/orderCount/dayOrderCount.vue"],names:[],mappings:";AACA;EACE,cAAc;CACf",file:"dayOrderCount.vue",sourcesContent:["\n.orderCount[data-v-7ef9545c] {\n padding: 10px;\n}\n"],sourceRoot:""}])},mjLz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"dayOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],tableData:[],today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date),e.formatTime(new Date)])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a,a])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a,e.formatTime(new Date)])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a,e.formatTime(new Date)])}},searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:1}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString(),course_type:1};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",o=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,o]}}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)};o._withStripped=!0;var i={render:o,staticRenderFns:[]},s=i;var c=!1;var l=a("VU/8")(n,s,!1,function(e){c||a("RjIq")},"data-v-7ef9545c",null);l.options.__file="src\\components\\orderCount\\dayOrderCount.vue";t.default=l.exports}});
\ No newline at end of file
webpackJsonp([48],{"4myw":function(e,t,a){(e.exports=a("FZ+f")(!0)).push([e.i,"\n.orderCount[data-v-2991e276] {\n padding: 10px;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/orderCount/monthOrderCount.vue"],names:[],mappings:";AACA;EACE,cAAc;CACf",file:"monthOrderCount.vue",sourcesContent:["\n.orderCount[data-v-2991e276] {\n padding: 10px;\n}\n"],sourceRoot:""}])},XnN8:function(e,t,a){var r=a("4myw");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("07fe6388",r,!1,{})},"v/LD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"monthOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date),e.formatTime(new Date)])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a,a])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a,e.formatTime(new Date)])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a,e.formatTime(new Date)])}},tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:0}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(console.log(this.searchFrom.dateValue),this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",o=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,o]}}},o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)};o._withStripped=!0;var i={render:o,staticRenderFns:[]},s=i;var l=!1;var c=a("VU/8")(n,s,!1,function(e){l||a("XnN8")},"data-v-2991e276",null);c.options.__file="src\\components\\orderCount\\monthOrderCount.vue";t.default=c.exports}});
\ No newline at end of file
webpackJsonp([6],{"6E06":function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-33d21ccc] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"9PRC":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("CCn6"),i=n("kmJW"),o=n("O6Rd"),r=n("G2rA"),l=n("kmsh"),s=n("+TkF"),c={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var t=this;Object(a._65)({page:1,limit:200}).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(a.m)(this.form.id,e).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.$emit("reflash"),t.dialogObj.show=!1})}},watch:{"dialogObj.show":function(t){t&&this.initPage()}}},d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[n("el-form-item",{attrs:{label:"老师"}},[n("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 n("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)};d._withStripped=!0;var u={render:d,staticRenderFns:[]},_=u;var p=!1;var v=n("VU/8")(c,_,!1,function(t){p||n("Ikhs")},"data-v-44bd2f68",null);v.options.__file="src\\components\\userDetail\\dialog.vue";var f=v.exports,h=n("0qGg"),g={name:"index",data:function(){return{userList:[],total:0,sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},nowPage:1,limit:3,id:"",detail:{},periodList:[],dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},list:[],userObj:{classId:"",title:"",show:!1},privilegeDialog:{show:!1,isAllowView:!1,is_add_teacher:0,weight:0,id:""},descDialog:{show:!1,descList:[],nowPage:1,limit:10,total:0,userInfo:null},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,limit:10,total:0},isAddTeacherList:[{label:"未加好友",value:0},{label:"老师主动添加用户",value:1},{label:"用户主动添加老师",value:2}]}},components:{page:i.a,teacherDialog:f,UserList:h.a,refundDetail:r.a,sourceDialog:o.a,couponDialog:l.a},mounted:function(){this.id=this.$route.params.id,this.getDetail(),this.getUser()},methods:{getUserLook:function(){var t=this;if(this.lookDetail.data){this.lookDetail.show=!0,this.lookDetail.loading=!0;var e={limit:this.lookDetail.limit,page:this.lookDetail.nowPage},n=this.lookDetail.data;Object(a._110)(n.periods_id,n.user_id,e).then(function(e){t.lookDetail.list=e.list,t.lookDetail.loading=!1,t.lookDetail.total=e.total})}},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.getUserLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.getUserLook()},onDescDialogPageChange:function(t){this.descDialog.nowPage=t,this.getUserDescList()},onDescDialogSizeChange:function(t){this.descDialog.limit=t,this.descDialog.nowPage=1,this.getUserDescList()},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no},changeRow:function(t,e){var n=this;this.list=[],e.indexOf(t)>-1&&Object(a._49)(t.periods_id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate,n.list=[t]})},onPageChange:function(t){this.nowPage=t,this.getUser()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getUser()},getUser:function(){var t=this,e={user_id:this.id,limit:this.limit,page:this.nowPage,status:"1,4,5"};Object(a._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.userList=e.list,t.total=e.total})},getDetail:function(){var t=this;this.id&&Object(a._68)(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}},showUser:function(t){this.userObj={classId:t.class_id,show:!0,title:t.teacher_name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},editPrivilege:function(t){this.privilegeDialog={id:t.id,isAllowView:1===t.is_view_course,is_add_teacher:t.is_add_teacher?t.is_add_teacher:0,weight:t.weight?t.weight:0,show:!0}},onGetUserDescList:function(t){this.descDialog.show=!0,this.descDialog.userInfo={user_id:t.user_id,avatar:this.detail.avatar,nickname:this.detail.nickname},this.descDialog.id=t.id,this.getUserDescList()},getUserDescList:function(){var t=this,e={page:this.descDialog.nowPage,limit:this.descDialog.limit};Object(a._67)(this.descDialog.id,e).then(function(e){t.descDialog.descList=e.list,t.descDialog.total=e.total})},userLook:function(t){var e=this;this.lookDetail.show=!0,this.lookDetail.loading=!0;var n={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};this.lookDetail.data={periods_id:t.periods_id,user_id:t.user_id},Object(a._110)(t.periods_id,t.user_id,n).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},editComment:function(t){var e=this;this.$prompt("","添加备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(n){var i=n.value;Object(a.l)(t,{desc:i}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.getUserDescList()})})},changePrivilegeSub:function(){var t=this;this.$confirm("此操作将修改用户权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={is_view_course:t.privilegeDialog.isAllowView?1:0,is_add_teacher:t.privilegeDialog.is_add_teacher,weight:t.privilegeDialog.weight};Object(a._108)(t.privilegeDialog.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.privilegeDialog.show=!1,t.getDetail()})})}},filters:{payMentFilter:function(t){return"1"==t?"已付款":"未付款"},courseTypeFilter:function(t){return"1"==t.type?"正式课("+t.duration+"个月)":"试听课("+t.duration+"天)"},inviteType:function(t){return s.j[t]},status:function(t){return s.p[t]},buyType:function(t){return s.b[t]},moneytFilter:function(t){return t/100+"元"},percent:function(t){return(100*t).toFixed(2)+"%"}}},b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user"},[n("el-card",{staticClass:"user-card"},[n("el-row",{attrs:{gutter:20}},[n("el-col",{staticClass:"title",attrs:{span:24}},[n("a",{attrs:{href:t.detail.avatar,target:"_blank"}},[n("img",{attrs:{src:t.detail.avatar}})]),t._v(" "),n("div",{staticStyle:{"text-align":"center"}},[t._v("\n "+t._s(t.detail.nickname)+" (ID: "+t._s(t.id)+")\n ")])])],1),t._v(" "),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:12}},[n("label",[t._v("tel:")]),t._v(t._s(t.detail.mobile)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("生日:")]),t._v(t._s(t.detail.birthday)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("等级:")]),t._v(t._s(t.detail.level)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("邀请类型:")]),t._v(t._s(t._f("inviteType")(t.detail.invite_type))+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("邀请人ID:")]),t._v(t._s(t.detail.invite_user_id?t.detail.invite_user_id:"")+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("已绑定老师:")]),t._v(t._s(t.detail.teacher_name)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("注册时间:")]),t._v(t._s(t.detail.created_at)+"\n ")]),t._v(" "),n("el-col",{attrs:{span:12}},[n("label",[t._v("最后登录:")]),t._v(t._s(t.detail.last_login_at)+"\n ")])],1)],1),t._v(" "),n("el-tabs",{attrs:{type:"border-card"}},[n("el-tab-pane",{attrs:{label:"期数列表"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList},on:{"expand-change":t.changeRow}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[n("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("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(" "),n("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(" "),n("el-table-column",{attrs:{className:"f-c",label:"老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:"/teacher/"+e.row.teacher_id}},[n("div",{staticClass:"f-c"},[n("div",[n("img",{staticClass:"avatar",attrs:{src:e.row.teacher_qr}}),t._v(" "+t._s(e.row.teacher_name)+"\n ")])])])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"join_num",label:"加入人数"}}),t._v(" "),n("el-table-column",{attrs:{prop:"max_join_num",label:"最大加入人数"}}),t._v(" "),n("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"400px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){t.showUser(e.row)}}},[t._v(" 班级成员")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(n){t.editPrivilege(e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){t.onGetUserDescList(e.row)}}},[t._v("备注")]),t._v(" "),n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(n){t.userLook(e.row)}}},[t._v("看课情况 ")])]}}])})],1)],1),t._v(" "),n("el-tab-pane",{attrs:{label:"订单列表"}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.userList}},[n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)),n("br"),t._v("(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),n("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),n("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?n("div",{staticStyle:{display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(n){t.showSource(e.row)}}},[n("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),n("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),n("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),n("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),n("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?n("div",{staticStyle:{display:"flex"}},[n("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),n("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),n("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),n("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),n("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?n("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?n("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?n("el-button",{attrs:{type:"text"},on:{click:function(n){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?n("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?n("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),n("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),n("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"pay_at",label:"购买时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"下单时间"}})],1),t._v(" "),n("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)],1),t._v(" "),n("teacher-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.getDetail}}),t._v(" "),n("user-list",{attrs:{userObj:t.userObj}}),t._v(" "),n("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),n("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),n("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),n("el-dialog",{attrs:{modal:!1,visible:t.privilegeDialog.show,title:"编辑权限"},on:{"update:visible":function(e){t.$set(t.privilegeDialog,"show",e)}}},[n("el-form",{attrs:{"label-width":"120px"}},[n("el-form-item",{attrs:{label:"是否添加老师"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.privilegeDialog.is_add_teacher,callback:function(e){t.$set(t.privilegeDialog,"is_add_teacher",e)},expression:"privilegeDialog.is_add_teacher"}},t._l(t.isAddTeacherList,function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),n("el-form-item",{attrs:{label:"看课权限"}},[n("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.privilegeDialog.isAllowView,callback:function(e){t.$set(t.privilegeDialog,"isAllowView",e)},expression:"privilegeDialog.isAllowView"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"意向等级"}},[n("el-input-number",{attrs:{min:0,step:1},model:{value:t.privilegeDialog.weight,callback:function(e){t.$set(t.privilegeDialog,"weight",e)},expression:"privilegeDialog.weight"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.privilegeDialog.show=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.changePrivilegeSub()}}},[t._v("确 定")])],1)],1),t._v(" "),n("el-dialog",{attrs:{modal:!1,visible:t.descDialog.show,title:"备注列表",width:"60%"},on:{"update:visible":function(e){t.$set(t.descDialog,"show",e)}}},[n("el-form",{attrs:{"label-width":"90px"}},[n("el-form-item",[n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:function(e){t.editComment(t.descDialog.id)}}},[t._v("添加备注")])],1)],1),t._v(" "),n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.descDialog.descList}},[n("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t.descDialog.userInfo?[n("img",{staticStyle:{width:"40px",height:"40px","border-radius":"50px"},attrs:{src:t.descDialog.userInfo.avatar}}),t._v(" "+t._s(t.descDialog.userInfo.nickname)+"(ID:"+t._s(t.descDialog.userInfo.user_id)+")\n ")]:void 0}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{prop:"operator",label:"备注人"}}),t._v(" "),n("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),n("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"}})],1),t._v(" "),n("page",{attrs:{nowPage:t.descDialog.nowPage,total:t.descDialog.total,limit:t.descDialog.limit},on:{pageChange:t.onDescDialogPageChange,sizeChange:t.onDescDialogSizeChange}})],1),t._v(" "),n("el-dialog",{attrs:{modal:!1,visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[n("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),n("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?n("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():n("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?n("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():n("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?n("span",[n("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():n("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?n("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():n("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?n("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():n("span",[t._v("\n 暂未分享\n ")])]}}])})],1),t._v(" "),n("page",{attrs:{nowPage:t.lookDetail.nowPage,total:t.lookDetail.total,limit:t.lookDetail.limit},on:{pageChange:t.onLookDetailPageChange,sizeChange:t.onLookDetailSizeChange}})],1)],1)};b._withStripped=!0;var A={render:b,staticRenderFns:[]},m=A;var w=!1;var C=n("VU/8")(g,m,!1,function(t){w||(n("xjRD"),n("ivTY"))},"data-v-61122de2",null);C.options.__file="src\\components\\userDetail\\index.vue";e.default=C.exports},"9Wh8":function(t,e,n){var a=n("udiB");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("3b8e9453",a,!1,{})},AxoJ:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.f-c > div {\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:["D:/myproject/changchang-admin-new/src/components/userDetail/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 > div {\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:""}])},G2rA:function(t,e,n){"use strict";var a=n("CCn6"),i={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._54)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[n("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("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(" "),n("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(" "),n("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(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),n("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var s=!1;var c=n("VU/8")(i,l,!1,function(t){s||n("UAas")},"data-v-dcf5d7b2",null);c.options.__file="src\\components\\order\\refundDetail.vue";e.a=c.exports},Ikhs:function(t,e,n){var a=n("UoYC");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("15060f9d",a,!1,{})},"L+Pp":function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,'\n.search-btn-block[data-v-61122de2] {\n margin-left: 20px;\n}\n.search-form[data-v-61122de2] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-61122de2] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-61122de2] {\n float: right;\n}\n.text-c[data-v-61122de2] {\n text-align: center;\n}\n.text-b[data-v-61122de2] {\n font-weight: bold;\n}\n.color-b[data-v-61122de2] {\n color: #6ba8e6;\n}\n.text-r[data-v-61122de2] {\n text-align: right;\n}\n.main-block[data-v-61122de2] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-61122de2] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-61122de2]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-61122de2]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-61122de2]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-61122de2]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user-card[data-v-61122de2] {\n margin: 10px;\n width: 800px;\n padding: 20px;\n}\n.user-card label[data-v-61122de2] {\n color: #5982e6;\n width: 100px;\n display: inline-block;\n text-align: right;\n}\n.user-card .el-col[data-v-61122de2] {\n height: 30px;\n line-height: 30px;\n}\n.user-card .title[data-v-61122de2] {\n height: 50px;\n line-height: 60px;\n margin-bottom: 20px;\n}\n.user-card .title a[data-v-61122de2] {\n position: absolute;\n top: -10px;\n left: 5px;\n}\n.user-card .title a img[data-v-61122de2] {\n width: 80px;\n border-radius: 100px;\n}\n.avatar[data-v-61122de2] {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n}\n.user[data-v-61122de2] {\n height: 100%;\n overflow: auto;\n /*padding: 20px 0;*/\n}\n.user .btn-content[data-v-61122de2] {\n text-align: center;\n}\n.header[data-v-61122de2] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.header .el-row[data-v-61122de2] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\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 color: #666;\n font-size: 16px;\n margin: 25px 0;\n}\n.header .el-row label[data-v-61122de2] {\n margin-right: 10px;\n}\n.header .avatar[data-v-61122de2] {\n margin-right: 10px;\n}\n.b-title[data-v-61122de2] {\n padding: 20px;\n color: #666;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/userDetail/index.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,aAAa;EACb,aAAa;EACb,cAAc;CACf;AACD;EACE,eAAe;EACf,aAAa;EACb,sBAAsB;EACtB,kBAAkB;CACnB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;EACb,kBAAkB;EAClB,oBAAoB;CACrB;AACD;EACE,mBAAmB;EACnB,WAAW;EACX,UAAU;CACX;AACD;EACE,YAAY;EACZ,qBAAqB;CACtB;AACD;EACE,YAAY;EACZ,aAAa;EACb,mBAAmB;CACpB;AACD;EACE,aAAa;EACb,eAAe;EACf,oBAAoB;CACrB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,gBAAgB;EAChB,oBAAoB;CACrB;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,YAAY;EACZ,gBAAgB;EAChB,eAAe;CAChB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,mBAAmB;CACpB;AACD;EACE,cAAc;EACd,YAAY;CACb",file:"index.vue",sourcesContent:['\n.search-btn-block[data-v-61122de2] {\n margin-left: 20px;\n}\n.search-form[data-v-61122de2] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-61122de2] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-61122de2] {\n float: right;\n}\n.text-c[data-v-61122de2] {\n text-align: center;\n}\n.text-b[data-v-61122de2] {\n font-weight: bold;\n}\n.color-b[data-v-61122de2] {\n color: #6ba8e6;\n}\n.text-r[data-v-61122de2] {\n text-align: right;\n}\n.main-block[data-v-61122de2] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-61122de2] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-61122de2]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-61122de2]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-61122de2]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-61122de2]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.user-card[data-v-61122de2] {\n margin: 10px;\n width: 800px;\n padding: 20px;\n}\n.user-card label[data-v-61122de2] {\n color: #5982e6;\n width: 100px;\n display: inline-block;\n text-align: right;\n}\n.user-card .el-col[data-v-61122de2] {\n height: 30px;\n line-height: 30px;\n}\n.user-card .title[data-v-61122de2] {\n height: 50px;\n line-height: 60px;\n margin-bottom: 20px;\n}\n.user-card .title a[data-v-61122de2] {\n position: absolute;\n top: -10px;\n left: 5px;\n}\n.user-card .title a img[data-v-61122de2] {\n width: 80px;\n border-radius: 100px;\n}\n.avatar[data-v-61122de2] {\n width: 50px;\n height: 50px;\n border-radius: 50%;\n}\n.user[data-v-61122de2] {\n height: 100%;\n overflow: auto;\n /*padding: 20px 0;*/\n}\n.user .btn-content[data-v-61122de2] {\n text-align: center;\n}\n.header[data-v-61122de2] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.header .el-row[data-v-61122de2] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\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 color: #666;\n font-size: 16px;\n margin: 25px 0;\n}\n.header .el-row label[data-v-61122de2] {\n margin-right: 10px;\n}\n.header .avatar[data-v-61122de2] {\n margin-right: 10px;\n}\n.b-title[data-v-61122de2] {\n padding: 20px;\n color: #666;\n}\n'],sourceRoot:""}])},O6Rd:function(t,e,n){"use strict";var a=n("CCn6"),i={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._74)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[n("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("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(" "),n("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),n("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(" "),n("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(" "),n("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),n("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var s=!1;var c=n("VU/8")(i,l,!1,function(t){s||n("9Wh8")},"data-v-dcd002fe",null);c.options.__file="src\\components\\order\\sourceDialog.vue";e.a=c.exports},UAas:function(t,e,n){var a=n("hMSk");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("984d55cc",a,!1,{})},UoYC:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"dialog.vue",sourceRoot:""}])},eCTS:function(t,e,n){var a=n("6E06");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("de7d4256",a,!1,{})},hMSk:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-dcf5d7b2] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},ivTY:function(t,e,n){var a=n("AxoJ");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("5aeada36",a,!1,{})},kmsh:function(t,e,n){"use strict";var a=n("CCn6"),i={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(a._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[n("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),t._v(" "),n("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),n("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("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(" "),n("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"使用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},l=r;var s=!1;var c=n("VU/8")(i,l,!1,function(t){s||n("eCTS")},"data-v-33d21ccc",null);c.options.__file="src\\components\\order\\couponDialog.vue";e.a=c.exports},udiB:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/order/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-dcd002fe] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},xjRD:function(t,e,n){var a=n("L+Pp");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("b6267d16",a,!1,{})}});
\ No newline at end of file
webpackJsonp([7],{"3yCd":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.f-c > div{\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\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:["D:/myproject/changchang-admin-new/src/components/teacherDetail/chooseGoodDialog.vue"],names:[],mappings:";AACA;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,+BAA+B;EAC/B,8BAA8B;MAC1B,0BAA0B;UACtB,sBAAsB;EAC9B,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"chooseGoodDialog.vue",sourcesContent:["\n.f-c > div{\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\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:""}])},"61rJ":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\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:["D:/myproject/changchang-admin-new/src/components/teacherDetail/index.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;CAChB;AACD;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;CACZ;AACD;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.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\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:""}])},"64hg":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-4c99299c] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-4c99299c] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"8uEr":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.b-title[data-v-67261a49] {\n padding: 20px;\n color: #666;\n}\n.teacher[data-v-67261a49] {\n padding: 20px 0;\n}\n.header[data-v-67261a49] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.el-row[data-v-67261a49] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\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 color: #666;\n font-size: 16px;\n}\n.text.item[data-v-67261a49] {\n line-height: 40px;\n}\n.text.item label[data-v-67261a49] {\n width: 120px;\n}\n.el-card[data-v-67261a49] {\n /*height: 50px;*/\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\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.el-card .avatar[data-v-67261a49] {\n width: 120px;\n margin-right: 10px;\n height: 120px;\n border-radius: 1000px;\n}\n.el-card img[data-v-67261a49] {\n width: 120px;\n float: left;\n margin-right: 10px;\n}\n.el-card label[data-v-67261a49] {\n color: #5982e6;\n width: 120px;\n}\n.card-content[data-v-67261a49]:after {\n content: '';\n display: block;\n clear: both;\n}\n.order_list .avatar[data-v-67261a49] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/index.vue"],names:[],mappings:";AACA;EACE,cAAc;EACd,YAAY;CACb;AACD;EACE,gBAAgB;CACjB;AACD;EACE,gBAAgB;EAChB,oBAAoB;CACrB;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,YAAY;EACZ,gBAAgB;CACjB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,iBAAiB;EACjB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B;AACD;EACE,aAAa;EACb,mBAAmB;EACnB,cAAc;EACd,sBAAsB;CACvB;AACD;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;CACpB;AACD;EACE,eAAe;EACf,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB",file:"index.vue",sourcesContent:["\n.b-title[data-v-67261a49] {\n padding: 20px;\n color: #666;\n}\n.teacher[data-v-67261a49] {\n padding: 20px 0;\n}\n.header[data-v-67261a49] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.el-row[data-v-67261a49] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\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 color: #666;\n font-size: 16px;\n}\n.text.item[data-v-67261a49] {\n line-height: 40px;\n}\n.text.item label[data-v-67261a49] {\n width: 120px;\n}\n.el-card[data-v-67261a49] {\n /*height: 50px;*/\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\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.el-card .avatar[data-v-67261a49] {\n width: 120px;\n margin-right: 10px;\n height: 120px;\n border-radius: 1000px;\n}\n.el-card img[data-v-67261a49] {\n width: 120px;\n float: left;\n margin-right: 10px;\n}\n.el-card label[data-v-67261a49] {\n color: #5982e6;\n width: 120px;\n}\n.card-content[data-v-67261a49]:after {\n content: '';\n display: block;\n clear: both;\n}\n.order_list .avatar[data-v-67261a49] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},CfzE:function(t,e,a){"use strict";var n=a("CCn6"),i=a("kmJW"),s=a("+TkF"),o={name:"goodsList",props:["dialogObj"],data:function(){return{searchFrom:{name:"",goods_type:"",status:"1",course_id:""},goodsList:[],classList:[],total:0,nowPage:1,limit:10,show:!1,code:""}},components:{page:i.a},filters:{isOrNot:function(t){return s.n[t]},goodsType:function(t){return s.g[t]},lessonType:function(t){return s.o[t]},goodsStatus:function(t){return s.f[t]},goodsDesc:function(t){return JSON.parse(t).desc}},methods:{getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(e.name=this.searchFrom.name),this.searchFrom.goods_type&&(e.goods_type=this.searchFrom.goods_type),this.searchFrom.course_id&&(e.course_id=this.searchFrom.course_id),this.searchFrom.status&&(e.status=this.searchFrom.status),this.searchFrom.current_price&&(e.current_price=100*this.searchFrom.current_price),Object(n._37)(e).then(function(e){t.goodsList=e.list,t.total=e.total})},getClassList:function(){var t=this;Object(n._40)({limit:200,page:1}).then(function(e){console.log(e),t.classList=e.list})},copyUrl:function(t){if(this.code){var e="https://wechat-test.changchangenglish.com/#/buyDetail?shopId="+t+"&invite_code="+this.code,a=document.createElement("input");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),a.remove(),this.$emit("changeShow")}},onPageChange:function(t){this.nowPage=t,this.getList()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getList()},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.code&&(this.code=this.dialogObj.code)}},watch:{"dialogObj.show":function(t){t&&(this.initDialog(),this.getClassList(),this.getList())},show:function(t){this.$emit("changeShow",t)}}},l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"复制链接",visible:t.show,modal:!1,width:"80%"},on:{"update:visible":function(e){t.show=e}}},[a("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:t.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"商品名称"}},[a("el-input",{model:{value:t.searchFrom.name,callback:function(e){t.$set(t.searchFrom,"name",e)},expression:"searchFrom.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品类型"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getList},model:{value:t.searchFrom.goods_type,callback:function(e){t.$set(t.searchFrom,"goods_type",e)},expression:"searchFrom.goods_type"}},[a("el-option",{attrs:{value:"",label:"请选择"}}),t._v(" "),a("el-option",{attrs:{label:"普通商品",value:1}}),t._v(" "),a("el-option",{attrs:{label:"团购商品",value:2}}),t._v(" "),a("el-option",{attrs:{label:"续课商品",value:3}}),t._v(" "),a("el-option",{attrs:{label:"优惠券商品",value:4}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"课程"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getList},model:{value:t.searchFrom.course_id,callback:function(e){t.$set(t.searchFrom,"course_id",e)},expression:"searchFrom.course_id"}},[a("el-option",{attrs:{value:"",label:"请选择"}}),t._v(" "),t._l(t.classList,function(t,e){return a("el-option",{key:e,attrs:{label:t.title,value:t.id}})})],2)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[a("el-input-number",{model:{value:t.searchFrom.current_price,callback:function(e){t.$set(t.searchFrom,"current_price",e)},expression:"searchFrom.current_price"}})],1),t._v(" "),a("el-form-item",[a("div",{staticClass:"search-btn-block"},[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:t.getList}},[t._v("搜索")])],1)])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.goodsList}},[a("el-table-column",{attrs:{prop:"id",width:"50px",label:"编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{name:"periods",query:{goods_id:e.row.id}}}},[t._v("\n "+t._s(e.row.name)+"\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("goodsType")(e.row.goods_type))+"\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.original_price/100)+"元\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.current_price/100)+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"course_title",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("lessonType")(e.row.course_type))+"\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("goodsDesc")(e.row.desc))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"100",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(a){t.copyUrl(e.row.id)}}},[t._v("\n 复制链接\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)};l._withStripped=!0;var r={render:l,staticRenderFns:[]},c=r;var d=!1;var u=a("VU/8")(o,c,!1,function(t){d||a("z2HA")},null,null);u.options.__file="src\\components\\teacherDetail\\chooseGoodDialog.vue";e.a=u.exports},"E/ZT":function(t,e,a){var n=a("Qqyn");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("1e8fe874",n,!1,{})},MeUK:function(t,e,a){var n=a("8uEr");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("2bb22f96",n,!1,{})},OKSQ:function(t,e,a){var n=a("eTXT");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("627544e4",n,!1,{})},Q5Z3:function(t,e,a){var n=a("61rJ");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("56000f94",n,!1,{})},Qqyn:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-22597032] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-22597032] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},SWNE:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-4c863f42] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-4c863f42] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},eTXT:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,'\n.search-btn-block[data-v-ed74a444] {\n margin-left: 20px;\n}\n.search-form[data-v-ed74a444] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-ed74a444] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-ed74a444] {\n float: right;\n}\n.text-c[data-v-ed74a444] {\n text-align: center;\n}\n.text-b[data-v-ed74a444] {\n font-weight: bold;\n}\n.color-b[data-v-ed74a444] {\n color: #6ba8e6;\n}\n.text-r[data-v-ed74a444] {\n text-align: right;\n}\n.main-block[data-v-ed74a444] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-ed74a444] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-ed74a444]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-ed74a444]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-ed74a444]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.task3-table[data-v-ed74a444] {\n padding: 10px;\n overflow: auto;\n}\n.task3-table .table[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n.task3-table .table > div[data-v-ed74a444] {\n display: table-cell;\n white-space: nowrap;\n vertical-align: middle;\n height: 192px;\n width: auto;\n text-align: center;\n position: relative;\n border: 1px solid #f0f0f0;\n}\n.task3-table .table > div.title[data-v-ed74a444] {\n min-width: 200px;\n}\n.task3-table .table > div.start[data-v-ed74a444] {\n min-width: 100px;\n}\n.task3-table .table > div.total[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div.watch[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div .header[data-v-ed74a444] {\n position: absolute;\n width: 100%;\n left: 0;\n top: 0;\n height: 21px;\n border-bottom: 1px solid #f0f0f0;\n padding: 5px 0;\n text-align: center;\n}\n.task3-table .table .log-list > div[data-v-ed74a444] {\n text-align: center;\n padding: 5px 15px;\n border-bottom: 1px solid #f0f0f0;\n line-height: normal;\n}\n.bg-h[data-v-ed74a444] {\n background: #e4eff7;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/task.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,cAAc;EACd,eAAe;CAChB;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;EACpB,oBAAoB;EACpB,uBAAuB;EACvB,cAAc;EACd,YAAY;EACZ,mBAAmB;EACnB,mBAAmB;EACnB,0BAA0B;CAC3B;AACD;EACE,iBAAiB;CAClB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,gBAAgB;CACjB;AACD;EACE,gBAAgB;CACjB;AACD;EACE,mBAAmB;EACnB,YAAY;EACZ,QAAQ;EACR,OAAO;EACP,aAAa;EACb,iCAAiC;EACjC,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,mBAAmB;EACnB,kBAAkB;EAClB,iCAAiC;EACjC,oBAAoB;CACrB;AACD;EACE,oBAAoB;CACrB",file:"task.vue",sourcesContent:['\n.search-btn-block[data-v-ed74a444] {\n margin-left: 20px;\n}\n.search-form[data-v-ed74a444] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-ed74a444] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-ed74a444] {\n float: right;\n}\n.text-c[data-v-ed74a444] {\n text-align: center;\n}\n.text-b[data-v-ed74a444] {\n font-weight: bold;\n}\n.color-b[data-v-ed74a444] {\n color: #6ba8e6;\n}\n.text-r[data-v-ed74a444] {\n text-align: right;\n}\n.main-block[data-v-ed74a444] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-ed74a444] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-ed74a444]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-ed74a444]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-ed74a444]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.task3-table[data-v-ed74a444] {\n padding: 10px;\n overflow: auto;\n}\n.task3-table .table[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n.task3-table .table > div[data-v-ed74a444] {\n display: table-cell;\n white-space: nowrap;\n vertical-align: middle;\n height: 192px;\n width: auto;\n text-align: center;\n position: relative;\n border: 1px solid #f0f0f0;\n}\n.task3-table .table > div.title[data-v-ed74a444] {\n min-width: 200px;\n}\n.task3-table .table > div.start[data-v-ed74a444] {\n min-width: 100px;\n}\n.task3-table .table > div.total[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div.watch[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div .header[data-v-ed74a444] {\n position: absolute;\n width: 100%;\n left: 0;\n top: 0;\n height: 21px;\n border-bottom: 1px solid #f0f0f0;\n padding: 5px 0;\n text-align: center;\n}\n.task3-table .table .log-list > div[data-v-ed74a444] {\n text-align: center;\n padding: 5px 15px;\n border-bottom: 1px solid #f0f0f0;\n line-height: normal;\n}\n.bg-h[data-v-ed74a444] {\n background: #e4eff7;\n}\n'],sourceRoot:""}])},hFUZ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("CCn6"),i=a("+TkF"),s=(a("xGts"),{name:"task",data:function(){return{id:this.$route.params.id,task1List:[],task2List:[],task3List:[],task1Detail:{show:!1,list:[],cur_date:""},task2Detail:{show:!1,list:[],weight:""},descDialog:{show:!1,id:"",descList:[],user_info:null},task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:""}}},methods:{showTask3Detail:function(t,e,a,i){var s=this,o={is_true:e,is_watch:a,cur_date:i};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=i,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",Object(n._72)(t.periods_id,this.id,o).then(function(t){s.task3Detail.loading=!1,s.task3Detail.list=t})},editComment:function(t){var e=this;this.$prompt("","添加备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(a){var i=a.value;Object(n.l)(t,{desc:i}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.getUserDescList(),e.refDesc1(),e.refDesc2(),e.task3Detail.list&&e.task3Detail.list.length>0&&e.refDesc3()})})},refDesc3:function(){var t=this,e={is_true:this.task3Detail.is_true,is_watch:this.task3Detail.is_watch,cur_date:this.task3Detail.cur_date};this.task3Detail.loading=!0,Object(n._72)(this.task3Detail.periods_id,this.id,e).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e})},showTask2Detail:function(t){this.task2Detail={show:!0,list:t.detail,weight:t.weight}},showTask1Detail:function(t){this.task1Detail={show:!0,list:t.detail,cur_date:t.cur_date}},refDesc1:function(){var t=this;Object(n._93)(this.id).then(function(e){t.task1List=e,e.forEach(function(e){e.cur_date===t.task1Detail.cur_date&&(t.task1Detail.list=e.detail)})})},refDesc2:function(){var t=this;Object(n._94)(this.id).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})})},changeAddTeacher:function(t){var e=this;Object(n.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc1(),e.refDesc2()})},changeAddTeacher3:function(t){var e=this;Object(n.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight3:function(t){var e=this;Object(n._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight:function(t){var e=this;Object(n._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},changeView:function(t){var e=this;Object(n._8)(t.id,t.is_view_course).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},editDesc3:function(t){var e=this;this.$prompt("","请输入备注",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(a){var i=a.value;Object(n.l)(t.id,{desc:i}).then(function(t){e.$message({type:"success",message:"更新成功"}),e.refDesc3()})}).catch(function(){})},editDesc:function(t){this.descDialog.show=!0,this.descDialog.id=t.id,this.descDialog.user_info={avatar:t.avatar,nickname:t.nickname,user_id:t.user_id},this.getUserDescList()},getUserDescList:function(){var t=this;Object(n._67)(this.descDialog.id,{limit:1e3}).then(function(e){t.descDialog.descList=e.list})},initPage:function(){var t=this;Object(n._93)(this.id).then(function(e){t.task1List=e}),Object(n._94)(this.id).then(function(e){t.task2List=e}),Object(n._95)(this.id).then(function(e){t.task3List=e})}},mounted:function(){this.initPage()}}),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"font-size":"14px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务1:好友添加")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task1List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_add_teacher_num",label:"当天进班人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_num",label:"需加好友人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row)}}},[t._v(t._s(e.row.need_add_teacher_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"add_rate",label:"加好友率",align:"center"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务2:意向等级跟踪")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task2List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"weight",label:"意向等级",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_num",label:"总人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask2Detail(e.row)}}},[t._v(t._s(e.row.total_num))])]}}])})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title"},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n 【"+t._s(e.periods_id)+"】"+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"start"},[a("div",{staticClass:"header bg-h"},[t._v("开课日期")]),t._v("\n "+t._s(e.start_at)+"\n ")]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"watch"},[a("div",{staticClass:"header bg-h"},[t._v("已推课程数")]),t._v("\n "+t._s(e.has_watch_num)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(n){return a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(n.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,n.cur_date)}}},[t._v(t._s(n.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,n.cur_date)}}},[t._v(t._s(n.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,n.cur_date)}}},[t._v(t._s(n.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==n.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===n.is_start_course?a("span",[t._v(t._s(n.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==n.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===n.is_start_course?a("span",[t._v(t._s(n.work_rate))]):t._e()])])})],2)])})],2)],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.task1Detail.show,width:"80%"},on:{"update:visible":function(e){t.$set(t.task1Detail,"show",e)}}},[a("el-table",{attrs:{data:t.task1Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.periods_title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师",width:"105",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"老师已添加未户未通过",value:3}}),t._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"入课时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(a){t.editDesc(e.row)}}},[t._v("备注")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.task2Detail.show,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课权限"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeView(e.row)}},model:{value:e.row.is_view_course,callback:function(a){t.$set(e.row,"is_view_course",a)},expression:"scope.row.is_view_course"}},[a("el-option",{attrs:{label:"否",value:0}}),t._v(" "),a("el-option",{attrs:{label:"是",value:1}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",prop:"last_login_at"},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:{label:"备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.desc)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"95",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(a){t.editDesc(e.row)}}},[t._v("备注")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.descDialog.show,title:"备注列表"},on:{"update:visible":function(e){t.$set(t.descDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:function(e){t.editComment(t.descDialog.id)}}},[t._v("添加备注")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.descDialog.descList}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t.descDialog.user_info?[a("img",{staticStyle:{width:"40px",height:"40px","border-radius":"50px"},attrs:{src:t.descDialog.user_info.avatar}}),t._v(" "+t._s(t.descDialog.user_info.nickname)+"(ID:"+t._s(t.descDialog.user_info.user_id)+")\n ")]:void 0}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{prop:"operator",label:"备注人"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"}})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",prop:"last_login_at"},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:{label:"备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.desc)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"95",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher3(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight3(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(a){t.editDesc(e.row)}}},[t._v("备注")])]}}])})],1)],1)],1)};o._withStripped=!0;var l={render:o,staticRenderFns:[]},r=l;var c=!1;var d=a("VU/8")(s,r,!1,function(t){c||a("OKSQ")},"data-v-ed74a444",null);d.options.__file="src\\components\\teacherDetail\\task.vue";var u=d.exports,_=a("kmJW"),p={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(n._74)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[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.status))+"\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:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};h._withStripped=!0;var f={render:h,staticRenderFns:[]},v=f;var m=!1;var b=a("VU/8")(p,v,!1,function(t){m||a("utD1")},"data-v-4c99299c",null);b.options.__file="src\\components\\teacherDetail\\sourceDialog.vue";var g=b.exports,A={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(n._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_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:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\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("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};w._withStripped=!0;var C={render:w,staticRenderFns:[]},x=C;var k=!1;var y=a("VU/8")(A,x,!1,function(t){k||a("E/ZT")},"data-v-22597032",null);y.options.__file="src\\components\\teacherDetail\\couponDialog.vue";var B=y.exports,D={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(n._54)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},E=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[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.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};E._withStripped=!0;var S={render:E,staticRenderFns:[]},j=S;var O=!1;var F=a("VU/8")(D,j,!1,function(t){O||a("rJ82")},"data-v-4c863f42",null);F.options.__file="src\\components\\teacherDetail\\refundDetail.vue";var L=F.exports,$=a("0qGg"),z=a("CfzE"),T={name:"index",components:{page:_.a,task:u,UserList:$.a,chooseGoodDialog:z.a,couponDialog:B,refundDetail:L,sourceDialog:g},data:function(){return{searchFrom:{user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""},form:{nickname:"",user_id:"",status:[1,4,5],goods_id:"",out_trade_no:"",receive_mobile:"",mobile:""},goodList:[],orderStatusOption:i.q,tableData:[],userList:[],list:[],id:"",isBindUser:!0,addShow:!1,detail:{},total:0,limit:10,nowPage:1,userObj:{classId:"",title:"",show:!1,total:0,limit:10,nowPage:1},addId:"",multipleSelection:[],chooseGoodDialogObj:{show:!1,code:""},orderListObj:{total:0,limit:10,nowPage:1},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""}}},methods:{handleSelectionChange:function(t){this.multipleSelection=t},onAdd:function(){var t=this;0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.addId=this.multipleSelection[0].user_id,this.addId&&this.isBindUser&&Object(n._96)(this.id,{user_id:this.addId}).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.id=t.$route.params.id,t.getTeacherDetail(),t.getGoodsOption(),t.addShow=!1})):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})},onAddUser:function(t){this.isBindUser=t,this.addShow=!0,this.getUser()},getUser:function(){var t=this,e={page:this.userObj.nowPage,limit:this.userObj.limit};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(n._69)(e).then(function(e){t.userList=e.list,t.userObj.total=e.total})},changeRow:function(t,e){e.indexOf(t)>-1&&Object(n._27)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},showUser:function(t){this.userObj={classId:t.id,show:!0,title:this.detail.name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},onPageChange3:function(t){this.userObj.nowPage=t,this.getUser()},onSizeChange3:function(t){this.userObj.limit=t,this.userObj.nowPage=1,this.getUser()},onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getTeacherDetail()},onPageChange2:function(t){this.orderListObj.nowPage=t,this.getOrderList()},onSizeChange2:function(t){this.orderListObj.limit=t,this.orderListObj.nowPage=1,this.getOrderList()},getTeacherDetail:function(){var t=this;this.searchFrom={user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""};var e=this.id,a={limit:this.limit,page:this.nowPage};Object(n._64)(e,a).then(function(e){e.class_list&&(e.class_list.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.list=e.class_list.list||[],t.total=e.class_list.total),t.detail=e,t.getOrderList()})},createInviteLink:function(t){this.chooseGoodDialogObj.show=!0,0==this.detail.type?this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id:1==this.detail.type?this.chooseGoodDialogObj.code="CC-XXMM-"+t.user_id:this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},getOrderList:function(){var t=this,e={limit:this.orderListObj.limit,page:this.orderListObj.nowPage};this.form.nickname&&(e.nickname=this.form.nickname),this.form.user_id&&(e.user_id=this.form.user_id),this.form.status&&(e.status=this.form.status.toString()),this.form.goods_id&&(e.goods_id=this.form.goods_id),this.form.receive_mobile&&(e.receive_mobile=this.form.receive_mobile),this.form.out_trade_no&&(e.out_trade_no=this.form.out_trade_no),this.form.mobile&&(e.mobile=this.form.mobile),0!==this.detail.user_id&&(e.invite_id=this.detail.user_id,Object(n._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.tableData=e.list,t.orderListObj.total=e.total}))},getGoodsOption:function(){var t=this;Object(n._37)({page:1,limit:100,course_type:0}).then(function(e){t.goodList=e.list})},editComment:function(t,e){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:e||""}).then(function(e){var i=e.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n._4)(t,"order",{desc:i}).then(function(t){a.$message({type:"success",message:"编辑备注成功"}),a.getOrderList()})})})},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no}},filters:{teacherType:function(t){return i.u[t]},percent:function(t){return(100*t).toFixed(2)+"%"},status:function(t){return i.p[t]},moneytFilter:function(t){return t/100+"元"},filterGoods:function(t){return"["+i.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name}},mounted:function(){this.id=this.$route.params.id,this.getTeacherDetail(),this.getGoodsOption()}},U=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"teacher"},[a("div",{staticClass:"header"},[a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[a("label",[t._v(t._s(t._f("teacherType")(t.detail.type))+":")]),t._v(" "+t._s(t.detail.name)+"\n ")]),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"success",plain:""},on:{click:function(e){t.onAddUser(!0)}}},[t._v("老师绑定用户")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.qr,target:"_blank"}},[a("img",{attrs:{src:t.detail.qr}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n "),a("br"),t._v(" "),a("label",[t._v("带班总人数:")]),t._v(t._s(t.detail.total_join_num)+"\n "),a("br"),t._v(" "),a("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])])]),t._v(" "),t.detail.user_info?a("el-card",{staticStyle:{width:"450px",display:"inline-block"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("绑定用户")]),t._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(e){t.createInviteLink(t.detail.user_info)}}},[t._v("\n 复制专属链接\n ")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.user_info.nickname)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("用户ID:")]),t._v(" "+t._s(t.detail.user_info.user_id)+"\n ")])])]):t._e()],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"今日任务"}},[a("task")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"期数列表"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"已进班人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_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:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v("\n 班级成员\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表"}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:t.form.user_id,callback:function(e){t.$set(t.form,"user_id",e)},expression:"form.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户手机号"}},[a("el-input",{model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"收件人手机号"}},[a("el-input",{model:{value:t.form.receive_mobile,callback:function(e){t.$set(t.form,"receive_mobile",e)},expression:"form.receive_mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,n){return a("el-option",{key:n,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.orderStatusOption,function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"交易订单号"}},[a("el-input",{model:{value:t.form.out_trade_no,callback:function(e){t.$set(t.form,"out_trade_no",e)},expression:"form.out_trade_no"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getOrderList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticClass:"order_list",staticStyle:{width:"100%"},attrs:{data:t.tableData,fixed:""}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},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)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")"),a("br"),t._v("手机:"+t._s(e.row.user_mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},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:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"200"}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(a){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 编辑备注\n ")])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),a("page",{attrs:{total:t.orderListObj.total,limit:t.orderListObj.limit},on:{pageChange:t.onPageChange2,sizeChange:t.onSizeChange2}})],1)],1),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getTeacherDetail}}),t._v(" "),a("choose-good-dialog",{attrs:{dialogObj:t.chooseGoodDialogObj},on:{changeShow:t.changeShow}}),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.addShow},on:{"update:visible":function(e){t.addShow=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.getUser}},[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.userObj.total,limit:t.userObj.limit},on:{pageChange:t.onPageChange3,sizeChange:t.onSizeChange3}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addShow=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1)};U._withStripped=!0;var P={render:U,staticRenderFns:[]},Y=P;var I=!1;var q=a("VU/8")(T,Y,!1,function(t){I||(a("MeUK"),a("Q5Z3"))},"data-v-67261a49",null);q.options.__file="src\\components\\teacherDetail\\index.vue";e.default=q.exports},rJ82:function(t,e,a){var n=a("SWNE");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("7221ac08",n,!1,{})},utD1:function(t,e,a){var n=a("64hg");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("5dac314c",n,!1,{})},z2HA:function(t,e,a){var n=a("3yCd");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("0ced29e0",n,!1,{})}});
\ 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],f[t]&&u.push(f[t][0]),f[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=d(d.s=n[i]);return o};var a={},f={54:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});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,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"0e05fe8009a4ebb83b3a",1:"c0d5b8559be5c50bc9e7",2:"3c98e91d221fc193d79d",3:"7150c07ac9c6682dddc0",4:"6618f9d24aaa17d2fb4e",5:"6b10b3e75f34b98ebed3",6:"987ca97bc6fd876a2eca",7:"d11815bef2e641d7b7da",8:"3e53d262919f929cbdbe",9:"e1d696af6ef7b4fb7869",10:"543e5bbf921eabfe54e9",11:"05027dae5c85e19f4aaa",12:"19c02c354c209ba9ee02",13:"afae18aeeb27e944a151",14:"5601195c7ecaa850ac1e",15:"26dc61bad2cdfa04b07c",16:"49e325f932e018d2ae1d",17:"710ef12988bf45ba25e6",18:"f866ba98d5a95d4e5d71",19:"d14dc2cf5a6ecbf5e2e3",20:"3735223296cde509262d",21:"63488e63115156947b32",22:"7089f6f1aaa9198a4f9e",23:"aadf7c5d6fe506755d4f",24:"aae231648c9f706180da",25:"402dbb9ae8e0fe0d2405",26:"da520e82f0cee71899a3",27:"3aefe3f3c631dc1e6ade",28:"50ab2974af6f1a202f05",29:"d0eecb944b6da646b39e",30:"81a5f31c91c4d882cd3f",31:"c82e5bdfda1f915949c3",32:"ebcb28fa60e43c9209f3",33:"dd94ec439525b04bbc26",34:"98768f3425c7971517c7",35:"e2c3cbdceb0fb715efc7",36:"3499abb236cd6dde6fd3",37:"ef550c302d1eaa59a88a",38:"c60be8b7c17da8c033d7",39:"3777a282d94a61434aab",40:"4603230f37130855e548",41:"214a4066837e18c6b95c",42:"342ba2b586d7be7868fe",43:"ec355fc735ca813af86c",44:"cb0d607d3d9215cb6185",45:"f002ee4b50549513cd1e",46:"2f9a89c250898fcef45c",47:"2bcf8a5bef4802e4c816",48:"80bfcb73c08a04ce7436",49:"88c59ae13d1af27a2b59",50:"999a6f3c70b6de6ecb11",51:"bf1b1bdff5ff58e38d7e"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.174568fb01d73a28b268349793cb4684.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.0606439acc607cac198c.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.c313d06cac117560f0dc.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.a0470ffd60877a47e4f2b3364ae151f2.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.354a5adb20e56b82db45.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.01e127d3dc21a129f42f.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){
console.log('error:',a,b,c);
};
......
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([13],{"4v2I":function(e,t){},"Cao/":function(e,t){},NDyu:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("CCn6"),i=s("+TkF"),n=s("kmJW"),l={name:"newIntegral",props:["newIntegral"],data:function(){var e=[];for(var t in i.i)e.push({id:t,value:i.i[t]});return{is_addOption:e}},methods:{onAdd:function(){this.newIntegral.user_id&&""!==this.newIntegral.user_id?this.newIntegral.is_add&&""!==this.newIntegral.is_add?this.newIntegral.value&&""!==this.newIntegral.value?this.newIntegral.desc&&""!==this.newIntegral.desc?this.$emit("subAdd"):this.$message("请填写描述"):this.$message("请填写积分值"):this.$message("请选择积分类型"):this.$message("请填写用户ID")},showUserList:function(){this.$emit("showUserList")}}},r={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{visible:e.newIntegral.show,width:"800px",center:"",title:"积分变更"},on:{"update:visible":function(t){e.$set(e.newIntegral,"show",t)}}},[s("el-form",{attrs:{"label-width":"150px"}},[s("el-form-item",{attrs:{label:"用户ID"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:14}},[s("el-input",{model:{value:e.newIntegral.user_id,callback:function(t){e.$set(e.newIntegral,"user_id",t)},expression:"newIntegral.user_id"}})],1),e._v(" "),s("el-col",{attrs:{span:6}},[s("el-button",{on:{click:e.showUserList}},[e._v("查询")])],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"积分类型"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:20}},[s("el-select",{model:{value:e.newIntegral.is_add,callback:function(t){e.$set(e.newIntegral,"is_add",t)},expression:"newIntegral.is_add"}},e._l(e.is_addOption,function(e,t){return s("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"积分值"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:20}},[s("el-input-number",{model:{value:e.newIntegral.value,callback:function(t){e.$set(e.newIntegral,"value",t)},expression:"newIntegral.value"}})],1)],1)],1),e._v(" "),s("el-form-item",{attrs:{label:"描述【用户可见】"}},[s("el-row",{attrs:{gutter:20}},[s("el-col",{attrs:{span:20}},[s("el-input",{model:{value:e.newIntegral.desc,callback:function(t){e.$set(e.newIntegral,"desc",t)},expression:"newIntegral.desc"}})],1)],1)],1)],1),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.newIntegral.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var o=s("VU/8")(l,r,!1,function(e){s("Cao/")},"data-v-96d950e0",null).exports,u={name:"userList",props:["show"],components:{page:n.a},data:function(){return{userList:[],form:{userId:"",nickName:"",mobile:""},nowPage:1,limit:5,total:0,multipleSelection:null}},methods:{handleCurrentChange:function(e){e&&(this.multipleSelection=e.user_id)},onAdd:function(){this.multipleSelection?this.$emit("addUser",this.multipleSelection):this.$message("请点击选择用户")},onPageChange:function(e){this.nowPage=e,this.getUserList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUserList()},getUserList:function(){var e=this,t={page:this.nowPage,limit:this.limit};this.form.userId&&(t.user_id=this.form.userId),this.form.nickName&&(t.nickname=this.form.nickName),this.form.mobile&&(t.mobile=this.form.mobile),Object(a._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},initPage:function(){this.multipleSelection=null,this.form={userId:"",nickName:"",mobile:""},this.getUserList()}},watch:{"show.show":function(e){e&&this.initPage()}}},c={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{visible:e.show.show,width:"700px",center:"",title:"用户列表"},on:{"update:visible":function(t){e.$set(e.show,"show",t)}}},[s("el-form",{attrs:{"label-width":"40px",inline:""}},[s("el-form-item",{attrs:{label:"ID"}},[s("el-input",{model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId",t)},expression:"form.userId"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.form.nickName,callback:function(t){e.$set(e.form,"nickName",t)},expression:"form.nickName"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"电话"}},[s("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),s("el-form-item",[s("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUserList}},[e._v("搜索")])],1)],1),e._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList,"highlight-current-row":""},on:{"current-change":e.handleCurrentChange}},[s("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("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(" "),s("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),s("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.show.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var d=s("VU/8")(u,c,!1,function(e){s("fjV/")},"data-v-9d6936ca",null).exports,m={name:"index",components:{page:n.a,newIntegral:o,userListPage:d},data:function(){var e=[];for(var t in i.i)e.push({id:t,value:i.i[t]});var s=[];for(var a in i.h)s.push({id:a,value:i.h[a]});return{list:[],total:0,newIntegral:{show:!1,user_id:"",is_add:"",value:"",desc:""},is_addOption:e,sourceOption:s,limit:10,userListShow:{show:!1},nowPage:1,form:{is_add:"-1",source:"",user_id:"",mobile:"",nickname:""}}},mounted:function(){this.initPage()},filters:{INTEGRALTYPE:function(e){return i.i[e]},INTEGRALFUN:function(e){return i.h[e]}},methods:{subAdd:function(){var e=this,t={user_id:this.newIntegral.user_id,is_add:this.newIntegral.is_add,value:this.newIntegral.value,desc:this.newIntegral.desc};Object(a.v)(t).then(function(t){e.getList(),e.newIntegral.show=!1})},showUserList:function(){this.userListShow.show=!0},addUser:function(e){this.userListShow.show=!1,this.newIntegral.user_id=e},changeUserList:function(){},addIntegral:function(){this.newIntegral={show:!0,user_id:"",is_add:"",value:"",desc:""}},initPage:function(){this.form={is_add:"-1",source:"",user_id:"",mobile:"",nickname:""},this.getList()},onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};""!==this.form.is_add&&"-1"!==this.form.is_add&&(t.is_add=this.form.is_add),""!==this.form.source&&(t.source=this.form.source),""!==this.form.user_id&&(t.user_id=this.form.user_id),""!==this.form.mobile&&(t.mobile=this.form.mobile),""!==this.form.nickname&&(t.nickname=this.form.nickname),Object(a._38)(t).then(function(t){e.list=t.list,e.total=t.total})}}},f={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"integral-page"},[s("el-form",{ref:"searchFrom",staticStyle:{"padding-top":"20px",background:"white"},attrs:{model:e.form,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{model:{value:e.form.nickname,callback:function(t){e.$set(e.form,"nickname",t)},expression:"form.nickname"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"用户ID"}},[s("el-input",{model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"手机号"}},[s("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"获/抵方式"}},[s("el-select",{attrs:{clearable:""},on:{change:e.getList},model:{value:e.form.source,callback:function(t){e.$set(e.form,"source",t)},expression:"form.source"}},e._l(e.sourceOption,function(e,t){return s("el-option",{key:t,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")])],1)],1),e._v(" "),e.$store.state.readonly?e._e():s("div",{staticClass:"new-block"},[s("el-button",{attrs:{type:"success",plain:""},on:{click:e.addIntegral}},[e._v("变更用户积分")])],1),e._v(" "),s("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getList},model:{value:e.form.is_add,callback:function(t){e.$set(e.form,"is_add",t)},expression:"form.is_add"}},[s("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),s("el-tab-pane",{attrs:{label:"添加积分",name:"1"}}),e._v(" "),s("el-tab-pane",{attrs:{label:"减少积分",name:"0"}})],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[s("el-table-column",{attrs:{width:"220",className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")"),s("br"),e._v("手机:"+e._s(t.row.mobile)+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("INTEGRALFUN")(t.row.source))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"desc",label:"积分变更描述"}}),e._v(" "),s("el-table-column",{attrs:{label:"变更积分值"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.is_add?s("span",{staticStyle:{color:"green"}},[e._v("+"+e._s(t.row.value))]):e._e(),e._v(" "),0===t.row.is_add?s("span",{staticStyle:{color:"red"}},[e._v("-"+e._s(t.row.value))]):e._e()]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"last_value",label:"变更后积分值"}}),e._v(" "),s("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}})],1),e._v(" "),s("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),s("new-integral",{attrs:{newIntegral:e.newIntegral},on:{subAdd:e.subAdd,showUserList:e.showUserList}}),e._v(" "),s("user-list-page",{attrs:{show:e.userListShow},on:{addUser:e.addUser}})],1)},staticRenderFns:[]};var h=s("VU/8")(m,f,!1,function(e){s("WWzH"),s("4v2I")},"data-v-0eb365d4",null);t.default=h.exports},WWzH:function(e,t){},"fjV/":function(e,t){}});
\ No newline at end of file
webpackJsonp([16],{OX9A:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i("CCn6"),s=i("+TkF"),n={props:["dialogObj"],data:function(){return{form:{teacher_id:"",max_join_num:"",class_name:""},teacherList:[],exitTeacherList:[],goodsList:[],periods:{}}},methods:{findDifferentArray:function(t,e){var i=[];return t.forEach(function(t){-1===e.findIndex(function(e){return e.teacher_id===t.id})&&i.push(t)}),i},getTeacher:function(){var t=this;Object(o._65)({limit:100}).then(function(e){t.teacherList=e.list})},getTeacherByPeriods:function(){var t=this;Object(o._65)().then(function(e){t.teacherList=e.list})},initPage:function(){var t=this;switch(this.periods=this.dialogObj.periods,this.dialogObj.type){case 0:this.dialogObj.periodsId||this.getPeriodList(),this.form={teacher_id:"",max_join_num:""},this.getTeacher();break;case 1:Object(o._25)(this.dialogObj.id).then(function(e){t.form={teacher_id:parseInt(e.teacher_id),max_join_num:e.max_join_num,class_name:e.class_name},t.getTeacher()})}},getPeriodList:function(){var t=this;Object(o._37)().then(function(e){e.list.forEach(function(t){t.name="["+s.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name,t.children=[]}),t.goodsList=e.list,t.periods||Object(o._48)({goods_id:t.goodsList[0].id}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList[0].children=e.list,t.periods=e.list[0]})})},onSave:function(){var t=this;switch(this.form.max_join_num=String(this.form.max_join_num),this.form.teacher_id=String(this.form.teacher_id),this.dialogObj.type){case 0:var e=this.dialogObj.periodsId?this.dialogObj.periodsId:this.periods.id;Object(o.f)(e,this.form).then(function(e){t.$message({type:"success",message:"添加成功!"}),t.$emit("reflash",t.periods),t.dialogObj.show=!1});break;case 1:Object(o.Y)(this.dialogObj.id,this.form).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash",t.periods),t.dialogObj.show=!1})}},handleItemChange:function(t){var e=this;Object(o._48)({goods_id:t[0]}).then(function(i){i.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=i.list})},changePeriods:function(t){if(t.length>1){var e=this.goodsList.find(function(e){return e.id===t[0]});this.periods=e.children.find(function(e){return e.id===t[1]}),this.getTeacherByPeriods()}},selectName:function(t,e){var i=t.filter(function(t,i){return t.id==e});this.form.class_name=i[0].name+"一班"}},watch:{"dialogObj.show":function(t){t&&this.initPage()}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[i("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[this.dialogObj.periodsId?t._e():i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:t.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":t.handleItemChange,change:t.changePeriods}})],1),t._v(" "),i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:function(e){t.selectName(t.teacherList,t.form.teacher_id)}},model:{value:t.form.teacher_id,callback:function(e){t.$set(t.form,"teacher_id",e)},expression:"form.teacher_id"}},t._l(t.teacherList,function(t,e){return i("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),i("el-form-item",{attrs:{label:"班级名称"}},[i("el-input",{staticStyle:{width:"220px"},model:{value:t.form.class_name,callback:function(e){t.$set(t.form,"class_name",e)},expression:"form.class_name"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"最大学员"}},[i("el-input-number",{model:{value:t.form.max_join_num,callback:function(e){t.$set(t.form,"max_join_num",e)},expression:"form.max_join_num"}})],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var r=i("VU/8")(n,a,!1,function(t){i("tFn2")},"data-v-c007d8e2",null).exports,l=i("0qGg"),c=i("kmJW"),d={data:function(){return{nowPage:1,total:0,limit:10,periodsId:null,goods_id:null,goodsList:[],teacher_id:"",classList:[],title:"",countObj:"",teacherList:[],userObj:{classId:"",title:"",show:!1,goods_id:null},dialogObj:{show:!1,title:"添加班级",periodsId:"",type:0,id:0},selectedGoods:[]}},components:{UserList:l.a,classDialog:r,page:c.a},filters:{classTypeFilter:function(t){var e=parseInt(t);return 1===e?"带班班级":2===e?"观摩班级":""},percent:function(t){return(100*t).toFixed(2)+"%"}},mounted:function(){this.initPage()},methods:{changeRow:function(t,e){e.indexOf(t)>-1&&Object(o._27)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},initQuery:function(){var t=this,e=this.$route.query;e&&e.goods_id&&e.periods_id?(this.goods_id=e.goods_id,this.selectedGoods=[parseInt(e.goods_id),parseInt(e.periods_id)],Object(o._48)({goods_id:this.selectedGoods[0]}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList.find(function(e){return e.id===t.selectedGoods[0]}).children=e.list;var i=t.goodsList.find(function(e){return e.id===t.selectedGoods[0]});t.periods=i.children.find(function(e){return e.id===t.selectedGoods[1]}),t.teacher_id="",t.getClassList()})):Object(o._32)().then(function(e){e&&(t.goods_id=e.goods_id,t.selectedGoods=[parseInt(e.goods_id),parseInt(e.id)],Object(o._48)({goods_id:t.selectedGoods[0]}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList.find(function(e){return e.id===t.selectedGoods[0]}).children=e.list;var i=t.goodsList.find(function(e){return e.id===t.selectedGoods[0]});t.periods=i.children.find(function(e){return e.id===t.selectedGoods[1]}),t.teacher_id="",t.getClassList()}))})},initPage:function(){var t=this;Object(o._37)({page:1,limit:100,goods_type:"1,2"}).then(function(e){e.list.forEach(function(t){t.name="["+s.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name,t.children=[]}),t.goodsList=e.list,t.initQuery()})},showUser:function(t){this.userObj={classId:t.id,periods_id:t.periods_id,show:!0,goods_id:this.goods_id,title:t.teacher_name+"班级用户列表",teacherId:t.teacher_id,class_name:t.class_name}},getTeacher:function(){var t=this;this.periods&&Object(o._50)(this.periods.id).then(function(e){var i={};e=e.reduce(function(t,e){return!i[e.teacher_id]&&(i[e.teacher_id]=t.push(e)),t},[]),t.teacherList=e})},changePeriods:function(t){if(t.length>1){this.goods_id=t[0];var e=this.goodsList.find(function(e){return e.id===t[0]});this.periods=e.children.find(function(e){return e.id===t[1]}),this.teacher_id="",this.getTeacher(),this.getClassList()}},onPageChange:function(t){this.nowPage=t,this.getClassList()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getClassList()},onReflash:function(t){this.periods=t,this.selectedGoods=[t.goods_id,t.id],this.getClassList()},getClassList:function(){var t=this;if(this.periods){this.getTeacher();var e={limit:this.limit,page:this.nowPage};this.teacher_id&&(e.teacher_id=this.teacher_id),Object(o._26)(this.periods.id,e).then(function(e){e.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.title=e.periods,t.title.count_join_num=e.count.count_join_num?e.count.count_join_num:"暂无",t.title.count_max_join_num=e.count.count_max_join_num?e.count.count_max_join_num:"暂无",t.title.count_teacher_num=e.count.count_teacher_num?e.count.count_teacher_num:"暂无",t.countObj=e.count?e.count:"",t.classList=e.list,t.total=e.total})}},handleItemChange:function(t){var e=this;Object(o._48)({goods_id:t[0]}).then(function(i){i.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=i.list})},delClass:function(t){var e=this;this.$confirm("此操作将删除该班级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.F)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getClassList()})})},onAdd:function(){this.dialogObj={show:!0,title:"添加班级",type:0,teacherList:this.teacherList?this.teacherList:[]},this.periods&&(this.dialogObj.periods=this.periods,this.dialogObj.periodsId=this.periods.id)},editClass:function(t){this.dialogObj={show:!0,title:"编辑班级",type:1,id:t.id,teacherList:this.teacherList?this.teacherList:[]},this.periods&&(this.dialogObj.periods=this.periods,this.dialogObj.periodsId=this.periods.id)}}},u={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"class"},[i("div",{staticClass:"form-block"},[i("el-form",{attrs:{"label-width":"90px",inline:""}},[i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:t.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":t.handleItemChange,change:t.changePeriods},model:{value:t.selectedGoods,callback:function(e){t.selectedGoods=e},expression:"selectedGoods"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getClassList},model:{value:t.teacher_id,callback:function(e){t.teacher_id=e},expression:"teacher_id"}},t._l(t.teacherList,function(t,e){return i("el-option",{key:e,attrs:{label:t.teacher_name,value:t.teacher_id}})}))],1),t._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{attrs:{type:"primary"},on:{click:t.getClassList}},[t._v("\n 搜索\n ")])],1),t._v(" "),i("el-form-item",{staticStyle:{float:"right"}},[t.$store.state.readonly?t._e():i("el-button",{attrs:{type:"success"},on:{click:t.onAdd}},[t._v("+添加班级")])],1)],1)],1),t._v(" "),t.title&&t.title.title?i("div",{staticClass:"intro"},[i("el-table",{staticStyle:{display:"block",margin:"20px auto",background:"transparent"},attrs:{border:"",size:"mini",data:[t.title]}},[i("el-table-column",{attrs:{label:"期数名称",prop:"title"}}),t._v(" "),i("el-table-column",{attrs:{label:"可看课包数",prop:"watch_num"}}),t._v(" "),i("el-table-column",{attrs:{label:"已看课包数",prop:"has_watch_num"}}),t._v(" "),i("el-table-column",{attrs:{label:"开始时间",prop:"start_at"}}),t._v(" "),i("el-table-column",{attrs:{label:"老师数量",prop:"count_teacher_num"}}),t._v(" "),i("el-table-column",{attrs:{label:"预计学员总数",prop:"count_max_join_num"}}),t._v(" "),i("el-table-column",{attrs:{label:"学员总数",prop:"count_join_num"}}),t._v(" "),i("el-table-column",{attrs:{label:"结束时间",prop:"over_at"}})],1)],1):t._e(),t._v(" "),t.title&&t.title.title?t._e():i("div",[i("el-form",{attrs:{"label-width":"300px",inline:""}},[i("el-form-item",{attrs:{label:"暂无期数信息,请先选择期数"}})],1)],1),t._v(" "),i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.classList},on:{"expand-change":t.changeRow}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[i("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"班级名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.class_name)+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"teacher_name",label:"班主任"}}),t._v(" "),i("el-table-column",{attrs:{label:"班级类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("classTypeFilter")(e.row.type))+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"max_join_num",label:"最大人数"}}),t._v(" "),i("el-table-column",{attrs:{prop:"join_num",label:"现有人数"}}),t._v(" "),i("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){t.showUser(e.row)}}},[t._v("班级成员")]),t._v(" "),t.$store.state.readonly?t._e():i("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(i){t.editClass(e.row)}}},[t._v("编辑")]),t._v(" "),t.$store.state.deletePermission&&!t.$store.state.readonly?i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){t.delClass(e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),i("class-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.onReflash}}),t._v(" "),i("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getClassList}})],1)},staticRenderFns:[]};var _=i("VU/8")(d,u,!1,function(t){i("znW6"),i("oGj7")},"data-v-c60b8a48",null);e.default=_.exports},oGj7:function(t,e){},tFn2:function(t,e){},znW6:function(t,e){}});
\ No newline at end of file
webpackJsonp([17],{Y0Vi:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("CCn6"),l=a("+TkF"),i=a("kmJW"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",statusOption:[{label:"正常",value:0},{label:"禁用",value:1}],typeOption:[{label:"老师",value:0},{label:"新星妈妈",value:1},{label:"推广人",value:2},{label:"市场",value:3}],loading:!0,type:0,title:"",form:{name:"",type:0,squad:"",qr:"",alias:"",status:0,media_id:""},rules:{name:[{required:!0,message:"请输入名称",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},teacherDetail:{},imageList:[],uploadShow:!0}},methods:{sub:function(){var e=this;this.imageList.length>0&&(this.form.qr=this.imageList[0].url);var t={name:this.form.name,type:this.form.type,qr:this.form.qr,squad:this.form.squad,alias:this.form.alias,status:this.form.status,media_id:this.form.media_id};switch(this.dialogObj.type){case 2:this.$refs.form.validate(function(a){a&&Object(s._7)(e.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})});break;case 0:this.$refs.form.validate(function(a){a&&Object(s.p)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})}},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._109)({file:e.file,type:"all"}).then(function(e){t.form.media_id=e.wechat_info?e.wechat_info.media_id:"",t.imageList=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url}],t.uploadShow=!1,t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增教师",this.show=this.dialogObj.show,this.type=0,this.form.name="",this.form.alias="",this.form.qr="",this.form.squad="",this.form.type=0,this.form.status=0,this.imageList=[],this.loading=!1,this.uploadShow=!0,this.form.media_id="";break;case 1:this.title="教师详情",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(s._64)(this.id).then(function(t){e.teacherDetail=t,e.loading=!1});break;case 2:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2,Object(s._64)(this.id).then(function(t){e.form.name=t.name,e.form.squad=t.squad,e.form.alias=t.alias,e.form.qr=t.qr,e.form.type=t.type,e.form.status=t.status,e.form.media_id=t.media_id?t.media_id:"",e.imageList=[{name:t.qr,url:t.qr}],e.uploadShow=!t.qr,e.loading=!1})}}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[1===e.type?a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("ID")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.teacherDetail.id)+"\n ")]),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("创建时间")])]),e._v(" "),a("el-col",{attrs:{span:8}},[e._v(e._s(e.teacherDetail.created_at))])],1):e._e(),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("昵称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.name))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("微信号")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.alias))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-input",{model:{value:e.form.alias,callback:function(t){e.$set(e.form,"alias",t)},expression:"form.alias"}})],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("状态")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.status))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.status,callback:function(t){e.$set(e.form,"status",t)},expression:"form.status"}},e._l(e.statusOption,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e()],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("类型")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.type))]):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},e._l(e.typeOption,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1):e._e()],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("二维码")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("img",{staticClass:"qr-img",attrs:{src:e.teacherDetail.qr}}):e._e(),e._v(" "),1!==e.type?a("el-form-item",[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1):e._e()],1),e._v(" "),1===e.type?[a("el-col",{attrs:{span:4}},[a("label",[e._v("邀请码")])]),e._v(" "),a("el-col",{attrs:{span:8}},[1===e.type?a("span",[e._v(e._s(e.teacherDetail.invite_code))]):e._e()])]:e._e(),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("分组")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.squad,callback:function(t){e.$set(e.form,"squad",t)},expression:"form.squad"}},e._l(10,function(e){return a("el-option",{key:e,attrs:{label:"T"+e,value:e}})}))],1)],2)],1),e._v(" "),1!==e.type?a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("lSHI"),a("ljmI")},"data-v-92bfd8d6",null).exports,c={name:"index",data:function(){return{searchFrom:{name:"",alias:"",squad:"",type:""},userList:[],total:0,nowPage:1,limit:10,dialogObj:{type:0,show:!1,id:""},dialogDetailObj:{show:!1,title:"班级列表",id:""},teacherTypeOption:[{id:0,label:"老师"},{id:1,label:"新星妈妈"},{id:2,label:"推广人"},{id:3,label:"市场"}]}},components:{page:i.a,dialogCom:n},filters:{teacherType:function(e){return l.u[e]}},mounted:function(){var e=localStorage.getItem("phoneNum");e?(e=JSON.parse(e),this.$router.push("/teacher/"+e.id)):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={limit:this.limit,page:this.nowPage};(this.searchFrom.type||0===this.searchFrom.type)&&(t.type=this.searchFrom.type),this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.alias&&(t.alias=this.searchFrom.alias),this.searchFrom.squad&&(t.squad=this.searchFrom.squad),Object(s._65)(t).then(function(t){e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.show=!0},add:function(){this.dialogObj.type=0,this.dialogObj.show=!0},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=1,this.dialogObj.show=!0},delTeacher:function(e){var t=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.O)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e},classDetail:function(e){this.dialogDetailObj={show:!0,title:e.name+"班级详情",id:e.id}},goToTeacherDetail:function(e){this.$router.push("/teacher/"+e.id)}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"user"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{model:{value:e.searchFrom.alias,callback:function(t){e.$set(e.searchFrom,"alias",t)},expression:"searchFrom.alias"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"分组"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getUser},model:{value:e.searchFrom.squad,callback:function(t){e.$set(e.searchFrom,"squad",t)},expression:"searchFrom.squad"}},e._l(10,function(e){return a("el-option",{key:e,attrs:{label:"T"+e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"教师类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getUser},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},e._l(e.teacherTypeOption,function(e){return a("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})}))],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1),e._v(" "),e.$store.state.readonly?e._e():a("el-form-item",[a("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增教师")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"alias",label:"微信号"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.status?"正常":"禁用")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"二维码"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("a",{attrs:{href:e.row.qr}},[a("img",{staticClass:"shortcut",attrs:{src:e.row.qr}})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分组"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n T"+e._s(t.row.squad)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("teacherType")(t.row.type))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{width:"280",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){e.goToTeacherDetail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),e.$store.state.readonly?e._e():a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delTeacher(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}})],1)},staticRenderFns:[]};var h=a("VU/8")(c,u,!1,function(e){a("gyzH")},"data-v-b2302ac8",null);t.default=h.exports},gyzH:function(e,t){},lSHI:function(e,t){},ljmI:function(e,t){}});
\ No newline at end of file
webpackJsonp([18],{"65NY":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),n=i("kmJW"),a=i("C+jy"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{editIndex:-1,title:"",show:!1,showEmotion:!1,id:"",loading:!0,showType:!1,showTextContent:!1,total:0,nowPage:1,limit:5,type:"text",form:{key:"keywords_reply",value:"",desc:""},teacher_id:"",start_at:"",textContent:"",mediaList:[],showMedia:!1,teacherList:[],content:"",imageContent:{url:"",media_id:""},linkContent:{title:"",description:"",url:"",thumb_url:""},voiceContent:"",videoContent:"",newsContent:"",pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},imageList:[],imageLinkList:[],uploadShow:!0,uploadLinkShow:!0}},components:{page:n.a,emotion:a.a},methods:{getTeacher:function(){var t=this;Object(s._65)({page:1,limit:1e3}).then(function(e){t.teacherList=e.list})},save:function(){var t=this,e={key:this.form.key,value:this.form.value,desc:this.form.desc};this.dialogObj.id?this.$refs.form.validate(function(i){i&&Object(s._99)(t.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.show=!1})}):this.$refs.form.validate(function(i){i&&Object(s._85)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1})})},addContent:function(t,e,i,s){var n=this.form,a=n.desc?JSON.parse(n.desc):[],o={type:t};e&&(o.content=e),i&&(o.media_id=i),s&&(o.variable=s),this.editIndex>-1?a.splice(this.editIndex,1,o):a.push(o),n.desc=JSON.stringify(a),this.form=n,this.showType=!1},addLinkContent:function(t,e,i,s,n){var a=this.form,o=a.desc?JSON.parse(a.desc):[],l={type:t,title:e,description:i,url:s,thumb_url:n};this.editIndex>-1?o.splice(this.editIndex,1,l):o.push(l),a.desc=JSON.stringify(o),this.form=a,this.showType=!1},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.dialogObj.key&&(this.form.key=this.dialogObj.key),this.loading=!1,this.showType=!1},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getMediaList(this.type)},onChangeTab:function(t){this.type=t},onAddContent:function(){this.editIndex=-1,this.title="添加回复",this.content="",this.voiceContent="",this.videoContent="",this.type="text",this.imageContent={url:"",media_id:"",variable:""},this.linkContent={title:"",description:"",url:"",thumb_url:""},this.imageList=[],this.imageLinkList=[],this.teacher_id="",this.start_at="",this.showType=!0,this.uploadShow=!0,this.uploadLinkShow=!0},onEditText:function(t,e){this.title="编辑回复",this.type=t.type,this.editIndex=e,"text"===this.type?this.content=t.content:"link"===this.type||"news-item"===this.type?(this.linkContent={url:t.url,title:t.title,description:t.description,thumb_url:t.thumb_url},this.imageLinkList=[{name:"mini",url:t.thumb_url}],this.uploadLinkShow=!1):(t.content&&(this.imageContent={url:t.content,media_id:t.media_id}),t.variable&&(this.imageContent={variable:t.variable}),"image"===this.type&&"mini_keywords_reply"===this.form.key&&(this.imageList=[{name:"mini",url:t.content}],this.uploadShow=!1)),this.showType=!0},close:function(){this.content="",this.imageContent={url:"",media_id:""},this.teacher_id="",this.start_at="",this.linkContent={url:"",title:"",description:"",thumb_url:""},this.showType=!1},confirm:function(){if("text"===this.type)this.content?this.addContent("text",this.content,"",""):this.$message({showClose:!0,message:"请输入文本内容"});else if("image"===this.type)if(this.imageContent.url||this.imageContent.variable){var t=this.imageContent.variable?this.imageContent.variable:"",e=this.imageContent.url?this.imageContent.url:"",i=this.imageContent.media_id?this.imageContent.media_id:"";this.addContent(this.type,e,i,t)}else this.$message({showClose:!0,message:"请选择图片"});else if("link"===this.type||"news-item"===this.type){if(!this.linkContent.title)return void this.$message({showClose:!0,message:"请输入标题"});if(!this.linkContent.description)return void this.$message({showClose:!0,message:"请输入描述"});if(!this.linkContent.url)return void this.$message({showClose:!0,message:"请输入跳转链接"});if(!this.linkContent.thumb_url)return void this.$message({showClose:!0,message:"请上传缩略图"});this.addLinkContent(this.type,this.linkContent.title,this.linkContent.description,this.linkContent.url,this.linkContent.thumb_url)}else if("news"===this.type)if(this.newsContent){var s=this.newsContent.content?this.newsContent.content:"",n=this.newsContent.media_id?this.newsContent.media_id:"";this.addContent(this.type,s,n,"")}else this.$message({showClose:!0,message:"请选择图文"});else if("video"===this.type)if(this.videoContent){var a=this.videoContent.info?this.videoContent.info:"",o=this.videoContent.media_id?this.videoContent.media_id:"";this.addContent(this.type,a,o,"")}else this.$message({showClose:!0,message:"请选择视频"})},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,this.showMedia=!0,Object(s._43)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.total=i.total_count,0===e.total&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},editContent:function(){var t=this;this.$prompt("请输入文本","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(e){var i=e.value;t.addContent("text",i,"","")})},onDelText:function(t,e){var i=this,s=this.form;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t=JSON.parse(s.desc);t.splice(e,1),s.desc=JSON.stringify(t),i.$message({type:"success",message:"删除成功!"})}).catch(function(){i.$message({type:"info",message:"已取消删除"})}),this.form=s},onChooseMedia:function(t){"image"===this.type?this.imageContent=t:"video"===this.type?this.videoContent=t:"voice"===this.type?this.voiceContent=t:"news"===this.type&&(this.newsContent=t),this.showMedia=!1},addTeacherQrcode:function(){this.showMedia=!1,this.imageContent={variable:"my_teacher"}},handleEmotion:function(t){this.content+=t},addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"},handleAvatarSuccess:function(t){"link"===this.type||"news-item"===this.type?this.imageLinkList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]:this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]},beforeAvatarUpload:function(){"link"===this.type||"news-item"===this.type?this.uploadLinkShow=!1:this.uploadShow=!1},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),"link"===this.type||"news-item"===this.type?Object(s._109)({file:t.file,type:"local"}).then(function(t){e.imageLinkList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.loading=!1,e.$message({type:"success",message:"上传成功!"}),e.linkContent.thumb_url="https://cdn.singsingenglish.com/"+t.url}).catch(function(){e.loading=!1}):Object(s._109)({file:t.file,type:"mini"}).then(function(i){e.uploadFileToQiniu(t,i),e.loading=!1}).catch(function(){e.loading=!1})},uploadFileToQiniu:function(t,e){var i=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),Object(s._109)({file:t.file,type:"local"}).then(function(t){i.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],i.loading=!1,i.$message({type:"success",message:"上传成功!"}),i.imageContent={url:"https://cdn.singsingenglish.com/"+t.url,media_id:e.media_id,name:t.url}}).catch(function(){i.loading=!1})},handleRemove:function(){"link"===this.type||"news-item"===this.type?this.uploadLinkShow=!0:this.uploadShow=!0}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog(),this.getTeacher()},deep:!0},show:function(t){this.$emit("changeShow",t)}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.show?i("div",[i("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:t.show,width:"50%"},on:{"update:visible":function(e){t.show=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[t._v("关键词")])]),t._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"value"}},[i("el-input",{model:{value:t.form.value,callback:function(e){t.$set(t.form,"value",e)},expression:"form.value"}})],1)],1)],1),t._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[t._v("回复内容")])]),t._v(" "),i("el-col",{attrs:{span:20}},[t.form.desc?t._l(JSON.parse(t.form.desc),function(e,s){return i("div",{staticClass:"msg-item"},["text"===e.type?i("span",{staticClass:"msg-text"},[t._v(t._s(e.content))]):"image"===e.type&&e.content?i("img",{attrs:{src:e.content}}):"image"===e.type&&e.variable?i("span",{staticClass:"msg-text"},[t._v("我的老师二维码")]):"video"===e.type?i("a",{attrs:{href:e.content.down_url,target:"_blank"}},[t._v(t._s(e.content.title))]):"news"===e.type&&e.content&&e.content.news_item?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,n){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===n?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1):"link"===e.type?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("a",{staticStyle:{position:"relative",color:"#333","text-decoration":"none"},attrs:{href:e.url,target:"_blank"}},[i("div",{staticClass:"ellip",staticStyle:{margin:"3px","line-height":"2"}},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"f-bt",staticStyle:{position:"relative"}},[i("div",{staticStyle:{color:"#666","margin-left":"3px","word-wrap":"break-word","word-break":"break-all",width:"60%"}},[t._v(t._s(e.description))]),t._v(" "),i("img",{staticStyle:{width:"35%",height:"auto"},attrs:{src:e.thumb_url}})])])])],1):"news-item"===e.type?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("a",{staticStyle:{position:"relative",color:"#333","text-decoration":"none"},attrs:{href:e.url,target:"_blank"}},[i("img",{staticStyle:{width:"100%",height:"auto"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"ellip",staticStyle:{margin:"0","line-height":"2"}},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticStyle:{color:"#666","margin-left":"0","word-wrap":"break-word","word-break":"break-all"}},[t._v(t._s(e.description))])])])],1):t._e(),t._v(" "),i("i",{staticClass:"el-icon-edit",on:{click:function(i){t.onEditText(e,s)}}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(i){t.onDelText(e,s)}}})])}):t._e(),t._v(" "),i("div",{staticClass:"msg_sender_wrp",staticStyle:{width:"100%"}},[i("div",[i("i",{staticClass:"el-icon-circle-plus-outline",on:{click:t.onAddContent}})]),t._v(" "),i("el-dialog",{attrs:{width:"50%",title:t.title,visible:t.showType,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"append-to-body":""},on:{"update:visible":function(e){t.showType=e}}},[i("div",[t.showType?i("el-tabs",{attrs:{type:"card"},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-tab-pane",{attrs:{label:"文字",name:"text"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"图片",name:"image"}}),t._v(" "),"mini_keywords_reply"!==t.form.key?i("el-tab-pane",{attrs:{label:"图文消息",name:"news"}}):t._e(),t._v(" "),"mini_keywords_reply"!==t.form.key?i("el-tab-pane",{attrs:{label:"图文链接",name:"news-item"}}):t._e(),t._v(" "),"mini_keywords_reply"!==t.form.key?i("el-tab-pane",{attrs:{label:"语音",name:"voice"}}):t._e(),t._v(" "),"mini_keywords_reply"!==t.form.key?i("el-tab-pane",{attrs:{label:"视频",name:"video"}}):t._e(),t._v(" "),i("el-tab-pane",{attrs:{label:"链接",name:"link"}})],1):t._e(),t._v(" "),t.showType?i("div",{staticClass:"more-info clear-both"},["text"===t.type?[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),t._v(" "),i("div",{staticStyle:{float:"left"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),"mini_keywords_reply"!==t.form.key?i("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]):t._e(),t._v(" "),"mini_keywords_reply"!==t.form.key?i("el-button",{staticStyle:{"margin-top":"10px"},attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")]):t._e()],1)]:t._e(),t._v(" "),"image"===t.type?[t.imageContent.url&&"mini_keywords_reply"!==t.form.key?i("div",{staticClass:"img"},[i("img",{attrs:{src:t.imageContent.url}}),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.imageContent={url:"",media_id:""}}}})]):t._e(),t._v(" "),t.imageContent.variable&&"mini_keywords_reply"!==t.form.key?i("div",{staticClass:"img my-teacher"},[i("div",[t._v("老师二维码")]),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.imageContent={url:"",media_id:"",variable:""}}}})]):t._e(),t._v(" "),"mini_keywords_reply"!==t.form.key?i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(e){t.getMediaList("image")}}},[t._v("+从素材库中选择")]),t._v(" "),i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:t.addTeacherQrcode}},[t._v("+添加老师二维码")])]):t._e(),t._v(" "),"mini_keywords_reply"===t.form.key?i("el-upload",{class:{disabled:!t.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})]):t._e(),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]:t._e(),t._v(" "),"video"===t.type?[t.videoContent&&t.videoContent.info&&t.videoContent.info.down_url?i("div",[i("a",{attrs:{href:t.videoContent.info.down_url,target:"_blank"}},[t._v(t._s(t.videoContent.info.title))]),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.videoContent=""}}})]):t._e(),t._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(e){t.getMediaList("video")}}},[t._v("+从素材库中选择")])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]:t._e(),t._v(" "),"voice"===t.type?[t.voiceContent&&t.voiceContent.info&&t.voiceContent.info.down_url?i("div",[i("a",{attrs:{href:t.voiceContent.info.down_url,target:"_blank"}},[t._v(t._s(t.voiceContent.info.title))]),t._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(e){t.voiceContent=""}}})]):t._e(),t._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(e){t.getMediaList("voice")}}},[t._v("+从素材库中选择")])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]:t._e(),t._v(" "),"news"===t.type?[t.newsContent&&t.newsContent.content&&t.newsContent.content.news_item?i("div",[i("div",{staticClass:"news-media",staticStyle:{display:"inline-block"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(t.newsContent.content.news_item,function(e,s){return i("div",{staticStyle:{position:"relative"}},[1===t.newsContent.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(e.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t.newsContent.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===s?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(e.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:e.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1),t._v(" "),i("i",{staticClass:"el-icon-delete",staticStyle:{display:"inline-block"},on:{click:function(e){t.newsContent=""}}})]):t._e(),t._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(e){t.getMediaList("news")}}},[t._v("+从素材库中选择")])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.content&&e.row.content.news_item?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"200px"}},t._l(e.row.content.news_item,function(s,n){return i("div",{staticStyle:{position:"relative"}},[1===e.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===n?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])})):t._e()]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]:t._e(),t._v(" "),"link"===t.type||"news-item"===t.type?[i("el-form-item",{attrs:{label:"标题"}},[i("el-input",{model:{value:t.linkContent.title,callback:function(e){t.$set(t.linkContent,"title",e)},expression:"linkContent.title"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{model:{value:t.linkContent.description,callback:function(e){t.$set(t.linkContent,"description",e)},expression:"linkContent.description"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"跳转链接"}},[i("el-input",{model:{value:t.linkContent.url,callback:function(e){t.$set(t.linkContent,"url",e)},expression:"linkContent.url"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"缩略图"}},[i("el-upload",{class:{disabled:!t.uploadLinkShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageLinkList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})])],1)]:t._e(),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary el-button--primary",on:{click:t.confirm}},[t._v("确定")])],1)],2):t._e()],1)])],1)],2)],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("保 存")])],1)],1)])],1):t._e()},staticRenderFns:[]};var r={name:"autoReply",data:function(){return{total:0,nowPage:1,limit:10,dialogObj:{value:"",desc:"",show:!1,id:""},activeName:"keywords_reply",list:[]}},components:{dialogCom:i("VU/8")(o,l,!1,function(t){i("zsvV"),i("Y8Ee")},"data-v-de23056a",null).exports,page:n.a},mounted:function(){this.getList()},filters:{type:function(t){return"text"===t?"文本":"voice"===t?"语音":"video"===t?"视频":"image"===t?"图片":"news"===t?"图文":"link"===t?"链接":"news-item"===t?"图文链接":t}},methods:{onPageChange:function(t){this.nowPage=t,this.getList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},emotion:function(t){var e=t.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this,e={key:this.activeName,limit:this.limit,page:this.nowPage};Object(s._30)(e).then(function(e){for(var i=0;i<e.list.length;i++)e.list[i].desc&&(e.list[i].desc=JSON.parse(e.list[i].desc));t.list=e.list,t.total=e.total})},add:function(){this.dialogObj.id="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.key=this.activeName,this.dialogObj.show=!0},edit:function(t){var e=this;Object(s._29)(t.id).then(function(t){e.dialogObj.id=t.id,e.dialogObj.value=t.value,e.dialogObj.desc=t.desc,e.dialogObj.key=e.activeName,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.P)(t.id).then(function(t){e.getList(),e.$message({type:"success",message:"删除成功!"})})})},handleClick:function(t){this.activeName=t.name,this.getList()}}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[t.$store.state.readonly?t._e():i("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1)],1),t._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"公众号关键词回复",name:"keywords_reply"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"小程序关键词回复",name:"mini_keywords_reply"}})],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"top"}},[i("el-form-item",{attrs:{label:"回复内容"}},t._l(e.row.desc,function(e,s){return i("div",[i("span",{staticStyle:{width:"120px",display:"inline-block","text-align":"right",margin:"10px 0"}},[t._v("\n 回复"+t._s(s+1)+"("+t._s(t._f("type")(e.type))+"):\n ")]),t._v(" "),e.content&&"text"===e.type?i("span",[i("span",{domProps:{innerHTML:t._s(e.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,t.emotion))}})]):t._e(),t._v(" "),e.content&&"image"===e.type?i("span",[i("img",{staticClass:"img",staticStyle:{"vertical-align":"text-top"},attrs:{src:e.content}})]):t._e(),t._v(" "),"image"===e.type&&e.variable?i("span",[t._v("\n 老师二维码")]):t._e(),t._v(" "),"video"===e.type?i("a",{attrs:{href:e.content.down_url,target:"_blank"}},[t._v(t._s(e.content.title))]):t._e(),t._v(" "),"news"===e.type&&e.content&&e.content.news_item?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"200px","vertical-align":"text-top"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},t._l(e.content.news_item,function(s,n){return i("div",{staticStyle:{position:"relative"}},[1===e.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===n?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))],1):t._e(),t._v(" "),"link"===e.type?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"200px","vertical-align":"text-top"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("a",{staticStyle:{position:"relative",color:"#333","text-decoration":"none"},attrs:{href:e.url,target:"_blank"}},[i("div",{staticClass:"ellip",staticStyle:{margin:"3px","line-height":"2"}},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"f-bt",staticStyle:{position:"relative","margin-left":"3px"}},[i("div",{staticStyle:{color:"#666",width:"63%","word-break":"break-all","word-wrap":"break-word","line-height":"1"}},[t._v(t._s(e.description))]),t._v(" "),i("img",{staticStyle:{width:"35%",height:"auto"},attrs:{src:e.thumb_url}})])])])],1):"news-item"===e.type?i("div",{staticClass:"news-media",staticStyle:{width:"200px",display:"inline-block","vertical-align":"text-top"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("a",{staticStyle:{position:"relative",color:"#333","text-decoration":"none"},attrs:{href:e.url,target:"_blank"}},[i("img",{staticStyle:{width:"100%",height:"auto"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"ellip",staticStyle:{margin:"3px","line-height":"2"}},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticStyle:{color:"#666",width:"63%","word-break":"break-all","word-wrap":"break-word","line-height":"1"}},[t._v(t._s(e.description))])])])],1):t._e()])}))],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"ID",prop:"id"}}),t._v(" "),i("el-table-column",{attrs:{label:"关键词",prop:"value"}}),t._v(" "),i("el-table-column",{attrs:{label:"回复内容"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.desc.length)+" 条回复\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(i){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(i){t.del(e.row)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1),t._v(" "),i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}}),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)},staticRenderFns:[]};var d=i("VU/8")(r,c,!1,function(t){i("H24+")},"data-v-77a00676",null);e.default=d.exports},"H24+":function(t,e){},Y8Ee:function(t,e){},zsvV:function(t,e){}});
\ No newline at end of file
webpackJsonp([19],{B31M:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("CCn6"),i=a("kmJW"),o={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,uploadShow:!0,type:0,title:"",form:{name:"",num:0,cover:""},imageList:[],rules:{},inputVisible:!1,inputValue:"",teacherDetail:{}}},methods:{handleClose:function(e){this.form.category_name.splice(this.form.category_name.indexOf(e),1)},showInput:function(){var e=this;this.inputVisible=!0,this.$nextTick(function(t){e.$refs.saveTagInput.$refs.input.focus()})},handleInputConfirm:function(){var e=this.inputValue;e&&this.form.category_name.push(e),this.inputVisible=!1,this.inputValue=""},sub:function(){var e=this;switch(this.dialogObj.type){case 0:this.$refs.form.validate(function(t){if(t){e.imageList.length>0&&(e.form.cover=e.imageList[0].name);var a=e.form;a.category_name=a.category_name.join(","),Object(n.n)(a).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}});break;case 1:this.$refs.form.validate(function(t){if(t){e.imageList.length>0&&(e.form.cover=e.imageList[0].name);var a=e.form;a.category_name=a.category_name.join(","),Object(n._6)(e.id,a).then(function(){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})}})}},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},beforeAvatarUpload:function(){this.uploadShow=!1},uploadFile:function(e){var t=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(n._109)({file:e.file,type:"local"}).then(function(e){t.imageList=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url}],t.loading=!1,t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.loading=!1})},handleRemove:function(){this.uploadShow=!0},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:this.title="新增单品",this.show=this.dialogObj.show,this.type=0,this.imageList=[],this.form={name:"",num:0,cover:"",category_name:[]},this.uploadShow=!0,this.loading=!1;break;case 1:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(n._57)(this.dialogObj.id).then(function(t){e.loading=!1,e.form={name:t.name,num:t.num,cover:t.cover,category_name:t.category_name?t.category_name.split(","):[]},e.form.cover&&""!==e.form.cover?(e.imageList=[{name:t.cover,url:"https://cdn.singsingenglish.com/"+t.cover}],e.uploadShow=!1):(e.imageList=[],e.uploadShow=!0)})}}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("单品名称")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"规则:主题名+单品名"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("label",[e._v("库存数量")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input-number",{model:{value:e.form.num,callback:function(t){e.$set(e.form,"num",t)},expression:"form.num"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("标签")])]),e._v(" "),a("el-col",{attrs:{span:20}},[a("el-form-item",[e._l(e.form.category_name,function(t,n){return a("el-tag",{key:n,attrs:{closable:"","disable-transitions":!1},on:{close:function(a){e.handleClose(t)}}},[e._v("\n "+e._s(t)+"\n ")])}),e._v(" "),e.inputVisible?a("el-input",{ref:"saveTagInput",staticClass:"input-new-tag",attrs:{size:"small"},on:{blur:e.handleInputConfirm},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleInputConfirm(t):null}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):a("el-button",{staticClass:"button-new-tag",attrs:{size:"small"},on:{click:e.showInput}},[e._v("+ 新增")])],2)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("封面图片")])]),e._v(" "),a("el-col",{attrs:{span:20}},[a("div",{staticClass:"upload-block"},[a("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1)])],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(o,s,!1,function(e){a("EQY0"),a("vgm/")},"data-v-6feb975c",null).exports,r={name:"index",components:{page:i.a,dialogCom:l},data:function(){return{total:0,nowPage:1,limit:10,searchFrom:{name:""},tableData:[],dialogObj:{type:0,show:!1,id:""}}},created:function(){this.initPage()},methods:{initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.category_name&&(t.category_name=this.searchFrom.category_name),Object(n._58)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onPageChange:function(e){this.nowPage=e,this.initPage()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.initPage()},changeShow:function(){},delthat:function(e){var t=this;this.$confirm("此操作将删除该单品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.M)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.initPage()})},onAdd:function(){this.dialogObj={type:0,show:!0}},edit:function(e){this.dialogObj={type:1,show:!0,id:e.id}}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"single"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px"}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"分类名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.category_name,callback:function(t){e.$set(e.searchFrom,"category_name",t)},expression:"searchFrom.category_name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{label:"单品名称"}},[a("el-input",{attrs:{placeholder:"名称",size:"small"},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:4}},[a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:"",size:"small"},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-col",{attrs:{span:4,offset:8}},[a("el-form-item",[e.$store.state.readonly?e._e():a("el-button",{attrs:{type:"success",plain:"",size:"small"},on:{click:e.onAdd}},[e._v("\n 添加单品\n ")])],1)],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,"default-sort":{prop:"num",order:"descending"}}},[a("el-table-column",{attrs:{prop:"id",label:"id"}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"category_name",label:"分类"}}),e._v(" "),a("el-table-column",{attrs:{prop:"num",sortable:"",label:"库存"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"200",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.delthat(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.initPage}})],1)},staticRenderFns:[]};var m=a("VU/8")(r,c,!1,function(e){a("JTBX")},"data-v-d3a26312",null);t.default=m.exports},EQY0:function(e,t){},JTBX:function(e,t){},"vgm/":function(e,t){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{E6Zo:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o("CCn6"),s=o("+TkF"),a={name:"entrance",props:["entranceObj"],data:function(){return{goodsList:[],periodsList:[],goods_id:null,activeName:"first",searchFrom:{key:"goods_receive_course",desc:"商品",value:""},searchFrom2:{key:"periods_receive_course",desc:"期数",value:""},selectedGoods:[],link1:"https://w.url.cn/s/A45jJYk",link2:"https://w.url.cn/s/AJi1QsS"}},mounted:function(){},filters:{filterGoods:function(e){return"["+s.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{initPage:function(){var e=this;Object(n._30)({key:this.searchFrom.key}).then(function(t){t.list&&t.list.length>0?e.searchFrom.value=t.list[0].value:e.searchFrom.value=""}),Object(n._30)({key:this.searchFrom2.key}).then(function(t){t.list&&t.list.length>0||(e.searchFrom2.value=""),e.searchFrom2.value=""})},getGoodsList:function(){var e=this;Object(n._37)({limit:200,page:1}).then(function(t){e.goodsList=t.list})},getUser:function(e){var t=this;""!=e.value?this.$confirm("此操作将设置系统指定配置为商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var o={value:e.value,desc:e.desc,key:e.key};Object(n._83)(o).then(function(e){t.$message({type:"success",message:"设置成功!"})})}):this.$message({type:"error",message:"请设置选择项!"})},changePeriods:function(e){e.length>1&&(this.searchFrom2.value=String(e[1]))},handleItemChange:function(e){var t=this;Object(n._48)({goods_id:e[0]}).then(function(o){o.list.forEach(function(e){e.name=e.title}),t.periodsList.find(function(t){return t.id===e[0]}).children=o.list})},getPeriodsList:function(){var e=this;Object(n._37)({page:1,limit:100,goods_type:"1,2"}).then(function(t){t.list.forEach(function(e){e.name="["+s.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.periodsList=t.list})},copyUrl:function(e){var t=e,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),console.log(o.value),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),o.remove()}},watch:{"entranceObj.show":function(e){e&&(this.initPage(),this.getGoodsList(),this.getPeriodsList())}}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:e.entranceObj.title,visible:e.entranceObj.show,center:"",width:"800px"},on:{"update:visible":function(t){e.$set(e.entranceObj,"show",t)}}},[o("el-tabs",{staticStyle:{"line-height":"1"},attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[o("el-tab-pane",{attrs:{label:"商品名称",name:"first"}},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"90px",inline:""}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.searchFrom.value,callback:function(t){e.$set(e.searchFrom,"value",t)},expression:"searchFrom.value"}},e._l(e.goodsList,function(t,n){return o("el-option",{key:n,attrs:{label:e._f("filterGoods")(t),value:String(t.id)}})}))],1),e._v(" "),o("el-form-item",[o("div",{staticClass:"search-btn-block"},[o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.getUser(e.searchFrom)}}},[e._v("确定")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.copyUrl(e.link1)}}},[e._v("复制链接")])],1)])],1)],1),e._v(" "),o("el-tab-pane",{attrs:{label:"期数名称",name:"second"}},[o("el-form",{attrs:{"label-width":"90px",inline:"",model:e.searchFrom2}},[o("el-form-item",{attrs:{label:"期数名称"}},[o("el-cascader",{attrs:{options:e.periodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods},model:{value:e.selectedGoods,callback:function(t){e.selectedGoods=t},expression:"selectedGoods"}})],1),e._v(" "),o("el-form-item",[o("div",{staticClass:"search-btn-block"},[o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.getUser(e.searchFrom2)}}},[e._v("确定")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.copyUrl(e.link2)}}},[e._v("复制链接")])],1)])],1)],1)],1)],1)},staticRenderFns:[]};var r={name:"notBuyClass",data:function(){return{nowPage:1,total:0,limit:10,configList:[],entranceObj:{title:"无需登录入口",show:!1},searchFrom:{user_id:"",goods_id:"",mobile:""},goodList:[]}},components:{entrance:o("VU/8")(a,i,!1,function(e){o("qN7I")},"data-v-7d1872ea",null).exports,page:o("kmJW").a},filters:{filterGoods:function(e){return"["+s.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},mounted:function(){this.getList(),this.getGoodsOption()},methods:{onPageChange:function(e){this.nowPage=e,this.getList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),Object(n._24)(t).then(function(t){e.total=t.total,e.configList=t.list})},getGoodsOption:function(){var e=this;Object(n._37)({page:1,limit:100}).then(function(t){e.goodList=t.list})},editComment:function(e,t){var o=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var s=t.value;o.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n._100)({desc:s},e).then(function(e){o.$message({type:"success",message:"编辑备注成功"}),o.getList()})})})},exportTable:function(){var e={};this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),Object(n._11)("/api/admin/user/receive/course/log/export",e)}}},l={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"not_buy"},[o("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[o("el-form-item",{attrs:{label:"用户ID"}},[o("el-input",{on:{change:e.getList},model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"用户昵称"}},[o("el-input",{on:{change:e.getList},model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号"}},[o("el-input",{on:{change:e.getList},model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,n){return o("el-option",{key:n,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),o("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1)],1),e._v(" "),o("div",{staticClass:"head clear-both"},[e.$store.state.readonly?e._e():o("el-button",{staticStyle:{float:"right","margin-bottom":"20px"},attrs:{plain:"",type:"success"},on:{click:function(t){e.entranceObj.show=!0}}},[e._v("无需登录入口")])],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.configList}},[o("el-table-column",{attrs:{label:"用户ID",sortable:"",prop:"scope.row.user_id",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v("\n "+e._s(t.row.nickname)+"(ID:"+e._s(t.row.user_id)+")\n\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"期数标题",prop:"periods_name"}}),e._v(" "),o("el-table-column",{attrs:{label:"商品名称",prop:"goods_name"}}),e._v(" "),o("el-table-column",{attrs:{label:"手机号",prop:"mobile"}}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),o("el-table-column",{attrs:{label:"备注",prop:"desc"}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.editComment(t.row.id,t.row.desc)}}},[e._v("编辑备注")])]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("entrance",{attrs:{entranceObj:e.entranceObj}})],1)},staticRenderFns:[]};var c=o("VU/8")(r,l,!1,function(e){o("j6JY"),o("Otq9")},"data-v-6d0b4fc8",null);t.default=c.exports},Otq9:function(e,t){},j6JY:function(e,t){},qN7I:function(e,t){}});
\ No newline at end of file
webpackJsonp([21],{"/x7v":function(e,t){},NbwN:function(e,t){},XjFf:function(e,t){},ayGs:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("CCn6"),r=o("+TkF"),n=o("kmJW"),s={props:["dialogObj"],data:function(){return{nowPage:1,total:0,goodList:[],currentRow:null}},components:{page:n.a},filters:{isOrNot:function(e){return r.n[e]},goodsType:function(e){return r.g[e]},lessonType:function(e){return r.o[e]},goodsStatus:function(e){return r.f[e]}},methods:{initPage:function(){var e=this;Object(a._37)().then(function(t){e.goodList=t.list,e.total=t.total})},handleCurrentChange:function(e){this.currentRow=e},onConfirm:function(){this.$emit("reflash",this.currentRow)}},mounted:function(){this.initPage()}},i={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.goodList,"row-key":"id","highlight-current-row":""},on:{"current-change":e.handleCurrentChange}},[o("el-table-column",{attrs:{prop:"id",label:"商品ID"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"商品类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsType")(t.row.goods_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"现价"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"课程类别"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.course_type))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"是否有实物"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isOrNot")(t.row.is_real))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("goodsStatus")(t.row.status))+"\n ")]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total}}),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var l=o("VU/8")(s,i,!1,function(e){o("XjFf")},"data-v-bf015d34",null).exports,c={props:["dialogObj"],data:function(){return{loading:!1,form:{is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",rest_week_day:[],title:"",goods_id:""},show:!1,viewTeacher:"",pickerOptions1:{disabledDate:function(e){return!(e.getTime()>Date.now())}},options:[{value:0,label:"周日"},{value:1,label:"周一"},{value:2,label:"周二"},{value:3,label:"周三"},{value:4,label:"周四"},{value:5,label:"周五"},{value:6,label:"周六"}],teacherOptions:[],teacher1Options:[],teacher2Options:[],goodList:[],itemOptions:[],rules:{title:[{required:!0,message:"请输入名称",trigger:"change"}],startNum:[{required:!0,message:"请输入开始主题",trigger:"change"}],start_at:[{required:!0,message:"请选择开始上课时间",trigger:"change"}],rest_week_day:[{required:!0,message:"请选择周几不上课",trigger:"change"}],teacher_ids:[{required:!0,message:"请选择老师ID",trigger:"change"}],goods_id:[{required:!0,message:"商品ID不能为空",trigger:"change"}],teacherList:[{required:!0,message:"带班老师不能为空",trigger:"change"}],viewTeacher:[{required:!0,message:"观摩老师不能为空",trigger:"change"}]},periodsList:[],selectedGoods:[]}},components:{goodDialog:l},watch:{"dialogObj.show":function(e){e&&(this.getTeachers(),this.getGoodsOption())},show:function(e){this.$emit("changeShow",e)}},filters:{isOrNot:function(e){return r.n[e]},goodsType:function(e){return r.g[e]},lessonType:function(e){return r.o[e]},goodsStatus:function(e){return r.f[e]},filterGoods:function(e){return"["+r.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{sub:function(){var e=this;this.$refs.form.validate(function(t){if(t){var o=e.form.goods_id,r={title:e.form.title,start_num:e.form.startNum,start_at:e.form.start_at,rest_week_day:e.form.rest_week_day?e.form.rest_week_day.join(","):""};r.is_add_teacher_to_class=e.form.is_add_teacher_to_class?1:0,e.form.id?Object(a._33)(e.form.id,r).then(function(t){e.$message({type:"success",message:"编辑成功!"}),e.$emit("reflash")}):(r.teacher_ids=e.form.teacherList.join(","),r.view_teacher_id=parseInt(e.form.viewTeacher),Object(a._12)(o,r).then(function(t){e.$message({type:"success",message:"添加成功!"}),e.$emit("reflash")})),e.show=!1}})},getTeachers:function(){var e=this;Object(a._65)({page:1,limit:100}).then(function(t){e.teacherOptions=t.list,e.teacher1Options=t.list,e.teacher2Options=t.list})},findDifferentArray:function(e,t){var o=[];return e.forEach(function(t){-1===e.findIndex(function(e){return t.id==e})&&o.push(t)}),o},onTeacher1Change:function(e){this.teacher2Options=e?this.findDifferentArray(this.teacherOptions,e):this.teacherOptions},onTeacher2Change:function(e){this.teacher1Options=e?this.findDifferentArray(this.teacherOptions,[e]):this.teacherOptions},onOptionChange:function(e){var t=this.goodList.findIndex(function(t){return t.id===e});t>-1&&this.getLessonDetail(this.goodList[t].course_id),delete this.form.startNum},getLessonDetail:function(e){var t=this;Object(a._41)(e,{}).then(function(e){t.itemOptions=e.detail[e.type]})},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100}).then(function(t){e.goodList=t.list,e.dialogObj.form.id?e.form=e.dialogObj.form:e.form={rest_week_day:[],is_add_teacher_to_class:!1,teacherList:[],viewTeacher:"",title:"",goods_id:""},e.dialogObj.form.course_id&&e.getLessonDetail(e.dialogObj.form.course_id),e.show=e.dialogObj.show})},changePeriods:function(e){e.length>1&&(this.form.title=String(e[1]))},handleItemChange:function(e){var t=this;Object(a._48)({goods_id:e[0]}).then(function(o){o.list.forEach(function(e){e.name=e.title}),t.periodsList.find(function(t){return t.id===e[0]}).children=o.list})}}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[o("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[o("el-row",[o("el-col",{attrs:{span:10}},[o("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[o("el-select",{attrs:{placeholder:"请选择",disabled:!!e.form.id},on:{change:e.onOptionChange},model:{value:e.form.goods_id,callback:function(t){e.$set(e.form,"goods_id",t)},expression:"form.goods_id"}},e._l(e.goodList,function(t,a){return o("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"期数名称",prop:"title"}},[o("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"开始主题",prop:"startNum"}},[o("el-select",{attrs:{clearable:"",placeholder:"请选择"},model:{value:e.form.startNum,callback:function(t){e.$set(e.form,"startNum",t)},expression:"form.startNum"}},e._l(e.itemOptions,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"开始上课时间",prop:"start_at"}},[o("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date","picker-options":e.pickerOptions1,placeholder:"选择日期"},model:{value:e.form.start_at,callback:function(t){e.$set(e.form,"start_at",t)},expression:"form.start_at"}})],1),e._v(" "),e.form.id?e._e():o("el-form-item",{attrs:{label:"带班老师",prop:"teacherList"}},[o("el-select",{attrs:{placeholder:"请选择",filterable:"",multiple:""},on:{change:e.onTeacher1Change},model:{value:e.form.teacherList,callback:function(t){e.$set(e.form,"teacherList",t)},expression:"form.teacherList"}},e._l(e.teacher1Options,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),e.form.id?e._e():o("el-form-item",{attrs:{label:"观摩老师",prop:"viewTeacher"}},[o("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:e.onTeacher2Change},model:{value:e.form.viewTeacher,callback:function(t){e.$set(e.form,"viewTeacher",t)},expression:"form.viewTeacher"}},e._l(e.teacher2Options,function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),e.form.id?e._e():o("el-form-item",{attrs:{label:"将带班老师加入观摩班","label-width":"200"}},[o("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#eee"},model:{value:e.form.is_add_teacher_to_class,callback:function(t){e.$set(e.form,"is_add_teacher_to_class",t)},expression:"form.is_add_teacher_to_class"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"不上课日期"}},[o("el-select",{attrs:{multiple:"",placeholder:"请选择"},model:{value:e.form.rest_week_day,callback:function(t){e.$set(e.form,"rest_week_day",t)},expression:"form.rest_week_day"}},e._l(e.options,function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)])],1)},staticRenderFns:[]};var d=o("VU/8")(c,u,!1,function(e){o("NbwN")},"data-v-721686ec",null).exports,_=o("sf/l"),f={name:"index",data:function(){return{nowPage:1,total:0,limit:10,course_type:"-1",title:"",goodsId:null,lessonId:null,startAt:"",periodList:[],startTime:[],newDialog:{form:{},show:!1,title:""},goodList:[],lessonList:[]}},filters:{dayFilter:function(e){var t=e?e.split(","):[];return(t=t.map(function(e){return r.v[e]})).join(",")},filterGoods:function(e){return"["+r.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name},percent:function(e){return(100*e).toFixed(2)+"%"}},components:{goodDialog:l,newDialog:d,page:n.a},methods:{changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._49)(e.id).then(function(t){e.arrive_course_rate=t.arrive_course_rate,e.watch_course_rate=t.watch_course_rate,e.over_course_rate=t.over_course_rate,e.work_rate=t.work_rate,e.over_work_rate=t.over_work_rate,e.clock_rate=t.clock_rate,e.over_clock_rate=t.over_clock_rate,e.transform_rate=t.transform_rate})},dateCompare:function(e){var t=_.a.dateFmt(new Date,"yyyy-MM-dd");return new Date(t.replace(/-/g,"/"))>new Date(e.replace(/-/g,"/"))},onPageChange:function(e){this.nowPage=e,this.onSearch()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.onSearch()},onSearch:function(){var e=this,t={limit:this.limit,page:this.nowPage};"-1"!==this.course_type&&(t.course_type=this.course_type),this.title&&(t.title=this.title),this.goodsId&&(t.goods_id=this.goodsId),this.lessonId&&(t.course_id=this.lessonId),this.startTime&&this.startTime.length>0&&(t.start_start_at=_.a.dateFmt(this.startTime[0],"yyyy-MM-dd"),t.start_end_at=_.a.dateFmt(this.startTime[1],"yyyy-MM-dd")),this.startAt&&(t.start_at=this.startAt),Object(a._48)(t).then(function(t){t.list.forEach(function(e){e.arrive_course_rate=0,e.watch_course_rate=0,e.over_course_rate=0,e.work_rate=0,e.over_work_rate=0,e.clock_rate=0,e.over_clock_rate=0,e.transform_rate=0}),e.periodList=t.list,e.total=t.total})},changeShow:function(e){this.newDialog.show=e},onAdd:function(){this.newDialog.form.id="",this.newDialog.form.startNum="",this.newDialog.form.goods_id="",this.newDialog.form.title="",this.newDialog.form.start_at="",this.newDialog.form.rest_week_day=[],this.newDialog.form.teacher_ids=[],this.newDialog.form.teacherList=[],this.newDialog.form.viewTeacher="",this.newDialog.title="添加期数",this.newDialog.show=!0},onEdit:function(e){if(this.dateCompare(e.start_at))this.$message({type:"error",message:"期数已开始,不能编辑!"});else{var t=[];e.rest_week_day&&e.rest_week_day.split(",").forEach(function(e){t.push(parseInt(e))});var o=[];e.teacher_ids&&e.teacher_ids.split(",").forEach(function(e){o.push(parseInt(e))}),this.newDialog.form={id:e.id,startNum:e.start_num,start_at:e.start_at,title:e.title,goods_id:e.goods_id,rest_week_day:t,teacher_ids:o,course_id:e.course_id},this.newDialog.title="编辑期数",this.newDialog.show=!0}},onSave:function(e){this.newDialog.show=!1,this.onSearch()},del:function(e){var t=this;this.$confirm("此操作将删除该期数?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a.K)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.onSearch()})})},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100,goods_type:"1,2"}).then(function(t){e.goodList=t.list})},getLessonOption:function(){var e=this;Object(a._40)({page:1,limit:100}).then(function(t){e.lessonList=t.list})}},mounted:function(){var e=this.$route.query;e&&e.goods_id?this.goodsId=parseInt(e.goods_id):e&&e.id&&(this.lessonId=parseInt(e.id)),this.onSearch(),this.getGoodsOption(),this.getLessonOption()}},h={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"periods"},[o("div",{staticClass:"form-block"},[o("el-form",{attrs:{"label-width":"90px",inline:""}},[o("el-form-item",{attrs:{label:"期数标题"}},[o("el-input",{attrs:{placeholder:"请输入内容",clearable:""},model:{value:e.title,callback:function(t){e.title=t},expression:"title"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.onSearch},model:{value:e.goodsId,callback:function(t){e.goodsId=t},expression:"goodsId"}},e._l(e.goodList,function(t,a){return o("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"课程名称"}},[o("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.onSearch},model:{value:e.lessonId,callback:function(t){e.lessonId=t},expression:"lessonId"}},e._l(e.lessonList,function(e,t){return o("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"开始时间"}},[o("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},on:{change:e.onSearch},model:{value:e.startTime,callback:function(t){e.startTime=t},expression:"startTime"}})],1),e._v(" "),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.onSearch}},[e._v("查询")])],1),e._v(" "),e.$store.state.readonly?e._e():o("el-form-item",{staticStyle:{float:"right"}},[o("el-button",{attrs:{type:"success",size:"small"},on:{click:e.onAdd}},[e._v("添加期数")])],1)],1)],1),e._v(" "),o("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.onSearch},model:{value:e.course_type,callback:function(t){e.course_type=t},expression:"course_type"}},[o("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"月课",name:"0"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"日课",name:"1"}})],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.periodList,fixed:""},on:{"expand-change":e.changeRow}},[o("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-table",{staticStyle:{width:"100%"},attrs:{data:[t.row]}},[o("el-table-column",{attrs:{label:"到课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.arrive_course_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"看课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.watch_course_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"完课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.over_course_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.clock_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.over_clock_rate)))])]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"转化率"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("span",[e._v(e._s(e._f("percent")(t.row.transform_rate)))])]}}])})],1)]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"期数标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("router-link",{attrs:{to:{name:"class",query:{goods_id:t.row.goods_id,periods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.title)+"\n ")])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),o("el-table-column",{attrs:{label:"商品价格"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.goods_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"course_title",label:"课程名称"}}),e._v(" "),o("el-table-column",{attrs:{prop:"start_name",label:"开始主题/歌"}}),e._v(" "),o("el-table-column",{attrs:{prop:"current_category_name",label:"当前歌曲"}}),e._v(" "),o("el-table-column",{attrs:{label:"看课情况","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 可看课包数: "+e._s(t.row.watch_num)),o("br"),e._v(" 已看课包数:"+e._s(t.row.has_watch_num)+" "),o("br"),e._v(" "),9999!==t.row.duration_num?o("span",[e._v("续看课包数: "+e._s(t.row.duration_num)),o("br"),e._v(" 已续看课包数:"+e._s(t.row.has_duration_num))]):e._e(),e._v(" "),9999===t.row.duration_num?o("span",{staticStyle:{color:"#00af00"}},[e._v("永久观看")]):e._e()]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"不上课日期","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("dayFilter")(t.row.rest_week_day))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"总学员数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.total_user_num?t.row.total_user_num:"")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"watch_total_user_num",label:"可看课学员数"}}),e._v(" "),o("el-table-column",{attrs:{prop:"start_at",label:"起止时间",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.start_at)+"\n "),o("br"),e._v("\n "+e._s(t.row.over_at?t.row.over_at:"")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():o("el-table-column",{attrs:{label:"操作",width:"148",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(o){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),o("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("new-dialog",{attrs:{dialogObj:e.newDialog},on:{reflash:e.onSave,changeShow:e.changeShow}})],1)},staticRenderFns:[]};var m=o("VU/8")(f,h,!1,function(e){o("/x7v")},null,null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([22],{"0gIA":function(e,t){},Fmgy:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),l={props:["dialogObj"],data:function(){return{nowPage:1,total:0,limit:10,classList:[]}},components:{page:a("kmJW").a},methods:{onPageChange:function(e){this.nowPage=e,this.classListOption()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.classListOption()},classListOption:function(){var e=this;void 0==this.dialogObj.timeValue[0]&&(this.dialogObj.timeValue[0]=""),void 0==this.dialogObj.timeValue[1]&&(this.dialogObj.timeValue[1]="");var t={page:this.nowPage,limit:this.limit,start_at:this.dialogObj.timeValue[0],end_at:this.dialogObj.timeValue[1]};Object(r._62)(t,this.dialogObj.teacher_id).then(function(t){e.classList=t.list,e.total=t.total})}},watch:{"dialogObj.show":function(e){e&&this.classListOption()}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList}},[a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "+e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"交易订单号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名字"}}),e._v(" "),a("el-table-column",{attrs:{prop:"money",label:"金额(元)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"支付时间"}})],1),e._v(" "),a("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var s={name:"index",data:function(){var e=this;return{activeName:"first",firstList:[],secondList:[],searchFirstFrom:{dateValue:[]},today:{text:"今天",onClick:function(){e.searchFirstFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)],e.searchSecondFrom.dateValue=[e.formatTime(new Date),e.formatTime(new Date)]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFirstFrom.dateValue=[t,t],e.searchSecondFrom.dateValue=[t,t]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFirstFrom.dateValue=[t,e.formatTime(new Date)],e.searchSecondFrom.dateValue=[t,e.formatTime(new Date)]}},searchSecondFrom:{dateValue:[]},dialogObj:{show:!1,title:"售卖课程",teacher_id:"",timeValue:[]}}},components:{classDialog:a("VU/8")(l,o,!1,function(e){a("jAlk"),a("0gIA")},"data-v-43828d16",null).exports},mounted:function(){this.defaultTime(),this.searchFirstPage()},methods:{sortMoney:function(e,t){return Number(e.total_money)-Number(t.total_money)},handleClick:function(e){"first"===e.name?this.searchFirstPage():this.searchSecondPage()},searchFirstPage:function(){var e=this,t={};this.searchFirstFrom.dateValue&&(t={start_at:this.searchFirstFrom.dateValue[0],end_at:this.searchFirstFrom.dateValue[1]}),Object(r._66)(t).then(function(t){e.firstList=t})},searchSecondPage:function(){var e=this,t={};this.searchSecondFrom.dateValue&&(t={start_at:this.searchSecondFrom.dateValue[0],end_at:this.searchSecondFrom.dateValue[1]}),Object(r._63)(t).then(function(t){e.secondList=t})},formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var l=t+"-"+a+"-01",o=t+"-"+a+"-"+r;this.searchFirstFrom.dateValue=[l,o],this.searchSecondFrom.dateValue=[l,o]},nameClick:function(e,t){this.dialogObj.teacher_id=e.tid,this.dialogObj.timeValue=void 0!=t?t:[e.cur_date,e.cur_date],this.dialogObj.show=!0}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h2",{staticClass:"title"},[e._v("班主任业绩排行")]),e._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"业绩总排行",name:"first"}},[a("el-form",{ref:"searchFirstFrom",attrs:{inline:"",model:e.searchFirstFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchFirstPage},model:{value:e.searchFirstFrom.dateValue,callback:function(t){e.$set(e.searchFirstFrom,"dateValue",t)},expression:"searchFirstFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchFirstPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.firstList}},[a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row,e.searchFirstFrom.dateValue)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1),e._v(" "),a("el-tab-pane",{attrs:{label:"业绩按天排行",name:"second"}},[a("el-form",{ref:"searchSecondFrom",attrs:{inline:"",model:e.searchSecondFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","value-format":"yyyy-MM-dd","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"range-separator":"至",shortcuts:[],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchSecondPage},model:{value:e.searchSecondFrom.dateValue,callback:function(t){e.$set(e.searchSecondFrom,"dateValue",t)},expression:"searchSecondFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchSecondPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.secondList}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{label:"班主任姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.nameClick(t.row)}}},[e._v("\n "+e._s(t.row.teacher_name)+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"total_money",label:"销售额","sort-method":e.sortMoney,sortable:!0}}),e._v(" "),a("el-table-column",{attrs:{prop:"three_month",label:"季课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"one_year",label:"年课",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"two_year",label:"2年课",sortable:""}})],1)],1)],1),e._v(" "),a("class-dialog",{attrs:{dialogObj:e.dialogObj}})],1)},staticRenderFns:[]};var i=a("VU/8")(s,n,!1,function(e){a("Z0Sr")},"data-v-acbe8e6e",null);t.default=i.exports},Z0Sr:function(e,t){},jAlk:function(e,t){}});
\ No newline at end of file
webpackJsonp([23],{CK6D:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("CCn6"),a=i("kmJW"),n=i("C+jy"),o={name:"focusReplyDialog",props:["dialogObj"],data:function(){return{show:!1,loading:!1,showEmotion:!1,total:0,nowPage:1,limit:3,id:null,list:[],index:-1,form:{key:"",value:"",desc:""},content:"",imageContent:"",newsContent:"",videoContent:"",voiceContent:"",type:"news",mediaList:[],mediaListMock:[],showMedia:!1,pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}},newsItemForm:{type:"news-item",title:"",description:"",thumb_url:"",url:""},newsItemImageList:[],rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}],title:[{required:!0,message:"请输入图文标题",trigger:"change"}],description:[{required:!0,message:"请输入图文描述",trigger:"change"}],url:[{required:!0,message:"请输入图文链接",trigger:"change"}]},imageList:[],uploadShow:!0,newsItemUploadShow:!0}},components:{page:a.a,page2:a.a,page3:a.a,page4:a.a,emotion:n.a},mounted:function(){this.initDialog()},filters:{},methods:{addTeacherName:function(){this.content+="{my_teacher_name}"},addTeacherAlias:function(){this.content+="{my_teacher_alias}"},handleEmotion:function(t){this.content+=t},onChangeType:function(t){this.type=t,this.mediaList=[],this.showMedia=!1,this.nowPage=1},initDialog:function(){if(this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.index=this.dialogObj.index,this.list=this.dialogObj.list||[],-1===this.index)"mini_auto_reply"===this.dialogObj.key?this.type="text":(this.type="news",this.newsContent="");else if(this.type=this.list[this.index].type,"text"===this.type)this.content=this.list[this.index].content;else{var t={type:this.type};this.list[this.index].content&&(t.content=this.list[this.index].content),this.list[this.index].media_id&&(t.media_id=this.list[this.index].media_id),this.list[this.index].variable&&(t.variable=this.list[this.index].variable),"image"===this.type?(this.imageContent=t,"mini_auto_reply"===this.dialogObj.key&&(this.imageList=[{name:"mini-image",url:t.content}],this.uploadShow=!1)):"news"===this.type?this.newsContent=t:"news-item"===this.type||"link"===this.type?(this.newsItemForm.description=this.list[this.index].description,this.newsItemForm.thumb_url=this.list[this.index].thumb_url,this.newsItemForm.title=this.list[this.index].title,this.newsItemForm.url=this.list[this.index].url,this.newsItemImageList=[{name:this.list[this.index].thumb_url,url:this.list[this.index].thumb_url}],this.newsItemUploadShow=!1):"voice"===this.type?this.voiceContent=t:"video"===this.type&&(this.videoContent=t)}},close:function(){this.$emit("changeShow",!1)},save:function(){var t=this,e=this.form,i=this.list||[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});var a={type:this.type,content:this.content};this.index>-1?i[this.index]=a:i.push(a)}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});this.index>-1?i[this.index]=this.imageContent:i.push(this.imageContent)}else if("news"===this.type){if(!this.newsContent)return void this.$message({showClose:!0,message:"请选择图文"});this.index>-1?i[this.index]=this.newsContent:i.push(this.newsContent)}else if("video"===this.type){if(!this.videoContent)return void this.$message({showClose:!0,message:"请选择视频"});this.index>-1?i[this.index]=this.videoContent:i.push(this.videoContent)}else if("news-item"===this.type||"link"===this.type){if(this.newsItemForm.type=this.type,!this.newsItemForm.thumb_url)return void this.$message({showClose:!0,message:"请上传图文图片"});this.index>-1?i[this.index]=this.newsItemForm:i.push(this.newsItemForm)}e.desc=JSON.stringify(i),this.id?Object(s._99)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1),t.show=!1}):Object(s._85)(e).then(function(e){t.$message({type:"success",message:"保存成功!"}),t.$emit("reflash"),t.$emit("changeShow",!1)})},onPageChange:function(t){this.nowPage=t,this.getMediaList(this.type)},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getMediaList(this.type)},getMediaList:function(t){var e=this,i={type:t,page:this.nowPage,limit:this.limit};this.loading=!0,Object(s._43)(i).then(function(i){e.loading=!1,e.type=t,e.total=i.total_count,0===i.item.length?(e.$message({showClose:!0,message:"暂无数据"}),e.showMedia=!1):(e.showMedia=!0,e.mediaList=i.item)}).catch(function(){e.loading=!1,e.showMedia=!1})},onChooseMedia:function(t){"news"===this.type?this.addContent(this.type,t.content,t.media_id):"video"===this.type?this.addContent(this.type,t.info,t.media_id):this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addTeacherQrcode:function(){this.imageContent={type:"image",variable:"my_teacher"}},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),"news"===t?this.newsContent=s:"video"===t?this.videoContent=s:this.imageContent=s},handleNewsItemAvatarSuccess:function(t){this.newsItemImageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]},beforeAvatarUpload:function(){this.uploadShow=!1},handleAvatarSuccess:function(t){this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]},beforeNewsItemAvatarUpload:function(){this.newsItemUploadShow=!1},uploadNewsItemFile:function(t){var e=this;this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),Object(s._109)({file:t.file,type:"local"}).then(function(t){e.newsItemImageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.loading=!1,e.$message({type:"success",message:"上传成功!"}),e.newsItemForm.thumb_url="https://cdn.singsingenglish.com/"+t.url}).catch(function(){e.loading=!1})},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,Object(s._109)({file:t.file,type:"mini"}).then(function(i){e.uploadFileToQiniu(t,i),e.loading=!1}).catch(function(){e.loading=!1})},uploadFileToQiniu:function(t,e){var i=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),Object(s._109)({file:t.file,type:"local"}).then(function(t){i.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],i.loading=!1,i.$message({type:"success",message:"上传成功!"}),i.imageContent={type:"image",content:"https://cdn.singsingenglish.com/"+t.url,media_id:e.media_id}}).catch(function(){i.loading=!1})},handleRemove:function(){this.uploadShow=!0},handleNewsItemRemove:function(){this.newsItemUploadShow=!0}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("el-dialog",{attrs:{title:"自动回复",center:"",visible:t.dialogObj.show,width:"900px"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"content"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"inner"},[i("ul",{staticClass:"weui-desktop-msg-sender__tabs"},[t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg",class:"news"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("news")}}},[t._v("图文")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg",class:"news-item"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("news-item")}}},[t._v("图文链接")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_appmsg",class:"link"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("link")}}},[t._v("链接")]):t._e(),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_text",class:"text"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("text")}}},[t._v("文字")]),t._v(" "),i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_img",class:"image"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("image")}}},[t._v("图片")]),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_audio",class:"voice"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("voice")}}},[t._v("语音")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("li",{staticClass:"weui-desktop-msg-sender__tab weui-desktop-msg-sender__tab_video",class:"video"===t.type?"weui-desktop-msg-sender__tab_selected":"",on:{click:function(e){t.onChangeType("video")}}},[t._v("视频")]):t._e()]),t._v(" "),i("div",{staticClass:"inner-bottom"},["image"===t.type?i("div",{staticClass:"img-action"},[t.imageContent&&"mini_auto_reply"!==t.dialogObj.key?[t.imageContent.variable?i("div",{staticClass:"my-teacher"},[t._v("我的老师二维码")]):t._e(),t._v(" "),t.imageContent.content?i("img",{staticStyle:{"max-width":"80%"},attrs:{src:t.imageContent.content}}):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[!t.showMedia&&t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList("image")}}},[t._v("从素材库中选择")])]):t._e(),t._v(" "),!t.showMedia&&t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:t.addTeacherQrcode}},[t._v("添加老师二维码")])]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"===t.dialogObj.key?i("el-upload",{class:{disabled:!t.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})]):t._e()],1),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticStyle:{width:"60px"},attrs:{src:t.row.url}})])]}}])})],1),t._v(" "),i("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"news"===t.type?i("div",{staticClass:"img-action"},[t.newsContent&&t.newsContent.content?[i("div",{staticClass:"news-media"},t._l(t.newsContent.content.news_item,function(e,s){return i("div",{staticStyle:{position:"relative"}},[1===t.newsContent.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(e.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t.newsContent.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===s?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:e.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(e.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(e.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:e.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:e.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"图文",className:"news-media"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])})}}])})],1),t._v(" "),i("page2",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"video"===t.type?i("div",{staticClass:"img-action",staticStyle:{"text-align":"left"}},[t.videoContent&&t.videoContent.content?[t.videoContent.content&&t.videoContent.content.down_url?i("a",{attrs:{href:t.videoContent.content.down_url,target:"_blank"}},[t._v("\n "+t._s(t.videoContent.content.title)+"\n ")]):t._e()]:t._e(),t._v(" "),i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e()]}}])})],1),t._v(" "),i("page3",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()],2):t._e(),t._v(" "),"voice"===t.type?i("div",{staticClass:"img-action",staticStyle:{"text-align":"left"}},[i("div",{staticClass:"display-b"},[t.showMedia?t._e():i("div",{staticClass:"img-create-access"},[i("a",{staticClass:"img-create-access__link",attrs:{href:"javascript:;"},on:{click:function(e){t.getMediaList(t.type)}}},[t._v("从素材库中选择")])])]),t._v(" "),t.showMedia&&t.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.mediaList},on:{"row-click":t.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),t._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),t._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.info&&e.row.info.down_url?i("a",{attrs:{href:e.row.info.down_url,target:"_blank"}},[t._v("\n "+t._s(e.row.info.title)+"\n ")]):t._e()]}}])})],1),t._v(" "),i("page4",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange},model:{value:t.nowPage,callback:function(e){t.nowPage=e},expression:"nowPage"}})],1):t._e()]):"text"===t.type?i("div",{staticClass:"inner-emotion_editor"},[i("div",{staticClass:"inner-edit_area"},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1),t._v(" "),i("div",{staticStyle:{float:"right"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:t.showEmotion,callback:function(e){t.showEmotion=e},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:t.handleEmotion}})],1),t._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(e){t.showEmotion=!t.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("el-button",{attrs:{type:"warning",plain:""},on:{click:t.addTeacherName}},[t._v("添加老师名字")]):t._e(),t._v(" "),t.dialogObj&&"mini_auto_reply"!==t.dialogObj.key?i("el-button",{attrs:{type:"success",plain:""},on:{click:t.addTeacherAlias}},[t._v("添加老师别名")]):t._e()],1)]):"news-item"===t.type||"link"===t.type?i("div",{staticClass:"inner-emotion_editor"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.newsItemForm,rules:t.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"图文标题",prop:"title"}},[i("el-input",{model:{value:t.newsItemForm.title,callback:function(e){t.$set(t.newsItemForm,"title",e)},expression:"newsItemForm.title"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"图文描述",prop:"description"}},[i("el-input",{attrs:{type:"textarea"},model:{value:t.newsItemForm.description,callback:function(e){t.$set(t.newsItemForm,"description",e)},expression:"newsItemForm.description"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"图文图片"}},[i("el-upload",{class:{disabled:!t.newsItemUploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadNewsItemFile,"before-upload":t.beforeNewsItemAvatarUpload,"list-type":"picture-card","file-list":t.newsItemImageList,"on-success":t.handleNewsItemAvatarSuccess,"on-remove":t.handleNewsItemRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})])],1),t._v(" "),i("el-form-item",{attrs:{label:"图文链接",prop:"url"}},[i("el-input",{model:{value:t.newsItemForm.url,callback:function(e){t.$set(t.newsItemForm,"url",e)},expression:"newsItemForm.url"}})],1)],1)],1):t._e()]),t._v(" "),i("div",{staticClass:"tool_bar"},[i("el-button",{on:{click:t.close}},[t._v("取 消")]),t._v(" "),i("el-button",{staticClass:"weui-desktop-btn weui-desktop-btn_primary",on:{click:t.save}},[t._v("保存")])],1)])])])])},staticRenderFns:[]};var r=i("VU/8")(o,l,!1,function(t){i("Fni6"),i("Xf0p")},"data-v-22813d83",null).exports,c={name:"focusReply",data:function(){return{loading:!1,total:0,nowPage:1,limit:10,activeName:"focus_reply_new",id:null,list:[],form:{key:"focus_reply_new",value:"focus_reply_new",desc:""},content:"",imageContent:"",type:"text",mediaList:[],showMedia:!1,rules:{value:[{required:!0,message:"请输入规则名称",trigger:"change"}],desc:[{required:!0,message:"请输入回复内容",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},dialogObj:{show:!1,id:"",index:-1,list:[]}}},components:{page:a.a,dialogCom:r},mounted:function(){this.getList()},filters:{typeFilter:function(t){return t?"text"===t?"文字":"image"===t?"图片":"news"===t?"图文":"video"===t?"视频":"voice"===t?"语音":"news-item"===t?"图文链接":"link"===t?"链接":val:""},contentFilter:function(t){return"text"===t.type?t.content:"image"===t.type?"<img src='"+t.content+"'>":void 0}},methods:{emotion:function(t){var e=t.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(e)+'.gif" align="middle">'},handleClick:function(t){this.form={key:t.name,value:t.name,desc:""},this.nowPage=1,this.getList(),this.id=""},save:function(){var t=this,e=this.form,i=[];if("text"===this.type){if(!this.content)return void this.$message({showClose:!0,message:"请输入文本内容"});i[0]={type:this.type,content:this.content}}else if("image"===this.type){if(!this.imageContent)return void this.$message({showClose:!0,message:"请选择图片"});i[0]=this.imageContent}e.desc=JSON.stringify(i),this.id?Object(s._99)(this.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"})}):Object(s._85)(e).then(function(e){t.$message({type:"success",message:"保存成功!"})})},onChooseMedia:function(t){this.addContent(this.type,t.url,t.media_id),this.showMedia=!1},addContent:function(t,e,i){var s={};e&&(s={type:t,content:e}),i&&(s.media_id=i),this.imageContent=s},getList:function(){var t=this;Object(s._30)({key:this.form.key}).then(function(e){if(e.list.length>0){t.id=e.list[0].id;var i=JSON.parse(e.list[0].desc);t.list=i||[]}else t.list=[]})},add:function(){this.dialogObj={show:!0,id:this.id?this.id:null,index:-1,list:this.list,key:this.form.key,value:this.form.value}},editRow:function(t,e){this.dialogObj={show:!0,id:this.id,index:t,list:this.list,key:this.form.key,value:this.form.value}},deleteRow:function(t,e){var i=this;this.$confirm("此操作将删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var a=e;a.splice(t,1);var n={key:i.form.key,value:i.form.value};n.desc=JSON.stringify(a),Object(s._99)(i.id,n).then(function(t){i.$message({type:"success",message:"删除成功!"}),i.getList()})}).catch(function(){i.$message({type:"success",message:"已取消删除!"})})},moveRow:function(t,e){var i=this,a=this.list[t],n=this.list[e];this.list[t]=n,this.list[e]=a;var o=this.list,l={key:this.form.key,value:this.form.value};l.desc=JSON.stringify(o),Object(s._99)(this.id,l).then(function(t){i.$message({type:"success",message:"保存成功!"}),i.getList()})},changeShow:function(t){this.dialogObj.show=t}}},d={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"focus-reply"},[i("div",{staticClass:"clear-both top"},[i("span",{staticClass:"title"},[t._v("自动回复")]),t._v(" "),t.$store.state.readonly?t._e():i("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加回复")])],1),t._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"新用户关注",name:"focus_reply_new"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"无课用户关注",name:"focus_reply_no_course"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"有课用户关注",name:"focus_reply_course"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"有订单无课用户关注",name:"order_no_course_reply"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"自动回复",name:"auto_reply"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"30-60分钟无课用户自动回复",name:"half_hour_no_course_reply"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"小程序自动回复",name:"mini_auto_reply"}})],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,"max-height":"800"}},[i("el-table-column",{attrs:{fixed:"",label:"类型",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("typeFilter")(e.row.type))+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"内容"},scopedSlots:t._u([{key:"default",fn:function(e){return["text"===e.row.type?i("div",{domProps:{innerHTML:t._s(e.row.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,t.emotion))}}):"image"===e.row.type&&e.row.content?i("a",{attrs:{href:e.row.content,target:"_blank"}},[i("img",{staticClass:"shotcut",attrs:{src:e.row.content}})]):"image"===e.row.type&&e.row.variable?i("div",[t._v("\n 老师二维码\n ")]):"video"===e.row.type?i("div",[i("a",{attrs:{href:e.row.content.down_url,target:"_blank"}},[t._v(t._s(e.row.content.title))])]):"voice"===e.row.type?i("div",[i("a",{attrs:{href:e.row.content.down_url,target:"_blank"}},[t._v(t._s(e.row.content.title))])]):"news"===e.row.type?i("div",[i("div",{staticClass:"news-media"},t._l(e.row.content.news_item,function(s,a){return i("div",{staticStyle:{position:"relative"}},[1===e.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(s.digest))]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):e.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:s.thumb_url}}),t._v(" "),i("div",{staticClass:"bottom-title"},[t._v(t._s(s.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[t._v(t._s(s.title))]),t._v(" "),i("img",{staticClass:"next-img",attrs:{src:s.thumb_url}})]),t._v(" "),i("a",{staticClass:"preview",attrs:{href:s.url,target:"_blank"}},[t._v("\n 预览文章\n ")])]):t._e()])}))]):"news-item"===e.row.type?i("div",[i("div",{staticClass:"news-media"},[i("div",{staticStyle:{position:"relative"}},[i("a",{staticStyle:{"text-decoration":"none"},attrs:{href:e.row.url,target:"_blank"}},[i("div",{staticClass:"single-cover"},[i("img",{staticStyle:{width:"100%"},attrs:{src:e.row.thumb_url}}),t._v(" "),i("div",{staticClass:"title"},[t._v(t._s(e.row.title))]),t._v(" "),i("div",{staticClass:"digest"},[t._v(t._s(e.row.description))])])])])])]):"link"===e.row.type?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"150px"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},[i("a",{staticStyle:{position:"relative",color:"#333","text-decoration":"none"},attrs:{href:e.row.url,target:"_blank"}},[i("div",{staticClass:"ellip",staticStyle:{margin:"3px","line-height":"2"}},[t._v(t._s(e.row.title))]),t._v(" "),i("div",{staticClass:"f-bt",staticStyle:{position:"relative","margin-left":"3px"}},[i("div",{staticStyle:{color:"#666",width:"63%","word-break":"break-all","word-wrap":"break-word","line-height":"1"}},[t._v(t._s(e.row.description))]),t._v(" "),i("img",{staticStyle:{width:"35%",height:"auto"},attrs:{src:e.row.thumb_url}})])])])],1):t._e()]}}])}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.editRow(e.$index,t.list)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.deleteRow(e.$index,t.list)}}},[t._v("\n 移除\n ")]):t._e(),t._v(" "),0!==e.$index?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index-1,e.$index)}}},[t._v("\n 上移\n ")]):t._e(),t._v(" "),e.$index!==t.list.length-1?i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){i.preventDefault(),t.moveRow(e.$index,e.$index+1)}}},[t._v("\n 下移\n ")]):t._e()]}}])})],1),t._v(" "),t.dialogObj.show?i("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}}):t._e()],1)},staticRenderFns:[]};var m=i("VU/8")(c,d,!1,function(t){i("gpZR")},"data-v-84f18910",null);e.default=m.exports},Fni6:function(t,e){},Xf0p:function(t,e){},gpZR:function(t,e){}});
\ No newline at end of file
webpackJsonp([26],{"4XgD":function(e,t){},REW4:function(e,t){},gaNG:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("CCn6"),o=(a("+TkF"),a("kmJW")),s={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{key:"",value:"",desc:""},mediaList:[],rules:{value:[{required:!0,message:"请输入关键词",trigger:"change"}],desc:[{required:!0,message:"请输入描述",trigger:"change"}],key:[{required:!0,message:"请输入Key",trigger:"change"}]}}},components:{page:o.a},methods:{save:function(){var e=this;this.dialogObj.id?this.$refs.form.validate(function(t){t&&e.$confirm("此操作将修改该配置?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._99)(e.id,e.form).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.show=!1})})}):this.$refs.form.validate(function(t){t&&e.$confirm("此操作将添加新配置?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._85)(e.form).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.show=!1})})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.key=this.dialogObj.key,this.form.value=this.dialogObj.value,this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"自动回复",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("Key")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"key"}},[a("el-input",{model:{value:e.form.key,callback:function(t){e.$set(e.form,"key",t)},expression:"form.key"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("关键词")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"value"}},[a("el-input",{model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1),e._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[e._v("描述")])]),e._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"desc"}},[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var l={name:"sysConfig",data:function(){return{total:0,nowPage:1,searchKey:"",limit:10,dialogObj:{value:"",desc:"",show:!1,id:""},list:[]}},components:{dialogCom:a("VU/8")(s,n,!1,function(e){a("4XgD")},"data-v-9826a36e",null).exports,page:o.a},mounted:function(){this.getList()},methods:{changeShow:function(e){this.dialogObj.show=e},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchKey&&(t.key=this.searchKey),Object(i._30)(t).then(function(t){e.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()},add:function(){this.dialogObj.id="",this.dialogObj.key="",this.dialogObj.value="",this.dialogObj.desc="",this.dialogObj.show=!0},edit:function(e){var t=this;Object(i._29)(e.id).then(function(e){t.dialogObj.id=e.id,t.dialogObj.key=e.key,t.dialogObj.value=e.value,t.dialogObj.desc=e.desc,t.dialogObj.show=!0})},del:function(e){var t=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.P)(e.id).then(function(e){t.getList(),t.$message({type:"success",message:"删除成功!"})})})}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys"},[a("div",{staticClass:"clear-both top"},[e.$store.state.readonly?e._e():a("el-button",{staticStyle:{float:"right"},attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("添加配置")]),e._v(" "),a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"关键字"}},[a("el-input",{attrs:{placeholder:"输入关键字搜索"},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.getList}},[e._v("搜索")])],1)],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left"}},[a("el-form-item",{attrs:{label:"Key"}},[a("span",[e._v(e._s(t.row.key))])]),e._v(" "),a("el-form-item",{attrs:{label:"关键词"}},[a("span",[e._v(e._s(t.row.value))])]),e._v(" "),a("el-form-item",{attrs:{label:"描述"}},[a("span",[e._v(e._s(t.row.desc))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"ID",sortable:"",prop:"id"}}),e._v(" "),a("el-table-column",{attrs:{label:"Key",prop:"key"}}),e._v(" "),a("el-table-column",{attrs:{label:"关键词",prop:"value"}}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间",sortable:""}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){e.del(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),a("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getList}}),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var c=a("VU/8")(l,r,!1,function(e){a("REW4")},"data-v-7036c2de",null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([27],{Uj1Q:function(t,e){},WNWN:function(t,e){},"sg/1":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),o=(s("+TkF"),{name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",title:"",loading:!0,form:{key:"no_lesson_date",value:"no_lesson_date",desc:[]},noLessonDate:[],rules:{noLessonDate:[{required:!0,message:"请选择日期",trigger:"change"}]},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;if(0!==this.noLessonDate.length){var e={key:this.form.key,value:this.form.value},s=this.form.desc||[];this.noLessonDate.length>0&&(s=s.concat(this.noLessonDate),s=this.dedupe(s)),e.desc=JSON.stringify(s),this.id?Object(i._99)(this.id,e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1}):Object(i._85)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1})}else this.$message({type:"error",message:"请选择不上课时间!"})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.title=this.dialogObj.title,this.form.desc=this.dialogObj.desc,this.noLessonDate=this.form.desc,this.loading=!1},dedupe:function(t){return Array.from(new Set(t))}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}}),n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:t.title,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[s("el-row",[s("el-col",{attrs:{span:4}},[s("label",[t._v("不上课日期")])]),t._v(" "),s("el-col",{attrs:{span:20}},[s("el-form-item",[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"dates","value-format":"yyyy-MM-dd","picker-options":t.pickerOptions1,placeholder:"选择日期"},model:{value:t.noLessonDate,callback:function(e){t.noLessonDate=e},expression:"noLessonDate"}})],1)],1)],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)])},staticRenderFns:[]};var a={name:"index",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[],id:""}},components:{dialogCom:s("VU/8")(o,n,!1,function(t){s("Uj1Q")},"data-v-e9aa269a",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._30)({key:"no_lesson_date"}).then(function(e){if(e.list.length>0){var s=e.list[0].desc;t.id=e.list[0].id,t.list=s?JSON.parse(s):[]}})},add:function(){this.dialogObj.title="添加不上课日期",this.dialogObj.desc=this.list||[],this.dialogObj.show=!0,this.list.length>0?this.dialogObj.id=this.id:this.dialogObj.id=""},edit:function(t){var e=this;Object(i._29)(t.id).then(function(t){e.dialogObj.title="修改不上课日期",e.dialogObj.desc=t.desc,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var s={key:"no_lesson_date",value:"no_lesson_date"},o=[];e.list.forEach(function(e){e!==t&&o.push(e)}),s.desc=JSON.stringify(o),Object(i._99)(e.id,s).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{classs:"noLesson"}},[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{attrs:{span:6}},[t.$store.state.readonly?t._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加不上课日期")])],1)],1),t._v(" "),s("div",{staticClass:"card"},t._l(t.list,function(e,i){return s("el-card",{key:i,attrs:{"body-style":{padding:"0px"}}},[s("span",{staticClass:"time"},[t._v(t._s(e))]),t._v(" "),s("div",{staticClass:"bottom clearfix"},[t.$store.state.deletePermission&&!t.$store.state.readonly?s("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(s){t.del(e)}}},[t._v("删除")]):t._e()],1)])})),t._v(" "),s("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var d=s("VU/8")(a,l,!1,function(t){s("WNWN")},"data-v-6a22b44c",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([28],{TerN:function(t,e){},WvRy:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),r={name:"index",components:{page:a("kmJW").a},data:function(){return{nowPage:1,total:0,limit:10,useTypeList:[{id:0,value:"未使用"},{id:1,value:"已使用"},{id:2,value:"禁用"}],searchFrom:{user_id:"",out_trade_no:"",status:0},list:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},mounted:function(){this.getList()},methods:{onPageChange:function(t){this.nowPage=t,this.getList()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),(this.searchFrom.status||0===this.searchFrom.status)&&(e.status=this.searchFrom.status),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),Object(s._31)(e).then(function(e){t.total=e.total,t.list=e.list?e.list:[]})}}},o={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:"用户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:"使用状态"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getList},model:{value:t.searchFrom.status,callback:function(e){t.$set(t.searchFrom,"status",e)},expression:"searchFrom.status"}},t._l(t.useTypeList,function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})}))],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.getList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{prop:"coupon_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:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\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("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间",sortable:""}})],1),t._v(" "),a("page",{attrs:{nowPage:t.nowPage,total:t.total},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)},staticRenderFns:[]};var n=a("VU/8")(r,o,!1,function(t){a("TerN"),a("oZ+E")},"data-v-65af8274",null);e.default=n.exports},"oZ+E":function(t,e){}});
\ No newline at end of file
webpackJsonp([29],{"537T":function(t,e){},CGL6:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("CCn6"),a={name:"banner",components:{page:i("kmJW").a},data:function(){return{loading:!1,bannerList:[],total:0,nowPage:1,uploadShow:!0,limit:10,dialog:{title:"新增Banner",show:!1,rules:{title:[{required:!0,message:"请填写Banner名称",trigger:"change"}],link:[{required:!0,message:"请填写Banner链接",trigger:"change"}]},form:{title:"",url:"",link:"",id:""}},imageList:[]}},created:function(){this.getList()},filters:{status:function(t){return 1===t?"上架中":"已下架"}},methods:{onPageChange:function(t){this.nowPage=t,this.getList()},changeStatus:function(t){var e=this,i=void 0,a=void 0;1===t.status?(i="此操作将下架该Banner,是否继续?",a=2):(i="此操作将上架该Banner,是否继续?",a=1),this.$confirm(i,"提示",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}).then(function(){var i={status:a};Object(n.r)(t.id,i).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.getList()})})},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getList()},getList:function(){var t=this;this.loading=!0;var e={limit:this.limit,page:this.nowPage};Object(n._18)(e).then(function(e){e&&(t.bannerList=e.list,t.total=e.total,t.loading=!1)})},edit:function(t){var e=this;this.dialog.form.id=t.id,this.dialog.title="编辑Banner",Object(n._17)(t.id).then(function(t){e.dialog.form.title=t.title,e.dialog.form.link=t.link,e.imageList=[{name:t.url,url:t.url}],e.dialog.show=!0,e.uploadShow=!1})},add:function(){this.dialog.show=!0,this.dialog.form.id="",this.dialog.title="新增Banner",this.dialog.form.title="",this.dialog.form.link="",this.imageList=[],this.uploadShow=!0},del:function(t){var e=this;this.$confirm("此操作将删除该Banner?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.C)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})},handleAvatarSuccess:function(t){this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}],this.dialog.form.url="https://cdn.singsingenglish.com/"+t.data.url},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},sub:function(){var t=this;this.$refs.form.validate(function(e){if(e){var i=t.dialog;if(i.form.id){var a={title:i.form.title,link:i.form.link};t.imageList.length>0&&(a.url=t.imageList[0].url),t.$confirm("确认修改Banner","提示",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.W)(i.form.id,a).then(function(){t.$message({type:"success",message:"修改成功!"}),i.show=!1,t.getList()})})}else{var o={title:i.form.title,link:i.form.link};t.imageList.length>0&&(o.url=t.imageList[0].url),t.$confirm("确认添加Banner","提示",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.b)(o).then(function(){t.$message({type:"success",message:"添加成功!"}),i.show=!1,t.getList()})})}}})},moveUp:function(t){var e=this.bannerList;this.sort(e[t].id,e[t-1].id)},moveDown:function(t){var e=this.bannerList;this.sort(e[t+1].id,e[t].id)},sort:function(t,e){var i=this;this.loading=!0,Object(n._79)(t,e).then(function(){i.loading=!1,i.getList()})},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,Object(n._109)({file:t.file,type:"local"}).then(function(t){e.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.loading=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1})}}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"banner"},[i("div",{staticClass:"head clear-both"},[t.$store.state.readonly?t._e():i("el-button",{staticStyle:{float:"right"},attrs:{plain:"",type:"success"},on:{click:t.add}},[t._v("新增banner")])],1),t._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.bannerList}},[i("el-table-column",{attrs:{prop:"id",label:"ID"}}),t._v(" "),i("el-table-column",{attrs:{prop:"title",label:"标题"}}),t._v(" "),i("el-table-column",{attrs:{prop:"url",label:"图片"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("a",{attrs:{href:t.row.url,target:"_blank"}},[i("img",{staticClass:"short-banner",attrs:{src:t.row.url}})])]}}])}),t._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"link",label:"链接"}}),t._v(" "),t.$store.state.readonly?t._e():i("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-popover",{attrs:{placement:"top",width:"280"}},[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(i){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission?i("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:function(i){t.del(e.row)}}},[t._v("\n 删除\n ")]):t._e(),t._v(" "),2==e.row.status?i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(i){t.changeStatus(e.row)}}},[t._v("\n 上架\n ")]):t._e(),t._v(" "),1==e.row.status?i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(i){t.changeStatus(e.row)}}},[t._v("\n 下架\n ")]):t._e(),t._v(" "),e.$index>0?i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(i){t.moveUp(e.$index)}}},[t._v("\n 上移\n ")]):t._e(),t._v(" "),e.$index!==t.bannerList.length-1?i("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:function(i){t.moveDown(e.$index)}}},[t._v("\n 下移\n ")]):t._e()],1),t._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),i("page",{attrs:{nowPage:t.nowPage,total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),i("el-dialog",{attrs:{title:t.dialog.title,center:"","append-to-body":"",visible:t.dialog.show,width:"30%"},on:{"update:visible":function(e){t.$set(t.dialog,"show",e)}}},[i("el-form",{ref:"form",attrs:{rules:t.dialog.rules,model:t.dialog.form,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"banner名称",prop:"title"}},[i("el-input",{model:{value:t.dialog.form.title,callback:function(e){t.$set(t.dialog.form,"title",e)},expression:"dialog.form.title"}})],1),t._v(" "),i("el-form-item",{attrs:{label:"banner链接",prop:"link"}},[i("el-input",{model:{value:t.dialog.form.link,callback:function(e){t.$set(t.dialog.form,"link",e)},expression:"dialog.form.link"}})],1),t._v(" "),i("div",{staticClass:"upload-block"},[i("el-upload",{class:{disabled:!t.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove}},[i("i",{staticClass:"el-icon-plus"})]),t._v(" "),i("p",{staticClass:"size"},[t._v("750*400")])],1)],1),t._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialog.show=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:t.sub}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=i("VU/8")(a,o,!1,function(t){i("ULKw"),i("537T")},null,null);e.default=s.exports},ULKw:function(t,e){}});
\ No newline at end of file
webpackJsonp([30],{F5pf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),o={name:"putForward",data:function(){return{nowPage:1,total:0,limit:10,search:{key:"",status:"-1"},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?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e},userLabel:function(t){return t.nickname+"["+t.user_id+"]"}},mounted:function(){this.getList()},methods:{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._11)("/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.money&&(e.money=100*parseFloat(this.search.money)),Object(s._74)(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._4)(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._111)(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._69)(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._82)(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={render: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-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v("查询")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportTable}},[t._v("导出")]),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.status))+"\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:"reason",label:"失败原因"}}),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)},staticRenderFns:[]};var l=a("VU/8")(o,r,!1,function(t){a("grM6"),a("S83S")},"data-v-454fa50b",null);e.default=l.exports},S83S:function(t,e){},grM6:function(t,e){}});
\ No newline at end of file
webpackJsonp([31],{"1YDE":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?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),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._4)(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._54)(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._11)("/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(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.exportTable}},[t._v("导出")])],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:"1"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"退款中",name:"0"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"退款失败",name:"2"}})],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.status))+"\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("wv45"),a("1YDE")},"data-v-3e829352",null);e.default=o.exports},wv45:function(t,e){}});
\ No newline at end of file
webpackJsonp([32],{"69L+":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r("kmJW"),a=r("CCn6"),i=r("+TkF"),o={name:"smsRecord",components:{page:s.a},data:function(){return{nowPage:1,total:0,limit:10,useTypeList:[{user_buy:0,value:"未绑定"},{user_buy:1,value:"已绑定"}],searchFrom:{goods_id:"",mobile:"",order_id:"",teacher_id:"",user_id:"",nickname:""},list:[],teacherList:[],goodList:[],classObj:{show:!1,title:"当前同步进度",order_id:0,teacher_id:0},classList:[],last_pull_time:"无"}},filters:{filterStatus:function(e){return 0===e?"未绑定":"已绑定"},filterGoods:function(e){return"["+i.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},mounted:function(){this.getList(),this.getGoodsOption(),this.getTeacherList()},methods:{onPageChange:function(e){this.nowPage=e,this.getList()},getTeacherList:function(){var e=this;Object(a._65)({page:1,limit:200}).then(function(t){e.teacherList=t.list})},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getList()},getList:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),this.searchFrom.goods_name&&(t.goods_name=this.searchFrom.goods_name),(this.searchFrom.user_buy||0==this.searchFrom.user_buy)&&(t.user_buy=this.searchFrom.user_buy),this.searchFrom.order_id&&(t.order_id=this.searchFrom.order_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),Object(a._76)(t).then(function(t){e.total=t.total,e.list=t.list?t.list:[]})},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100}).then(function(t){e.goodList=t.list})},editNote:function(e,t){var r=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var s=t.value;r.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._81)({desc:s},e).then(function(e){r.$message({type:"success",message:"编辑备注成功"}),r.getList()})})})},exportTable:function(e){if(e.length>0){var t={};this.searchFrom.order_id&&(t.order_id=this.searchFrom.order_id),(this.searchFrom.user_buy||0==this.searchFrom.user_buy)&&(t.user_buy=this.searchFrom.user_buy),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.nickname&&(t.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(t.user_id=this.searchFrom.user_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.teacher_id&&(t.teacher_id=this.searchFrom.teacher_id),Object(a._11)("api/admin/yunji/order/export",t)}},classListOption:function(){var e=this;this.classObj.show=!0,Object(a._76)({page:1,limit:200}).then(function(t){e.classList=t.teacher,t.last_pull_time&&(e.last_pull_time=t.last_pull_time)})}}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"sms"},[r("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"交易订单号"}},[r("el-input",{model:{value:e.searchFrom.order_id,callback:function(t){e.$set(e.searchFrom,"order_id",t)},expression:"searchFrom.order_id"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"购买人"}},[r("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"购买人ID"}},[r("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号"}},[r("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"绑定状态"}},[r("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.user_buy,callback:function(t){e.$set(e.searchFrom,"user_buy",t)},expression:"searchFrom.user_buy"}},e._l(e.useTypeList,function(e){return r("el-option",{key:e.user_buy,attrs:{label:e.value,value:e.user_buy}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"商品名称"}},[r("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,s){return r("el-option",{key:s,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),r("el-form-item",{attrs:{label:"老师"}},[r("el-select",{attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:e.getList},model:{value:e.searchFrom.teacher_id,callback:function(t){e.$set(e.searchFrom,"teacher_id",t)},expression:"searchFrom.teacher_id"}},e._l(e.teacherList,function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"primary",plain:""},on:{click:function(t){e.exportTable(e.list)}}},[e._v("导出")]),e._v(" "),r("el-button",{attrs:{type:"success",plain:""},on:{click:function(t){e.classListOption()}}},[e._v("当前同步进度")])],1)],1),e._v(" "),r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list}},[r("el-table-column",{attrs:{prop:"order_id",label:"订单号"}}),e._v(" "),r("el-table-column",{attrs:{prop:"nickname",label:"购买人"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!==t.row.user_id?r("div",{staticStyle:{display:"flex"}},[r("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "),r("div",[e._v(e._s(t.row.nickname)),r("br"),e._v("(ID:"+e._s(t.row.user_id)+")")])]):e._e(),e._v(" "),0===t.row.user_id?r("div",[e._v("\n 暂未绑定用户\n ")]):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),r("el-table-column",{attrs:{prop:"receiver_name",label:"姓名"}}),e._v(" "),r("el-table-column",{attrs:{prop:"receiver_phone",label:"手机号"}}),e._v(" "),r("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.receiver_province)+" "+e._s(t.row.receiver_city)+" "+e._s(t.row.receiver_area)+" "+e._s(t.row.receiver_address)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),r("el-table-column",{attrs:{prop:"create_time",label:"创建时间",sortable:""}}),e._v(" "),r("el-table-column",{attrs:{prop:"pay_time",label:"支付时间",sortable:""}}),e._v(" "),r("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():r("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(r){e.editNote(t.row.id,t.row.desc)}}},[e._v("编辑备注")])]}}])})],1),e._v(" "),r("page",{attrs:{nowPage:e.nowPage,total:e.total},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),r("el-dialog",{attrs:{title:e.classObj.title,visible:e.classObj.show,center:"",width:"800px"},on:{"update:visible":function(t){e.$set(e.classObj,"show",t)}}},[r("div",{staticStyle:{margin:"10px",color:"#888888"}},[e._v("\n 最新同步时间:"+e._s(e.last_pull_time)+"\n ")]),e._v(" "),r("el-table",{attrs:{data:e.classList}},[r("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),r("el-table-column",{attrs:{prop:"num",label:"预计入班人数"}})],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1)],1)},staticRenderFns:[]};var n=r("VU/8")(o,l,!1,function(e){r("FfKP"),r("Lby0")},"data-v-3ca72d70",null);t.default=n.exports},FfKP:function(e,t){},Lby0:function(e,t){}});
\ No newline at end of file
webpackJsonp([33],{FZWX:function(e,t){},Y4Mo:function(e,t){},oerw:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("CCn6"),s=i("kmJW"),o=i("C+jy"),n=i("sf/l");function l(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var r={name:"index",components:{page:s.a,page2:s.a,pageImage:s.a,pageVideo:s.a,emotion:o.a},data:function(){var e;return l(e={nowPage:1,total:0,limit:10,mediaPage:{nowPage:1,total:0,limit:5},show:!1,loading:!1,activeName:"text",list:[],content:"",uploadShow:!0,imageList:[],fileList:[],imageContent:"",videoContent:"",searchFrom:{type:1,is_test:!1},tableData:[],fileUid:null,userDialog:{total:0,limit:10,nowPage:1,show:!1},userList:[],searchUserFrom:{},multipleSelection:[],showEmotion:!1,showMedia:!1,showImage:!1,showVideo:!1,mediaList:[],mediaImageList:[],mediaVideoList:[],mediaImagePage:{nowPage:1,total:0,limit:5},mediaVideoPage:{nowPage:1,total:0,limit:5}},"imageContent",null),l(e,"videoContent",null),l(e,"newsContent",null),e},filters:{typeFilter:function(e){if(e)return"text"===e?"文本":"image"===e?"图片":"video"===e?"视频":"news"===e?"图文":void 0},typeListFilter:function(e){return e?1===e?"48时内关注但未购课用户":2===e?"有体验课但没有正式课用户":3===e?"未试听用户":4===e?"指定用户手机号":void 0:""}},methods:{handleClick:function(e){this.activeName=e.name},handleRemove:function(){this.uploadShow=!0,this.imageList=[],this.imageContent=""},handleRemoveVideo:function(){this.videoContent="",this.fileList=[]},beforeAvatarUpload:function(){this.uploadShow=!1},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFile:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(a._109)({file:e.file,type:"wechat"}).then(function(e){t.imageContent={content:e.media_id,url:e.url},t.imageList=[{name:e.media_id,url:e.url}],t.$message({type:"success",message:"上传成功!"})}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideo:function(e){var t=this;Object(a._109)({file:e.file,type:"wechat"}).then(function(i){t.uploadVideoFile(e,i)}).catch(function(){t.$message({type:"error",message:"上传失败!"})})},uploadVideoFile:function(e,t){var i=this;this.fileUid=e.file.uid,this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),Object(a._109)({file:e.file,type:"local"}).then(function(a){i.videoContent={content:t.media_id,url:"https://cdn.singsingenglish.com/"+a.url},i.fileList=[{name:a.name,url:"https://cdn.singsingenglish.com/"+a.url}],i.loading=!1,i.$message({type:"success",message:"上传成功!"}),i.$store.dispatch("setProgress",{type:"delete",id:e.file.uid}),i.fileUid=null}).catch(function(){i.loading=!1,i.$message({type:"error",message:"上传失败!"})})},send:function(){var e=this,t={};t.type=this.searchFrom.type;var i=this.searchFrom.is_test?"发送筛选用户,":"不发送筛选用户,";if(1===this.searchFrom.type){if(!(this.searchFrom.time&&this.searchFrom.time.length>0))return void this.$message({type:"error",message:"请选择时间!"});console.log("this.searchFrom.time",this.searchFrom.time),t.start_at=n.a.dateFmt(this.searchFrom.time[0],"yyyy-MM-dd hh:mm:ss"),t.end_at=n.a.dateFmt(this.searchFrom.time[1],"yyyy-MM-dd hh:mm:ss"),i+="48时内关注但未购课用户("+t.start_at+"~"+t.end_at+","}else if(2===this.searchFrom.type)i+="有体验课但没有正式课用户,";else if(3===this.searchFrom.type)i+="未试听用户,";else if(4===this.searchFrom.type){this.searchFrom.mobiles||(this.searchFrom.mobiles="");var s=this.searchFrom.mobiles;s=(s=s.replace(/\ +/g,"")).replace(/[\r\n]/g,",")}if(this.searchFrom.user_ids&&4!=this.searchFrom.type)t.user_ids=this.searchFrom.user_ids,console.log(t),i+="用户ID:"+t.user_ids;else{if(!this.searchFrom.mobiles)return void this.$message({type:"error",message:"请加入内部人员!"});void 0==this.searchFrom.user_ids||(t.user_ids=this.searchFrom.user_ids,i+="用户ID:"+t.user_ids),t.mobiles=s,i+="指定手机号用户("+t.mobiles+"),"}var o={};if(o.type=this.activeName,"text"===this.activeName){if(!this.content)return void this.$message({type:"error",message:"请输入文本!"});o.content=this.content}else if("image"===this.activeName){if(!this.imageContent)return void this.$message({type:"error",message:"请上传图片!"});o.content=this.imageContent.content,o.url=this.imageContent.url}else if("video"===this.activeName){if(!this.videoContent)return void this.$message({type:"error",message:"请上传视频!"});o.content=this.videoContent.content,o.url=this.videoContent.url}else"news"===this.activeName&&(this.newsContent&&this.newsContent.media_id?o.content=this.newsContent.media_id:this.$message({type:"error",message:"请选择图文!"}));t.content=JSON.stringify(o),t.is_test=this.searchFrom.is_test?2:1,console.log("json",t),this.$confirm(i,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._90)(t).then(function(t){e.$message({message:t,type:"success"}),e.show=!1,e.clearData(),e.getMsgList()})}).catch(function(){e.$message({type:"info",message:"已取消发送"})})},clearData:function(){this.content="",this.videoContent=null,this.imageContent=null,this.newsContent=null,this.activeName,this.searchFrom={},this.fileList=[],this.imageList=[]},getMsgList:function(){var e=this,t={limit:this.limit,page:this.nowPage};Object(a._45)(t).then(function(t){e.tableData=t.list,e.total=t.total})},onMediaPageChange:function(e){this.mediaPage.nowPage=e,this.getMediaList()},onMediaSizeChange:function(){this.mediaPage.nowPage=1,this.mediaPage.limit=val,this.getMediaList()},onImagePageChange:function(e){this.mediaImagePage.nowPage=e,this.getMediaList()},onImageSizeChange:function(e){this.mediaImagePage.nowPage=1,this.mediaImagePage.limit=e,this.getMediaList()},onVideoPageChange:function(e){this.mediaVideoPage.nowPage=e,this.getMediaList()},onVideoSizeChange:function(e){this.mediaVideoPage.nowPage=1,this.mediaVideoPage.limit=e,this.getMediaList()},onPageChange:function(e){this.nowPage=e,this.getMsgList()},onSizeChange:function(e){this.nowPage=1,this.limit=e,this.getMsgList()},getMsgResult:function(e){var t=this;if(e){var i={only_text:1,send_id:e};Object(a._45)(i).then(function(e){t.$message({message:e,type:"success"}),t.getMsgList()})}},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(a._69)(t).then(function(t){e.userList=t.list,e.userDialog.total=t.total})},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},onSelectUser:function(){this.userDialog.show=!0,this.searchFrom.user_ids?this.multipleSelection=this.searchFrom.user_ids.split(","):this.multipleSelection=[],this.getUser()},onConfirm:function(){var e=this.multipleSelection;if(0===e.length)this.$message({type:"error",message:"请选择用户!"});else{var t=[];e.forEach(function(e){t.push(e.user_id)});var i=t;this.searchFrom.user_ids&&(i=t.concat(this.stringToInt(this.searchFrom.user_ids.split(","))));var a=this.dedupe(i);this.searchFrom.user_ids=a.join(","),this.userDialog.show=!1}},dedupe:function(e){return Array.from(new Set(e))},stringToInt:function(e){var t=e||[];return t=t.map(function(e){return parseInt(e,10)})},emotion:function(e){var t=e.replace(/\//gi,"");return'<img src="https://res.wx.qq.com/mpres/htmledition/images/icon/emotion/'+["微笑","撇嘴","色","发呆","得意","流泪","害羞","闭嘴","睡","大哭","尴尬","发怒","调皮","呲牙","惊讶","难过","酷","冷汗","抓狂","吐","偷笑","可爱","白眼","傲慢","饥饿","困","惊恐","流汗","憨笑","大兵","奋斗","咒骂","疑问","嘘","晕","折磨","衰","骷髅","敲打","再见","擦汗","抠鼻","鼓掌","糗大了","坏笑","左哼哼","右哼哼","哈欠","鄙视","委屈","快哭了","阴险","亲亲","吓","可怜","菜刀","西瓜","啤酒","篮球","乒乓","咖啡","饭","猪头","玫瑰","凋谢","示爱","爱心","心碎","蛋糕","闪电","炸弹","刀","足球","瓢虫","便便","月亮","太阳","礼物","拥抱","强","弱","握手","胜利","抱拳","勾引","拳头","差劲","爱你","NO","OK","爱情","飞吻","跳跳","发抖","怄火","转圈","磕头","回头","跳绳","挥手","激动","街舞","献吻","左太极","右太极"].indexOf(t)+'.gif" align="middle">'},handleEmotion:function(e){this.content+=e},onChooseMedia:function(e){console.log("onChooseMedia",e),"image"===this.type?(this.imageContent={content:e.media_id,url:e.url},this.imageList=[{name:e.media_id,url:e.url}],this.showImage=!1):"video"===this.type?(this.videoContent={content:e.media_id,url:e.info.down_url},this.fileList=[{name:e.info.title,url:e.info.url}],this.showVideo=!1):"news"===this.type&&(this.newsContent=e,this.showMedia=!1)},getMediaList:function(){var e=this,t=this.activeName,i={type:t,page:this.mediaPage.nowPage,limit:this.mediaPage.limit};"image"===t?(i.page=this.mediaImagePage.nowPage,i.limit=this.mediaImagePage.limit,this.showImage=!0):"video"===t?(i.page=this.mediaVideoPage.nowPage,i.limit=this.mediaVideoPage.limit,this.showVideo=!0):"news"===t&&(i.page=this.mediaPage.nowPage,i.limit=this.mediaPage.limit,this.showMedia=!0),this.loading=!0,Object(a._43)(i).then(function(i){e.loading=!1,e.type=t,e.mediaList=i.item,e.mediaPage.total=i.total_count,"image"===t?(e.mediaImageList=i.item,e.mediaImagePage.total=i.total_count):"video"===t?(e.mediaVideoList=i.item,e.mediaVideoPage.total=i.total_count):"news"===t&&(e.mediaList=i.item,e.mediaPage.total=i.total_count),0===e.total&&e.$message({showClose:!0,message:"暂无数据"})}).catch(function(){e.loading=!1})},defaultTime:function(){var e=(new Date).getTime(),t=e-1728e5;this.searchFrom.time=[new Date(t),new Date(e)]}},mounted:function(){this.getMsgList(),this.defaultTime()},computed:{progress:function(){var e=this;return this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num<100?this.$store.state.progressList.find(function(t){return t.id===e.fileUid}).num:100}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"index"},[i("div",{staticClass:"b-title"},[e._v("群发列表 "),i("el-button",{staticStyle:{float:"right","margin-bottom":"10px"},attrs:{type:"primary",plain:""},on:{click:function(t){e.show=!0}}},[e._v("新建群发消息")])],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-table",{attrs:{border:!1,data:[JSON.parse(t.row.content)]}},[i("el-table-column",{attrs:{label:"类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\r\n "+e._s(e._f("typeFilter")(t.row.type))+"\r\n ")]}}])}),e._v(" "),"text"!==JSON.parse(t.row.content).type?i("el-table-column",{attrs:{prop:"media_id",label:"media_id"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\r\n "+e._s(t.row.content)+"\r\n ")]}}])}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"url",label:"内容"},scopedSlots:e._u([{key:"default",fn:function(t){return["text"===t.row.type?i("div",[i("span",{domProps:{innerHTML:e._s(t.row.content.replace(/\/[\u4E00-\u9FA5]{1,3}/gi,e.emotion))}})]):"image"===t.row.type?i("div",[i("img",{staticStyle:{width:"80px"},attrs:{src:t.row.url}})]):"video"===t.row.type?i("div",[i("a",{attrs:{href:t.row.url,target:"_blank"}},[e._v("点击查看视频")])]):e._e()]}}])})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"send_id",label:"消息ID"}}),e._v(" "),i("el-table-column",{attrs:{label:"消息类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\r\n "+e._s(e._f("typeListFilter")(t.row.type))+"\r\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"send_num",label:"预计发送"}}),e._v(" "),i("el-table-column",{attrs:{prop:"arrive_num",label:"已发送"}}),e._v(" "),i("el-table-column",{attrs:{prop:"failed_num",label:"发送失败"}}),e._v(" "),i("el-table-column",{attrs:{prop:"start_at",label:"开始时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"end_at",label:"截止时间"}}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"发送时间"}}),e._v(" "),i("el-table-column",{attrs:{label:"操作","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",plain:"",size:"mini"},on:{click:function(i){e.getMsgResult(t.row.send_id)}}},[e._v("\r\n 查询及时结果\r\n ")])]}}])})],1),e._v(" "),i("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),i("el-dialog",{attrs:{title:"新建群发消息",visible:e.show},on:{"update:visible":function(t){e.show=t}}},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"150px"}},[i("el-form-item",{attrs:{label:"是否发送筛选用户"}},[i("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.searchFrom.is_test,callback:function(t){e.$set(e.searchFrom,"is_test",t)},expression:"searchFrom.is_test"}})],1),e._v(" "),1===e.searchFrom.type?i("el-form-item",{attrs:{label:"时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.time,callback:function(t){e.$set(e.searchFrom,"time",t)},expression:"searchFrom.time"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"类型"}},[i("el-radio-group",{model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[i("el-radio",{attrs:{label:1}},[e._v("48时内关注但未购课用户")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("有体验课但没有正式课用户")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("未试听用户")]),e._v(" "),i("el-radio",{attrs:{label:4}},[e._v("指定用户手机号发送")])],1)],1),e._v(" "),4===e.searchFrom.type?i("el-row",[i("el-col",{attrs:{span:16}},[i("el-form-item",{attrs:{label:"用户手机号"}},[i("el-input",{attrs:{placeholder:"提示:多个手机号换行输入",type:"textarea"},model:{value:e.searchFrom.mobiles,callback:function(t){e.$set(e.searchFrom,"mobiles",t)},expression:"searchFrom.mobiles"}})],1)],1)],1):e._e(),e._v(" "),i("el-row",[i("el-col",{attrs:{span:16}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_ids,callback:function(t){e.$set(e.searchFrom,"user_ids",t)},expression:"searchFrom.user_ids"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6,offset:2}},[i("el-button",{attrs:{type:"primary"},on:{click:e.onSelectUser}},[e._v("选择用户")])],1)],1),e._v(" "),i("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"文本",name:"text"}},[i("div",{staticClass:"inner-edit_area"},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:8},placeholder:"请输入内容"},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),e._v(" "),i("div",{staticStyle:{float:"right","margin-right":"15px"}},[i("el-popover",{attrs:{placement:"bottom-end",width:"400",offset:10,trigger:"hover"},model:{value:e.showEmotion,callback:function(t){e.showEmotion=t},expression:"showEmotion"}},[i("div",[i("emotion",{attrs:{height:200},on:{emotion:e.handleEmotion}})],1),e._v(" "),i("el-button",{attrs:{slot:"reference",type:"text"},on:{click:function(t){e.showEmotion=!e.showEmotion}},slot:"reference"},[i("span",{staticClass:"icon_emotion emotion_switch"})])],1)],1)]),e._v(" "),i("el-tab-pane",{attrs:{label:"图片",name:"image"}},[i("div",{staticClass:"flex-start"},[i("div",[i("el-upload",{attrs:{action:"/api/public/upload/zone","http-request":e.uploadFile,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove,limit:1}},[i("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),i("div",{staticClass:"display-b",staticStyle:{"margin-left":"10px"}},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(t){e.getMediaList()}}},[i("i",{staticClass:"el-icon-plus",staticStyle:{color:"#8c939d"}}),e._v("从素材库中选择")])])]),e._v(" "),e.showImage&&e.mediaImageList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaImageList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("a",{attrs:{href:e.row.url}},[i("img",{staticStyle:{width:"60px"},attrs:{src:e.row.url}})])]}}])})],1),e._v(" "),i("page-image",{attrs:{total:e.mediaImagePage.total,limit:e.mediaImagePage.limit},on:{pageChange:e.onImagePageChange,sizeChange:e.onImageSizeChange},model:{value:e.mediaImagePage.nowPage,callback:function(t){e.$set(e.mediaImagePage,"nowPage",t)},expression:"mediaImagePage.nowPage"}})],1):e._e()]),e._v(" "),i("el-tab-pane",{attrs:{label:"视频",name:"video"}},[i("div",{staticClass:"flex-start"},[i("el-upload",{staticClass:"upload-video",attrs:{action:"/api/public/upload/zone","http-request":e.uploadVideo,"file-list":e.fileList,"on-remove":e.handleRemoveVideo,limit:1}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileUid&&e.progress<99}},[e._v("点击上传")]),e._v(" "),i("div",{staticStyle:{width:"300px"}},[e.fileUid?i("el-progress",{attrs:{percentage:e.progress}}):e._e()],1)],1),e._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(t){e.getMediaList()}}},[i("i",{staticClass:"el-icon-plus",staticStyle:{color:"#8c939d"}}),e._v("从素材库中选择")])])],1),e._v(" "),e.showVideo&&e.mediaVideoList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaVideoList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"name",label:"名称"}}),e._v(" "),i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.info&&t.row.info.down_url?i("a",{attrs:{href:t.row.info.down_url,target:"_blank"}},[e._v("\r\n "+e._s(t.row.info.title)+"\r\n ")]):e._e()]}}])})],1),e._v(" "),i("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange},model:{value:e.nowPage,callback:function(t){e.nowPage=t},expression:"nowPage"}})],1):e._e()]),e._v(" "),i("el-tab-pane",{attrs:{label:"图文",name:"news"}},[e.newsContent&&e.newsContent.content&&e.newsContent.content.news_item?i("div",[i("div",{staticClass:"news-media",staticStyle:{display:"inline-block"}},[i("el-card",{attrs:{"body-style":{padding:"0px"}}},e._l(e.newsContent.content.news_item,function(t,a){return i("div",{staticStyle:{position:"relative"}},[1===e.newsContent.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[e._v(e._s(t.title))]),e._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:t.thumb_url}}),e._v(" "),i("div",{staticClass:"digest"},[e._v(e._s(t.digest))]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:t.url,target:"_blank"}},[e._v("\r\n 预览文章\r\n ")])]):e.newsContent.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===a?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:t.thumb_url}}),e._v(" "),i("div",{staticClass:"bottom-title"},[e._v(e._s(t.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[e._v(e._s(t.title))]),e._v(" "),i("img",{staticClass:"next-img",attrs:{src:t.thumb_url}})]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:t.url,target:"_blank"}},[e._v("\r\n 预览文章\r\n ")])]):e._e()])}))],1),e._v(" "),i("i",{staticClass:"el-icon-delete",staticStyle:{display:"inline-block"},on:{click:function(t){e.newsContent=""}}})]):e._e(),e._v(" "),i("div",{staticClass:"display-b"},[i("div",{staticClass:"choose_item",staticStyle:{color:"#888"},on:{click:function(t){e.getMediaList()}}},[i("i",{staticClass:"el-icon-plus",staticStyle:{color:"#8c939d"}}),e._v("从素材库中选择")])]),e._v(" "),e.showMedia&&e.mediaList.length>0?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.mediaList},on:{"row-click":e.onChooseMedia}},[i("el-table-column",{attrs:{prop:"media_id",label:"mediaId"}}),e._v(" "),i("el-table-column",{attrs:{label:"URL"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.content&&t.row.content.news_item?i("div",{staticClass:"news-media",staticStyle:{display:"inline-block",width:"200px"}},e._l(t.row.content.news_item,function(a,s){return i("div",{staticStyle:{position:"relative"}},[1===t.row.content.news_item.length?i("div",{staticClass:"single-cover"},[i("div",{staticClass:"title"},[e._v(e._s(a.title))]),e._v(" "),i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:a.thumb_url}}),e._v(" "),i("div",{staticClass:"digest"},[e._v(e._s(a.digest))]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:a.url,target:"_blank"}},[e._v("\r\n 预览文章\r\n ")])]):t.row.content.news_item.length>1?i("div",{staticClass:"clear-both bottomCover",staticStyle:{position:"relative"}},[0===s?i("div",{staticClass:"muti-cover"},[i("img",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{src:a.thumb_url}}),e._v(" "),i("div",{staticClass:"bottom-title"},[e._v(e._s(a.title))])]):i("div",{staticClass:"next-cover clear-both"},[i("span",{staticClass:"next-title"},[e._v(e._s(a.title))]),e._v(" "),i("img",{staticClass:"next-img",attrs:{src:a.thumb_url}})]),e._v(" "),i("a",{staticClass:"preview",attrs:{href:a.url,target:"_blank"}},[e._v("\r\n 预览文章\r\n ")])]):e._e()])})):e._e()]}}])})],1),e._v(" "),i("page2",{attrs:{total:e.total,limit:e.mediaPage.limit},on:{pageChange:e.onMediaPageChange,sizeChange:e.onMediaSizeChange},model:{value:e.mediaPage.nowPage,callback:function(t){e.$set(e.mediaPage,"nowPage",t)},expression:"mediaPage.nowPage"}})],1):e._e()])],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.send()}}},[e._v("确 定")])],1),e._v(" "),i("el-dialog",{attrs:{visible:e.userDialog.show,"append-to-body":""},on:{"update:visible":function(t){e.$set(e.userDialog,"show",t)}}},[i("el-form",{attrs:{"label-width":"90px"}},[i("el-row",[i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"ID"}},[i("el-input",{model:{value:e.searchUserFrom.userId,callback:function(t){e.$set(e.searchUserFrom,"userId",t)},expression:"searchUserFrom.userId"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"昵称"}},[i("el-input",{model:{value:e.searchUserFrom.nickName,callback:function(t){e.$set(e.searchUserFrom,"nickName",t)},expression:"searchUserFrom.nickName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"电话"}},[i("el-input",{model:{value:e.searchUserFrom.mobile,callback:function(t){e.$set(e.searchUserFrom,"mobile",t)},expression:"searchUserFrom.mobile"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:8,offset:16}},[i("el-form-item",[i("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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)+")\r\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),i("page",{attrs:{total:e.userDialog.total,limit:e.userDialog.limit},on:{pageChange:e.onUserPageChange,sizeChange:e.onUserSizeChange}}),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.userDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onConfirm}},[e._v("确 定")])],1)],1)],1)],1)},staticRenderFns:[]};var m=i("VU/8")(r,c,!1,function(e){i("FZWX"),i("Y4Mo")},"data-v-39856caa",null);t.default=m.exports}});
\ No newline at end of file
webpackJsonp([4],{"/RlY":function(e,t){},"2qmY":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("CCn6"),r=i("kmJW"),o=i("P0f4"),s=i("xGts"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),a=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=a.length>0?a[0].label:i[0].children[0].label,this.dialogObj.district=a.length>0?a[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(a.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:o.a},mounted:function(){}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var c=i("VU/8")(n,l,!1,function(e){i("SGEf")},"data-v-6c76e69e",null).exports,d=i("O6Rd"),u={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(i),Object(a._84)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},_={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"},on:{"update:visible":function(t){e.show=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("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)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])},staticRenderFns:[]};var m=i("VU/8")(u,_,!1,function(e){i("9eU6")},"data-v-df15906a",null).exports,h=i("kmsh"),f=i("+TkF"),p={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return f.j[e]},status:function(e){return f.p[e]},buyType:function(e){return f.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{dialogObj:{handler:function(){this.initDialog()},deep:!0},show:function(e){this.$emit("changeShow",e)}}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)},staticRenderFns:[]};var b=i("VU/8")(p,v,!1,function(e){i("w+vU")},"data-v-fcd42b82",null).exports,g=i("G2rA"),y=(i("sf/l"),{name:"index",data:function(){var e=this;return{nowPage:1,total:0,today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:"",is_captain:""},tableData:[],dialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:f.k,orderStatusOption:f.q,buyTypeOption:f.c,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1,isLeaderOption:f.m}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var a=e.getDate();return a<10&&(a="0"+a),t+"-"+i+"-"+a},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(a._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(e.is_captain=this.searchFrom.is_captain),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=this.searchFrom.payTime[0],e.pay_end_at=this.searchFrom.payTime[1]),e.course_type=1,Object(a._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(a._37)({page:1,limit:100,course_type:1}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var r=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(a._4)(e,"order",{desc:r}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList: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.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),(this.searchFrom.is_captain||0==this.searchFrom.is_captain)&&(t.is_captain=this.searchFrom.is_captain),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=this.searchFrom.payTime[0],t.pay_end_at=this.searchFrom.payTime[1]),t.course_type=1,Object(a._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=s.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var a=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:a[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(a._65)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(a._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})}},components:{addressDialog:c,refundDialog:m,detailDialog:b,refundDetail:g.a,sourceDialog:d.a,couponDialog:h.a,page:r.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{},filters:{isLeader:function(e){return f.l[e]},payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return f.j[e]},status:function(e){return f.p[e]},buyType:function(e){return f.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+f.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}}}),w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,a){return i("el-option",{key:a,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"团ID"}},[i("el-input",{model:{value:e.searchFrom.order_group_id,callback:function(t){e.$set(e.searchFrom,"order_group_id",t)},expression:"searchFrom.order_group_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否团长"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.is_captain,callback:function(t){e.$set(e.searchFrom,"is_captain",t)},expression:"searchFrom.is_captain"}},e._l(e.isLeaderOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("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),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称",width:"160"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v(" 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v(" 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v(" 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v(" 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v(" 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"order_group_id",label:"团ID",width:"80"}}),e._v(" "),i("el-table-column",{attrs:{label:"是否团长",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("isLeader")(t.row.is_captain))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v(" "+e._s(t.row.address_info.receive_mobile)+"\n "),i("br"),e._v(" "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 下单时间:"+e._s(t.row.created_at)),i("br"),e._v("\n 购买时间:"+e._s(t.row.pay_at)),i("br"),e._v(" "),1!=t.row.buy_type?i("div",[e._v("\n 成团时间:"+e._s(t.row.group_success_time)),i("br"),e._v("\n 截止时间:"+e._s(t.row.deadline)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var O=i("VU/8")(y,w,!1,function(e){i("bbFA"),i("uMbZ")},"data-v-ff8a5f10",null);t.default=O.exports},"6AGP":function(e,t){},"9eU6":function(e,t){},G2rA:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("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(" "),i("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(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(r,o,!1,function(e){i("6AGP")},"data-v-4a64444c",null);t.a=s.exports},O6Rd:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(a._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("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(" "),i("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(" "),i("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(r,o,!1,function(e){i("/RlY")},"data-v-685cba10",null);t.a=s.exports},P0f4:function(e,t,i){"use strict";var a=1;function r(e,t){return e.filter(function(e){return e.value===t})[0].children}var o=i("xGts").a.filter(function(e){return e.type==a}),s={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?r(o,this.form.province):[]},districts:function(){return this.form.city?r(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:o}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"address"},[i("section",{staticStyle:{width:"100%",height:"100%"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"name",label:"收货人"}},[i("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[i("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"province",label:"省"}},[i("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"city",label:"市"}},[i("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"district",label:"县/区"}},[i("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[i("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])},staticRenderFns:[]};var l=i("VU/8")(s,n,!1,function(e){i("e5ri")},"data-v-02351020",null);t.a=l.exports},RpKh:function(e,t){},SGEf:function(e,t){},bbFA:function(e,t){},e5ri:function(e,t){},kmsh:function(e,t,i){"use strict";var a=i("CCn6"),r={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(a._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},o={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var s=i("VU/8")(r,o,!1,function(e){i("RpKh")},"data-v-1bce14d4",null);t.a=s.exports},uMbZ:function(e,t){},"w+vU":function(e,t){}});
\ No newline at end of file
webpackJsonp([42],{LayA:function(e,t){},mjLz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"dayOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],tableData:[],today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date),e.formatTime(new Date)])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a,a])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a,e.formatTime(new Date)])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a,e.formatTime(new Date)])}},searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:1}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString(),course_type:1};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",i=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,i]}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var s=a("VU/8")(n,i,!1,function(e){a("LayA")},"data-v-77645213",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([43],{"GN6/":function(e,t){},"v/LD":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("CCn6"),n={name:"monthOrderCount",data:function(){var e=this;return{goodsList:[],headList:[],today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date),e.formatTime(new Date)])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a,a])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a,e.formatTime(new Date)])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a,e.formatTime(new Date)])}},tableData:[],searchFrom:{priceList:[],dateValue:[]}}},mounted:function(){this.defaultTime(),this.initPage()},filters:{toFixed2:function(e){if("number"==typeof e){var t=e.toString().split(".");return t.length>1&&t[1].length>2?Number(e).toFixed(2):e}return e}},methods:{formatTime:function(e){var t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+a+"-"+r},initPage:function(){var e=this;Object(r._37)({limit:99999,course_type:0}).then(function(t){t.list.forEach(function(t){e.searchFrom.priceList.push(t.id)}),e.goodsList=t.list,e.searchPage()})},searchPage:function(){var e=this;if(console.log(this.searchFrom.dateValue),this.searchFrom.dateValue.length<2)this.$message.error("请先选择起止日期");else{var t={start_at:this.searchFrom.dateValue[0],end_at:this.searchFrom.dateValue[1],goods_ids:this.searchFrom.priceList.toString()};Object(r._80)(t).then(function(t){if(t.length>0){var a=t[0];for(var r in e.tableData=t,e.headList=[],a)"cur_date"===r?e.headList.push("时间"):"register_num"===r?e.headList.push("注册数"):"total_money"===r?e.headList.push("总金额"):e.headList.push(r)}})}},defaultTime:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1;a<10&&(a="0"+a);var r=e.getDate();r<10&&(r="0"+r);var n=t+"-"+a+"-01",i=t+"-"+a+"-"+r;this.searchFrom.dateValue=[n,i]}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"orderCount"},[a("el-form",{ref:"searchFrom",attrs:{inline:"",model:e.searchFrom,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"商品"}},[a("el-select",{staticStyle:{width:"600px"},attrs:{"collapse-tags":"",multiple:"",filterable:"",placeholder:"请选择"},on:{change:e.searchPage},model:{value:e.searchFrom.priceList,callback:function(t){e.$set(e.searchFrom,"priceList",t)},expression:"searchFrom.priceList"}},e._l(e.goodsList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"起止日期"}},[a("el-date-picker",{attrs:{"unlink-panels":"",type:"daterange","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.searchPage},model:{value:e.searchFrom.dateValue,callback:function(t){e.$set(e.searchFrom,"dateValue",t)},expression:"searchFrom.dateValue"}})],1),e._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.searchPage()}}},[e._v("\n 搜索\n ")])],1)],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},e._l(e.headList,function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(r){return["时间"===t?a("span",[e._v("\n "+e._s(r.row.cur_date)+"\n ")]):e._e(),e._v(" "),"注册数"===t?a("span",[e._v("\n "+e._s(r.row.register_num)+"\n ")]):e._e(),e._v(" "),"总金额"===t?a("span",[e._v("\n "+e._s(r.row.total_money)+"\n ")]):e._e(),e._v(" "),"时间"!==t&&"注册数"!==t&&"总金额"!==t?a("span",[e._v("\n "+e._s(e._f("toFixed2")(r.row[t]))+"\n ")]):e._e()]}}])})}))],1)},staticRenderFns:[]};var s=a("VU/8")(n,i,!1,function(e){a("GN6/")},"data-v-6d10214c",null);t.default=s.exports}});
\ No newline at end of file
webpackJsonp([5],{"6CEz":function(e,t){},"7Mat":function(e,t){},Fjek:function(e,t){},JZkw:function(e,t){},Klkp:function(e,t){},P0f4:function(e,t,i){"use strict";var r=1;function o(e,t){return e.filter(function(e){return e.value===t})[0].children}var a=i("xGts").a.filter(function(e){return e.type==r}),s={name:"vueAddress",props:["province","city","district","detail","name","mobile"],created:function(){},mounted:function(){this.show=this.showAddressPicker},computed:{cities:function(){return this.form.province?o(a,this.form.province):[]},districts:function(){return this.form.city?o(this.cities,this.form.city):[]}},data:function(){return{rules:{province:[{required:!0,message:"请选择省份",trigger:"change"}],city:[{required:!0,message:"请选择城市",trigger:"change"}],district:[{required:!0,message:"请选择区/县",trigger:"change"}],detail:[{required:!0,message:"请填写详细地址",trigger:"change"}],name:[{required:!0,message:"请填写收货人",trigger:"change"}],mobile:[{required:!0,message:"请填写手机号",trigger:"change"}]},form:{province:this.province,city:this.city,district:this.district,detail:this.detail,name:this.name,mobile:this.mobile},provinces:a}},watch:{form:{handler:function(e){this.$emit("change",e)},deep:!0}},methods:{proChange:function(e,t){t&&(this.form.city="",this.form.district=""),this.form.city=this.cities[0].value,this.form.district=this.districts[0].value},cityChange:function(e,t){this.form.district=this.districts[0].value},districtChange:function(e,t){t&&(this.form.detail="")},detailChange:function(e){console.log(e)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"address"},[i("section",{staticStyle:{width:"100%",height:"100%"}},[i("el-form",{ref:"form",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"name",label:"收货人"}},[i("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"mobile",label:"手机号"}},[i("el-input",{model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"province",label:"省"}},[i("el-select",{attrs:{placeholder:"请选择省"},on:{change:e.proChange},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinces,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"city",label:"市"}},[i("el-select",{attrs:{placeholder:"请选择市"},on:{change:e.cityChange},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city",t)},expression:"form.city"}},e._l(e.cities,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"district",label:"县/区"}},[i("el-select",{attrs:{placeholder:"请选择区/县"},on:{change:e.districtChange},model:{value:e.form.district,callback:function(t){e.$set(e.form,"district",t)},expression:"form.district"}},e._l(e.districts,function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})}))],1)],1)],1),e._v(" "),i("el-row",{staticClass:"address",attrs:{gutter:20}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"detail",label:"详细地址"}},[i("el-input",{attrs:{placeholder:"请填写详细地址",number:!0},model:{value:e.form.detail,callback:function(t){e.$set(e.form,"detail",t)},expression:"form.detail"}})],1)],1)],1)],1)],1)])},staticRenderFns:[]};var l=i("VU/8")(s,n,!1,function(e){i("e5ri")},"data-v-02351020",null);t.a=l.exports},Rq8b:function(e,t){},TpV2:function(e,t){},UAAZ:function(e,t){},e5ri:function(e,t){},sRf7:function(e,t){},xdzM:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i("CCn6"),o=i("kmJW"),a=i("P0f4"),s=i("xGts"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{}},methods:{handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.dialogObj.detail=e.detail,this.dialogObj.province=e.province,this.dialogObj.city=e.city,this.dialogObj.receive_mobile=e.mobile,this.dialogObj.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),r=i[0].children.filter(function(t){return t.value===e.district});this.dialogObj.province_name=t[0].label,this.dialogObj.city_name=i[0].label,this.dialogObj.district_name=r.length>0?r[0].label:i[0].children[0].label,this.dialogObj.district=r.length>0?r[0].value:i[0].children[0].value}},saveAddress:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={province_id:e.dialogObj.province,province_name:e.dialogObj.province_name,city_id:e.dialogObj.city,city:e.dialogObj.city_name,area:e.dialogObj.district_name,area_id:e.dialogObj.district,address:e.dialogObj.detail,receive_name:e.dialogObj.receive_name,receive_mobile:e.dialogObj.receive_mobile};Object(r.T)(e.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功"}),e.dialogObj.show=!1,e.$emit("reflash")})})}},components:{vueAddress:a.a},mounted:function(){}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"编辑收货地址",center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("vue-address",{attrs:{province:e.dialogObj.province,city:e.dialogObj.city,district:e.dialogObj.district,detail:e.dialogObj.detail,mobile:e.dialogObj.receive_mobile,name:e.dialogObj.receive_name},on:{change:e.handlerAddressChange}}),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveAddress}},[e._v("保 存")])],1)],1)},staticRenderFns:[]};var c=i("VU/8")(n,l,!1,function(e){i("Fjek")},"data-v-ccd3c4a4",null).exports,d=i("+TkF"),u=i("sf/l"),_={name:"newdialogObj",props:["newdialogObj"],data:function(){return{rules:{periods_id:[{required:!0,message:"请输入期数名称",trigger:"change"}],goods_id:[{required:!0,message:"请输入商品名称",trigger:"change"}],money:[{required:!0,message:"请输入金额",trigger:"blur"}],user_id:[{required:!0,message:"请输入用户ID",trigger:"blur"}],pay_at:[{required:!0,message:"请选择日期",trigger:"change"}],order_type:[{required:!0,message:"请选择支付类型",trigger:"change"}]},nowPage:1,limit:200,total:0,form:{periods_id:"",goods_id:"",user_id:"",money:"",buy_type:"",invite_id:"",desc:"",province_name:"",city:"",area:"",city_name:"",district_name:"",district:"",province:"",address:"",receive_mobile:"",receive_name:"",order_type:"",pay_at:""},goodsList:[],periodsList:[],pickerOptions1:"",buyWayOptioms:d.e,teacherList:[],addShow:!1,searchFrom:{},userList:[],multipleSelection:[]}},components:{vueAddress:a.a,page:o.a},filters:{filterGoods:function(e){return"["+d.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},methods:{onPageChange:function(e){this.nowPage=e,this.getUser()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getUser()},handleSelectionChange:function(e){this.multipleSelection=e},getUser:function(){var e=this,t={page:this.nowPage,limit:5};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(r._69)(t).then(function(t){e.userList=t.list,e.total=t.total})},saveAddOrder:function(e){var t=this;this.$refs.form.validate(function(i){if(!i)return console.log("error submit!!"),!1;var o={periods_id:e.periods_id,goods_id:e.goods_id,user_id:e.user_id,money:e.money,province_name:e.province_name,city_id:e.city,city:e.city_name,area:e.district_name,area_id:e.district,province_id:e.province,address:e.address,receive_mobile:e.receive_mobile,receive_name:e.receive_name,order_type:e.order_type};o.money=o.money,e.pay_at&&(o.pay_at=u.a.dateFmt(e.pay_at,"yyyy-MM-dd hh:mm:ss")),t.form.invite_id&&(o.invite_id=t.form.invite_id),t.form.desc&&(o.desc=t.form.desc),o.invite_type="TEACHER",o.province_name&&o.address&&o.receive_mobile&&o.receive_name?Object(r._91)(o).then(function(e){t.newdialogObj.show=!1,t.$emit("reflash"),t.$message({message:"添加成功",type:"success"})}):t.$message({message:"缺少必填项",type:"warning"})})},handlerAddressChange:function(e){if(e.province&&e.city&&e.district){this.form.address=e.detail,this.form.province=e.province,this.form.city=e.city,this.form.receive_mobile=e.mobile,this.form.receive_name=e.name;var t=s.a.filter(function(t){return t.value===e.province}),i=t[0].children.filter(function(t){return t.value===e.city}),r=i[0].children.filter(function(t){return t.value===e.district});this.form.province_name=t[0].label,this.form.city_name=i[0].label,this.form.district_name=r.length>0?r[0].label:i[0].children[0].label,this.form.district=r.length>0?r[0].value:i[0].children[0].value}},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:200,course_type:0}).then(function(t){e.goodsList=t.list})},onOptionChange:function(e){var t=this;this.form.periods_id="",Object(r._48)({goods_id:e}).then(function(e){t.periodsList=e.list})},getTeacherList:function(e){var t=this,i={limit:100,page:1};e&&(i.name=e),Object(r._65)(i).then(function(e){t.teacherList=e.list})},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},onAddUser:function(){this.addShow=!0,this.getUser()},onAdd:function(){0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.form.user_id=this.multipleSelection[0].user_id,this.addShow=!1):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})}},watch:{"newdialogObj.show":function(e){e&&(this.getGoodsOption(),this.getTeacherList())}},mounted:function(){}},m={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"新增订单",center:"","append-to-body":"",visible:e.newdialogObj.show,width:"70%"},on:{"update:visible":function(t){e.$set(e.newdialogObj,"show",t)}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules}},[i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"商品名称",prop:"goods_id"}},[i("el-select",{attrs:{placeholder:"请选择"},on:{change:e.onOptionChange},model:{value:e.form.goods_id,callback:function(t){e.$set(e.form,"goods_id",t)},expression:"form.goods_id"}},e._l(e.goodsList,function(t,r){return i("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"期数名称",prop:"periods_id"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.periods_id,callback:function(t){e.$set(e.form,"periods_id",t)},expression:"form.periods_id"}},e._l(e.periodsList,function(e,t){return i("el-option",{key:t,attrs:{label:e.title,value:e.id}})}))],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"用户ID",prop:"user_id"}},[i("el-input",{model:{value:e.form.user_id,callback:function(t){e.$set(e.form,"user_id",t)},expression:"form.user_id"}}),e._v(" "),i("el-button",{attrs:{type:"success"},on:{click:e.onAddUser}},[e._v("+添加用户")])],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"添加推广人"}},[i("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod},model:{value:e.form.invite_id,callback:function(t){e.$set(e.form,"invite_id",t)},expression:"form.invite_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"支付类型",prop:"order_type"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.order_type,callback:function(t){e.$set(e.form,"order_type",t)},expression:"form.order_type"}},e._l(e.buyWayOptioms,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id,disabled:e.disabled}})}))],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"实付金额(元)",prop:"money"}},[i("el-input-number",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"支付时间",prop:"pay_at"}},[i("el-date-picker",{attrs:{type:"datetime","picker-options":e.pickerOptions1,"default-time":"12:00:00",placeholder:"选择日期时间"},model:{value:e.form.pay_at,callback:function(t){e.$set(e.form,"pay_at",t)},expression:"form.pay_at"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",{attrs:{label:"备注"}},[i("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),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("vue-address",{attrs:{province:e.form.province_name,city:e.form.city,district:e.form.area,detail:e.form.address,mobile:e.form.receive_mobile,name:e.form.receive_name},on:{change:e.handlerAddressChange}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.newdialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveAddOrder(e.form)}}},[e._v("确定")])],1),e._v(" "),i("el-dialog",{attrs:{modal:!1,visible:e.addShow},on:{"update:visible":function(t){e.addShow=t}}},[i("el-form",{attrs:{"label-width":"90px"}},[i("el-row",[i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"ID"}},[i("el-input",{model:{value:e.searchFrom.userId,callback:function(t){e.$set(e.searchFrom,"userId",t)},expression:"searchFrom.userId"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"昵称"}},[i("el-input",{model:{value:e.searchFrom.nickName,callback:function(t){e.$set(e.searchFrom,"nickName",t)},expression:"searchFrom.nickName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{label:"电话"}},[i("el-input",{model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:8,offset:16}},[i("el-form-item",[i("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:e.getUser}},[e._v("搜索")])],1)],1)],1)],1),e._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.userList},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),e._v(" "),i("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.addShow=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.onAdd}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var h=i("VU/8")(_,m,!1,function(e){i("TpV2")},"data-v-a1bb8d26",null).exports,f={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(e){return e?(e/100).toFixed(2)+"元":""},filterStatus:function(e){var t="";return 0===e?t="审核中":1===e?t="提现成功":2===e&&(t="提现失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._74)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},p={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{label:"提现状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{status:!0,red:2===t.row.status,green:1===t.row.status}},[e._v("\n "+e._s(e._f("filterStatus")(t.row.status))+"\n ")])]}}])}),e._v(" "),i("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(" "),i("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(" "),i("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var v=i("VU/8")(f,p,!1,function(e){i("7Mat")},"data-v-2a667f00",null).exports,b={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",loading:!0,form:{money:0,refund_type:1,desc:""},rules:{money:[{required:!0,message:"请输入退款金额",trigger:"change"}],desc:[{required:!0,message:"请输入退款原因",trigger:"change"}]}}},methods:{save:function(){var e=this;this.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.dialogObj.id&&e.$refs.form.validate(function(t){if(t){var i={refund_money:100*parseFloat(e.form.money),desc:e.form.desc,refund_type:e.form.refund_type};console.log(i),Object(r._84)(e.dialogObj.id,i).then(function(t){e.$message({type:"success",message:"退款成功!"}),e.$emit("reflash"),e.show=!1})}})})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.form.money=parseFloat(this.dialogObj.money/100),this.form.desc=this.dialogObj.desc,this.loading=!1}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},g={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款",center:"","append-to-body":"",visible:e.show,width:"800px"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款金额")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",{attrs:{prop:"key"}},[i("el-input",{model:{value:e.form.money,callback:function(t){e.$set(e.form,"money",t)},expression:"form.money"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-button",{attrs:{type:"success",round:"",size:"small"},on:{click:function(t){e.form.money=100}}},[e._v("¥100")]),e._v(" "),i("el-button",{attrs:{type:"success",round:"",size:"mini"},on:{click:function(t){e.form.money=150}}},[e._v("¥150")])],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退课")])]),e._v(" "),i("el-col",{attrs:{span:8}},[i("el-form-item",[i("el-switch",{attrs:{"active-value":2,"inactive-value":1},model:{value:e.form.refund_type,callback:function(t){e.$set(e.form,"refund_type",t)},expression:"form.refund_type"}})],1)],1)],1),e._v(" "),i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("退款原因")])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("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)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("确 定")])],1)])},staticRenderFns:[]};var y=i("VU/8")(b,g,!1,function(e){i("Rq8b")},"data-v-1902de54",null).exports,w={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="未使用":1===e?t="已使用":2===e&&(t="禁用"),t}},methods:{initPage:function(){var e=this,t={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(r._31)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},O={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(parseFloat(t.row.money/100))+"元\n ")]}}])}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var j=i("VU/8")(w,O,!1,function(e){i("sRf7")},"data-v-0689b038",null).exports,F={name:"detail",props:["dialogObj"],data:function(){return{detail:{},show:!1}},methods:{initDialog:function(){this.detail=this.dialogObj.detail,console.log("this.dialogObj.detail",this.dialogObj.detail),this.show=this.dialogObj.show}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return d.j[e]},status:function(e){return d.p[e]},buyType:function(e){return d.b[e]},moneytFilter:function(e){return e/100+"元"}},watch:{"dialogObj.show":function(e){e&&this.initDialog()},show:function(e){this.$emit("changeShow",e)}}},k={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"订单详情",center:"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("订单号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.out_trade_no)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("商品名称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.goods_name))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("用户昵称")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("\n "+e._s(e.detail.user_nickname)+"\n ")]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("用户手机号")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.user_mobile))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人类型")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e._f("inviteType")(e.detail.invite_type)))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_id))])],1),e._v(" "),i("el-row",{attrs:{align:"middle",type:"flex"}},[i("el-col",{attrs:{span:4}},[i("label",[e._v("推广人收益")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.invite_earnings?e.detail.invite_earnings/100:0)+"元")]),e._v(" "),2===e.detail.buy_type?[i("el-col",{attrs:{span:4}},[i("label",[e._v("团购信息")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v("团ID:"+e._s(e.detail.order_group_id)),i("br"),e._v("是否是团长:"+e._s(0===e.detail.is_captain?"否":"是"))])]:e._e()],2),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("期数ID")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.periods_id))]),e._v(" "),i("el-col",{attrs:{span:4}},[i("label",[e._v("描述")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.desc))])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("收货地址")])]),e._v(" "),i("el-col",{attrs:{span:20}},[e.detail.user_address_id&&e.detail.address_info?[e._v("\n 收货人:"+e._s(e.detail.address_info.receive_name)),i("br"),e._v("\n 手机号:"+e._s(e.detail.address_info.receive_mobile)),i("br"),e._v("\n 收货地址: "+e._s(e.detail.address_info.province_name)+e._s(e.detail.address_info.city)+e._s(e.detail.address_info.area)+e._s(e.detail.address_info.address)+"\n ")]:e._e()],2)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:4}},[i("label",[e._v("付款时间")])]),e._v(" "),i("el-col",{attrs:{span:8}},[e._v(e._s(e.detail.pay_at))])],1)],1)},staticRenderFns:[]};var D={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(e){var t="";return 0===e?t="退款中":1===e?t="退款成功":2===e&&(t="退款失败"),t}},methods:{initPage:function(){var e=this,t={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(r._54)(t).then(function(t){e.detail=t.list})}},watch:{"dialogObj.show":function(e){!0===e&&this.initPage()}}},x={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:e.dialogObj.show,width:"90%"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.detail}},[i("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),e._v(" "),i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("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(" "),i("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(" "),i("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(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var S={name:"index",data:function(){var e=this;return{nowPage:1,total:0,sourceDialog:{show:!1,out_trade_no:""},today:{text:"今天",onClick:function(){e.searchFrom.payTime=[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},yesterday:{text:"昨天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-864e5));e.searchFrom.payTime=[t+" 00:00:00",t+" 23:59:59"]}},last30Day:{text:"过去30天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-2592e6));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},last7Day:{text:"过去7天",onClick:function(){var t=e.formatTime(new Date((new Date).getTime()-6048e5));e.searchFrom.payTime=[t+" 00:00:00",e.formatTime(new Date)+" 23:59:59"]}},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},limit:10,searchFrom:{nickname:"",user_id:"",invite_type:"",invite_id:"",buy_type:"",order_type:"",status:[1,4,5],goods_id:"",out_trade_no:"",payTime:[],order_group_id:""},tableData:[],dialogObj:{show:!1},newdialogObj:{show:!1},refundDialogObj:{show:!1,id:"",money:0},dialogDetailObj:{show:!1,detail:{}},goodList:[],inviteTypeOption:d.k,orderStatusOption:d.q,buyTypeOption:d.c,buyWay:d.e,inviteSearchPlaceholder:"",rules:{value:[{required:!0,message:"请输入备注",trigger:"change"}]},promoterDialog:{show:!1,nowPage:1,total:0,limit:100,teacher_id:""},teacherList:[],loading:!1}},methods:{formatTime:function(e){var t=e.getFullYear(),i=e.getMonth()+1;i<10&&(i="0"+i);var r=e.getDate();return r<10&&(r="0"+r),t+"-"+i+"-"+r},showRef:function(e){this.refundDetail.show=!0,this.refundDetail.out_trade_no=e.out_trade_no},showCoupon:function(e){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=e.order_coupon_id},showSource:function(e){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=e.out_trade_no},changeRow:function(e,t){t.indexOf(e)>-1&&Object(r._54)({out_trade_no:e.out_trade_no}).then(function(t){e.refundList=t.list})},exportTable:function(){var e={};this.searchFrom.nickname&&(e.nickname=this.searchFrom.nickname),this.searchFrom.user_id&&(e.user_id=this.searchFrom.user_id),this.searchFrom.invite_type&&(e.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(e.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(e.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(e.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(e.order_type=this.searchFrom.order_type),this.searchFrom.status&&(e.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(e.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(e.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(e.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(e.pay_start_at=this.searchFrom.payTime[0],e.pay_end_at=this.searchFrom.payTime[1]),e.course_type=0,Object(r._11)("/api/admin/order/export",e)},getGoodsOption:function(){var e=this;Object(r._37)({page:1,limit:100,course_type:0}).then(function(t){e.goodList=t.list})},onInviteTypeChange:function(e){0===e?this.inviteSearchPlaceholder="用户ID":1===e?this.inviteSearchPlaceholder="老师ID":2===e&&(this.inviteSearchPlaceholder="推广人ID"),this.getOrderList()},detail:function(e){var t=e;this.dialogDetailObj={show:!0,detail:t}},editComment:function(e,t){var i=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:t||""}).then(function(t){var o=t.value;i.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(r._4)(e,"order",{desc:o}).then(function(e){i.$message({type:"success",message:"编辑备注成功"}),i.getOrderList()})})})},onPageChange:function(e){this.nowPage=e,this.getOrderList()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getOrderList()},getOrderList: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.invite_type&&(t.invite_type=this.searchFrom.invite_type),this.searchFrom.invite_id&&(t.invite_id=this.searchFrom.invite_id),this.searchFrom.order_group_id&&(t.order_group_id=this.searchFrom.order_group_id),this.searchFrom.buy_type&&(t.buy_type=this.searchFrom.buy_type),this.searchFrom.order_type&&(t.order_type=this.searchFrom.order_type),this.searchFrom.status&&(t.status=this.searchFrom.status.toString()),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.out_trade_no&&(t.out_trade_no=this.searchFrom.out_trade_no),this.searchFrom.receive_mobile&&(t.receive_mobile=this.searchFrom.receive_mobile),this.searchFrom.payTime&&this.searchFrom.payTime.length>0&&(t.pay_start_at=this.searchFrom.payTime[0],t.pay_end_at=this.searchFrom.payTime[1]),t.course_type=0,Object(r._47)(t).then(function(t){t.list.forEach(function(e){e.refundList=[]}),e.tableData=t.list,e.total=t.total})},changeDetailShow:function(e){this.dialogDetailObj.show=e},changeShow:function(e){this.refundDialogObj.show=e},onRefund:function(e,t){this.refundDialogObj.id=e,this.refundDialogObj.money=t,this.refundDialogObj.show=!0},onAfterRefund:function(){this.refundDialogObj.show=!1,this.getOrderList()},onUpdateAddress:function(){this.dialogObj.show=!1,this.getOrderList()},editAddress:function(e){if(e.address_info&&e.address_info.province_name){var t=s.a.filter(function(t){return t.label===e.address_info.province_name});if(t&&t.length>0)if(this.dialogObj.province=e.address_info.province_id?e.address_info.province_id:t[0].value,e.address_info.city){var i=t[0].children.filter(function(t){return t.label===e.address_info.city});if(this.dialogObj.city=e.address_info.city_id?e.address_info.city_id:i[0].value,e.address_info.area){var r=i[0].children.filter(function(t){return t.label===e.address_info.area});this.dialogObj.district=e.address_info.area_id?e.address_info.area_id:r[0].value}else this.dialogObj.district=""}else this.dialogObj.city="";else this.dialogObj.province="",this.dialogObj.district="",this.dialogObj.city=""}else this.dialogObj.province="",this.dialogObj.city="",this.dialogObj.district="";this.dialogObj.detail=e.address_info?e.address_info.address:"",this.dialogObj.receive_mobile=e.address_info?e.address_info.receive_mobile:"",this.dialogObj.receive_name=e.address_info?e.address_info.receive_name:"",this.dialogObj.province_name=e.address_info?e.address_info.province_name:"",this.dialogObj.city_name=e.address_info?e.address_info.city:"",this.dialogObj.district_name=e.address_info?e.address_info.area:"",this.dialogObj.id=e.id,this.dialogObj.show=!0},getTeacherList:function(e){var t=this;this.loading=!0;var i={limit:this.promoterDialog.limit,page:this.promoterDialog.nowPage};e&&(i.name=e),Object(r._65)(i).then(function(e){t.teacherList=e.list,t.loading=!1})},handleCurrentTeacherChange:function(e){console.log("handleCurrentTeacherChange",e)},updateTeacher:function(e){this.promoterDialog.show=!0,this.promoterDialog.id=e.id,this.promoterDialog.teacher_id=e.invite_id,this.getTeacherList()},remoteMethod:function(e){""!==e?this.getTeacherList(e):this.getTeacherList()},saveTeacher:function(){var e=this;this.$confirm("此操作将修改推广人?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){console.log("this.promoterDialog.teacher_id",e.promoterDialog),Object(r._103)(e.promoterDialog.id,e.promoterDialog.teacher_id).then(function(t){e.promoterDialog.id="",e.promoterDialog.teacher_id="",e.promoterDialog.show=!1,e.$message({type:"success",message:"修改成功!"}),e.getOrderList()})})},add:function(){this.newdialogObj.show=!0}},components:{addressDialog:c,orderDialog:h,refundDialog:y,detailDialog:i("VU/8")(F,k,!1,function(e){i("6CEz")},"data-v-39efaed0",null).exports,refundDetail:i("VU/8")(D,x,!1,function(e){i("JZkw")},"data-v-fd44266c",null).exports,sourceDialog:v,couponDialog:j,page:o.a},mounted:function(){this.$route.query.code&&(this.searchFrom.invite_type=this.$route.query.code),this.getOrderList(),this.getGoodsOption()},watch:{"newdialogObj.show":function(e){e||this.getOrderList()}},filters:{payMentFilter:function(e){return"1"==e?"已付款":"未付款"},courseTypeFilter:function(e){return"1"==e.type?"正式课("+e.duration+"个月)":"试听课("+e.duration+"天)"},inviteType:function(e){return d.j[e]},status:function(e){return d.p[e]},buyType:function(e){return d.b[e]},moneytFilter:function(e){return e/100+"元"},filterGoods:function(e){return"["+d.g[e.goods_type]+"]["+e.current_price/100+"元]"+e.name},buyTypeWay:function(e){return d.d[e]}}},$={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"order"},[i("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[i("el-form-item",{attrs:{label:"用户ID"}},[i("el-input",{model:{value:e.searchFrom.user_id,callback:function(t){e.$set(e.searchFrom,"user_id",t)},expression:"searchFrom.user_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"用户昵称"}},[i("el-input",{model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人手机号"}},[i("el-input",{model:{value:e.searchFrom.receive_mobile,callback:function(t){e.$set(e.searchFrom,"receive_mobile",t)},expression:"searchFrom.receive_mobile"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"商品名称"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}},e._l(e.goodList,function(t,r){return i("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),i("el-form-item",{staticClass:"test",attrs:{label:"来源"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_type,callback:function(t){e.$set(e.searchFrom,"invite_type",t)},expression:"searchFrom.invite_type\t"}},[i("template",{slot:"prepend"},[e._v("CC -")])],2)],1),e._v(" "),i("el-form-item",{attrs:{label:"推广人ID"}},[i("el-input",{attrs:{placeholder:e.inviteSearchPlaceholder},model:{value:e.searchFrom.invite_id,callback:function(t){e.$set(e.searchFrom,"invite_id",t)},expression:"searchFrom.invite_id"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"购买方式"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.buy_type,callback:function(t){e.$set(e.searchFrom,"buy_type",t)},expression:"searchFrom.buy_type"}},e._l(e.buyTypeOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"支付类型"}},[i("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.order_type,callback:function(t){e.$set(e.searchFrom,"order_type",t)},expression:"searchFrom.order_type"}},e._l(e.buyWay,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"订单状态"}},[i("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:e.getOrderList},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},e._l(e.orderStatusOption,function(e){return i("el-option",{key:e.id,attrs:{label:e.value,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"交易订单号"}},[i("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),e._v(" "),i("el-form-item",{attrs:{label:"购买时间"}},[i("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},on:{change:e.getOrderList},model:{value:e.searchFrom.payTime,callback:function(t){e.$set(e.searchFrom,"payTime",t)},expression:"searchFrom.payTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.getOrderList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",plain:""},on:{click:e.exportTable}},[e._v("导出")])],1),e._v(" "),i("el-form-item",{staticStyle:{float:"right"}},[e.$store.state.readonly?e._e():i("el-button",{attrs:{type:"success",plain:""},on:{click:e.add}},[e._v("新增订单")])],1)],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,fixed:""},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),e._v(" "),i("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("img",{staticClass:"avatar",attrs:{src:t.row.user_avatar}}),e._v(" "+e._s(t.row.user_nickname)),i("br"),e._v("(ID:"+e._s(t.row.user_id)+")"),i("br"),e._v("手机:"+e._s(t.row.user_mobile)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),e._v(" "),i("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),i("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.invite_earnings>0&&0!==t.row.invite_id?i("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(i){e.showSource(t.row)}}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_earnings&&0!==t.row.invite_id?i("div",{staticStyle:{display:"flex"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.invite_avatar}}),e._v("\n 类型:"+e._s(t.row.invite_type)+" ("+e._s(t.row.invite_name)+")\n "),i("br"),e._v("\n 收益:"+e._s(t.row.invite_earnings/100)+"\n "),i("br"),e._v("\n 用户ID:"+e._s(t.row.invite_id)+"\n "),i("br"),e._v("\n 昵称:"+e._s(t.row.invite_nickname)+"\n "),i("br"),e._v("\n 手机:"+e._s(t.row.invite_mobile)+"\n ")]):e._e(),e._v(" "),0===t.row.invite_id?i("div",[e._v("\n\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.order_coupon_id?i("span",[e._v("\n\n ")]):e._e(),e._v(" "),0!==t.row.order_coupon_id?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showCoupon(t.row)}}},[e._v("\n 优惠券\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.status||3===t.row.status?i("el-button",{attrs:{type:"text"},on:{click:function(i){e.showRef(t.row)}}},[e._v(e._s(e._f("status")(t.row.status)))]):e._e(),e._v(" "),5!==t.row.status&&3!==t.row.status?i("div",[e._v(e._s(e._f("status")(t.row.status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneytFilter")(t.row.money))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"支付类型",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("buyTypeWay")(t.row.order_type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"收货地址"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.user_address_id&&t.row.address_info?i("div",[e._v("\n "+e._s(t.row.address_info.receive_name)),i("br"),e._v("\n "+e._s(t.row.address_info.receive_mobile)),i("br"),e._v("\n "+e._s(t.row.address_info.province_name)+e._s(t.row.address_info.city)+e._s(t.row.address_info.area)+e._s(t.row.address_info.address)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():i("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{placement:"top",width:"400"}},[i("div",{staticStyle:{"text-align":"center"}},[1!=t.row.status&&4!=t.row.status&&5!=t.row.status||!e.$store.state.orderRefund||3==t.row.order_type?e._e():i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.onRefund(t.row.id,t.row.money)}}},[e._v("\n 退款\n ")]),e._v(" "),i("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(i){e.editComment(t.row.id,t.row.desc)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),t.row.user_address_id?i("el-button",{attrs:{plain:"",type:"info",size:"mini"},on:{click:function(i){e.editAddress(t.row)}}},[e._v("\n 编辑收货地址\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{type:"warning",plain:"",size:"mini"},on:{click:function(i){e.updateTeacher(t.row)}}},[e._v("\n 编辑推广人\n ")])],1),e._v(" "),i("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),i("address-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onUpdateAddress}}),e._v(" "),i("order-dialog",{attrs:{newdialogObj:e.newdialogObj},on:{reflash:e.getOrderList}}),e._v(" "),i("refund-dialog",{attrs:{dialogObj:e.refundDialogObj},on:{reflash:e.onAfterRefund,changeShow:e.changeShow}}),e._v(" "),i("detail-dialog",{attrs:{dialogObj:e.dialogDetailObj},on:{changeShow:e.changeDetailShow}}),e._v(" "),i("source-dialog",{attrs:{dialogObj:e.sourceDialog}}),e._v(" "),i("refund-detail",{attrs:{dialogObj:e.refundDetail}}),e._v(" "),i("coupon-dialog",{attrs:{dialogObj:e.couponDetail}}),e._v(" "),i("el-dialog",{attrs:{title:"修改推广人",center:"","append-to-body":"",visible:e.promoterDialog.show,width:"600"},on:{"update:visible":function(t){e.$set(e.promoterDialog,"show",t)}}},[i("el-form",{ref:"form",attrs:{"label-width":"120px"}},[i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",remote:"",clearable:"",placeholder:"请输入名称","remote-method":e.remoteMethod,loading:e.loading},model:{value:e.promoterDialog.teacher_id,callback:function(t){e.$set(e.promoterDialog,"teacher_id",t)},expression:"promoterDialog.teacher_id"}},e._l(e.teacherList,function(e){return i("el-option",{key:e.id,attrs:{label:e.name,value:e.user_id}})}))],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.promoterDialog.show=!1}}},[e._v("取 消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.saveTeacher}},[e._v("确 定")])],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}})],1)},staticRenderFns:[]};var T=i("VU/8")(S,$,!1,function(e){i("Klkp"),i("UAAZ")},"data-v-2f9a210c",null);t.default=T.exports}});
\ No newline at end of file
webpackJsonp([6],{"/RlY":function(t,e){},"6AGP":function(t,e){},"9PRC":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("CCn6"),o=a("kmJW"),l=a("O6Rd"),n=a("G2rA"),s=a("kmsh"),r=a("+TkF"),c={props:["dialogObj"],data:function(){return{form:{id:"",teacher_id:""},teacherList:[]}},methods:{initPage:function(){var t=this;Object(i._65)({page:1,limit:200}).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(i.m)(this.form.id,e).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.$emit("reflash"),t.dialogObj.show=!1})}},watch:{"dialogObj.show":function(t){t&&this.initPage()}}},_={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 u=a("VU/8")(c,_,!1,function(t){a("xLof")},"data-v-218bfcb9",null).exports,d=a("0qGg"),f={name:"index",data:function(){return{userList:[],total:0,sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""},nowPage:1,limit:3,id:"",detail:{},periodList:[],dialogObj:{show:!1,title:"绑定老师",id:0,teacher_id:0},list:[],userObj:{classId:"",title:"",show:!1},privilegeDialog:{show:!1,isAllowView:!1,is_add_teacher:0,weight:0,id:""},descDialog:{show:!1,descList:[],nowPage:1,limit:10,total:0,userInfo:null},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,limit:10,total:0},isAddTeacherList:[{label:"未加好友",value:0},{label:"老师主动添加用户",value:1},{label:"用户主动添加老师",value:2}]}},components:{page:o.a,teacherDialog:u,UserList:d.a,refundDetail:n.a,sourceDialog:l.a,couponDialog:s.a},mounted:function(){this.id=this.$route.params.id,this.getDetail(),this.getUser()},methods:{getUserLook:function(){var t=this;if(this.lookDetail.data){this.lookDetail.show=!0,this.lookDetail.loading=!0;var e={limit:this.lookDetail.limit,page:this.lookDetail.nowPage},a=this.lookDetail.data;Object(i._110)(a.periods_id,a.user_id,e).then(function(e){t.lookDetail.list=e.list,t.lookDetail.loading=!1,t.lookDetail.total=e.total})}},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.getUserLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.getUserLook()},onDescDialogPageChange:function(t){this.descDialog.nowPage=t,this.getUserDescList()},onDescDialogSizeChange:function(t){this.descDialog.limit=t,this.descDialog.nowPage=1,this.getUserDescList()},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no},changeRow:function(t,e){var a=this;this.list=[],e.indexOf(t)>-1&&Object(i._49)(t.periods_id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate,a.list=[t]})},onPageChange:function(t){this.nowPage=t,this.getUser()},onSizeChange:function(t){this.nowPage=1,this.limit=t,this.getUser()},getUser:function(){var t=this,e={user_id:this.id,limit:this.limit,page:this.nowPage,status:"1,4,5"};Object(i._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.userList=e.list,t.total=e.total})},getDetail:function(){var t=this;this.id&&Object(i._68)(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}},showUser:function(t){this.userObj={classId:t.class_id,show:!0,title:t.teacher_name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},editPrivilege:function(t){this.privilegeDialog={id:t.id,isAllowView:1===t.is_view_course,is_add_teacher:t.is_add_teacher?t.is_add_teacher:0,weight:t.weight?t.weight:0,show:!0}},onGetUserDescList:function(t){this.descDialog.show=!0,this.descDialog.userInfo={user_id:t.user_id,avatar:this.detail.avatar,nickname:this.detail.nickname},this.descDialog.id=t.id,this.getUserDescList()},getUserDescList:function(){var t=this,e={page:this.descDialog.nowPage,limit:this.descDialog.limit};Object(i._67)(this.descDialog.id,e).then(function(e){t.descDialog.descList=e.list,t.descDialog.total=e.total})},userLook:function(t){var e=this;this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};this.lookDetail.data={periods_id:t.periods_id,user_id:t.user_id},Object(i._110)(t.periods_id,t.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},editComment:function(t){var e=this;this.$prompt("","添加备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(a){var o=a.value;Object(i.l)(t,{desc:o}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.getUserDescList()})})},changePrivilegeSub:function(){var t=this;this.$confirm("此操作将修改用户权限?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={is_view_course:t.privilegeDialog.isAllowView?1:0,is_add_teacher:t.privilegeDialog.is_add_teacher,weight:t.privilegeDialog.weight};Object(i._108)(t.privilegeDialog.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.privilegeDialog.show=!1,t.getDetail()})})}},filters:{payMentFilter:function(t){return"1"==t?"已付款":"未付款"},courseTypeFilter:function(t){return"1"==t.type?"正式课("+t.duration+"个月)":"试听课("+t.duration+"天)"},inviteType:function(t){return r.j[t]},status:function(t){return r.p[t]},buyType:function(t){return r.b[t]},moneytFilter:function(t){return t/100+"元"},percent:function(t){return(100*t).toFixed(2)+"%"}}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user"},[a("el-card",{staticClass:"user-card"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticClass:"title",attrs:{span:24}},[a("a",{attrs:{href:t.detail.avatar,target:"_blank"}},[a("img",{attrs:{src:t.detail.avatar}})]),t._v(" "),a("div",{staticStyle:{"text-align":"center"}},[t._v("\n "+t._s(t.detail.nickname)+" (ID: "+t._s(t.id)+")\n ")])])],1),t._v(" "),a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("label",[t._v("tel:")]),t._v(t._s(t.detail.mobile)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("生日:")]),t._v(t._s(t.detail.birthday)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("等级:")]),t._v(t._s(t.detail.level)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("邀请类型:")]),t._v(t._s(t._f("inviteType")(t.detail.invite_type))+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[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:12}},[a("label",[t._v("已绑定老师:")]),t._v(t._s(t.detail.teacher_name)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("注册时间:")]),t._v(t._s(t.detail.created_at)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:12}},[a("label",[t._v("最后登录:")]),t._v(t._s(t.detail.last_login_at)+"\n ")])],1)],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"期数列表"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.periodList},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),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:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"400px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v(" 班级成员")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(a){t.editPrivilege(e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){t.onGetUserDescList(e.row)}}},[t._v("备注")]),t._v(" "),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(a){t.userLook(e.row)}}},[t._v("看课情况 ")])]}}])})],1)],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表"}},[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:{label:"购买人",className:"f-c",width:"150"},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)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人属性"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+"\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},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:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),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,sizeChange:t.onSizeChange}})],1)],1),t._v(" "),a("teacher-dialog",{attrs:{dialogObj:t.dialogObj},on:{reflash:t.getDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj}}),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.privilegeDialog.show,title:"编辑权限"},on:{"update:visible":function(e){t.$set(t.privilegeDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",{attrs:{label:"是否添加老师"}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.privilegeDialog.is_add_teacher,callback:function(e){t.$set(t.privilegeDialog,"is_add_teacher",e)},expression:"privilegeDialog.is_add_teacher"}},t._l(t.isAddTeacherList,function(t,e){return a("el-option",{key:e,attrs:{label:t.label,value:t.value}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"看课权限"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:t.privilegeDialog.isAllowView,callback:function(e){t.$set(t.privilegeDialog,"isAllowView",e)},expression:"privilegeDialog.isAllowView"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"意向等级"}},[a("el-input-number",{attrs:{min:0,step:1},model:{value:t.privilegeDialog.weight,callback:function(e){t.$set(t.privilegeDialog,"weight",e)},expression:"privilegeDialog.weight"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.privilegeDialog.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.changePrivilegeSub()}}},[t._v("确 定")])],1)],1),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.descDialog.show,title:"备注列表",width:"60%"},on:{"update:visible":function(e){t.$set(t.descDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:function(e){t.editComment(t.descDialog.id)}}},[t._v("添加备注")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.descDialog.descList}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t.descDialog.userInfo?[a("img",{staticStyle:{width:"40px",height:"40px","border-radius":"50px"},attrs:{src:t.descDialog.userInfo.avatar}}),t._v(" "+t._s(t.descDialog.userInfo.nickname)+"(ID:"+t._s(t.descDialog.userInfo.user_id)+")\n ")]:void 0}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{prop:"operator",label:"备注人"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"}})],1),t._v(" "),a("page",{attrs:{nowPage:t.descDialog.nowPage,total:t.descDialog.total,limit:t.descDialog.limit},on:{pageChange:t.onDescDialogPageChange,sizeChange:t.onDescDialogSizeChange}})],1),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{nowPage:t.lookDetail.nowPage,total:t.lookDetail.total,limit:t.lookDetail.limit},on:{pageChange:t.onLookDetailPageChange,sizeChange:t.onLookDetailSizeChange}})],1)],1)},staticRenderFns:[]};var p=a("VU/8")(f,v,!1,function(t){a("DkqN"),a("viiR")},"data-v-ad7ff9ca",null);e.default=p.exports},DkqN:function(t,e){},G2rA:function(t,e,a){"use strict";var i=a("CCn6"),o={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._54)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[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.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("6AGP")},"data-v-4a64444c",null);e.a=n.exports},O6Rd:function(t,e,a){"use strict";var i=a("CCn6"),o={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._74)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[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.status))+"\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:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("/RlY")},"data-v-685cba10",null);e.a=n.exports},RpKh:function(t,e){},kmsh:function(t,e,a){"use strict";var i=a("CCn6"),o={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(i._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_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:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\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("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("RpKh")},"data-v-1bce14d4",null);e.a=n.exports},viiR:function(t,e){},xLof:function(t,e){}});
\ No newline at end of file
webpackJsonp([7],{"6ZP5":function(t,e){},CfzE:function(t,e,a){"use strict";var s=a("CCn6"),i=a("kmJW"),o=a("+TkF"),l={name:"goodsList",props:["dialogObj"],data:function(){return{searchFrom:{name:"",goods_type:"",status:"1",course_id:""},goodsList:[],classList:[],total:0,nowPage:1,limit:10,show:!1,code:""}},components:{page:i.a},filters:{isOrNot:function(t){return o.n[t]},goodsType:function(t){return o.g[t]},lessonType:function(t){return o.o[t]},goodsStatus:function(t){return o.f[t]},goodsDesc:function(t){return JSON.parse(t).desc}},methods:{getList:function(){var t=this,e={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(e.name=this.searchFrom.name),this.searchFrom.goods_type&&(e.goods_type=this.searchFrom.goods_type),this.searchFrom.course_id&&(e.course_id=this.searchFrom.course_id),this.searchFrom.status&&(e.status=this.searchFrom.status),this.searchFrom.current_price&&(e.current_price=100*this.searchFrom.current_price),Object(s._37)(e).then(function(e){t.goodsList=e.list,t.total=e.total})},getClassList:function(){var t=this;Object(s._40)({limit:200,page:1}).then(function(e){console.log(e),t.classList=e.list})},copyUrl:function(t){if(this.code){var e="https://wechat.changchangenglish.com/#/buyDetail?shopId="+t+"&invite_code="+this.code,a=document.createElement("input");a.value=e,document.body.appendChild(a),a.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),a.remove(),this.$emit("changeShow")}},onPageChange:function(t){this.nowPage=t,this.getList()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getList()},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.code&&(this.code=this.dialogObj.code)}},watch:{"dialogObj.show":function(t){t&&(this.initDialog(),this.getClassList(),this.getList())},show:function(t){this.$emit("changeShow",t)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"复制链接",visible:t.show,modal:!1,width:"80%"},on:{"update:visible":function(e){t.show=e}}},[a("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:t.searchFrom,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"商品名称"}},[a("el-input",{model:{value:t.searchFrom.name,callback:function(e){t.$set(t.searchFrom,"name",e)},expression:"searchFrom.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品类型"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getList},model:{value:t.searchFrom.goods_type,callback:function(e){t.$set(t.searchFrom,"goods_type",e)},expression:"searchFrom.goods_type"}},[a("el-option",{attrs:{value:"",label:"请选择"}}),t._v(" "),a("el-option",{attrs:{label:"普通商品",value:1}}),t._v(" "),a("el-option",{attrs:{label:"团购商品",value:2}}),t._v(" "),a("el-option",{attrs:{label:"续课商品",value:3}}),t._v(" "),a("el-option",{attrs:{label:"优惠券商品",value:4}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"课程"}},[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.getList},model:{value:t.searchFrom.course_id,callback:function(e){t.$set(t.searchFrom,"course_id",e)},expression:"searchFrom.course_id"}},[a("el-option",{attrs:{value:"",label:"请选择"}}),t._v(" "),t._l(t.classList,function(t,e){return a("el-option",{key:e,attrs:{label:t.title,value:t.id}})})],2)],1),t._v(" "),a("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[a("el-input-number",{model:{value:t.searchFrom.current_price,callback:function(e){t.$set(t.searchFrom,"current_price",e)},expression:"searchFrom.current_price"}})],1),t._v(" "),a("el-form-item",[a("div",{staticClass:"search-btn-block"},[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:t.getList}},[t._v("搜索")])],1)])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.goodsList}},[a("el-table-column",{attrs:{prop:"id",width:"50px",label:"编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("router-link",{attrs:{to:{name:"periods",query:{goods_id:e.row.id}}}},[t._v("\n "+t._s(e.row.name)+"\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("goodsType")(e.row.goods_type))+"\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.original_price/100)+"元\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.current_price/100)+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"course_title",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("lessonType")(e.row.course_type))+"\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("goodsDesc")(e.row.desc))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"100",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(a){t.copyUrl(e.row.id)}}},[t._v("\n 复制链接\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1)},staticRenderFns:[]};var r=a("VU/8")(l,n,!1,function(t){a("mgcB")},null,null);e.a=r.exports},"MYx/":function(t,e){},QAtD:function(t,e){},WpiT:function(t,e){},bbU0:function(t,e){},hFUZ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("CCn6"),i=a("+TkF"),o=(a("xGts"),{name:"task",data:function(){return{id:this.$route.params.id,task1List:[],task2List:[],task3List:[],task1Detail:{show:!1,list:[],cur_date:""},task2Detail:{show:!1,list:[],weight:""},descDialog:{show:!1,id:"",descList:[],user_info:null},task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:""}}},methods:{showTask3Detail:function(t,e,a,i){var o=this,l={is_true:e,is_watch:a,cur_date:i};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=i,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",Object(s._72)(t.periods_id,this.id,l).then(function(t){o.task3Detail.loading=!1,o.task3Detail.list=t})},editComment:function(t){var e=this;this.$prompt("","添加备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(a){var i=a.value;Object(s.l)(t,{desc:i}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.getUserDescList(),e.refDesc1(),e.refDesc2(),e.task3Detail.list&&e.task3Detail.list.length>0&&e.refDesc3()})})},refDesc3:function(){var t=this,e={is_true:this.task3Detail.is_true,is_watch:this.task3Detail.is_watch,cur_date:this.task3Detail.cur_date};this.task3Detail.loading=!0,Object(s._72)(this.task3Detail.periods_id,this.id,e).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e})},showTask2Detail:function(t){this.task2Detail={show:!0,list:t.detail,weight:t.weight}},showTask1Detail:function(t){this.task1Detail={show:!0,list:t.detail,cur_date:t.cur_date}},refDesc1:function(){var t=this;Object(s._93)(this.id).then(function(e){t.task1List=e,e.forEach(function(e){e.cur_date===t.task1Detail.cur_date&&(t.task1Detail.list=e.detail)})})},refDesc2:function(){var t=this;Object(s._94)(this.id).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})})},changeAddTeacher:function(t){var e=this;Object(s.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc1(),e.refDesc2()})},changeAddTeacher3:function(t){var e=this;Object(s.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight3:function(t){var e=this;Object(s._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight:function(t){var e=this;Object(s._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},changeView:function(t){var e=this;Object(s._8)(t.id,t.is_view_course).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},editDesc3:function(t){var e=this;this.$prompt("","请输入备注",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(a){var i=a.value;Object(s.l)(t.id,{desc:i}).then(function(t){e.$message({type:"success",message:"更新成功"}),e.refDesc3()})}).catch(function(){})},editDesc:function(t){this.descDialog.show=!0,this.descDialog.id=t.id,this.descDialog.user_info={avatar:t.avatar,nickname:t.nickname,user_id:t.user_id},this.getUserDescList()},getUserDescList:function(){var t=this;Object(s._67)(this.descDialog.id,{limit:1e3}).then(function(e){t.descDialog.descList=e.list})},initPage:function(){var t=this;Object(s._93)(this.id).then(function(e){t.task1List=e}),Object(s._94)(this.id).then(function(e){t.task2List=e}),Object(s._95)(this.id).then(function(e){t.task3List=e})}},mounted:function(){this.initPage()}}),l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"font-size":"14px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务1:好友添加")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task1List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_add_teacher_num",label:"当天进班人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_num",label:"需加好友人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row)}}},[t._v(t._s(e.row.need_add_teacher_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"add_rate",label:"加好友率",align:"center"}})],1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务2:意向等级跟踪")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task2List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"weight",label:"意向等级",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_num",label:"总人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask2Detail(e.row)}}},[t._v(t._s(e.row.total_num))])]}}])})],1)],1)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title"},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n 【"+t._s(e.periods_id)+"】"+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"start"},[a("div",{staticClass:"header bg-h"},[t._v("开课日期")]),t._v("\n "+t._s(e.start_at)+"\n ")]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"watch"},[a("div",{staticClass:"header bg-h"},[t._v("已推课程数")]),t._v("\n "+t._s(e.has_watch_num)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(s){return a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(s.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==s.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===s.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,s.cur_date)}}},[t._v(t._s(s.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==s.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===s.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,s.cur_date)}}},[t._v(t._s(s.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==s.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===s.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,s.cur_date)}}},[t._v(t._s(s.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==s.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===s.is_start_course?a("span",[t._v(t._s(s.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==s.is_start_course?a("span",[t._v("暂未开课")]):t._e(),t._v(" "),1===s.is_start_course?a("span",[t._v(t._s(s.work_rate))]):t._e()])])})],2)])})],2)],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.task1Detail.show,width:"80%"},on:{"update:visible":function(e){t.$set(t.task1Detail,"show",e)}}},[a("el-table",{attrs:{data:t.task1Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.periods_title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师",width:"105",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"老师已添加未户未通过",value:3}}),t._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"入课时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(a){t.editDesc(e.row)}}},[t._v("备注")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.task2Detail.show,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课权限"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeView(e.row)}},model:{value:e.row.is_view_course,callback:function(a){t.$set(e.row,"is_view_course",a)},expression:"scope.row.is_view_course"}},[a("el-option",{attrs:{label:"否",value:0}}),t._v(" "),a("el-option",{attrs:{label:"是",value:1}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",prop:"last_login_at"},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:{label:"备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.desc)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"95",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(a){t.editDesc(e.row)}}},[t._v("备注")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.descDialog.show,title:"备注列表"},on:{"update:visible":function(e){t.$set(t.descDialog,"show",e)}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:function(e){t.editComment(t.descDialog.id)}}},[t._v("添加备注")])],1)],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.descDialog.descList}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return t.descDialog.user_info?[a("img",{staticStyle:{width:"40px",height:"40px","border-radius":"50px"},attrs:{src:t.descDialog.user_info.avatar}}),t._v(" "+t._s(t.descDialog.user_info.nickname)+"(ID:"+t._s(t.descDialog.user_info.user_id)+")\n ")]:void 0}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{prop:"operator",label:"备注人"}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"创建时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"updated_at",label:"更新时间"}})],1)],1),t._v(" "),a("el-dialog",{attrs:{visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",prop:"last_login_at"},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:{label:"备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.desc)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"95",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher3(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"否",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight3(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"warning",size:"mini"},on:{click:function(a){t.editDesc(e.row)}}},[t._v("备注")])]}}])})],1)],1)],1)},staticRenderFns:[]};var n=a("VU/8")(o,l,!1,function(t){a("bbU0")},"data-v-3b2964f6",null).exports,r=a("kmJW"),c={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(s._74)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[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.status))+"\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:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var _=a("VU/8")(c,u,!1,function(t){a("MYx/")},"data-v-334fc0ab",null).exports,d={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(s._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_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:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\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("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var f=a("VU/8")(d,h,!1,function(t){a("WpiT")},"data-v-3145d719",null).exports,v={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(s._54)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[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.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var m=a("VU/8")(v,p,!1,function(t){a("qteX")},"data-v-1fb6ff96",null).exports,b=a("0qGg"),g=a("CfzE"),w={name:"index",components:{page:r.a,task:n,UserList:b.a,chooseGoodDialog:g.a,couponDialog:f,refundDetail:m,sourceDialog:_},data:function(){return{searchFrom:{user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""},form:{nickname:"",user_id:"",status:[1,4,5],goods_id:"",out_trade_no:"",receive_mobile:"",mobile:""},goodList:[],orderStatusOption:i.q,tableData:[],userList:[],list:[],id:"",isBindUser:!0,addShow:!1,detail:{},total:0,limit:10,nowPage:1,userObj:{classId:"",title:"",show:!1,total:0,limit:10,nowPage:1},addId:"",multipleSelection:[],chooseGoodDialogObj:{show:!1,code:""},orderListObj:{total:0,limit:10,nowPage:1},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""}}},methods:{handleSelectionChange:function(t){this.multipleSelection=t},onAdd:function(){var t=this;0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.addId=this.multipleSelection[0].user_id,this.addId&&this.isBindUser&&Object(s._96)(this.id,{user_id:this.addId}).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.id=t.$route.params.id,t.getTeacherDetail(),t.getGoodsOption(),t.addShow=!1})):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})},onAddUser:function(t){this.isBindUser=t,this.addShow=!0,this.getUser()},getUser:function(){var t=this,e={page:this.userObj.nowPage,limit:this.userObj.limit};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._69)(e).then(function(e){t.userList=e.list,t.userObj.total=e.total})},changeRow:function(t,e){e.indexOf(t)>-1&&Object(s._27)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},showUser:function(t){this.userObj={classId:t.id,show:!0,title:this.detail.name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},onPageChange3:function(t){this.userObj.nowPage=t,this.getUser()},onSizeChange3:function(t){this.userObj.limit=t,this.userObj.nowPage=1,this.getUser()},onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getTeacherDetail()},onPageChange2:function(t){this.orderListObj.nowPage=t,this.getOrderList()},onSizeChange2:function(t){this.orderListObj.limit=t,this.orderListObj.nowPage=1,this.getOrderList()},getTeacherDetail:function(){var t=this;this.searchFrom={user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""};var e=this.id,a={limit:this.limit,page:this.nowPage};Object(s._64)(e,a).then(function(e){e.class_list&&(e.class_list.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.list=e.class_list.list||[],t.total=e.class_list.total),t.detail=e,t.getOrderList()})},createInviteLink:function(t){this.chooseGoodDialogObj.show=!0,0==this.detail.type?this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id:1==this.detail.type?this.chooseGoodDialogObj.code="CC-XXMM-"+t.user_id:this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},getOrderList:function(){var t=this,e={limit:this.orderListObj.limit,page:this.orderListObj.nowPage};this.form.nickname&&(e.nickname=this.form.nickname),this.form.user_id&&(e.user_id=this.form.user_id),this.form.status&&(e.status=this.form.status.toString()),this.form.goods_id&&(e.goods_id=this.form.goods_id),this.form.receive_mobile&&(e.receive_mobile=this.form.receive_mobile),this.form.out_trade_no&&(e.out_trade_no=this.form.out_trade_no),this.form.mobile&&(e.mobile=this.form.mobile),0!==this.detail.user_id&&(e.invite_id=this.detail.user_id,Object(s._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.tableData=e.list,t.orderListObj.total=e.total}))},getGoodsOption:function(){var t=this;Object(s._37)({page:1,limit:100,course_type:0}).then(function(e){t.goodList=e.list})},editComment:function(t,e){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:e||""}).then(function(e){var i=e.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._4)(t,"order",{desc:i}).then(function(t){a.$message({type:"success",message:"编辑备注成功"}),a.getOrderList()})})})},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no}},filters:{teacherType:function(t){return i.u[t]},percent:function(t){return(100*t).toFixed(2)+"%"},status:function(t){return i.p[t]},moneytFilter:function(t){return t/100+"元"},filterGoods:function(t){return"["+i.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name}},mounted:function(){this.id=this.$route.params.id,this.getTeacherDetail(),this.getGoodsOption()}},k={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"teacher"},[a("div",{staticClass:"header"},[a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[a("label",[t._v(t._s(t._f("teacherType")(t.detail.type))+":")]),t._v(" "+t._s(t.detail.name)+"\n ")]),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"success",plain:""},on:{click:function(e){t.onAddUser(!0)}}},[t._v("老师绑定用户")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.qr,target:"_blank"}},[a("img",{attrs:{src:t.detail.qr}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n "),a("br"),t._v(" "),a("label",[t._v("带班总人数:")]),t._v(t._s(t.detail.total_join_num)+"\n "),a("br"),t._v(" "),a("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])])]),t._v(" "),t.detail.user_info?a("el-card",{staticStyle:{width:"450px",display:"inline-block"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("绑定用户")]),t._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(e){t.createInviteLink(t.detail.user_info)}}},[t._v("\n 复制专属链接\n ")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.user_info.nickname)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("用户ID:")]),t._v(" "+t._s(t.detail.user_info.user_id)+"\n ")])])]):t._e()],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"今日任务"}},[a("task")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"期数列表"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"已进班人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_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:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v("\n 班级成员\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表"}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:t.form.user_id,callback:function(e){t.$set(t.form,"user_id",e)},expression:"form.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户手机号"}},[a("el-input",{model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"收件人手机号"}},[a("el-input",{model:{value:t.form.receive_mobile,callback:function(e){t.$set(t.form,"receive_mobile",e)},expression:"form.receive_mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,s){return a("el-option",{key:s,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.orderStatusOption,function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"交易订单号"}},[a("el-input",{model:{value:t.form.out_trade_no,callback:function(e){t.$set(t.form,"out_trade_no",e)},expression:"form.out_trade_no"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getOrderList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticClass:"order_list",staticStyle:{width:"100%"},attrs:{data:t.tableData,fixed:""}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},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)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")"),a("br"),t._v("手机:"+t._s(e.row.user_mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},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:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"200"}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(a){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 编辑备注\n ")])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),a("page",{attrs:{total:t.orderListObj.total,limit:t.orderListObj.limit},on:{pageChange:t.onPageChange2,sizeChange:t.onSizeChange2}})],1)],1),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getTeacherDetail}}),t._v(" "),a("choose-good-dialog",{attrs:{dialogObj:t.chooseGoodDialogObj},on:{changeShow:t.changeShow}}),t._v(" "),a("el-dialog",{attrs:{modal:!1,visible:t.addShow},on:{"update:visible":function(e){t.addShow=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.getUser}},[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.userObj.total,limit:t.userObj.limit},on:{pageChange:t.onPageChange3,sizeChange:t.onSizeChange3}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addShow=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var y=a("VU/8")(w,k,!1,function(t){a("QAtD"),a("6ZP5")},"data-v-8e1342e4",null);e.default=y.exports},mgcB:function(t,e){},qteX:function(t,e){}});
\ No newline at end of file
webpackJsonp([9],{AbSL:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=s("CCn6"),o=s("kmJW"),n=s("lP78"),a=s.n(n),l=s("WY0H"),r=s.n(l),c={name:"dialogObj",props:["dialogObj"],data:function(){return{selectedLesson:[],selectedLessonList:[],lessonList:[],showLessonList:[],selectedBox:[],selectedBoxList:[],boxList:[],showBoxList:[],imageList:[],loading:!1,uploadShow:!0,downSrc:a.a,upSrc:r.a,form:{title:"",type:0,text_category_ids:[],item_category_ids:[],cover:0},rules:{title:[{required:!0,message:"请输入课程标题",trigger:"change"}]}}},methods:{handleItemChange:function(e){},changLessonItem:function(){0===this.form.type?this.showLessonList.forEach(function(e){e.children=e.children||[],e.children.forEach(function(e){e.children&&delete e.children})}):this.showLessonList=this.lessonList},delLesson:function(e){this.selectedLessonList=this.selectedLessonList.filter(function(t){return t.id!==e.id})},delBox:function(e){this.selectedBoxList=this.selectedBoxList.filter(function(t){return t.id!==e.id})},selectLesson:function(e){var t=this.showLessonList.find(function(t){return t.id===e[0]});t.children&&(t=t.children.find(function(t){return t.id===e[1]}),3===e.length&&(t=t.children.find(function(t){return t.id===e[2]})),-1===this.selectedLessonList.findIndex(function(e){return e===t})?this.selectedLessonList.push(t):this.$message({type:"info",message:"不能重复添加!"}))},selectBox:function(e){var t=this.showBoxList.find(function(t){return t.id===e[0]});-1===this.selectedBoxList.findIndex(function(e){return e===t})?this.selectedBoxList.push(t):this.$message({type:"info",message:"不能重复添加!"})},sub:function(){var e=this;this.$refs.form.validate(function(t){var s=[],o=[];e.selectedBoxList.forEach(function(e){s.push(e.id)}),e.selectedLessonList.forEach(function(e){o.push(e.id)}),e.imageList[0]&&(e.form.cover=e.imageList[0].name);var n=e.form;if(n.item_category_ids=s.toString(),n.text_category_ids=o.toString(),t){if(!e.form.cover)return void e.$message({type:"error",message:"请上传封面!"});if(!n.text_category_ids)return void e.$message({type:"error",message:"请选择课程!"});switch(e.dialogObj.type){case 1:Object(i._3)(e.dialogObj.id,n).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:Object(i.k)(n).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}}})},initDialog:function(){var e=this;Object(i._21)().then(function(t){t&&(e.boxList=t,e.showBoxList=JSON.parse(JSON.stringify(t)))}),Object(i._23)().then(function(t){switch(e.lessonList=t,e.showLessonList=JSON.parse(JSON.stringify(t)),e.dialogObj.type){case 0:e.form={title:"",type:0,text_category_ids:[],item_category_ids:[],cover:0},e.uploadShow=!0,e.imageList=[],e.selectedLessonList=[],e.selectedBoxList=[];break;case 1:Object(i._41)(e.dialogObj.id).then(function(t){e.form={title:t.title,type:t.type,text_category_ids:[],item_category_ids:[],cover:""},e.imageList=[{name:t.cover,url:"https://cdn.singsingenglish.com/"+t.cover}],e.uploadShow=!1,e.selectedLessonList=[],e.selectedBoxList=[],0===t.type?t.detail[0].forEach(function(t){e.selectLesson([t.pid,t.id])}):1===t.type&&t.detail[1].forEach(function(t){var s=e.showLessonList.find(function(e){return e.children=e.children||[],e.children.find(function(e){return e.id===t.pid})});e.selectLesson([s.id,t.pid,t.id])}),t.detail[2]&&t.detail[2].forEach(function(t){e.selectBox([t.id])})});break;case 2:e.title="编辑",e.show=e.dialogObj.show,e.id=e.dialogObj.id,e.type=2}})},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},handleAvatarSuccess:function(e){this.imageList=[{name:e.data.url,url:"https://cdn.singsingenglish.com/"+e.data.url}]},uploadFileMain:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(i._109)({file:e.file,type:"local"}).then(function(e){t.form.cover="https://cdn.singsingenglish.com/"+e.url,t.imageList[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}})},moveBox:function(e,t){var s=this.selectedBoxList,i=s[e],o=s[t];this.selectedBoxList.splice(e,1,o),this.selectedBoxList.splice(t,1,i)},moveItem:function(e,t){var s=this.selectedLessonList,i=s[e],o=s[t];this.selectedLessonList.splice(e,1,o),this.selectedLessonList.splice(t,1,i)}},watch:{"dialogObj.show":function(e){e&&this.initDialog()}}},d={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:e.dialogObj.title,center:"","append-to-body":"",visible:e.dialogObj.show,width:"800px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px",rules:e.rules,disabled:e.dialogObj.read}},[s("el-form-item",{attrs:{label:"课程标题",prop:"title"}},[s("el-input",{model:{value:e.form.title,callback:function(t){e.$set(e.form,"title",t)},expression:"form.title"}})],1),e._v(" "),s("el-form-item",{attrs:{label:"课程封面(670*472)"}},[s("el-upload",{class:{disabled:!e.uploadShow},attrs:{action:"/api/public/upload","http-request":e.uploadFileMain,"before-upload":e.beforeAvatarUpload,"list-type":"picture-card","file-list":e.imageList,"on-success":e.handleAvatarSuccess,"on-remove":e.handleRemove}},[s("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"课程类型"}},[s("el-select",{attrs:{placeholder:"请选择课程类型"},on:{change:function(t){e.selectedLesson=[],e.selectedLessonList=[]}},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[s("el-option",{attrs:{label:"月课",value:0}}),e._v(" "),s("el-option",{attrs:{label:"日课",value:1}})],1)],1)],1),e._v(" "),s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"选择课程"}},[s("el-cascader",{attrs:{clearable:"",value:e.selectedLesson,options:e.showLessonList,"show-all-levels":!1,props:{label:"name",value:"id",children:"children"}},on:{"active-item-change":e.changLessonItem,change:e.selectLesson}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"已选课程"}},e._l(e.selectedLessonList,function(t,i){return s("div",{key:i,staticClass:"selected-block"},[s("el-card",{attrs:{shadow:"always"}},[s("div",{staticClass:"name"},[e._v(e._s(i+1)+"."+e._s(t.name))]),e._v(" "),e.dialogObj.read?e._e():s("div",{staticClass:"move"},[0!==i?s("img",{staticClass:"directionIcon",attrs:{src:e.upSrc},on:{click:function(t){e.moveItem(i-1,i)}}}):e._e(),e._v(" "),i!==e.selectedLessonList.length-1?s("img",{staticClass:"directionIcon",attrs:{src:e.downSrc},on:{click:function(t){e.moveItem(i,i+1)}}}):e._e(),e._v(" "),s("i",{staticClass:"el-icon-delete grey",on:{click:function(s){e.delLesson(t)}}})])])],1)}))],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:10}},[s("el-form-item",{attrs:{label:"选择盒子"}},[s("el-cascader",{attrs:{clearable:"",value:e.selectedBox,options:e.showBoxList,"show-all-levels":!1,"expand-trigger":"hover",props:{label:"name",value:"id",children:"children"}},on:{change:e.selectBox}})],1)],1)],1),e._v(" "),s("el-row",[s("el-col",{attrs:{span:24}},[s("el-form-item",{attrs:{label:"已选盒子"}},e._l(e.selectedBoxList,function(t,i){return s("div",{key:t.id,staticClass:"selected-block"},[s("el-card",{attrs:{shadow:"always"}},[s("div",{staticClass:"name"},[e._v(e._s(t.name))]),e._v(" "),e.dialogObj.read?e._e():s("div",{staticClass:"move"},[0!==i?s("img",{staticClass:"directionIcon",attrs:{src:e.upSrc},on:{click:function(t){e.moveBox(i-1,i)}}}):e._e(),e._v(" "),i!==e.selectedBoxList.length-1?s("img",{staticClass:"directionIcon",attrs:{src:e.downSrc},on:{click:function(t){e.moveBox(i,i+1)}}}):e._e(),e._v(" "),s("i",{staticClass:"el-icon-delete grey",on:{click:function(s){e.delBox(t)}}})])])],1)}))],1)],1)],1),e._v(" "),2===e.dialogObj.type||e.dialogObj.read?e._e():s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(t){e.dialogObj.show=!1}}},[e._v("取 消")]),e._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:e.sub}},[e._v("确 定")])],1)],1)])},staticRenderFns:[]};var h=s("VU/8")(c,d,!1,function(e){s("PkbO"),s("g14y")},"data-v-615702d6",null).exports,u=s("+TkF"),g={name:"index",data:function(){return{searchFrom:{title:"",type:"-1"},userList:[],total:0,nowPage:1,limit:10,dialogObj:{type:0,show:!1,id:""}}},components:{page:o.a,dialogCom:h},filters:{lessonType:function(e){return u.o[e]}},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;this.searchFrom.page=this.nowPage;var t={limit:this.limit,page:this.nowPage};this.searchFrom.title&&(t.title=this.searchFrom.title),this.searchFrom.type&&"-1"!==this.searchFrom.type&&(t.type=this.searchFrom.type),Object(i._40)(t).then(function(t){e.userList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,show:!0,id:e.id,title:"编辑课程"}},add:function(){this.dialogObj={type:0,show:!0,id:"",title:"新增课程"}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=1,this.dialogObj.show=!0,this.dialogObj.read=!0},delTeacher:function(e){var t=this;this.$confirm("此操作将删除该课程?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.R)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"}),t.getUser()})})},changeShow:function(e){this.dialogObj.show=e}}},m={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user"},[s("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{model:e.searchFrom,"label-width":"100px",inline:""}},[s("el-form-item",{attrs:{label:"课程标题"}},[s("el-input",{model:{value:e.searchFrom.title,callback:function(t){e.$set(e.searchFrom,"title",t)},expression:"searchFrom.title"}})],1),e._v(" "),s("el-form-item",{attrs:{label:""}},[s("div",{staticClass:"search-btn-block"},[s("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getUser}},[e._v("搜索")])],1)])],1),e._v(" "),s("div",{staticClass:"new-block"},[e.$store.state.readonly?e._e():s("el-button",{attrs:{type:"success",plain:"",icon:"el-icon-plus"},on:{click:e.add}},[e._v("新增课程")])],1),e._v(" "),s("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getUser},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[s("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),s("el-tab-pane",{attrs:{label:"日课",name:"1"}}),e._v(" "),s("el-tab-pane",{attrs:{label:"月课",name:"0"}})],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userList}},[s("el-table-column",{attrs:{prop:"title",label:"课程名"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("router-link",{attrs:{to:{name:"periods",query:{id:t.row.id}}}},[e._v("\n "+e._s(t.row.title)+"\n ")])]}}])}),e._v(" "),s("el-table-column",{attrs:{label:"课程类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("lessonType")(t.row.type))+"\n ")]}}])}),e._v(" "),s("el-table-column",{attrs:{prop:"theme_num",label:"主题数"}}),e._v(" "),s("el-table-column",{attrs:{prop:"sing_num",label:"歌曲数"}}),e._v(" "),s("el-table-column",{attrs:{prop:"item_num",label:"实体包数量"}}),e._v(" "),s("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[s("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(s){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),e.$store.state.readonly?e._e():s("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(s){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?s("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(s){e.delTeacher(t.row)}}},[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}}),e._v(" "),s("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getUser}})],1)},staticRenderFns:[]};var f=s("VU/8")(g,m,!1,function(e){s("t+qT")},"data-v-50628831",null);t.default=f.exports},PkbO:function(e,t){},WY0H:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAL1JREFUOBHtUsENwyAMNKhiDz55Z4R2g47QbpQNmg26QkbIE/hkhUwA9akuoirwqNRfkU65+M5nJ4Lol8d7fwZ6M3RLDCFcWLsDwqtWVauiIaV0KzWl1HUYhrmsgX8EyMqYvBZ6Yj7WQt4+gSePbJwZqzHmxFvsADhqzCfx8Ovz5AAIbFi4vKHBWruLh8AlZIOnDMkBMcZjrbkWIt6X1H465xag7SDKG/RMPe0fQHTo/SC+eZPWOt+Hnvdr7QHl81VpSdWOuAAAAABJRU5ErkJggg=="},g14y:function(e,t){},lP78:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA0klEQVQ4T+2TsRHCMAxFpSZus4Ibx2VGCBuECYANGIUNgA3YAEagdJzCK6RNiogTh3PGJDkO7qhwpzv9J0v6Qvjy4Zy+ruui7/s0y7LTVN4swBhzYaHWuvgDfjEDY8wWEVdJkiyklA1PPd6Ccy7tuu5MREet9Y5zhjVaa3Mi4rU5DwkBXgwAEhELpdT1CcBBDGnb9m4gIUTJlWPxC+ABWRPRHgC4gv8hAUAOAMvYlaNOtNZ6yGBARNwopQ6xIyetHEKmxKMthBWqqio5/viY3rn0G9fOdxEKoA2QAAAAAElFTkSuQmCC"},"t+qT":function(e,t){}});
\ No newline at end of file
webpackJsonp([52],{"9r2m":function(e,n){},IcnI:function(e,n,t){"use strict";var o=t("NYxO"),a=t("zSLJ"),r={setToken:function(e,n){e.token=n,a.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,a.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};n.a=new o.a.Store({state:{show:!1,userName:"",token:"",orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:r,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=[{name:"",value:"教研管理",icon:"icon-material",list:[{value:"教材列表",routerName:"resources",path:"/resources",cover:"1-1",router:{path:"/resources",name:"resources",component:function(e){return Promise.all([t.e(0),t.e(1)]).then(function(){var n=[t("z5EG")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"商品课程",icon:"icon-shangpin1",list:[{value:"课程列表",routerName:"lesson",path:"/lesson",cover:"2-1",router:{path:"/lesson",name:"lesson",component:function(e){return Promise.all([t.e(0),t.e(9)]).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(21)]).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(16)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(27)]).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(17)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(12)]).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(13)]).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(4)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},,{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("xdzM")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(31)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(30)]).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(48).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(44)]).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(42)]).then(function(){var n=[t("mjLz")];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(43)]).then(function(){var n=[t("v/LD")];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(28)]).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(20)]).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(32)]).then(function(){var n=[t("69L+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("Fmgy")];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(10)]).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(19)]).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(15)]).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(23)]).then(function(){var n=[t("CK6D")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"关键词回复",routerName:"autoReply",path:"/autoReply",cover:"7-2",router:{path:"/autoReply",name:"autoReply",component:function(e){return Promise.all([t.e(0),t.e(18)]).then(function(){var n=[t("65NY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"公众号菜单",routerName:"weChat",path:"/weChat",cover:"7-3",router:{path:"/weChat",name:"weChat",component:function(e){return Promise.all([t.e(0),t.e(24)]).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(35)]).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(14)]).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(33)]).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(50)]).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)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"Banner管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(29)]).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(36)]).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(11)]).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(25)]).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(37)]).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(41)]).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(40)]).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(47)]).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(26)]).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(39)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],a={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList,a=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},u={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(7)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};o.forEach(function(t){var o=!1,i=[];t.list.forEach(function(t){var a=n.find(function(e){return e.cover===t.cover});a&&(t.router.meta={},t.router.meta.readonly=a.readonly,t.router.meta.delete=!!a.delete,t.router.meta.refund=a.refund,i.push(t),"3-1"===a.cover&&(u.meta={},u.meta.readonly=a.readonly,u.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(u)),"3-2"===a.cover&&(r.meta={},r.meta.readonly=a.readonly,r.meta.delete=!!a.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),o=!0)}),o&&(t.list=i,a.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",a)}}},r={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var u=t("VU/8")(a,r,!1,function(e){t("9r2m")},null,null).exports,i=t("YaEn"),c=t("IcnI");Vue.config.productionTip=!1,new Vue({el:"#app",store:c.a,router:i.a,components:{App:u},template:"<App/>"})},YaEn:function(e,n,t){"use strict";var o=t("IcnI"),a=t("/ocq"),r=t("zSLJ"),u=new a.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(8)]).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(38).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(49)]).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(3)]).then(function(){var n=[t("4t0V")];e.apply(null,n)}.bind(this)).catch(t.oe)},meta:{skip_auth:!0}}]});u.beforeEach(function(e,n,t){if(o.a.commit("mainCanShow"),r.a.get("cc_token")&&(o.a.dispatch("setToken",r.a.get("cc_token")),o.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&o.a.dispatch("setUserName",r.a.get("cc_user_name"))),o.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var a=void 0,u=0;u<o.a.state.menuList.length;u++)for(var i=o.a.state.menuList[u],c=0;c<i.list.length;c++){var l=i.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,"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()}),u.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=u.history.pending.fullPath;n&&u.replace(t)}),n.a=u},lRwf:function(e,n){e.exports=Vue},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var o=new Date;o.setTime(o.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+o.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(d,b,n){for(var r,t,o,i=0,u=[];i<d.length;i++)t=d[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(d,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var d={},a={54:0};function f(c){if(d[c])return d[c].exports;var a=d[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,f),a.l=!0,a.exports}f.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var d=new Promise(function(d,f){c=a[e]=[d,f]});c[2]=d;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:"4ace805d2cf524b8d13e",1:"1c87ee32f87c48211e10",2:"432796d8c8cf2d8d145b",3:"7ec694679898ed891211",4:"f377788c31a383d854aa",5:"dd74a54f792a6d27be82",6:"57b74cf7b572ab0d126a",7:"794aa375d97b3c308212",8:"dabbff2c8e6702bca51c",9:"828506058cb00479c905",10:"bd9f3a83aae952f9725c",11:"361139f0d6194684222f",12:"a3e761cd50598001b352",13:"6e70d712d33dcfa5b19f",14:"018f99fadb94ec4cfead",15:"a5a5e8814911457480a6",16:"3c33054a760be26a0b31",17:"5e6f4b0ba524d7f2f1c6",18:"d3af53e6ef047d3d0ee9",19:"42b6175b3b51904cd53c",20:"02c51da890ad5f074c9f",21:"9194188059569eae3f5d",22:"e991ba2cbd12a3746fd5",23:"088d89385d6245a91240",24:"bc9ad9686642092f9294",25:"9442b5b325d08f47b29a",26:"f34a9fba9dc9330ca2d6",27:"8046bf7705af9c44df02",28:"af086b86769fe044995f",29:"e5eebd9227908368d3b8",30:"da1d0eb4cceeb7284363",31:"3bc08d4963fbccb624dc",32:"dba708f4084b5e4e9f1f",33:"a4e7c9c16b3ad2c3356b",34:"7229fc4609f44c673897",35:"c69762c9f6ad041e6e5c",36:"2a8862e4a22c90a35cb1",37:"c725871259d25c0d23d0",38:"36d262b88ddd5b4449f9",39:"6c4642f5272af03d8d92",40:"079d6d6ba2e1b89b0ded",41:"00de844f181bd949e43f",42:"bf1e106180761c74e71d",43:"131c38be7620fd75be12",44:"39b366b34e378dccdf01",45:"71b5ff3053f6d0691749",46:"a6c825284330126663ae",47:"a5b94da3c6032d5f4c35",48:"b163cd5e2750e3f00800",49:"dabfbbfb1c0545ec96a9",50:"f3d387b4b31710ee95d8",51:"fc89035f1395ed8cfd2d"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),d},f.m=e,f.c=d,f.d=function(e,c,d){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:d})},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
......@@ -9,7 +9,7 @@
v-model="searchFirstFrom.dateValue"
unlink-panels
type="daterange"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:picker-options="{shortcuts:[today,yesterday,last7Day,last30Day]}"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
......@@ -65,7 +65,7 @@
unlink-panels
type="daterange"
value-format="yyyy-MM-dd"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:picker-options="{shortcuts:[today,yesterday,last7Day,last30Day]}"
range-separator="至"
:shortcuts="[]"
start-placeholder="开始日期"
......@@ -151,6 +151,14 @@
this.searchSecondFrom.dateValue = [preDate,preDate]
}
},
last7Day:{
text:'过去7天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 7*24*60*60*1000));
this.searchFirstFrom.dateValue = [preDate,this.formatTime(new Date())];
this.searchSecondFrom.dateValue = [preDate,this.formatTime(new Date())]
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
......
......@@ -104,18 +104,7 @@
<span>{{ scope2.row.over_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="全勤作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="打卡率">
<template slot-scope="scope2">
......
......@@ -28,6 +28,7 @@
<el-button type="success" plain @click="addIntegral">变更用户积分</el-button>
</div>
<el-tabs v-model="form.is_add" type="card" style="background: white;padding-top: 10px" @tab-click="getList">
<el-tab-pane label="全部" name="-1"/>
<el-tab-pane label="添加积分" name="1"/>
<el-tab-pane label="减少积分" name="0"/>
</el-tabs>
......@@ -114,7 +115,7 @@
},
nowPage:1,
form:{
is_add:'1',
is_add:'-1',
source:'',
user_id:'',
mobile:'',
......@@ -165,7 +166,7 @@
},
initPage(){
this.form = {
is_add:'1',
is_add:'-1',
source:'',
user_id:'',
mobile:'',
......@@ -187,7 +188,7 @@
limit:this.limit,
page: this.nowPage
};
if(this.form.is_add !== ''){json.is_add = this.form.is_add}
if(this.form.is_add !== '' && this.form.is_add !== '-1'){json.is_add = this.form.is_add}
if(this.form.source !== ''){json.source = this.form.source}
if(this.form.user_id !== ''){json.user_id = this.form.user_id}
if(this.form.mobile !== ''){json.mobile = this.form.mobile}
......
......@@ -14,6 +14,7 @@
<el-button type="success" plain @click="add" v-if="!$store.state.readonly" icon="el-icon-plus">新增课程</el-button>
</div>
<el-tabs v-model="searchFrom.type" type="card" style="background: white;padding-top: 10px" @tab-click="getUser">
<el-tab-pane label="全部" name="-1"></el-tab-pane>
<el-tab-pane label="日课" name="1"></el-tab-pane>
<el-tab-pane label="月课" name="0"></el-tab-pane>
</el-tabs>
......@@ -80,7 +81,7 @@
return {
searchFrom:{
title:'',
type:'1'
type:'-1'
},
userList:[],
total:0,
......@@ -124,7 +125,7 @@
if (this.searchFrom.title) {
json.title = this.searchFrom.title
}
if (this.searchFrom.type) {
if (this.searchFrom.type && this.searchFrom.type !== '-1') {
json.type = this.searchFrom.type
}
getLessonApi(json).then(res=>{
......
......@@ -71,7 +71,7 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:picker-options="{shortcuts:[today,yesterday,last7Day,last30Day]}"
:default-time="['00:00:00','23:59:59']"
@change="getOrderList">
</el-date-picker>
......@@ -334,6 +334,13 @@
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
last7Day:{
text:'过去7天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 7*24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
couponDetail:{
show:false,
order_coupon_id:''
......@@ -460,8 +467,8 @@
json.receive_mobile = this.searchFrom.receive_mobile
}
if(this.searchFrom.payTime && this.searchFrom.payTime.length > 0){
json.pay_start_at = CommonJs.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss");
json.pay_end_at = CommonJs.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")
json.pay_start_at = this.searchFrom.payTime[0]
json.pay_end_at = this.searchFrom.payTime[1]
}
json.course_type=0 //月课
exportExcelApi('/api/admin/order/export',json)
......@@ -563,8 +570,8 @@
json.receive_mobile = this.searchFrom.receive_mobile
}
if(this.searchFrom.payTime && this.searchFrom.payTime.length > 0){
json.pay_start_at = CommonJs.dateFmt(this.searchFrom.payTime[0],"yyyy-MM-dd hh:mm:ss");
json.pay_end_at = CommonJs.dateFmt(this.searchFrom.payTime[1],"yyyy-MM-dd hh:mm:ss")
json.pay_start_at = this.searchFrom.payTime[0]
json.pay_end_at = this.searchFrom.payTime[1]
}
json.course_type=0 //月课
getOrderListApi(json).then((res)=>{
......
......@@ -56,7 +56,7 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:picker-options="{shortcuts:[today,yesterday,last7Day,last30Day]}"
:default-time="['00:00:00','23:59:59']"
@change="getOrderList">
</el-date-picker>
......@@ -257,6 +257,13 @@ export default {
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
last7Day:{
text:'过去7天',
onClick:()=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 7*24*60*60*1000));
this.searchFrom.payTime = [preDate+' 00:00:00',this.formatTime(new Date())+' 23:59:59'];
}
},
sourceDialog: {
show: false,
out_trade_no: ""
......@@ -382,14 +389,8 @@ export default {
json.receive_mobile = this.searchFrom.receive_mobile;
}
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
json.pay_start_at = CommonJs.dateFmt(
this.searchFrom.payTime[0],
"yyyy-MM-dd hh:mm:ss"
);
json.pay_end_at = CommonJs.dateFmt(
this.searchFrom.payTime[1],
"yyyy-MM-dd hh:mm:ss"
);
json.pay_start_at = this.searchFrom.payTime[0]
json.pay_end_at = this.searchFrom.payTime[1]
}
json.course_type = 1; //日课
exportExcelApi("/api/admin/order/export", json);
......@@ -493,14 +494,8 @@ export default {
json.receive_mobile = this.searchFrom.receive_mobile;
}
if (this.searchFrom.payTime && this.searchFrom.payTime.length > 0) {
json.pay_start_at = CommonJs.dateFmt(
this.searchFrom.payTime[0],
"yyyy-MM-dd hh:mm:ss"
);
json.pay_end_at = CommonJs.dateFmt(
this.searchFrom.payTime[1],
"yyyy-MM-dd hh:mm:ss"
);
json.pay_start_at = this.searchFrom.payTime[0]
json.pay_end_at = this.searchFrom.payTime[1]
}
json.course_type = 1; //日课
getOrderListApi(json).then(res => {
......
......@@ -22,7 +22,7 @@
<el-date-picker
v-model="searchFrom.dateValue"
unlink-panels
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:picker-options="{shortcuts:[today,yesterday,last7Day,last30Day]}"
type="daterange"
value-format="yyyy-MM-dd"
range-separator="至"
......@@ -75,22 +75,29 @@
tableData:[],
today:{
text:'今天',
onClick:()=>{
this.searchFrom.dateValue = [this.formatTime(new Date()),this.formatTime(new Date())];
onClick:(vm)=>{
vm.$emit('pick',[this.formatTime(new Date()),this.formatTime(new Date())] )
}
},
yesterday:{
text:'昨天',
onClick:()=>{
onClick:(vm)=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.dateValue = [preDate,preDate];
vm.$emit('pick',[preDate,preDate] )
}
},
last7Day:{
text:'过去7天',
onClick:(vm)=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 7*24*60*60*1000));
vm.$emit('pick',[preDate,this.formatTime(new Date())] );
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
onClick:(vm)=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.dateValue = [preDate,this.formatTime(new Date())];
vm.$emit('pick',[preDate,this.formatTime(new Date())] );
}
},
searchFrom:{
......
......@@ -23,7 +23,7 @@
v-model="searchFrom.dateValue"
unlink-panels
type="daterange"
:picker-options="{shortcuts:[today,yesterday,last30Day]}"
:picker-options="{shortcuts:[today,yesterday,last7Day,last30Day]}"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
......@@ -74,22 +74,29 @@
headList:[],
today:{
text:'今天',
onClick:()=>{
this.searchFrom.dateValue = [this.formatTime(new Date()),this.formatTime(new Date())];
onClick:(vm)=>{
vm.$emit('pick',[this.formatTime(new Date()),this.formatTime(new Date())] )
}
},
yesterday:{
text:'昨天',
onClick:()=>{
onClick:(vm)=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 24*60*60*1000));
this.searchFrom.dateValue = [preDate,preDate];
vm.$emit('pick',[preDate,preDate] )
}
},
last7Day:{
text:'过去7天',
onClick:(vm)=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 7*24*60*60*1000));
vm.$emit('pick',[preDate,this.formatTime(new Date())] );
}
},
last30Day:{
text:'过去30天',
onClick:()=>{
onClick:(vm)=>{
let preDate = this.formatTime(new Date(new Date().getTime() - 30*24*60*60*1000));
this.searchFrom.dateValue = [preDate,this.formatTime(new Date())];
vm.$emit('pick',[preDate,this.formatTime(new Date())] );
}
},
tableData:[],
......@@ -138,6 +145,7 @@
})
},
searchPage(){
console.log(this.searchFrom.dateValue)
if(this.searchFrom.dateValue.length<2){
this.$message.error('请先选择起止日期');
}else{
......
......@@ -40,10 +40,15 @@
<el-button @click="onSearch" type="primary">查询</el-button>
</el-form-item>
<el-form-item style="float: right;" v-if="!$store.state.readonly">
<el-button @click="onAdd" type="primary">添加期数</el-button>
<el-button @click="onAdd" type="success" size="small">添加期数</el-button>
</el-form-item>
</el-form>
</div>
<el-tabs v-model="course_type" type="card" style="background: white;padding-top: 10px" @tab-click="onSearch">
<el-tab-pane label="全部" name="-1"/>
<el-tab-pane label="月课" name="0"/>
<el-tab-pane label="日课" name="1"/>
</el-tabs>
<el-table
@expand-change="changeRow"
:data="periodList"
......@@ -71,18 +76,6 @@
<span>{{ scope2.row.over_course_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="全勤作业率">
<template slot-scope="scope2">
<span>{{ scope2.row.over_work_rate | percent}}</span>
</template>
</el-table-column>
<el-table-column
label="打卡率">
<template slot-scope="scope2">
......@@ -139,7 +132,8 @@
min-width="150">
<template slot-scope="scope">
可看课包数: {{scope.row.watch_num}}<br> 已看课包数:{{scope.row.has_watch_num}} <br>
续看课包数: {{scope.row.duration_num}}<br> 已续看课包数:{{scope.row.has_duration_num}}
<span v-if="scope.row.duration_num !== 9999">续看课包数: {{scope.row.duration_num}}<br> 已续看课包数:{{scope.row.has_duration_num}}</span>
<span v-if="scope.row.duration_num === 9999" style="color: #00af00">永久观看</span>
</template>
</el-table-column>
<el-table-column
......@@ -204,6 +198,7 @@
nowPage: 1,
total: 0,
limit: 10,
course_type:'-1',
title: '',
goodsId: null,
lessonId: null,
......@@ -273,6 +268,9 @@
limit: this.limit,
page: this.nowPage
};
if (this.course_type !== '-1'){
json.course_type = this.course_type
}
if(this.title){
json.title = this.title;
}
......
......@@ -7,16 +7,6 @@
<el-form-item label="订单号">
<el-input v-model="search.out_trade_no" placeholder="订单号"></el-input>
</el-form-item>
<el-form-item label="订单状态">
<el-select v-model="search.status" placeholder="用户名/手机/课程名称" @change="onSearch">
<el-option
v-for="item in liStatus"
:key="item.status"
:label="item.label"
:value="item.status">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="用户ID">
<el-input v-model="search.user_id" placeholder="用户ID"></el-input>
</el-form-item>
......@@ -29,6 +19,12 @@
<el-button type="primary" v-if="!$store.state.readonly" @click="manualPutForward">手动提现</el-button>
</el-form-item>
</el-form>
<el-tabs v-model="search.status" type="card" style="background: white;padding-top: 10px" @tab-click="onSearch">
<el-tab-pane label="全部" name="-1"/>
<el-tab-pane label="申请中" name="0"/>
<el-tab-pane label="申请失败" name="2"/>
<el-tab-pane label="提现成功" name="1"/>
</el-tabs>
<el-table
:data="tableData"
border fixed
......@@ -241,7 +237,7 @@
limit: 10,
search:{
key:'',
status:1
status:'-1'
},
liStatus:[
{
......@@ -368,7 +364,7 @@
if(this.search.out_trade_no){
json.out_trade_no = this.search.out_trade_no
}
if(this.search.status || this.search.status === 0){
if(this.search.status && this.search.status !== '-1'){
json.status = this.search.status
}
if(this.search.user_id){
......
......@@ -10,21 +10,17 @@
<el-form-item label="订单编号">
<el-input v-model="searchFrom.out_trade_no"></el-input>
</el-form-item>
<el-form-item label="退款状态">
<el-select v-model="searchFrom.status" placeholder="请选择" @change="getRefundList" clearable>
<el-option
v-for="item in refundTypeList"
:key="item.id"
:label="item.value"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label-width="10px">
<el-button type="primary" @click="getRefundList">搜索</el-button>
<el-button type="primary" plain @click="exportTable">导出</el-button>
</el-form-item>
</el-form>
<el-tabs v-model="searchFrom.status" type="card" style="background: white;padding-top: 10px" @tab-click="getRefundList">
<el-tab-pane label="全部" name="-1"/>
<el-tab-pane label="退款成功" name="1"/>
<el-tab-pane label="退款中" name="0"/>
<el-tab-pane label="退款失败" name="2"/>
</el-tabs>
<el-table
:data="list"
style="width: 100%">
......@@ -125,7 +121,7 @@
nickname:'',
user_id: '',
out_trade_no:'',
status:1
status:'-1'
},
list: []
}
......@@ -183,7 +179,7 @@
if(this.searchFrom.user_id){
json.user_id = this.searchFrom.user_id
}
if(this.searchFrom.status){
if(this.searchFrom.status && this.searchFrom.status !== '-1'){
json.status = this.searchFrom.status
}
if(this.searchFrom.out_trade_no){
......
......@@ -47,7 +47,7 @@
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-col :span="12" v-if="form.goods_type === 4">
<el-form-item label="课程类型" required>
<el-select v-model="form.course_type" placeholder="请选择">
<el-option
......
......@@ -60,6 +60,7 @@
<el-button type="success" plain @click="add" v-if="!$store.state.readonly">添加商品</el-button>
</div>
<el-tabs v-model="searchFrom.status" type="card" style="background: white;padding-top: 10px" @tab-click="getUser">
<el-tab-pane label="全部" name="-1"></el-tab-pane>
<el-tab-pane label="上架" name="1"></el-tab-pane>
<el-tab-pane label="编辑中" name="0"></el-tab-pane>
<el-tab-pane label="下架" name="2"></el-tab-pane>
......@@ -226,7 +227,7 @@
searchFrom:{
name:'',
goods_type: '',
status: '1',
status: '-1',
course_id: '',
course_type:"",
},
......@@ -367,7 +368,7 @@
if (this.searchFrom.course_id) {
json.course_id = this.searchFrom.course_id
}
if (this.searchFrom.status) {
if (this.searchFrom.status && this.searchFrom.status !== '-1') {
json.status = this.searchFrom.status
}
if (this.searchFrom.current_price) {
......
......@@ -73,12 +73,25 @@
</el-upload>
</el-form-item>
</el-col>
<template v-if="type===1">
<el-col :span="4"><label>邀请码</label></el-col>
<el-col :span="8">
<span v-if="type===1">{{teacherDetail.invite_code}}</span>
</el-col>
</template>
<el-col :span="4"><label>分组</label></el-col>
<el-col :span="8">
<el-select v-model="form.squad" placeholder="请选择">
<el-option
v-for="i in 10"
:key="i"
:label="'T'+i"
:value="i">
</el-option>
</el-select>
</el-col>
</el-row>
</el-form>
<span slot="footer" class="dialog-footer" v-if="type !== 1">
......@@ -132,6 +145,7 @@
form:{
name:'',
type:0,
squad:'',
qr:'',
alias:'',
status:0,
......@@ -159,6 +173,7 @@
name:this.form.name,
type:this.form.type,
qr:this.form.qr,
squad:this.form.squad,
alias:this.form.alias,
status:this.form.status,
media_id: this.form.media_id
......@@ -229,6 +244,8 @@
this.form.name = "";
this.form.alias = "";
this.form.qr = "";
this.form.squad = "";
this.form.type = 0;
this.form.status = 0;
this.imageList = [];
......@@ -253,6 +270,7 @@
this.type = 2;
getTeacherDetailApi(this.id).then(res=>{
this.form.name = res.name;
this.form.squad = res.squad;
this.form.alias = res.alias;
this.form.qr = res.qr;
this.form.type = res.type;
......
<template>
<div class="user">
<el-form ref="searchFrom" :model="searchFrom" label-width="80px" inline>
<el-form-item label="昵称">
<el-input v-model="searchFrom.name"></el-input>
</el-form-item>
<el-form-item label="手机号">
<el-input v-model="searchFrom.alias"></el-input>
</el-form-item>
<el-form-item label="教师类型">
<el-select v-model="searchFrom.type" placeholder="请选择" @change="getUser" clearable>
<el-option
v-for="item in teacherTypeOption"
:key="item.id"
:label="item.label"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" plain @click="getUser">搜索</el-button>
</el-form-item>
<el-form-item v-if="!$store.state.readonly">
<el-button type="success" plain @click="add">新增教师</el-button>
</el-form-item>
<el-form-item label="昵称">
<el-input v-model="searchFrom.name"></el-input>
</el-form-item>
<el-form-item label="手机号">
<el-input v-model="searchFrom.alias"></el-input>
</el-form-item>
<el-form-item label="分组">
<el-select v-model="searchFrom.squad" placeholder="请选择" @change="getUser" clearable>
<el-option
v-for="i in 10"
:key="i"
:label="'T'+i"
:value="i">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="教师类型">
<el-select v-model="searchFrom.type" placeholder="请选择" @change="getUser" clearable>
<el-option
v-for="item in teacherTypeOption"
:key="item.id"
:label="item.label"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" plain @click="getUser">搜索</el-button>
</el-form-item>
<el-form-item v-if="!$store.state.readonly">
<el-button type="success" plain @click="add">新增教师</el-button>
</el-form-item>
</el-form>
<el-table
:data="userList"
......@@ -49,6 +60,12 @@
</a>
</template>
</el-table-column>
<el-table-column
label="分组">
<template slot-scope="scope">
T{{scope.row.squad}}
</template>
</el-table-column>
<el-table-column
label="类别">
<template slot-scope="scope">
......@@ -88,6 +105,7 @@
searchFrom:{
name:'',
alias:"",
squad:"",
type:"",
},
userList:[],
......@@ -134,13 +152,13 @@
}
},
mounted(){
let data= localStorage.getItem("phoneNum")
if(data){
data=JSON.parse(data)
this.$router.push('/teacher/'+ data.id);
}else{
this.getUser()
}
let data= localStorage.getItem("phoneNum")
if(data){
data=JSON.parse(data)
this.$router.push('/teacher/'+ data.id);
}else{
this.getUser()
}
},
methods:{
onPageChange(val){
......@@ -154,18 +172,21 @@
},
getUser(){
let json = {
limit: this.limit,
page: this.nowPage
limit: this.limit,
page: this.nowPage
}
if (this.searchFrom.type || this.searchFrom.type === 0) {
json.type = this.searchFrom.type
json.type = this.searchFrom.type
}
if (this.searchFrom.name) {
json.name = this.searchFrom.name
}
if (this.searchFrom.alias) {
if (this.searchFrom.alias) {
json.alias = this.searchFrom.alias
}
if (this.searchFrom.squad) {
json.squad = this.searchFrom.squad
}
getTeacherListApi(json).then(res=>{
this.userList = res.list;
this.total = res.total
......
......@@ -207,6 +207,39 @@
</el-table-column>
</el-table>
</el-dialog>
<el-dialog :visible.sync="descDialog.show" title="备注列表">
<el-form label-width="90px">
<el-form-item>
<el-button style="float: right" type="primary" plain @click="editComment(descDialog.id)">添加备注</el-button>
</el-form-item>
</el-form>
<el-table
:data="descDialog.descList"
style="width: 100%">
<el-table-column
label="用户" className="f-c" min-width="150">
<template slot-scope="scope" v-if="descDialog.user_info">
<img :src="descDialog.user_info.avatar" style="width: 40px;height: 40px;border-radius: 50px"> {{descDialog.user_info.nickname}}(ID:{{descDialog.user_info.user_id}})
</template>
</el-table-column>
<el-table-column
prop="desc"
label="备注">
</el-table-column>
<el-table-column
prop="operator"
label="备注人">
</el-table-column>
<el-table-column
prop="created_at"
label="创建时间">
</el-table-column>
<el-table-column
prop="updated_at"
label="更新时间">
</el-table-column>
</el-table>
</el-dialog>
<el-dialog :visible.sync="task3Detail.show" width="80%" :title="task3Detail.title" >
<el-table
:data="task3Detail.list"
......@@ -261,7 +294,7 @@
</el-table-column>
<el-table-column label="操作" fixed="right">
<template slot-scope="scope">
<el-button type="warning" size="mini" @click="editDesc3(scope.row)">备注</el-button>
<el-button type="warning" size="mini" @click="editDesc(scope.row)">备注</el-button>
</template>
</el-table-column>
</el-table>
......@@ -269,7 +302,7 @@
</div>
</template>
<script>
import {task1Api,getWatchUserApi,task2Api,task3Api,addPeriodsClassUserDescApi,changeAddTeacherApi,editUserWeightApi,editUserViewCourseApi} from "../../service/api";
import {task1Api,getWatchUserApi,task2Api,task3Api,addPeriodsClassUserDescApi,getUserDescListApi,changeAddTeacherApi,editUserWeightApi,editUserViewCourseApi} from "../../service/api";
export default {
name: "task",
data(){
......@@ -288,6 +321,12 @@
list:[],
weight:''
},
descDialog:{
show:false,
id:'',
descList:[],
user_info:null
},
task3Detail:{
show:false,
list:[],
......@@ -319,6 +358,26 @@
this.task3Detail.list = res
})
},
editComment(id) {
this.$prompt('', '添加备注', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputValue: ''
}).then(({ value }) => {
addPeriodsClassUserDescApi(id,{desc: value}).then(res=>{
this.$message({
type: 'success',
message: '编辑备注成功'
});
this.getUserDescList();
this.refDesc1();
this.refDesc2();
if(this.task3Detail.list && this.task3Detail.list.length > 0){
this.refDesc3();
}
});
})
},
refDesc3(){
let json={
is_true:this.task3Detail.is_true,
......@@ -428,20 +487,19 @@
});
},
editDesc(data){
this.$prompt('', '请输入备注', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({ value }) => {
addPeriodsClassUserDescApi(data.id,{desc:value}).then(res=>{
this.$message({
type:'success',
message:'更新成功'
});
this.refDesc1();
this.refDesc2()
})
}).catch(() => {
});
this.descDialog.show = true;
this.descDialog.id = data.id;
this.descDialog.user_info = {
avatar:data.avatar,
nickname:data.nickname,
user_id:data.user_id,
};
this.getUserDescList()
},
getUserDescList(){
getUserDescListApi(this.descDialog.id,{limit:1000}).then(res=>{
this.descDialog.descList = res.list
})
},
initPage(){
task1Api(this.id).then(res=>{
......
......@@ -729,6 +729,7 @@
@import "../../util/public";
.user-card{
margin: 10px;width: 800px;
padding: 20px;
label{
color: #5982e6;
width: 100px;
......
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