6.13

parent edf3e692
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.a47528cf42c3f2cd3a245b1c332ab259.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.81fd55475af5245f6a3b.js></script><script type=text/javascript src=/static/js/vendor.f14e7028641dac0809c7.js></script><script type=text/javascript src=/static/js/app.f8a9b9f2c38d8295071d.js></script></body><script>let el = document.getElementsByTagName("script");
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.c741bf7f870fb00c47cce8e2efec4467.css rel=stylesheet></head><body><script src=https://cdn.bootcss.com/vue/2.5.17/vue.min.js></script><script src=https://unpkg.com/vuex@3.0.1></script><script src=https://cdn.bootcss.com/axios/0.18.0/axios.min.js></script><script src=https://lib.baomitu.com/element-ui/2.7.2/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.bac55012dbefe786755c.js></script><script type=text/javascript src=/static/js/vendor.f14e7028641dac0809c7.js></script><script type=text/javascript src=/static/js/app.a78799506d5fef74c5ac.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.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([13],{"A1P/":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.j)e.push({id:t,value:i.j[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("c01J")},"data-v-f5ee97e6",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._91)(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("mJrq")},"data-v-4fe5a55a",null).exports,m={name:"index",components:{page:n.a,newIntegral:o,userListPage:d},data:function(){var e=[];for(var t in i.j)e.push({id:t,value:i.j[t]});var s=[];for(var a in i.i)s.push({id:a,value:i.i[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.j[e]},INTEGRALFUN:function(e){return i.i[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.z)(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};"-2"===this.form.is_add?Object(a._100)(t).then(function(t){e.list=t.list,e.total=t.total}):(""!==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._48)(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":"80px",inline:"",size:"small"}},[s("el-form-item",{attrs:{label:"昵称"}},[s("el-input",{staticStyle:{width:"120px"},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",{staticStyle:{width:"80px"},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",{staticStyle:{width:"150px"},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("搜索")]),e._v(" "),e.$store.state.readonly?e._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:e.addIntegral}},[e._v("变更用户积分")])],1)],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"}}),e._v(" "),s("el-tab-pane",{attrs:{label:"积分排行",name:"-2"}})],1),e._v(" "),s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,size:"mini"}},[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(" "),"-2"!==e.form.is_add?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._e(),e._v(" "),"-2"!==e.form.is_add?s("el-table-column",{attrs:{prop:"desc",label:"积分变更描述"}}):e._e(),e._v(" "),"-2"!==e.form.is_add?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._e(),e._v(" "),s("el-table-column",{attrs:{prop:"last_value",label:"-2"!==e.form.is_add?"变更后积分值":"最新积分"}}),e._v(" "),s("el-table-column",{attrs:{prop:"created_at",label:"-2"!==e.form.is_add?"创建时间":"最新变更时间"}})],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("A1P/"),s("pu71")},"data-v-21c165fa",null);t.default=h.exports},c01J:function(e,t){},mJrq:function(e,t){},pu71:function(e,t){}});
\ No newline at end of file
webpackJsonp([14],{"1djJ":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("CCn6"),i=o("+TkF"),l=o("kmJW"),r=o("5eDb"),a=o.n(r),n=(o("o5MN"),o("q47d")),c=(o("NBEC"),o("gBhd"),o("Q/P+"),o("f85y"),o("q/hF"),o("yXOt"),o("c/6r"),o("Rv7z"),o("S0tB"),o("UWKq"),o("gvu3"),o("XUqK"),{name:"tinymce",props:["lookData"],data:function(){return{radio:[],imageType:!1,form:{imgList:[],big:!1,weight:"",center:!0},show:"",dialogVisible:!1,init:{toolbar:"bold italic underline strikethrough | fontselect | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo | link unlink image code | ",language_url:"/static/tinymce/zh_CN.js",language:"zh_CN",skin_url:"/static/tinymce/skins/lightgray",height:500,plugins:"preview textpattern colorpicker lists code colorpicker fullpage textcolor wordcount contextmenu media",branding:!1}}},activated:function(){this.show=!0},deactivated:function(){},mounted:function(){},methods:{beforeAvatarUploadImg:function(e){var t="image/jpeg"===e.type||"image/png"===e.type;return t||this.$message.error("上传头像图片只能是 JPG 或 PNG 格式!"),t},imgInter:function(){if(this.form.imgList.length<1)return this.$message({type:"error",message:"请选择图片"}),!1;var e="";this.form.big?e+="width:100%;":e+="width:70%",this.form.center&&(e="display:block;margin:auto");var t='<img src="'+this.form.imgList[0].url+'" style="'+e+'"/>';a.a.activeEditor.insertContent(t),this.dialogVisible=!1},uploadFile:function(e){var t=this;Object(s._148)({file:e.file,type:"local"}).then(function(e){t.$message({type:"success",message:"上传成功!"}),t.form.imgList=[{name:e.name,url:"https://cdn.singsingenglish.com/"+e.url}]})},showDialog:function(){this.dialogVisible=!0,this.form={imgList:[],big:!1,weight:"",center:!0}},insertContent:function(e){if(e){var t=null;if(document.selection)(t=document.selection).createRange().pasteHTML(e);else if((t=document.getElementById("tinymce_ifr").contentWindow.getSelection()).rangeCount>0){var o=t.getRangeAt(0);o.deleteContents();var s=document.createElement("div");s.innerHTML=e;var i=document.createDocumentFragment(),l=s.firstChild,r=i.appendChild(l);o.insertNode(i);var a=o.cloneRange();a.setStartAfter(r),a.collapse(!0),t.removeAllRanges(),t.addRange(a)}}},removeFile:function(){},handleExceed:function(){}},created:function(){a.a.init({})},components:{Editor:n.a}}),d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"tinymce"},[o("editor",{attrs:{id:"tinymce",init:e.init},model:{value:e.lookData.detail,callback:function(t){e.$set(e.lookData,"detail",t)},expression:"lookData.detail"}}),e._v(" "),o("div",[o("div",{staticClass:"imgInter",on:{click:function(t){e.showDialog()}}},[e._v("插入图片")])]),e._v(" "),o("el-dialog",{attrs:{title:"插入图片",visible:e.dialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,center:"","append-to-body":!0,width:"550px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("el-form",{attrs:{"label-width":"80px"}},[o("el-form-item",{attrs:{label:"图片"}},[o("el-upload",{attrs:{action:"/api/public/upload","http-request":e.uploadFile,"on-remove":e.removeFile,"before-upload":e.beforeAvatarUploadImg,drag:"","on-exceed":e.handleExceed,multiple:"",limit:1,"file-list":e.form.imgList}},[o("i",{staticClass:"el-icon-upload"}),e._v(" "),o("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),o("em",[e._v("点击上传")])]),e._v(" "),o("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传png或jpg文件")])])],1),e._v(" "),o("el-form-item",{attrs:{label:"铺满"}},[o("el-switch",{model:{value:e.form.big,callback:function(t){e.$set(e.form,"big",t)},expression:"form.big"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"居中"}},[o("el-switch",{model:{value:e.form.center,callback:function(t){e.$set(e.form,"center",t)},expression:"form.center"}})],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.imgInter}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var u=o("VU/8")(c,d,!1,function(e){o("WQzf")},"data-v-1d092dba",null).exports,m={name:"tinymce1",props:["lookData1"],data:function(){return{radio:[],imageType:!1,form:{imgList1:[],big:!1,weight:"",center:!0},show:"",dialogVisible1:!1,init:{toolbar:"bold italic underline strikethrough | fontselect | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist | outdent indent blockquote | undo redo | link unlink image code | ",language_url:"/static/tinymce/zh_CN.js",language:"zh_CN",skin_url:"/static/tinymce/skins/lightgray",height:500,plugins:"preview textpattern colorpicker lists code colorpicker fullpage textcolor wordcount contextmenu media",branding:!1}}},activated:function(){this.show=!0},deactivated:function(){},mounted:function(){},methods:{beforeAvatarUploadImg:function(e){var t="image/jpeg"===e.type||"image/png"===e.type;return t||this.$message.error("上传头像图片只能是 JPG 或 PNG 格式!"),t},imgInter1:function(){if(this.form.imgList1.length<1)return this.$message({type:"error",message:"请选择图片"}),!1;var e="";this.form.big?e+="width:100%;":e+="width:70%",this.form.center&&(e="display:block;margin:auto");var t='<img src="'+this.form.imgList1[0].url+'" style="'+e+'"/>';a.a.activeEditor.insertContent(t),this.dialogVisible1=!1},uploadFile:function(e){var t=this;Object(s._148)({file:e.file,type:"local"}).then(function(e){t.$message({type:"success",message:"上传成功!"}),t.form.imgList1=[{name:e.name,url:"https://cdn.singsingenglish.com/"+e.url}]})},showDialog1:function(){this.dialogVisible1=!0,this.form={imgList1:[],big:!1,weight:"",center:!0}},insertContent:function(e){if(e){var t=null;if(document.selection)(t=document.selection).createRange().pasteHTML(e);else if((t=document.getElementById("tinymce1_ifr").contentWindow.getSelection()).rangeCount>0){var o=t.getRangeAt(0);o.deleteContents();var s=document.createElement("div");s.innerHTML=e;var i=document.createDocumentFragment(),l=s.firstChild,r=i.appendChild(l);o.insertNode(i);var a=o.cloneRange();a.setStartAfter(r),a.collapse(!0),t.removeAllRanges(),t.addRange(a)}}},removeFile:function(){},handleExceed:function(){}},created:function(){a.a.init({})},components:{Editor:n.a}},_={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"tinymce"},[o("editor",{attrs:{id:"tinymce1",init:e.init},model:{value:e.lookData1.qa,callback:function(t){e.$set(e.lookData1,"qa",t)},expression:"lookData1.qa"}}),e._v(" "),o("div",[o("div",{staticClass:"imgInter",on:{click:function(t){e.showDialog1()}}},[e._v("插入图片")])]),e._v(" "),o("el-dialog",{attrs:{title:"插入图片",visible:e.dialogVisible1,"modal-append-to-body":!1,"close-on-click-modal":!1,center:"","append-to-body":!0,width:"550px"},on:{"update:visible":function(t){e.dialogVisible1=t}}},[o("el-form",{attrs:{"label-width":"80px"}},[o("el-form-item",{attrs:{label:"图片"}},[o("el-upload",{attrs:{action:"/api/public/upload","http-request":e.uploadFile,"on-remove":e.removeFile,"before-upload":e.beforeAvatarUploadImg,drag:"","on-exceed":e.handleExceed,multiple:"",limit:1,"file-list":e.form.imgList1}},[o("i",{staticClass:"el-icon-upload"}),e._v(" "),o("div",{staticClass:"el-upload__text"},[e._v("将文件拖到此处,或"),o("em",[e._v("点击上传")])]),e._v(" "),o("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("只能上传png或jpg文件")])])],1),e._v(" "),o("el-form-item",{attrs:{label:"铺满"}},[o("el-switch",{model:{value:e.form.big,callback:function(t){e.$set(e.form,"big",t)},expression:"form.big"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"居中"}},[o("el-switch",{model:{value:e.form.center,callback:function(t){e.$set(e.form,"center",t)},expression:"form.center"}})],1)],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dialogVisible1=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.imgInter1}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var f={name:"dialogObj",props:["dialogObj"],components:{editorDetail:u,editorKnow:o("VU/8")(m,_,!1,function(e){o("1rvC")},"data-v-49643bc6",null).exports},filters:{filterGoods:function(e){return"["+i.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},data:function(){return{tiny:{height:300},sendObj:{content:"nihao"},loading:!0,goodsYou:[],goodsList:[],form:{name:"",goods_type:1,goods_desc:{desc:"",imgLesson:[],img:[],course_title:"",time_limit:0},course_id:"",course_type:0,watch_num:"",invite_earnings:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,is_auth_teacher:0,share_desc:{title:"",content:"",img:[],refImg:[]},desc:{detail:"",qa:"",customer_service:[],after_goods_id:"",before_goods_id:""},is_into_periods:"0"},lessonList:[],goOn_goods_Id:{after_goods_id:"",before_goods_id:""},coupongoods:[],false:!1}},methods:{goodsChange:function(){var e=this;if(4==this.form.goods_type||3==this.form.goods_type){var t={limit:"999",page:"1",goods_type:"1,2",status:"1"};Object(s._47)(t).then(function(o){console.log(t),e.goodsList=o.list})}else if(1==this.form.goods_type||2==this.form.goods_type){Object(s._47)({limit:"999",page:"1",goods_type:"4"}).then(function(t){console.log(t);e.coupongoods=t.list,e.coupongoods.unshift({name:"不赠送",id:"0",goods_type:4,course_type:0,current_price:0})})}},sub:function(){var e=this;if(console.log(this.form),this.form.share_desc.img||2!=this.form.goods_type){var t=JSON.parse(JSON.stringify(this.form)+"");switch(console.log(this.form),3!==t.goods_type&&4!==t.goods_type&&5!==t.goods_type||(t.course_id=0,t.watch_num=0),5===t.goods_type&&(t.is_real=1),t.desc.before_goods_id=this.goOn_goods_Id.before_goods_id,this.goodsYou.length<1?t.desc.use_goods_ids="":t.desc.use_goods_ids=this.goodsYou.toString(),t.desc.after_goods_id=this.goOn_goods_Id.after_goods_id,t.original_price=(100*t.original_price).toFixed(0),t.current_price=(100*t.current_price).toFixed(0),t.invite_earnings=(100*t.invite_earnings).toFixed(0),t.goods_desc=JSON.stringify(t.goods_desc),t.desc=JSON.stringify(t.desc),t.share_desc=JSON.stringify(t.share_desc),this.dialogObj.type){case 1:Object(s._7)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash"),e.dialogObj.show=!1});break;case 0:console.log(t),Object(s.k)(t).then(function(t){e.$message({type:"success",message:"新增成功!"}),e.$emit("reflash"),e.dialogObj.show=!1})}}else this.$message({type:"success",message:"请上传主图!"})},removeFileMain:function(e){var t=this.form.goods_desc.img.findIndex(function(t){return t.name===e.name});this.form.goods_desc.img.splice(t,1)},uploadFileLesson:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._148)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.imgLesson=[{name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}],t.$message({message:"上传成功",type:"success"})})},removeFileLesson:function(){this.form.goods_desc.imgLesson=[]},uploadFileMain:function(e){var t=this;console.log(e),this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._148)({file:e.file,type:"local"}).then(function(e){t.form.goods_desc.img.push({name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}),t.$message({message:"上传成功",type:"success"})})},removeFileShareRef:function(){this.form.share_desc.refImg=[]},uploadFileMainShareRef:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._148)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.refImg?t.form.share_desc.refImg[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.refImg=[],t.form.share_desc.refImg[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileMainShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._148)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},removeFileService:function(){this.form.desc.customer_service=[]},uploadFileMainService:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._148)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.desc.customer_service?t.form.desc.customer_service[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.desc.customer_service=[],t.form.desc.customer_service[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},uploadFileShare:function(e){var t=this;this.$store.dispatch("setProgress",{type:"new",id:e.file.uid}),this.fileUid=e.file.uid,Object(s._148)({file:e.file,type:"local"}).then(function(e){t.$message({message:"上传成功",type:"success"}),t.form.share_desc.img?t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""}:(t.form.share_desc.img=[],t.form.share_desc.img[0]={name:e.url,url:"https://cdn.singsingenglish.com/"+e.url,title:"",lable:""})})},initDialog:function(){var e=this;switch(this.dialogObj.type){case 0:if(this.loading=!1,this.goOn_goods_Id.after_goods_id="",this.goodsYou=[],this.goOn_goods_Id.before_goods_id="",this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[],course_title:""},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,is_auth_teacher:0,share_desc:{title:"",content:"",refImg:[],img:[]},desc:{detail:"",qa:"",customer_service:[],before_goods_id:0,after_goods_id:0},is_into_periods:"0"},this.getLessonList(),console.log(this.form.course_type),1==this.form.goods_type||2==this.form.goods_type){Object(s._47)({limit:200,nowPage:1,goods_type:"4"}).then(function(t){e.coupongoods=t.list,e.coupongoods.unshift({name:"不赠送",id:"0",goods_type:4,course_type:0,current_price:0})})}break;case 1:case 2:this.goOn_goods_Id.after_goods_id="",this.goOn_goods_Id.before_goods_id="",this.goodsYou=[],this.form={name:"",goods_type:1,goods_desc:{desc:"",img:[],course_title:""},course_id:"",course_type:0,watch_num:"",duration_num:0,original_price:"",current_price:"",is_real:0,is_auth_user:0,is_auth_teacher:0,share_desc:{title:"",content:"",refImg:[],img:[]},desc:{detail:"",qa:"",customer_service:[],before_goods_id:0,after_goods_id:0},is_into_periods:"0"},Object(s._46)(this.dialogObj.id).then(function(t){e.loading=!1;var o=JSON.parse(t.share_desc);if(o.refImg||(o.refImg=[]),e.form={name:t.name,goods_type:t.goods_type,goods_desc:JSON.parse(t.goods_desc),course_id:t.course_id,course_type:t.course_type,watch_num:t.watch_num,duration_num:t.duration_num,original_price:t.original_price/100,current_price:t.current_price/100,is_real:t.is_real,is_auth_user:t.is_auth_user,share_desc:JSON.parse(t.share_desc),desc:JSON.parse(t.desc),invite_earnings:t.invite_earnings/100,is_auth_teacher:t.is_auth_teacher,is_into_periods:t.is_into_periods},e.form.desc.before_goods_id&&(e.goOn_goods_Id.before_goods_id=e.form.desc.before_goods_id),e.form.desc.after_goods_id&&(e.goOn_goods_Id.after_goods_id=e.form.desc.after_goods_id),e.form.desc.use_goods_ids&&(e.goodsYou=e.form.desc.use_goods_ids.split(","),e.goodsYou=e.goodsYou.map(function(e){return+e})),console.log(e.form),1!=e.form.course_type&&2!=e.form.course_type&&Object(s._47)({limit:200}).then(function(t){e.goodsList=t.list}),console.log(e.form.course_type),4==e.form.goods_type){e.getLessonList();Object(s._47)({limit:200,nowPage:1,goods_type:"1,2"}).then(function(t){e.goodsList=t.list})}if(1==e.form.goods_type||2==e.form.goods_type){Object(s._47)({limit:200,nowPage:1,goods_type:"4"}).then(function(t){e.coupongoods=t.list,e.coupongoods.unshift({name:"不赠送",id:"0",goods_type:4,course_type:0,current_price:0})})}});break;case 3:if(this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2,1==this.form.goods_type||2==this.form.goods_type){this.getLessonList();Object(s._47)({limit:200,nowPage:1,goods_type:"4"}).then(function(t){e.coupongoods=t.list})}}},changeLessonType:function(){this.getLessonList()},getLessonList:function(){var e=this;Object(s._50)({type:this.form.course_type}).then(function(t){e.lessonList=t.list})}},watch:{dialogObj:{handler:function(){this.dialogObj.show&&(console.log(this.dialogObj),this.loading=!0,this.initDialog())},deep:!0},"dialogObj.show":function(e){},show:function(e){this.$emit("changeShow",e)}}},g={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-dialog",{attrs:{title:e.dialogObj.title,center:"",visible:e.dialogObj.show,"close-on-click-modal":!1,width:"900px"},on:{"update:visible":function(t){e.$set(e.dialogObj,"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",disabled:2===e.dialogObj.type}},[o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品名称",required:""}},[o("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品描述",required:""}},[o("el-input",{model:{value:e.form.goods_desc.desc,callback:function(t){e.$set(e.form.goods_desc,"desc",t)},expression:"form.goods_desc.desc"}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"商品类型",required:""}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:e.goodsChange},model:{value:e.form.goods_type,callback:function(t){e.$set(e.form,"goods_type",t)},expression:"form.goods_type"}},[o("el-option",{attrs:{label:"普通商品",value:1}}),e._v(" "),o("el-option",{attrs:{label:"团购商品",value:2}}),e._v(" "),o("el-option",{attrs:{label:"续课商品",value:3}}),e._v(" "),o("el-option",{attrs:{label:"优惠券商品",value:4}}),e._v(" "),o("el-option",{attrs:{label:"实物商品",value:5}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"广告语",required:""}},[o("el-input",{attrs:{placeholder:"不超过8个字"},model:{value:e.form.goods_desc.tips,callback:function(t){e.$set(e.form.goods_desc,"tips",t)},expression:"form.goods_desc.tips"}})],1)],1)],1),e._v(" "),o("el-row",[4===e.form.goods_type?o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程类型",required:""}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[o("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),o("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1):e._e(),e._v(" "),4===e.form.goods_type?o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"可用商品",required:""}},[o("el-select",{attrs:{multiple:"",placeholder:"全部"},model:{value:e.goodsYou,callback:function(t){e.goodsYou=t},expression:"goodsYou"}},e._l(e.goodsList,function(t){return t.course_type===e.form.course_type?o("el-option",{key:t.id,attrs:{label:e._f("filterGoods")(t),value:t.id}}):e._e()}))],1)],1):e._e()],1),e._v(" "),3===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"续课已购商品",required:""}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.goOn_goods_Id.before_goods_id,callback:function(t){e.$set(e.goOn_goods_Id,"before_goods_id",t)},expression:"goOn_goods_Id.before_goods_id"}},e._l(e.goodsList,function(t){return o("el-option",{key:t.id,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"续购商品",required:""}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.goOn_goods_Id.after_goods_id,callback:function(t){e.$set(e.goOn_goods_Id,"after_goods_id",t)},expression:"goOn_goods_Id.after_goods_id"}},e._l(e.goodsList,function(t){return o("el-option",{key:t.id,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1)],1)],1):e._e(),e._v(" "),3!==e.form.goods_type&&4!==e.form.goods_type&&5!==e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程类型",required:""}},[o("el-select",{attrs:{placeholder:"请选择"},on:{change:function(t){e.changeLessonType()}},model:{value:e.form.course_type,callback:function(t){e.$set(e.form,"course_type",t)},expression:"form.course_type"}},[o("el-option",{attrs:{label:"日课",value:1}}),e._v(" "),o("el-option",{attrs:{label:"月课",value:0}})],1)],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"课程",required:""}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.course_id,callback:function(t){e.$set(e.form,"course_id",t)},expression:"form.course_id"}},e._l(e.lessonList,function(e){return o("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],1)],1)],1):e._e(),e._v(" "),3!==e.form.goods_type&&4!==e.form.goods_type&&5!==e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{"label-width":"120",label:"观看时长(节)",required:""}},[o("el-input-number",{attrs:{label:"课时数"},model:{value:e.form.watch_num,callback:function(t){e.$set(e.form,"watch_num",t)},expression:"form.watch_num"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{"label-width":"120",label:"续看时长(天)",required:""}},[o("el-input-number",{attrs:{label:"看课天数"},model:{value:e.form.duration_num,callback:function(t){e.$set(e.form,"duration_num",t)},expression:"form.duration_num"}})],1)],1)],1):e._e(),e._v(" "),1==e.form.goods_type||2==e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{"label-width":"120",label:"课程标题(客户端展示)",required:""}},[o("el-input",{staticStyle:{width:"200px"},model:{value:e.form.goods_desc.course_title,callback:function(t){e.$set(e.form.goods_desc,"course_title",t)},expression:"form.goods_desc.course_title"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否进入期数","label-width":"160",required:""}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_into_periods,callback:function(t){e.$set(e.form,"is_into_periods",t)},expression:"form.is_into_periods"}})],1)],1)],1):e._e(),e._v(" "),4==e.form.goods_type?o("el-form-item",{attrs:{label:"领取到期时间(小时)","label-width":"160px"}},[o("el-input-number",{model:{value:e.form.goods_desc.time_limit,callback:function(t){e.$set(e.form.goods_desc,"time_limit",t)},expression:"form.goods_desc.time_limit"}})],1):e._e(),e._v(" "),1==e.form.goods_type||2==e.form.goods_type?o("el-form-item",{attrs:{label:"是否赠送优惠券","label-width":"160px"}},[o("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.goods_desc.coupon_goods_id,callback:function(t){e.$set(e.form.goods_desc,"coupon_goods_id",t)},expression:"form.goods_desc.coupon_goods_id"}},e._l(e.coupongoods,function(t){return o("el-option",{key:t.id,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1):e._e(),e._v(" "),3!==e.form.goods_type&&4!==e.form.goods_type&&5!==e.form.goods_type?o("el-form-item",{attrs:{label:"课程封面(670*472)",required:""}},[o("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileLesson,"on-remove":e.removeFileLesson,limit:1,"file-list":e.form.goods_desc.imgLesson}},[o("i",{staticClass:"el-icon-plus"})])],1):e._e(),e._v(" "),o("el-form-item",{attrs:{label:"主图(750*600)",required:""}},[o("el-upload",{staticClass:"upload-demo",attrs:{"list-type":"picture-card",action:"/api/public/upload","http-request":e.uploadFileMain,"on-remove":e.removeFileMain,"file-list":e.form.goods_desc.img}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"客服(200*200)"}},[o("el-upload",{staticClass:"upload-demo",class:e.form.desc.customer_service&&e.form.desc.customer_service.length>0?"uploadService":"",attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"http-request":e.uploadFileMainService,"on-remove":e.removeFileService,"file-list":e.form.desc.customer_service}},[o("i",{staticClass:"el-icon-plus"})])],1),e._v(" "),1===e.form.goods_type?o("el-form-item",{attrs:{label:"推荐奖金(元)"}},[o("el-input-number",{attrs:{label:"推荐奖金"},model:{value:e.form.invite_earnings,callback:function(t){e.$set(e.form,"invite_earnings",t)},expression:"form.invite_earnings"}})],1):e._e(),e._v(" "),1===e.form.goods_type||2===e.form.goods_type?o("el-form-item",{attrs:{label:"是否配置实物"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_real,callback:function(t){e.$set(e.form,"is_real",t)},expression:"form.is_real"}}),e._v(" "),o("span",{staticStyle:{"font-size":"12px"}},[e._v("打开后提示用户填写具体住址")])],1):e._e(),e._v(" "),1===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否允许用户推广","label-width":"200"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_user,callback:function(t){e.$set(e.form,"is_auth_user",t)},expression:"form.is_auth_user"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"是否允许老师推广","label-width":"200"}},[o("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.form.is_auth_teacher,callback:function(t){e.$set(e.form,"is_auth_teacher",t)},expression:"form.is_auth_teacher"}})],1)],1)],1):e._e(),e._v(" "),o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:1===e.form.goods_type||3===e.form.goods_type||5===e.form.goods_type?"原价(元)":4===e.form.goods_type?"抵扣价格(元)":"单买价格(元)",required:""}},[o("el-input-number",{attrs:{label:"原价"},model:{value:e.form.original_price,callback:function(t){e.$set(e.form,"original_price",t)},expression:"form.original_price"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:1===e.form.goods_type||3===e.form.goods_type||5===e.form.goods_type?"现价(元)":4===e.form.goods_type?"购买价格(元)":"拼团价格(元)",required:""}},[o("el-input-number",{attrs:{label:"现价"},model:{value:e.form.current_price,callback:function(t){e.$set(e.form,"current_price",t)},expression:"form.current_price"}})],1)],1)],1),e._v(" "),2===e.form.goods_type?o("el-row",[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"成团人数(人)"}},[o("el-input-number",{attrs:{label:"成团人数"},model:{value:e.form.desc.group_number,callback:function(t){e.$set(e.form.desc,"group_number",t)},expression:"form.desc.group_number"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"团购失效时间(小时)","label-width":"136px"}},[o("el-input-number",{attrs:{label:"团购失效时间"},model:{value:e.form.desc.group_continue,callback:function(t){e.$set(e.form.desc,"group_continue",t)},expression:"form.desc.group_continue"}})],1)],1)],1):e._e(),e._v(" "),3!==e.form.goods_type||5!==e.form.goods_type?o("el-row",{attrs:{required:""}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"分享标题",required:""}},[o("el-input",{model:{value:e.form.share_desc.title,callback:function(t){e.$set(e.form.share_desc,"title",t)},expression:"form.share_desc.title"}})],1)],1),e._v(" "),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:"分享内容",required:""}},[o("el-input",{model:{value:e.form.share_desc.content,callback:function(t){e.$set(e.form.share_desc,"content",t)},expression:"form.share_desc.content"}})],1)],1)],1):e._e(),e._v(" "),3!==e.form.goods_type||5!==e.form.goods_type?o("el-form-item",{attrs:{label:"分享主图(300*300)",required:""}},[o("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.img,"http-request":e.uploadFileMainShare}},[o("i",{staticClass:"el-icon-plus"})])],1):e._e(),e._v(" "),3!==e.form.goods_type||5!==e.form.goods_type?o("el-form-item",{attrs:{label:"分享海报",required:""}},[o("el-upload",{attrs:{"list-type":"picture-card",action:"/api/public/upload",limit:1,"file-list":e.form.share_desc.refImg,"http-request":e.uploadFileMainShareRef}},[o("i",{staticClass:"el-icon-plus"})])],1):e._e(),e._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"商品详情",required:""}},[o("editor-detail",{attrs:{lookData:e.form.desc}})],1)],1)],1),e._v(" "),o("el-row",[o("el-col",{attrs:{span:24}},[o("el-form-item",{attrs:{label:"购买须知",required:""}},[o("editor-know",{attrs:{lookData1:e.form.desc}})],1)],1)],1)],1),e._v(" "),2!==e.dialogObj.type?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.sub}},[e._v("确 定")])],1):e._e()],1)])},staticRenderFns:[]};var p=o("VU/8")(f,g,!1,function(e){o("gq0Q")},"data-v-4d79372a",null).exports,h={name:"index",data:function(){return{searchFrom:{name:"",goods_type:"-1",status:"1",course_id:"",course_type:"",goods_id:""},classType:[{course_type:0,value:"月课"},{course_type:1,value:"日课"}],goodList:[],total:0,nowPage:1,limit:10,chooseDialog:{show:!1,title:"",id:"",form:{value:"",list:[]},type:0},dialogObj:{type:0,show:!1,title:"",id:""},classList:[]}},components:{page:l.a,dialogCom:p},filters:{isOrNot:function(e){return i.o[e]},goodsType:function(e){return i.h[e]},lessonType:function(e){return i.p[e]},goodsStatus:function(e){return i.g[e]},goodsDesc:function(e){return JSON.parse(e).desc}},mounted:function(){this.getGoods(),this.getClassList()},methods:{onPageChange:function(e){this.nowPage=e,this.getGoods()},onSizeChange:function(e){this.limit=e,this.nowPage=1,this.getGoods()},copyShop:function(e){var t=this;this.$confirm("此操作将复制该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.D)(e.id).then(function(e){t.$message({type:"success",message:"复制成功!"})}),t.getGoods()})},copyUrl:function(e){var t="https://wechat.changchangenglish.com/#/buyDetail?shopId="+e,o=document.createElement("input");o.value=t,document.body.appendChild(o),o.select(),document.execCommand("Copy"),this.$message({message:"已成功复制到剪切板",type:"success"}),o.remove()},dialogSub:function(){var e=this;switch(this.chooseDialog.type){case 0:Object(s.w)(this.chooseDialog.id,this.chooseDialog.form.value).then(function(t){e.$message({message:"绑定成功",type:"success"}),e.chooseDialog.show=!1}),this.getGoods();break;case 1:var t={conflict_goods_ids:this.chooseDialog.form.list.toString()};Object(s.C)(this.chooseDialog.id,t).then(function(t){e.$message({message:"设置成功",type:"success"}),e.chooseDialog.show=!1,e.getGoods()})}},getGoods:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.name&&(t.name=this.searchFrom.name),this.searchFrom.goods_type&&"-1"!=this.searchFrom.goods_type&&(t.goods_type=this.searchFrom.goods_type),this.searchFrom.course_id&&(t.course_id=this.searchFrom.course_id),this.searchFrom.goods_id&&(t.goods_id=this.searchFrom.goods_id),this.searchFrom.status&&"-1"!==this.searchFrom.status&&(t.status=this.searchFrom.status),this.searchFrom.current_price&&(t.current_price=100*this.searchFrom.current_price),this.searchFrom.course_type&&(t.course_type=this.searchFrom.course_type),Object(s._47)(t).then(function(t){t.list.forEach(function(e){""===e.conflict_goods_ids?e.conflict_goods_ids=[]:e.conflict_goods_ids=e.conflict_goods_ids.split(",")}),e.goodList=t.list,e.total=t.total})},edit:function(e){this.dialogObj={type:1,title:"编辑商品",show:!0,id:e.id}},add:function(){this.dialogObj={type:0,title:"添加商品",show:!0}},detail:function(e){this.dialogObj.id=e.id,this.dialogObj.type=2,this.dialogObj.title="查看商品",this.dialogObj.show=!0},onDel:function(e){var t=this;this.$confirm("此操作将删除该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.U)(e.id).then(function(e){t.$message({type:"success",message:"删除成功!"})}),t.getGoods()})},onUp:function(e){var t=this;this.$confirm("此操作将上架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._132)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getGoods()})})},onDown:function(e){var t=this;this.$confirm("此操作将下架该商品?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.X)(e.id).then(function(e){t.$message({type:"success",message:"操作成功!"}),t.getGoods()})})},changeShow:function(e){this.dialogObj.show=e},bindOther:function(e){this.chooseDialog={show:!0,title:"绑定商品",id:e.id,form:{value:e.bind_goods_id,list:[]},type:0}},conflict:function(e){this.chooseDialog={show:!0,title:"冲突商品",id:e.id,form:{value:"",list:e.conflict_goods_ids},type:1}},getClassList:function(){var e=this;Object(s._50)({limit:200,page:1}).then(function(t){e.classList=t.list})},addComment:function(e){var t=this,o=JSON.parse(e.desc)||{};this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:o.desc||""}).then(function(o){var i=o.value;Object(s._8)(e.id,{desc:i}).then(function(e){t.$message({type:"success",message:"编辑备注成功"}),t.getGoods()})})},updateGoodsNumber:function(e){var t=this;this.$prompt("","修改商品购买数量",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"number",inputValue:e.buy_nums||0}).then(function(o){var i=o.value;Object(s._139)(e.id,{buy_nums:parseInt(i)}).then(function(e){t.$message({type:"success",message:"修改商品购买数量成功"}),t.getGoods()})})}}},b={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"user"},[o("el-form",{ref:"searchFrom",staticClass:"search-form",attrs:{size:"small",model:e.searchFrom,"label-width":"100px",inline:""}},[o("el-form-item",{attrs:{label:"商品名称"}},[o("el-input",{model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"商品编号"}},[o("el-input",{model:{value:e.searchFrom.goods_id,callback:function(t){e.$set(e.searchFrom,"goods_id",t)},expression:"searchFrom.goods_id"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"课程"}},[o("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择"},on:{change:e.getGoods},model:{value:e.searchFrom.course_id,callback:function(t){e.$set(e.searchFrom,"course_id",t)},expression:"searchFrom.course_id"}},[o("el-option",{attrs:{value:"",label:"请选择"}}),e._v(" "),e._l(e.classList,function(e,t){return o("el-option",{key:t,attrs:{label:e.title,value:e.id}})})],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"课程类别"}},[o("el-select",{staticStyle:{width:"100px"},attrs:{placeholder:"请选择",clearable:""},on:{change:e.getGoods},model:{value:e.searchFrom.course_type,callback:function(t){e.$set(e.searchFrom,"course_type",t)},expression:"searchFrom.course_type"}},e._l(e.classType,function(e){return o("el-option",{key:e.course_type,attrs:{label:e.value,value:e.course_type}})}))],1),e._v(" "),o("el-form-item",{attrs:{label:"商品现价/团购价","label-width":"120px"}},[o("el-input-number",{model:{value:e.searchFrom.current_price,callback:function(t){e.$set(e.searchFrom,"current_price",t)},expression:"searchFrom.current_price"}})],1),e._v(" "),o("el-form-item",[o("div",{staticClass:"search-btn-block"},[o("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-search"},on:{click:e.getGoods}},[e._v("搜索")]),e._v(" "),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-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getGoods},model:{value:e.searchFrom.goods_type,callback:function(t){e.$set(e.searchFrom,"goods_type",t)},expression:"searchFrom.goods_type"}},[o("el-tab-pane",{attrs:{label:"所有商品",name:"-1"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"普通商品",name:"1"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"团购商品",name:"2"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"续课商品",name:"3"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"优惠券商品",name:"4"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"实物商品",name:"5"}})],1),e._v(" "),o("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.getGoods},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[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:"2"}}),e._v(" "),o("el-tab-pane",{attrs:{label:"全部",name:"-1"}})],1),e._v(" "),o("el-table",{staticStyle:{width:"100%"},attrs:{size:"small",data:e.goodList,fixed:""}},[o("el-table-column",{attrs:{prop:"id",label:"商品编号",width:"80"}}),e._v(" "),o("el-table-column",{attrs:{prop:"name",label:"名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("router-link",{attrs:{to:{name:"periods",query:{goods_id:t.row.id}}}},[e._v("\n "+e._s(t.row.name)+"\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("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.original_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(t.row.current_price/100)+"元\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"course_title",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("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:{prop:"buy_nums",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("goodsStatus")(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(e._f("goodsDesc")(t.row.desc))+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{fixed:"right",width:"60",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-popover",{attrs:{placement:"top",width:"800"}},[o("div",{staticStyle:{"text-align":"center"}},[o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.detail(t.row)}}},[e._v("\n 查看详情\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.copyUrl(t.row.id)}}},[e._v("\n 复制链接\n ")]),e._v(" "),e.$store.state.readonly?e._e():[2===t.row.status||0===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onUp(t.row)}}},[e._v("\n 上架\n ")]):e._e(),e._v(" "),1===t.row.status?o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.onDown(t.row)}}},[e._v("\n 下架\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(o){e.edit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(o){e.copyShop(t.row)}}},[e._v("\n 复制商品\n ")]),e._v(" "),2===t.row.status?o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.bindOther(t.row)}}},[e._v("\n 绑定商品\n ")]):e._e(),e._v(" "),o("el-button",{attrs:{size:"mini",plain:""},on:{click:function(o){e.conflict(t.row)}}},[e._v("\n 冲突商品\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",plain:"",type:"success"},on:{click:function(o){e.addComment(t.row)}}},[e._v("\n 编辑备注\n ")]),e._v(" "),o("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(o){e.updateGoodsNumber(t.row)}}},[e._v("\n 修改购买数量\n ")]),e._v(" "),e.$store.state.deletePermission?o("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(o){e.onDel(t.row)}}},[e._v("\n 删除\n ")]):e._e()]],2),e._v(" "),o("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[e._v("操作")])],1)]}}])})],1),e._v(" "),o("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),o("dialog-com",{attrs:{dialogObj:e.dialogObj},on:{changeShow:e.changeShow,reflash:e.getGoods}}),e._v(" "),o("el-dialog",{attrs:{title:e.chooseDialog.title,visible:e.chooseDialog.show,width:"30%"},on:{"update:visible":function(t){e.$set(e.chooseDialog,"show",t)}}},[o("el-form",{ref:"form",attrs:{"label-width":"80px"}},[0===e.chooseDialog.type?o("el-form-item",{attrs:{label:"绑定商品"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.chooseDialog.form.value,callback:function(t){e.$set(e.chooseDialog.form,"value",t)},expression:"chooseDialog.form.value"}},e._l(e.goodList,function(e){return o("el-option",{key:e.id,attrs:{label:"【"+e.id+"】"+e.name,value:e.id}})}))],1):e._e(),e._v(" "),1===e.chooseDialog.type?o("el-form-item",{attrs:{label:"冲突商品"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.chooseDialog.form.list,callback:function(t){e.$set(e.chooseDialog.form,"list",t)},expression:"chooseDialog.form.list"}},e._l(e.goodList,function(e){return o("el-option",{key:e.id,attrs:{label:"【"+e.id+"】"+e.name,value:e.id.toString()}})}))],1):e._e()],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.chooseDialog.show=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogSub()}}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var v=o("VU/8")(h,b,!1,function(e){o("7QMb")},"data-v-30dbfe6e",null);t.default=v.exports},"1rvC":function(e,t){},"7QMb":function(e,t){},WQzf:function(e,t){},gq0Q:function(e,t){}});
\ No newline at end of file
webpackJsonp([15],{OX9A:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("CCn6"),s=i("g5CC"),a=i("+TkF"),n=i("0qGg"),r=i("kmJW"),l={data:function(){return{noticeDialog:!1,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:[],secGoods:[]}},components:{UserList:n.a,classDialog:s.a,page:r.a},filters:{classTypeFilter:function(e){var t=parseInt(e);return 1===t?"带班班级":2===t?"观摩班级":""},classSourceFilter:function(e){return a.f[e]},percent:function(e){return(100*e).toFixed(2)+"%"}},mounted:function(){this.initPage()},methods:{changeRow:function(e,t){t.indexOf(e)>-1&&Object(o._37)(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(o._62)({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 i=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=i.children.find(function(t){return t.id===e.selectedGoods[1]}),console.log(e.periods),e.teacher_id="",e.getClassList()})):Object(o._42)().then(function(t){console.log(t),t&&(e.goods_id=t.goods_id,e.selectedGoods=[parseInt(t.goods_id),parseInt(t.id)],Object(o._62)({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 i=e.goodsList.find(function(t){return t.id===e.selectedGoods[0]});e.periods=i.children.find(function(t){return t.id===e.selectedGoods[1]}),e.teacher_id="",console.log(e.periods),e.getClassList()}))}),console.log(this.goodsList)},initPage:function(){var e=this;Object(o._47)({page:1,limit:100,goods_type:"1,2"}).then(function(t){console.log(t),t.list.forEach(function(e){e.name="["+e.id+"]["+a.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list,e.initQuery()})},showUser:function(e){var t=1==e.type?"(带班班级)":"(观摩班级)";this.userObj={classId:e.id,periods_id:e.periods_id,show:!0,goods_id:this.goods_id,title:e.teacher_name+"班级用户列表"+t,teacherId:e.teacher_id,class_name:e.class_name,type:e.type,watch_num:this.title.watch_num},console.log(this.userObj)},getTeacher:function(){var e=this;this.periods&&Object(o._65)(this.periods.id).then(function(t){var i={};t=t.reduce(function(e,t){return!i[t.teacher_id]&&(i[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]}),console.log(this.goodsList),console.log(this.periods),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),console.log(this.periods),Object(o._36)(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(o._62)({goods_id:e[0]}).then(function(i){i.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=i.list})},delClass:function(e){var t=this;this.$confirm("此操作将删除该班级?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.J)(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)}}},c={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;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: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(" "),i("el-form-item",{attrs:{label:"老师"}},[i("el-select",{attrs:{filterable:"",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 i("el-option",{key:t,attrs:{label:e.teacher_name,value:e.teacher_id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:""}},[i("el-button",{attrs:{type:"primary"},on:{click:e.getClassList}},[e._v("\n 搜索\n ")])],1),e._v(" "),i("el-form-item",{staticStyle:{float:"right"}},[e.$store.state.readonly?e._e():i("el-button",{attrs:{type:"success"},on:{click:e.onAdd}},[e._v("+添加班级")])],1)],1)],1),e._v(" "),e.title&&e.title.title?i("div",{staticClass:"intro"},[i("el-table",{staticStyle:{display:"block",margin:"20px auto",background:"transparent"},attrs:{border:"",size:"mini",data:[e.title]}},[i("el-table-column",{attrs:{label:"期数名称",prop:"title"}}),e._v(" "),i("el-table-column",{attrs:{label:"可看课包数",prop:"watch_num"}}),e._v(" "),i("el-table-column",{attrs:{label:"已看课包数",prop:"has_watch_num"}}),e._v(" "),i("el-table-column",{attrs:{label:"开始时间",prop:"start_at"}}),e._v(" "),i("el-table-column",{attrs:{label:"老师数量",prop:"count_teacher_num"}}),e._v(" "),i("el-table-column",{attrs:{label:"预计学员总数",prop:"count_max_join_num"}}),e._v(" "),i("el-table-column",{attrs:{label:"学员总数",prop:"count_join_num"}}),e._v(" "),i("el-table-column",{attrs:{label:"结束时间",prop:"over_at"}})],1)],1):e._e(),e._v(" "),e.title&&e.title.title?e._e():i("div",[i("el-form",{attrs:{"label-width":"300px",inline:""}},[i("el-form-item",{attrs:{label:"暂无期数信息,请先选择期数"}})],1)],1),e._v(" "),i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.classList},on:{"expand-change":e.changeRow}},[i("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-table",{staticStyle:{width:"100%"},attrs:{data:[t.row]}},[i("el-table-column",{attrs:{label:"到课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("percent")(t.row.arrive_course_rate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"看课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("percent")(t.row.watch_course_rate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"完课率"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("percent")(t.row.over_course_rate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("percent")(t.row.clock_rate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("percent")(t.row.over_clock_rate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"转化率"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("percent")(t.row.transform_rate)))])]}}])})],1)]}}])}),e._v(" "),i("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(" "),i("el-table-column",{attrs:{prop:"qr",label:"班级二维码"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.qr?i("a",{attrs:{href:t.row.qr,target:"_blank"}},[i("img",{staticClass:"avatar",attrs:{src:t.row.qr,alt:"二维码"}})]):e._e(),e._v(" "),t.row.qr?e._e():i("p",[e._v("--")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"teacher_name",label:"班主任"}}),e._v(" "),i("el-table-column",{attrs:{label:"老师状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.teacher_status?"带班":"不带班")+"\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("classTypeFilter")(t.row.type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"max_join_num",label:"最大人数"}}),e._v(" "),i("el-table-column",{attrs:{prop:"join_num",label:"现有人数"}}),e._v(" "),i("el-table-column",{attrs:{prop:"source",label:"招生来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("classSourceFilter")(t.row.source))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{width:"250",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(i){e.showUser(t.row)}}},[e._v("班级成员")]),e._v(" "),e.$store.state.readonly?e._e():i("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(i){e.editClass(t.row)}}},[e._v("编辑")]),e._v(" "),e.$store.state.deletePermission&&!e.$store.state.readonly?i("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(i){e.delClass(t.row)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),i("page",{attrs:{nowPage:e.nowPage,total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),i("class-dialog",{attrs:{dialogObj:e.dialogObj},on:{reflash:e.onReflash}}),e._v(" "),i("user-list",{attrs:{userObj:e.userObj},on:{reflash:e.getClassList}})],1)},staticRenderFns:[]};var d=i("VU/8")(l,c,!1,function(e){i("hhM+"),i("nD6M")},"data-v-1cae7c77",null);t.default=d.exports},g5CC:function(e,t,i){"use strict";var o=i("CCn6"),s=i("+TkF"),a={props:["dialogObj"],data:function(){var e=[];for(var t in s.f)e.push({label:s.f[t],value:Number(t)});return{imageList:[],form:{teacher_id:"",max_join_num:"",class_name:"",source:"",qr:""},type:0,classSource:e,teacherList:[],exitTeacherList:[],goodsList:[],periods:{},uploadShow:!0}},methods:{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(o._148)({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})},findDifferentArray:function(e,t){var i=[];return e.forEach(function(e){-1===t.findIndex(function(t){return t.teacher_id===e.id})&&i.push(e)}),i},getTeacher:function(){var e=this;Object(o._86)({limit:100,status:0}).then(function(t){e.teacherList=t.list})},getTeacherByPeriods:function(){var e=this;Object(o._86)({limit:100,status:0}).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:"",source:"",qr:""},this.type=0,this.uploadShow=!0,this.getTeacher();break;case 1:this.type=1,Object(o._35)(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,source:t.source},t.qr&&(e.form.qr=t.qr,e.imageList=[{name:t.qr,url:t.qr}]),e.form.media_id=t.media_id?t.media_id:"",e.uploadShow=!t.qr,console.log(e.uploadShow),e.getTeacher()})}},getPeriodList:function(){var e=this;Object(o._47)().then(function(t){t.list.forEach(function(e){e.name="["+s.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name,e.children=[]}),e.goodsList=t.list,e.periods||Object(o._62)({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;this.imageList.length>0&&(this.form.qr=this.imageList[0].url);var t={max_join_num:String(this.form.max_join_num),teacher_id:String(this.form.teacher_id),source:this.form.source,class_name:this.form.class_name,media_id:this.form.media_id};switch(this.form.qr&&(t.qr=this.form.qr),console.log(t),this.dialogObj.type){case 0:var i=this.dialogObj.periodsId?this.dialogObj.periodsId:this.periods.id;Object(o.g)(i,t).then(function(t){e.$message({type:"success",message:"添加成功!"}),e.$emit("reflash",e.periods),e.dialogObj.show=!1});break;case 1:Object(o._4)(this.dialogObj.id,t).then(function(t){e.$message({type:"success",message:"修改成功!"}),e.$emit("reflash",e.periods),e.dialogObj.show=!1})}},handleItemChange:function(e){var t=this;Object(o._62)({goods_id:e[0]}).then(function(i){i.list.forEach(function(e){e.name=e.title}),t.goodsList.find(function(t){return t.id===e[0]}).children=i.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 i=e.filter(function(e,i){return e.id==t});this.form.class_name=i[0].name+"一班"}},watch:{"dialogObj.show":function(e){e&&this.initPage()}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:e.dialogObj.title,visible:e.dialogObj.show},on:{"update:visible":function(t){e.$set(e.dialogObj,"show",t)}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"120px"}},[this.dialogObj.periodsId?e._e():i("el-form-item",{attrs:{label:"期数"}},[i("el-cascader",{attrs:{options:e.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":e.handleItemChange,change:e.changePeriods}})],1),e._v(" "),i("el-form-item",{attrs:{label:"老师"}},[i("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 i("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"班级名称"}},[i("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(" "),i("el-form-item",{attrs:{label:"最大学员"}},[i("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),e._v(" "),i("el-form-item",{attrs:{label:"招生来源"}},[i("el-select",{attrs:{placeholder:"请选择",filterable:""},model:{value:e.form.source,callback:function(t){e.$set(e.form,"source",t)},expression:"form.source"}},e._l(e.classSource,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),i("el-form-item",{attrs:{label:"班级二维码"}},[i("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}},[i("i",{staticClass:"el-icon-plus"})])],1)],1),e._v(" "),i("span",{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.onSave}},[e._v("确 定")])],1)],1)},staticRenderFns:[]};var r=i("VU/8")(a,n,!1,function(e){i("gdey")},"data-v-27bd0c65",null);t.a=r.exports},gdey:function(e,t){},"hhM+":function(e,t){},nD6M: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.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([45],{NrkQ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("kmJW"),s=(a("sf/l"),a("CCn6")),o=a("+TkF"),i={name:"index",components:{page:r.a},data:function(){var e=this;return{today:{text:"今天",onClick:function(t){t.$emit("pick",[e.formatTime(new Date)+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},yesterday:{text:"昨天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-864e5));t.$emit("pick",[a+" 00:00:00",a+" 23:59:59"])}},last30Day:{text:"过去30天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-2592e6));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},last7Day:{text:"过去7天",onClick:function(t){var a=e.formatTime(new Date((new Date).getTime()-6048e5));t.$emit("pick",[a+" 00:00:00",e.formatTime(new Date)+" 23:59:59"])}},teacherId:null,secId:[],total:0,nowPage:1,limit:10,searchFrom:{source:"",course_type:"-1"},tableData:[],commentForm:{},showCommentDialog:!1,teacherList:[],goodList:[]}},filters:{filterStatus:function(e){return 0===e?"未绑定":"已绑定"},filterGoods:function(e){return"["+e.id+"]["+o.h[e.goods_type]+"]["+e.current_price/100+"元]"+e.name}},created:function(){this.initPage(),this.getGoodsOption(),this.getTeacherList()},methods:{externalLaunchStatus:function(e){return o.z[e.status]},formatTime:function(e){console.log(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},getGoodsOption:function(){var e=this;Object(s._47)({page:1,limit:100,goods_type:"1,2"}).then(function(t){e.goodList=t.list})},pullAll:function(){var e=this;if(this.secId.length<1)return this.$message("请选择订单"),!1;if(!this.teacherId)return this.$message("请选择老师"),!1;var t={order_ids:[]};this.secId.forEach(function(e){t.order_ids.push(e)}),this.$confirm("是否确定将这"+t.order_ids.length+"笔订单分配给该老师?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s.t)(e.teacherId,{ids:t.order_ids.join(",")}).then(function(t){e.$message({message:"提交成功",type:"success"}),e.initPage()})}).catch(function(){})},getTeacherList:function(){var e=this;Object(s._86)({page:1,limit:200}).then(function(t){e.teacherList=t.list})},handleSelectionChange:function(e){var t=this;this.secId=[],e.forEach(function(e){t.secId.push(e.id)})},initPage:function(){var e=this,t={limit:this.limit,page:this.nowPage};this.searchFrom.source&&(t.source=this.searchFrom.source),this.searchFrom.mobile&&(t.mobile=this.searchFrom.mobile),this.searchFrom.status&&(t.status=this.searchFrom.status),"-1"!==this.searchFrom.course_type&&(t.course_type=this.searchFrom.course_type),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),-1!=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),this.searchFrom.time&&2==this.searchFrom.time.length&&(t.start_at=this.searchFrom.time[0],t.end_at=this.searchFrom.time[1]),this.searchFrom.active_time&&2==this.searchFrom.active_time.length&&(t.active_start_at=this.searchFrom.active_time[0],t.active_end_at=this.searchFrom.active_time[1]),Object(s._24)(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()},doExport:function(){var e="?type=export";this.searchFrom.source&&(e=e+"&source="+this.searchFrom.source),this.searchFrom.mobile&&(e=e+"&mobile="+this.searchFrom.mobile),this.searchFrom.status&&(e=e+"&status="+this.searchFrom.status),"-1"!==this.searchFrom.course_type&&(e=e+"&course_type="+this.searchFrom.course_type),"-1"!==this.searchFrom.user_buy&&(e=e+"&user_buy="+this.searchFrom.user_buy),this.searchFrom.nickname&&(e=e+"&nickname="+this.searchFrom.nickname),this.searchFrom.user_id&&(e=e+"&user_id="+this.searchFrom.user_id),this.searchFrom.teacher_id&&(e=e+"&teacher_id="+this.searchFrom.teacher_id),this.searchFrom.goods_name&&(e=e+"&goods_name="+this.searchFrom.goods_name),this.searchFrom.order_id&&(e=e+"&order_id="+this.searchFrom.order_id),this.searchFrom.goods_id&&(e=e+"&goods_id="+this.searchFrom.goods_id),this.searchFrom.time&&2==this.searchFrom.time.length&&(e=(e=e+"&start_at="+this.searchFrom.time[0])+"&end_at="+this.searchFrom.time[1]),this.searchFrom.active_time&&2==this.searchFrom.active_time.length&&(e=(e=e+"&active_start_at="+this.searchFrom.active_time[0])+"&active_end_at="+this.searchFrom.active_time[1]),window.open("/api/admin/ads/export/all"+e)},saveComment:function(){var e=this,t=void 0;t=this.commentForm.id?this.commentForm.id:this.secId.join(",");var a=this.commentForm.desc?this.commentForm.desc:"";a&&this.$confirm("确认编辑备注","提示",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}).then(function(){Object(s._133)({ids:t,desc:a}).then(function(t){e.$message({type:"success",message:"编辑备注成功"}),e.showCommentDialog=!1,e.initPage()})})},editNote:function(e,t){this.showCommentDialog=!0,this.commentForm={id:e,desc:t}},editComment:function(e,t){this.secId.length>0?this.showCommentDialog=!0:this.$message({type:"warning",message:"请选择"})}}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"index"},[a("el-form",{ref:"searchFrom",attrs:{model:e.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"领取时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"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._v(" "),a("el-form-item",{attrs:{label:"激活时间"}},[a("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":{shortcuts:[e.today,e.yesterday,e.last7Day,e.last30Day]},"default-time":["00:00:00","23:59:59"]},model:{value:e.searchFrom.active_time,callback:function(t){e.$set(e.searchFrom,"active_time",t)},expression:"searchFrom.active_time"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"是否激活"}},[a("el-select",{attrs:{clearable:"",size:"medium"},on:{change:e.initPage},model:{value:e.searchFrom.user_buy,callback:function(t){e.$set(e.searchFrom,"user_buy",t)},expression:"searchFrom.user_buy"}},[a("el-option",{attrs:{label:"已激活",value:1}}),e._v(" "),a("el-option",{attrs:{label:"未激活",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"沟通状态"}},[a("el-select",{attrs:{clearable:"",size:"medium"},on:{change:e.initPage},model:{value:e.searchFrom.status,callback:function(t){e.$set(e.searchFrom,"status",t)},expression:"searchFrom.status"}},[a("el-option",{attrs:{label:"已激活",value:1}}),e._v(" "),a("el-option",{attrs:{label:"假号",value:2}}),e._v(" "),a("el-option",{attrs:{label:"没兴趣",value:3}}),e._v(" "),a("el-option",{attrs:{label:"待激活",value:0}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"来源"}},[a("el-input",{attrs:{placeholder:"名称"},model:{value:e.searchFrom.source,callback:function(t){e.$set(e.searchFrom,"source",t)},expression:"searchFrom.source"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{staticStyle:{width:"110px"},model:{value:e.searchFrom.nickname,callback:function(t){e.$set(e.searchFrom,"nickname",t)},expression:"searchFrom.nickname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{staticStyle:{width:"120px"},model:{value:e.searchFrom.mobile,callback:function(t){e.$set(e.searchFrom,"mobile",t)},expression:"searchFrom.mobile"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商品名称"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{filterable:"",placeholder:"请选择",clearable:""},on:{change:e.initPage},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 a("el-option",{key:r,attrs:{label:e._f("filterGoods")(t),value:t.id}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{staticStyle:{width:"180px"},attrs:{filterable:"",placeholder:"请选择",clearable:"",filterable:""},on:{change:e.initPage},model:{value:e.searchFrom.teacher_id,callback:function(t){e.$set(e.searchFrom,"teacher_id",t)},expression:"searchFrom.teacher_id"}},[a("el-option",{attrs:{label:"未指定",value:"0"}}),e._v(" "),e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})],2)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.initPage}},[e._v("\n 搜索\n ")])],1),e._v(" "),a("el-form-item",[e.$store.state.export?a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.doExport}},[e._v("\n 导出\n ")]):e._e()],1)],1),e._v(" "),a("div"),e._v(" "),a("div",{staticStyle:{position:"relative"}},[a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":e.initPage},model:{value:e.searchFrom.course_type,callback:function(t){e.$set(e.searchFrom,"course_type",t)},expression:"searchFrom.course_type"}},[a("el-tab-pane",{attrs:{label:"全部",name:"-1"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"月课",name:"0"}}),e._v(" "),a("el-tab-pane",{attrs:{label:"日课",name:"1"}})],1),e._v(" "),e.$store.state.distribution?a("div",{staticStyle:{position:"absolute",top:"10px",right:"10px","font-size":"14px"}},[e._v("\n 老师:\n "),a("el-select",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"请选择",clearable:"",filterable:""},model:{value:e.teacherId,callback:function(t){e.teacherId=t},expression:"teacherId"}},[a("el-option",{attrs:{label:"暂不分配",value:"0"}}),e._v(" "),e._l(e.teacherList,function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})],2),e._v(" "),a("el-button",{attrs:{size:"small",type:"success"},on:{click:e.pullAll}},[e._v("批量分配")])],1):e._e()],1),e._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{prop:"nickname",label:"领取人"},scopedSlots:e._u([{key:"default",fn:function(t){return[0!==t.row.user_id?a("div",[a("img",{staticClass:"avatar",attrs:{src:t.row.avatar}}),e._v(" "),a("div",[e._v(e._s(t.row.nickname)),a("br"),e._v("(ID:"+e._s(t.row.user_id)+")")])]):e._e(),e._v(" "),0===t.row.user_id?a("div",[e._v("\n 暂未绑定用户\n ")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"宝宝昵称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"telephone",label:"领取电话"}}),e._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"source",label:"来源"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.source)+"("+e._s(t.row.invite_name)+")\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"teacher_name",label:"班级老师"}}),e._v(" "),a("el-table-column",{attrs:{prop:"status",formatter:e.externalLaunchStatus,label:"沟通状态",width:"120"}}),e._v(" "),a("el-table-column",{attrs:{prop:"active_at",label:"激活时间",width:"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("0000-00-00 00:00:00"===t.row.active_at?"未激活":t.row.active_at)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"create_at",label:"领取时间",width:"90"}}),e._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),e._v(" "),e.$store.state.readonly?e._e():a("el-table-column",{attrs:{label:"操作",fixed:"right",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){e.editNote(t.row.id,t.row.desc)}}},[e._v("编辑备注")])]}}])})],1),e._v(" "),a("page",{attrs:{total:e.total,limit:e.limit},on:{pageChange:e.onPageChange,sizeChange:e.onSizeChange}}),e._v(" "),a("el-dialog",{attrs:{title:"编辑备注",center:"","append-to-body":"",visible:e.showCommentDialog,"close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,width:"600px"},on:{"update:visible":function(t){e.showCommentDialog=t}}},[a("div",[a("el-form",{ref:"commentFrom",attrs:{model:e.commentForm}},[a("el-form-item",{attrs:{prop:"desc"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.commentForm.desc,callback:function(t){e.$set(e.commentForm,"desc",t)},expression:"commentForm.desc"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.showCommentDialog=!1,e.commentForm={}}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.saveComment}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var c=a("VU/8")(i,n,!1,function(e){a("v23m")},"data-v-496fcc98",null);t.default=c.exports},v23m:function(e,t){}});
\ No newline at end of file
webpackJsonp([46],{iPJD:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i("CCn6"),l={name:"upload",data:function(){return{fileList:[]}},methods:{uploadFileVideo1Banner:function(e){var t=this;Object(n._148)({file:e.file,type:"local"}).then(function(e){e.url="https://cdn.singsingenglish.com/"+e.url,t.fileList.push(e)})}}},a={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{staticClass:"upload-demo",attrs:{action:"/api/public/upload","http-request":e.uploadFileVideo1Banner,"list-type":"picture-card",multiple:""}}),e._v(" "),i("pre",[e._v(" <p>\n ")]),e._v(" "),e._l(e.fileList,function(t){return i("pre",[e._v(' <img src="'+e._s(t.url)+'" style="display:block">\n ')])}),e._v(" "),i("pre",[e._v(" </p>\n ")])],2)},staticRenderFns:[]};var r=i("VU/8")(l,a,!1,function(e){i("wi9J")},"data-v-3a2ff3b1",null);t.default=r.exports},wi9J:function(e,t){}});
\ No newline at end of file
webpackJsonp([47],{SQLR:function(e,t){},sJm1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={data:function(){return{content:"我是富文本编辑器的内容",editorSetting:{height:400}}},mounted:function(){var e=localStorage.getItem("phoneNum");console.log(e),e&&(e=JSON.parse(e),this.phoneNumObj=e),console.log(this.phoneNumObj),e&&"teacher_leader"!=e.teacher_type?this.$router.push("/teacher/"+e.id):this.$router.push("/teacher")},components:{}},i={render:function(){this.$createElement;this._self._c;return this._m(0)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"index"},[t("div",{staticStyle:{"text-align":"center","margin-top":"5%"}},[this._v("正在开发中...")])])}]};var o=n("VU/8")(r,i,!1,function(e){n("SQLR")},"data-v-2f31c6c3",null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([58],{DBxD:function(e,n){},IcnI:function(e,n,t){"use strict";var a=t("NYxO"),o=t("lRwf"),r=t.n(o),i=t("zSLJ"),u={setToken:function(e,n){e.token=n,i.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,i.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},distribution:function(e,n){e.distribution=n},classManage:function(e,n){e.classManage=n},classManageUnlimited:function(e,n){e.classManageUnlimited=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};r.a.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",export:!1,orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,distribution:!1,classManage:!1,classManageUnlimited:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:u,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)},distribution:function(e,n){(0,e.commit)("distribution",n)},classManage:function(e,n){(0,e.commit)("classManage",n)},classManageUnlimited:function(e,n){(0,e.commit)("classManageUnlimited",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=[{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(14)]).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(25)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"市场招生统计",routerName:"marketStatistics",path:"/marketStatistics",cover:"2-5",router:{path:"/marketStatistics",name:"marketStatistics",component:function(e){return Promise.all([t.e(0),t.e(53)]).then(function(){var n=[t("SKyX")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"自化课列表",routerName:"autoClass",path:"/autoClass",cover:"2-6",router:{path:"/autoClass",name:"autoClass",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("f9Sx")];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(2)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("xdzM")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([t.e(0),t.e(42)]).then(function(){var n=[t("v/LD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(38)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("Fmgy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"话术列表",routerName:"talkingSkill",path:"/talkingSkill",cover:"11-6",router:{path:"/talkingSkill",name:"talkingSkill",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("CUAv")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(4)]).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(37)]).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)}}},{value:"绑定子账号列表",routerName:"subList",path:"/subList",cover:"3-5",router:{path:"/subList",name:"subList",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("L5jB")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"日课订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(39)]).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(49).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(55)]).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(43)]).then(function(){var n=[t("mjLz")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([t.e(0),t.e(32)]).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(23)]).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(16)]).then(function(){var n=[t("69L+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("CvLZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(21)]).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(18)]).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(19)]).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(20)]).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(26)]).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(27)]).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(17)]).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(10)]).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(51)]).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(54)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"测试",routerName:"test",path:"/test",cover:"7-11",router:{path:"/test",name:"test",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("9ZSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"首页管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(35)]).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(45)]).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(36)]).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(29)]).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(48)]).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(44)]).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(56)]).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(31)]).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(40)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],o={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList;console.log(this.$store.state);var o=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},i={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};a.forEach(function(t){var a=!1,u=[];t.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=!!o.readonly,t.router.meta.delete=!!o.delete,t.router.meta.export=!!o.export,t.router.meta.refund=!!o.refund,t.router.meta.distribution=!!o.distribution,t.router.meta.classManage=!!o.classManage,t.router.meta.classManageUnlimited=!!o.classManageUnlimited,u.push(t),"3-1"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),"3-2"===o.cover&&(r.meta={},r.meta.readonly=o.readonly,r.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(t.list=u,o.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},r={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var i=t("VU/8")(o,r,!1,function(e){t("DBxD")},null,null).exports,u=t("lRwf"),c=t.n(u),l=t("YaEn"),s=t("IcnI"),h=t("zL8q"),m=t.n(h);c.a.use(m.a),c.a.config.productionTip=!1,new c.a({el:"#app",store:s.a,router:l.a,components:{App:i},template:"<App/>"})},OMN4:function(e,n){e.exports=axios},YaEn:function(e,n,t){"use strict";var a=t("IcnI"),o=t("/ocq"),r=t("zSLJ"),i=new o.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(7)]).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(47).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(52)]).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(50)]).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(46)]).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}}]});i.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),r.a.get("cc_token")&&(a.a.dispatch("setToken",r.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&a.a.dispatch("setUserName",r.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,i=0;i<a.a.state.menuList.length;i++)for(var u=a.a.state.menuList[i],c=0;c<u.list.length;c++){var l=u.list[c];l.path===e.path&&(o=l)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),a.a.state.orderRefund=e.meta.refund,a.a.state.export=e.meta.export,a.a.state.distribution=e.meta.distribution,a.a.state.classManage=e.meta.classManage,a.a.dispatch("classManageUnlimited",e.meta.classManageUnlimited),console.log(e.meta),"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",s)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),i.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=i.history.pending.fullPath;n&&i.replace(t)}),n.a=i},lRwf:function(e,n){e.exports=Vue},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var a=new Date;a.setTime(a.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+a.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
webpackJsonp([58],{DBxD:function(e,n){},IcnI:function(e,n,t){"use strict";var a=t("NYxO"),o=t("lRwf"),r=t.n(o),i=t("zSLJ"),u={setToken:function(e,n){e.token=n,i.a.set("cc_token",n)},setUserName:function(e,n){e.userName=n,i.a.set("cc_user_name",n)},setPermission:function(e,n){e.progressList=n,localStorage.setItem("permission",JSON.stringify(n))},setMenu:function(e,n){e.menuList=n},readonly:function(e,n){e.readonly=n},deletePermission:function(e,n){e.deletePermission=n},distribution:function(e,n){e.distribution=n},classManage:function(e,n){e.classManage=n},classManageUnlimited:function(e,n){e.classManageUnlimited=n},mainCanShow:function(e){e.mainLoad=!1},mainUnShow:function(e){e.mainLoad=!0},changeParentRouter:function(e,n){e.menuList.find(function(e){return e.name===n.name}).routerName=n.to.name},progress:function(e,n){switch(n.type){case"new":e.progressList.push({num:0,id:n.id});break;case"change":e.progressList.find(function(e){return e.id===n.id}).num=n.num;break;case"delete":e.progressList.find(function(e){return e.id===n.id})}}};r.a.use(a.a);n.a=new a.a.Store({state:{show:!1,userName:"",token:"",export:!1,orderRefund:!1,permission:!1,readonly:!0,deletePermission:!1,distribution:!1,classManage:!1,classManageUnlimited:!1,mainLoad:!0,menuList:[],menuType:!1,nowTab:"first",progressList:[],openedTab:[{value:"首页",routerName:"first",name:"first",delNo:!0,path:"/index"}]},mutations:u,actions:{setToken:function(e,n){(0,e.commit)("setToken",n)},setUserName:function(e,n){(0,e.commit)("setUserName",n)},setProgress:function(e,n){(0,e.commit)("progress",n)},setPermission:function(e,n){(0,e.commit)("setPermission",n)},setMenu:function(e,n){(0,e.commit)("setMenu",n)},readonly:function(e,n){(0,e.commit)("readonly",n)},deletePermission:function(e,n){(0,e.commit)("deletePermission",n)},distribution:function(e,n){(0,e.commit)("distribution",n)},classManage:function(e,n){(0,e.commit)("classManage",n)},classManageUnlimited:function(e,n){(0,e.commit)("classManageUnlimited",n)}}})},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=[{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(14)]).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(25)]).then(function(){var n=[t("ayGs")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"班级列表",routerName:"class",path:"/class",cover:"2-3",router:{path:"/class",name:"class",component:function(e){return Promise.all([t.e(0),t.e(15)]).then(function(){var n=[t("OX9A")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"市场招生统计",routerName:"marketStatistics",path:"/marketStatistics",cover:"2-5",router:{path:"/marketStatistics",name:"marketStatistics",component:function(e){return Promise.all([t.e(0),t.e(53)]).then(function(){var n=[t("SKyX")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"不上课日期",routerName:"noLesson",path:"/noLesson",cover:"2-4",router:{path:"/noLesson",name:"noLesson",component:function(e){return Promise.all([t.e(0),t.e(33)]).then(function(){var n=[t("sg/1")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"自化课列表",routerName:"autoClass",path:"/autoClass",cover:"2-6",router:{path:"/autoClass",name:"autoClass",component:function(e){return Promise.all([t.e(0),t.e(28)]).then(function(){var n=[t("f9Sx")];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(2)]).then(function(){var n=[t("Y0Vi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单列表",routerName:"monthOrder",path:"/monthOrder",cover:"5-10",router:{path:"/monthOrder",name:"monthOrder",component:function(e){return Promise.all([t.e(0),t.e(5)]).then(function(){var n=[t("xdzM")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"月课订单统计",routerName:"monthOrderCount",path:"/monthOrderCount",cover:"5-12",router:{path:"/monthOrderCount",name:"monthOrderCount",component:function(e){return Promise.all([t.e(0),t.e(42)]).then(function(){var n=[t("v/LD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"退款列表",routerName:"refund",path:"/refund",cover:"5-2",router:{path:"/refund",name:"refund",component:function(e){return Promise.all([t.e(0),t.e(38)]).then(function(){var n=[t("89rD")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"业绩排行",routerName:"achievement",path:"/achievement",cover:"5-7",router:{path:"/achievement",name:"achievement",component:function(e){return Promise.all([t.e(0),t.e(22)]).then(function(){var n=[t("Fmgy")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"话术列表",routerName:"talkingSkill",path:"/talkingSkill",cover:"11-6",router:{path:"/talkingSkill",name:"talkingSkill",component:function(e){return Promise.all([t.e(0),t.e(24)]).then(function(){var n=[t("CUAv")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"用户管理",icon:"icon-laoshi",list:[{value:"用户列表",routerName:"user",path:"/user",cover:"3-2",router:{path:"/user",name:"user",component:function(e){return Promise.all([t.e(0),t.e(4)]).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(37)]).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)}}},{value:"绑定子账号列表",routerName:"subList",path:"/subList",cover:"3-5",router:{path:"/subList",name:"subList",component:function(e){return Promise.all([t.e(0),t.e(34)]).then(function(){var n=[t("L5jB")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"订单管理",icon:"icon-dingdan",list:[{value:"日课订单列表",routerName:"order",path:"/order",cover:"5-1",router:{path:"/order",name:"order",component:function(e){return Promise.all([t.e(0),t.e(8)]).then(function(){var n=[t("2qmY")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"提现列表",routerName:"putForward",path:"/putForward",cover:"5-3",router:{path:"/putForward",name:"putForward",component:function(e){return Promise.all([t.e(0),t.e(39)]).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(49).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(55)]).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(43)]).then(function(){var n=[t("mjLz")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"优惠券列表",routerName:"coupon",path:"/coupon",cover:"5-6",router:{path:"/coupon",name:"coupon",component:function(e){return Promise.all([t.e(0),t.e(32)]).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(23)]).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(16)]).then(function(){var n=[t("69L+")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"兑换码管理",routerName:"exchange",path:"/exchange",cover:"5-13",router:{path:"/exchange",name:"exchange",component:function(e){return Promise.all([t.e(0),t.e(12)]).then(function(){var n=[t("CvLZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"实物管理",icon:"icon-shu",list:[{value:"单品列表",routerName:"single",path:"/single",cover:"6-1",router:{path:"/single",name:"single",component:function(e){return Promise.all([t.e(0),t.e(21)]).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(18)]).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(19)]).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(20)]).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(26)]).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(27)]).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(17)]).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(10)]).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(51)]).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(54)]).then(function(){var n=[t("5t3x")];e.apply(null,n)}.bind(this)).catch(t.oe)}}},{value:"测试",routerName:"test",path:"/test",cover:"7-11",router:{path:"/test",name:"test",component:function(e){return Promise.all([t.e(0),t.e(30)]).then(function(){var n=[t("9ZSL")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]},{name:"",value:"系统管理",icon:"icon-xitongquanxian",list:[{value:"首页管理",routerName:"banner",path:"/banner",cover:"7-5",router:{path:"/banner",name:"banner",component:function(e){return Promise.all([t.e(0),t.e(35)]).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(46)]).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(36)]).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(29)]).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(48)]).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(44)]).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(56)]).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(31)]).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(40)]).then(function(){var n=[t("WZgi")];e.apply(null,n)}.bind(this)).catch(t.oe)}}}]}],o={name:"App",data:function(){return{}},mounted:function(){var e=this;if(window.location.href.indexOf("login")<0){var n=this.$store.state.progressList;console.log(this.$store.state);var o=[];this.$router.options.routes[0].children=[];var r={path:"/userDetail/:id",name:"userDetail",component:function(e){return Promise.all([t.e(0),t.e(11)]).then(function(){var n=[t("9PRC")];e.apply(null,n)}.bind(this)).catch(t.oe)}},i={path:"/teacher/:id",name:"teacherDetail",component:function(e){return Promise.all([t.e(0),t.e(6)]).then(function(){var n=[t("hFUZ")];e.apply(null,n)}.bind(this)).catch(t.oe)}};a.forEach(function(t){var a=!1,u=[];t.list.forEach(function(t){var o=n.find(function(e){return e.cover===t.cover});o&&(t.router.meta={},t.router.meta.readonly=!!o.readonly,t.router.meta.delete=!!o.delete,t.router.meta.export=!!o.export,t.router.meta.refund=!!o.refund,t.router.meta.distribution=!!o.distribution,t.router.meta.classManage=!!o.classManage,t.router.meta.classManageUnlimited=!!o.classManageUnlimited,u.push(t),"3-1"===o.cover&&(i.meta={},i.meta.readonly=o.readonly,i.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(i)),"3-2"===o.cover&&(r.meta={},r.meta.readonly=o.readonly,r.meta.delete=!!o.delete,e.$router.options.routes[0].children.push(r)),e.$router.options.routes[0].children.push(t.router),a=!0)}),a&&(t.list=u,o.push(t))}),this.$router.addRoutes([this.$router.options.routes[0]]),this.$store.dispatch("setMenu",o)}}},r={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},staticRenderFns:[]};var i=t("VU/8")(o,r,!1,function(e){t("DBxD")},null,null).exports,u=t("lRwf"),c=t.n(u),l=t("YaEn"),s=t("IcnI"),h=t("zL8q"),m=t.n(h);c.a.use(m.a),c.a.config.productionTip=!1,new c.a({el:"#app",store:s.a,router:l.a,components:{App:i},template:"<App/>"})},OMN4:function(e,n){e.exports=axios},YaEn:function(e,n,t){"use strict";var a=t("IcnI"),o=t("/ocq"),r=t("zSLJ"),i=new o.a({routes:[{path:"/",name:"index",component:function(e){return Promise.all([t.e(0),t.e(7)]).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(45).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(52)]).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(50)]).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(47)]).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}}]});i.beforeEach(function(e,n,t){if(a.a.commit("mainCanShow"),r.a.get("cc_token")&&(a.a.dispatch("setToken",r.a.get("cc_token")),a.a.dispatch("setPermission",JSON.parse(localStorage.getItem("permission"))),null!==r.a.get("cc_user_name")&&a.a.dispatch("setUserName",r.a.get("cc_user_name"))),a.a.state.nowTab=e.name,e.matched.length>1&&"first"!==e.name){for(var o=void 0,i=0;i<a.a.state.menuList.length;i++)for(var u=a.a.state.menuList[i],c=0;c<u.list.length;c++){var l=u.list[c];l.path===e.path&&(o=l)}a.a.state.openedTab.indexOf(o)<0&&a.a.state.openedTab.push(o)}if(e.meta.readonly?a.a.dispatch("readonly",!0):a.a.dispatch("readonly",!1),a.a.state.orderRefund=e.meta.refund,a.a.state.export=e.meta.export,a.a.state.distribution=e.meta.distribution,a.a.state.classManage=e.meta.classManage,a.a.dispatch("classManageUnlimited",e.meta.classManageUnlimited),console.log(e.meta),"userDetail"===e.name){var s=JSON.parse(localStorage.getItem("permission")).find(function(e){return"3-2"===e.cover}).readonly;a.a.dispatch("readonly",s)}e.meta.delete?a.a.dispatch("deletePermission",!0):a.a.dispatch("deletePermission",!1),e.matched.some(function(e){return!0!==e.meta.skip_auth})&&!a.a.state.token?t({path:"/login"}):t()}),i.onError(function(e){var n=e.message.match(/Loading chunk (\d)+ failed/g),t=i.history.pending.fullPath;n&&i.replace(t)}),n.a=i},lRwf:function(e,n){e.exports=Vue},zSLJ:function(e,n,t){"use strict";n.a={set:function(e,n,t){var a=new Date;a.setTime(a.getTime()+864e5*t),window.document.cookie=e+"="+n+";path=/;expires="+a.toGMTString()},get:function(e){var n=window.document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return n?n[2]:null},delete:function(e){this.set(e,"",-1)}}}},["NHnr"]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[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(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={59:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var 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:"ca8551b8563f1afabcc0",1:"d8b0676de9833b9021c7",2:"7eb2bba320897fae14b4",3:"308ac190d708f733a364",4:"3ed3c98f0e8bb8f4ef9c",5:"ad9300c494d4c666286a",6:"5cbc394e961b31adb96d",7:"1157891ad5749be5d64b",8:"65c22fcb911eac9d10ff",9:"e49c8141a4ef2734a0e5",10:"4a2a058fcfdc3a9ede7b",11:"77b0b715272bfe303c20",12:"7c180d5981bcb5433992",13:"0ca5d081493094426adf",14:"228dff515113f7797782",15:"58ad3520bbd260cf12b0",16:"91106ddf055a867a2b98",17:"a794e0f38ab5137556b3",18:"c35f05005c52cabe7a24",19:"934769d40f2856534a7b",20:"5475c964eccb15a80955",21:"ac6f1f47f0e69a69e851",22:"50c8b41834206469ae6a",23:"dd16e9f3be25b283a07b",24:"33816da4d42f0b109c1a",25:"5499cab5ab4497b0e45b",26:"2c7281b9cc34e7903508",27:"942372ddcb3494d33291",28:"dff1313541beec47ffcb",29:"65bf42ad1887cf2b948e",30:"9153d3d8a1f0cdd04f82",31:"7e3b32f9dc4613c6688d",32:"101bbb3a5e257a2fe614",33:"79f4ef5f25748c182eb9",34:"cc0554324ad1bf1e504f",35:"354e0ebdd8dd058f7b4f",36:"8aafd7ee93b1c678e77b",37:"ffc1274ec46b97239a34",38:"83172382f96b00f32ede",39:"e087f80212533b3f1730",40:"725e81755658a828645d",41:"f39cc3103ff50208988a",42:"793aec39e27a4016f93c",43:"823882f0bea9a1a8af08",44:"2649143fc8958ddadd54",45:"7d9ba0301efda35fd9ca",46:"3aeaae3569c063b74729",47:"7f44d6cb5cc4435d0968",48:"ab299efdfc633327e6e3",49:"f76a19201df3442d8d55",50:"dee77681c26bb297b91c",51:"6bf290c8aa4503a54c02",52:"10cfed150dabcd566a72",53:"3f5786a6123130a25da5",54:"0b2a5d55d346336b79c0",55:"13f76f726131d89f89c2",56:"0211d693d9108d37aa6b"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[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(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={59:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var 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:"ca8551b8563f1afabcc0",1:"d8b0676de9833b9021c7",2:"ac6f7513a7e67e0e8cb9",3:"308ac190d708f733a364",4:"3ed3c98f0e8bb8f4ef9c",5:"ad9300c494d4c666286a",6:"5cbc394e961b31adb96d",7:"1157891ad5749be5d64b",8:"65c22fcb911eac9d10ff",9:"e49c8141a4ef2734a0e5",10:"4a2a058fcfdc3a9ede7b",11:"77b0b715272bfe303c20",12:"7c180d5981bcb5433992",13:"0ca5d081493094426adf",14:"228dff515113f7797782",15:"58ad3520bbd260cf12b0",16:"91106ddf055a867a2b98",17:"a794e0f38ab5137556b3",18:"c35f05005c52cabe7a24",19:"934769d40f2856534a7b",20:"5475c964eccb15a80955",21:"ac6f1f47f0e69a69e851",22:"50c8b41834206469ae6a",23:"dd16e9f3be25b283a07b",24:"33816da4d42f0b109c1a",25:"5499cab5ab4497b0e45b",26:"2c7281b9cc34e7903508",27:"942372ddcb3494d33291",28:"dff1313541beec47ffcb",29:"65bf42ad1887cf2b948e",30:"9153d3d8a1f0cdd04f82",31:"7e3b32f9dc4613c6688d",32:"101bbb3a5e257a2fe614",33:"79f4ef5f25748c182eb9",34:"cc0554324ad1bf1e504f",35:"354e0ebdd8dd058f7b4f",36:"8aafd7ee93b1c678e77b",37:"ffc1274ec46b97239a34",38:"83172382f96b00f32ede",39:"e087f80212533b3f1730",40:"725e81755658a828645d",41:"f39cc3103ff50208988a",42:"793aec39e27a4016f93c",43:"823882f0bea9a1a8af08",44:"2649143fc8958ddadd54",45:"e285f4f6d22542005945",46:"c20595efb614a3364b74",47:"0ea97a21125a91de0256",48:"ab299efdfc633327e6e3",49:"f76a19201df3442d8d55",50:"dee77681c26bb297b91c",51:"6bf290c8aa4503a54c02",52:"10cfed150dabcd566a72",53:"3f5786a6123130a25da5",54:"0b2a5d55d346336b79c0",55:"13f76f726131d89f89c2",56:"0211d693d9108d37aa6b"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[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(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={59:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var 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:"ca8551b8563f1afabcc0",1:"d8b0676de9833b9021c7",2:"f091ef8855295e02d701",3:"308ac190d708f733a364",4:"3ed3c98f0e8bb8f4ef9c",5:"ad9300c494d4c666286a",6:"5cbc394e961b31adb96d",7:"1157891ad5749be5d64b",8:"65c22fcb911eac9d10ff",9:"e49c8141a4ef2734a0e5",10:"4a2a058fcfdc3a9ede7b",11:"77b0b715272bfe303c20",12:"7c180d5981bcb5433992",13:"0ca5d081493094426adf",14:"228dff515113f7797782",15:"58ad3520bbd260cf12b0",16:"91106ddf055a867a2b98",17:"a794e0f38ab5137556b3",18:"c35f05005c52cabe7a24",19:"934769d40f2856534a7b",20:"5475c964eccb15a80955",21:"ac6f1f47f0e69a69e851",22:"50c8b41834206469ae6a",23:"dd16e9f3be25b283a07b",24:"33816da4d42f0b109c1a",25:"5499cab5ab4497b0e45b",26:"2c7281b9cc34e7903508",27:"942372ddcb3494d33291",28:"dff1313541beec47ffcb",29:"65bf42ad1887cf2b948e",30:"9153d3d8a1f0cdd04f82",31:"7e3b32f9dc4613c6688d",32:"101bbb3a5e257a2fe614",33:"79f4ef5f25748c182eb9",34:"cc0554324ad1bf1e504f",35:"354e0ebdd8dd058f7b4f",36:"8aafd7ee93b1c678e77b",37:"ffc1274ec46b97239a34",38:"83172382f96b00f32ede",39:"e087f80212533b3f1730",40:"725e81755658a828645d",41:"f39cc3103ff50208988a",42:"793aec39e27a4016f93c",43:"823882f0bea9a1a8af08",44:"2649143fc8958ddadd54",45:"7d9ba0301efda35fd9ca",46:"3aeaae3569c063b74729",47:"7f44d6cb5cc4435d0968",48:"ab299efdfc633327e6e3",49:"f76a19201df3442d8d55",50:"dee77681c26bb297b91c",51:"6bf290c8aa4503a54c02",52:"10cfed150dabcd566a72",53:"3f5786a6123130a25da5",54:"0b2a5d55d346336b79c0",55:"13f76f726131d89f89c2",56:"0211d693d9108d37aa6b"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -18,10 +18,19 @@
}
},
mounted(){
let data= localStorage.getItem("phoneNum")
let data = localStorage.getItem("phoneNum");
console.log(data)
// debugger
if(data){
data=JSON.parse(data)
data = JSON.parse(data)
this.phoneNumObj=data;
}
console.log(this.phoneNumObj)
if(data&&data.teacher_type!='teacher_leader'){
// debugger
this.$router.push('/teacher/'+ data.id);
}else{
this.$router.push('/teacher');
}
},
components:{
......
......@@ -41,7 +41,7 @@
</el-form>
<el-tabs v-model="searchFrom.squad" type="card" style="background: white;padding-top: 10px" @tab-click="getUser">
<el-tab-pane v-if="phoneNumObj.teacher_type!='teacher_leader'" v-for="i in 10" :key="i" :label="'T'+i" :name="i.toString()"/>
<el-tab-pane v-if="phoneNumObj.teacher_type=='teacher_leader'" :key="phoneNumObj.squad" :label="'T'+phoneNumObj.squad" :name="phoneNumObj.squad.toString()"/>
<!-- <el-tab-pane v-if="phoneNumObj.teacher_type=='teacher_leader'" :key="phoneNumObj.squad" :label="'T'+phoneNumObj.squad" :name="phoneNumObj.squad.toString()"/> -->
</el-tabs>
<el-table
size="mini"
......@@ -312,6 +312,7 @@
}
console.log(this.phoneNumObj)
if(data&&data.teacher_type!='teacher_leader'){
// debugger
this.$router.push('/teacher/'+ data.id);
}else{
this.getUser()
......
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