Commit b397a8de authored by wangwei's avatar wangwei

任务看板修改

parent 3a09985e
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.a080cf3d13ab19069247.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.72d338797308d851576a.js></script></body><script>let el = document.getElementsByTagName("script"); <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.b9113cb5cf0e79fe4b58.js></script><script type=text/javascript src=/static/js/vendor.19b07206259747695190.js></script><script type=text/javascript src=/static/js/app.72d338797308d851576a.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',a,b,c); console.log('error:',a,b,c);
}; };
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([6],{"61rJ":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/index.vue"],names:[],mappings:";AACA;EACE,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;CAChB;AACD;EACE,gBAAgB;EAChB,iBAAiB;EACjB,WAAW;CACZ;AACD;EACE,gCAAgC;EAChC,gCAAgC;EAChC,yBAAyB;EACzB,+BAA+B;EAC/B,8BAA8B;MAC1B,mBAAmB;UACf,eAAe;EACvB,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B",file:"index.vue",sourcesContent:["\n.demo-table-expand {\n font-size: 0;\n}\n.demo-table-expand label {\n width: 90px;\n color: #99a9bf;\n}\n.demo-table-expand .el-form-item {\n margin-right: 0;\n margin-bottom: 0;\n width: 50%;\n}\n.f-c > .cell {\n display: -webkit-box !important;\n display: -ms-flexbox !important;\n display: flex !important;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row;\n flex-flow: row;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n"],sourceRoot:""}])},"64hg":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-4c99299c] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/sourceDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"sourceDialog.vue",sourcesContent:["\n.avatar[data-v-4c99299c] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"6C9W":function(t,e,a){var n=a("XqzE");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("02aecaa2",n,!1,{})},"7Mxa":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"task2.vue",sourceRoot:""}])},"8uEr":function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.b-title[data-v-67261a49] {\n padding: 20px;\n color: #666;\n}\n.teacher[data-v-67261a49] {\n padding: 20px 0;\n}\n.header[data-v-67261a49] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.el-row[data-v-67261a49] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n color: #666;\n font-size: 16px;\n}\n.text.item[data-v-67261a49] {\n line-height: 40px;\n}\n.text.item label[data-v-67261a49] {\n width: 120px;\n}\n.el-card[data-v-67261a49] {\n /*height: 50px;*/\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.el-card .avatar[data-v-67261a49] {\n width: 120px;\n margin-right: 10px;\n height: 120px;\n border-radius: 1000px;\n}\n.el-card img[data-v-67261a49] {\n width: 120px;\n float: left;\n margin-right: 10px;\n}\n.el-card label[data-v-67261a49] {\n color: #5982e6;\n width: 120px;\n}\n.card-content[data-v-67261a49]:after {\n content: '';\n display: block;\n clear: both;\n}\n.order_list .avatar[data-v-67261a49] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/index.vue"],names:[],mappings:";AACA;EACE,cAAc;EACd,YAAY;CACb;AACD;EACE,gBAAgB;CACjB;AACD;EACE,gBAAgB;EAChB,oBAAoB;CACrB;AACD;EACE,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;EAC5B,YAAY;EACZ,gBAAgB;CACjB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,iBAAiB;EACjB,qBAAqB;EACrB,qBAAqB;EACrB,cAAc;EACd,wBAAwB;MACpB,qBAAqB;UACjB,4BAA4B;EACpC,0BAA0B;MACtB,uBAAuB;UACnB,oBAAoB;CAC7B;AACD;EACE,aAAa;EACb,mBAAmB;EACnB,cAAc;EACd,sBAAsB;CACvB;AACD;EACE,aAAa;EACb,YAAY;EACZ,mBAAmB;CACpB;AACD;EACE,eAAe;EACf,aAAa;CACd;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,YAAY;EACZ,gBAAgB;EAChB,aAAa;EACb,kBAAkB;EAClB,mBAAmB;CACpB",file:"index.vue",sourcesContent:["\n.b-title[data-v-67261a49] {\n padding: 20px;\n color: #666;\n}\n.teacher[data-v-67261a49] {\n padding: 20px 0;\n}\n.header[data-v-67261a49] {\n padding: 0 20px;\n margin-bottom: 20px;\n}\n.el-row[data-v-67261a49] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n color: #666;\n font-size: 16px;\n}\n.text.item[data-v-67261a49] {\n line-height: 40px;\n}\n.text.item label[data-v-67261a49] {\n width: 120px;\n}\n.el-card[data-v-67261a49] {\n /*height: 50px;*/\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: start;\n -ms-flex-pack: start;\n justify-content: flex-start;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.el-card .avatar[data-v-67261a49] {\n width: 120px;\n margin-right: 10px;\n height: 120px;\n border-radius: 1000px;\n}\n.el-card img[data-v-67261a49] {\n width: 120px;\n float: left;\n margin-right: 10px;\n}\n.el-card label[data-v-67261a49] {\n color: #5982e6;\n width: 120px;\n}\n.card-content[data-v-67261a49]:after {\n content: '';\n display: block;\n clear: both;\n}\n.order_list .avatar[data-v-67261a49] {\n width: 50px;\n min-width: 50px;\n height: 50px;\n margin-right: 5px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},"E/ZT":function(t,e,a){var n=a("Qqyn");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("1e8fe874",n,!1,{})},F4Ix:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"task1.vue",sourceRoot:""}])},MeUK:function(t,e,a){var n=a("8uEr");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("2bb22f96",n,!1,{})},OKSQ:function(t,e,a){var n=a("eTXT");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("627544e4",n,!1,{})},Q5Z3:function(t,e,a){var n=a("61rJ");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("56000f94",n,!1,{})},QgwF:function(t,e,a){var n=a("7Mxa");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("1dfe1d2c",n,!1,{})},Qqyn:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-22597032] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/couponDialog.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"couponDialog.vue",sourcesContent:["\n.avatar[data-v-22597032] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},SWNE:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n.avatar[data-v-4c863f42] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n","",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/refundDetail.vue"],names:[],mappings:";AACA;EACE,WAAW;EACX,aAAa;EACb,mBAAmB;CACpB",file:"refundDetail.vue",sourcesContent:["\n.avatar[data-v-4c863f42] {\n width:50px;\n height: 50px;\n border-radius: 50%;\n}\n"],sourceRoot:""}])},XqzE:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","",{version:3,sources:[],names:[],mappings:"",file:"task3.vue",sourceRoot:""}])},eTXT:function(t,e,a){(t.exports=a("FZ+f")(!0)).push([t.i,'\n.search-btn-block[data-v-ed74a444] {\n margin-left: 20px;\n}\n.search-form[data-v-ed74a444] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-ed74a444] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-ed74a444] {\n float: right;\n}\n.text-c[data-v-ed74a444] {\n text-align: center;\n}\n.text-b[data-v-ed74a444] {\n font-weight: bold;\n}\n.color-b[data-v-ed74a444] {\n color: #6ba8e6;\n}\n.text-r[data-v-ed74a444] {\n text-align: right;\n}\n.main-block[data-v-ed74a444] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-ed74a444] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\\5FAE\\8F6F\\96C5\\9ED1", Arial, sans-serif;\n}\n.clear-both[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-ed74a444]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-ed74a444]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-ed74a444]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.task3-table[data-v-ed74a444] {\n padding: 10px;\n overflow: auto;\n display: inline-block;\n}\n.task3-table .table[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n.task3-table .table > div[data-v-ed74a444] {\n display: table-cell;\n white-space: nowrap;\n vertical-align: middle;\n height: 192px;\n width: auto;\n text-align: center;\n position: relative;\n border: 1px solid #f0f0f0;\n}\n.task3-table .table > div.title[data-v-ed74a444] {\n min-width: 200px;\n}\n.task3-table .table > div.start[data-v-ed74a444] {\n min-width: 100px;\n}\n.task3-table .table > div.total[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div.watch[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div.over_work[data-v-ed74a444] {\n min-width: 120px;\n}\n.task3-table .table > div.recall[data-v-ed74a444] {\n min-width: 110px;\n}\n.task3-table .table > div .header[data-v-ed74a444] {\n position: absolute;\n width: 100%;\n left: 0;\n top: 0;\n height: 21px;\n border-bottom: 1px solid #f0f0f0;\n padding: 5px 0;\n text-align: center;\n}\n.task3-table .table .log-list > div[data-v-ed74a444] {\n text-align: center;\n padding: 5px 15px;\n border-bottom: 1px solid #f0f0f0;\n line-height: normal;\n}\n.bg-h[data-v-ed74a444] {\n background: #e4eff7;\n}\n[data-v-ed74a444] .hightLight {\n background: #fffbe4;\n}\n',"",{version:3,sources:["D:/myproject/changchang-admin-new/src/components/teacherDetail/task.vue"],names:[],mappings:";AACA;EACE,kBAAkB;CACnB;AACD;EACE,kBAAkB;EAClB,cAAc;EACd,eAAe;CAChB;AACD;EACE,aAAa;EACb,kBAAkB;CACnB;AACD;EACE,aAAa;CACd;AACD;EACE,mBAAmB;CACpB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,eAAe;CAChB;AACD;EACE,kBAAkB;CACnB;AACD;EACE,YAAY;EACZ,kBAAkB;EAClB,aAAa;CACd;AACD;EACE,0IAA0H;CAC3H;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;CACrB;AACD;EACE,WAAW;EACX,YAAY;CACb;AACD;EACE,uBAAuB;EACvB,oBAAoB;EACpB,aAAa;EACb,iBAAiB;CAClB;AACD;EACE,cAAc;EACd,eAAe;EACf,sBAAsB;CACvB;AACD;EACE,YAAY;EACZ,eAAe;EACf,YAAY;CACb;AACD;EACE,oBAAoB;EACpB,oBAAoB;EACpB,uBAAuB;EACvB,cAAc;EACd,YAAY;EACZ,mBAAmB;EACnB,mBAAmB;EACnB,0BAA0B;CAC3B;AACD;EACE,iBAAiB;CAClB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,gBAAgB;CACjB;AACD;EACE,gBAAgB;CACjB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,iBAAiB;CAClB;AACD;EACE,mBAAmB;EACnB,YAAY;EACZ,QAAQ;EACR,OAAO;EACP,aAAa;EACb,iCAAiC;EACjC,eAAe;EACf,mBAAmB;CACpB;AACD;EACE,mBAAmB;EACnB,kBAAkB;EAClB,iCAAiC;EACjC,oBAAoB;CACrB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,oBAAoB;CACrB",file:"task.vue",sourcesContent:['\n.search-btn-block[data-v-ed74a444] {\n margin-left: 20px;\n}\n.search-form[data-v-ed74a444] {\n background: white;\n padding: 10px;\n margin: 10px 0;\n}\n.new-block[data-v-ed74a444] {\n margin: 10px;\n text-align: right;\n}\n.fl-r[data-v-ed74a444] {\n float: right;\n}\n.text-c[data-v-ed74a444] {\n text-align: center;\n}\n.text-b[data-v-ed74a444] {\n font-weight: bold;\n}\n.color-b[data-v-ed74a444] {\n color: #6ba8e6;\n}\n.text-r[data-v-ed74a444] {\n text-align: right;\n}\n.main-block[data-v-ed74a444] {\n margin: 5px;\n background: white;\n padding: 5px;\n}\nhtml[data-v-ed74a444] {\n font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;\n}\n.clear-both[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n[data-v-ed74a444]::-webkit-scrollbar-track-piece {\n border-radius: 10px;\n}\n[data-v-ed74a444]::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n}\n[data-v-ed74a444]::-webkit-scrollbar-thumb {\n background-color: #999;\n border-radius: 10px;\n height: 10px;\n min-height: 10px;\n}\n.task3-table[data-v-ed74a444] {\n padding: 10px;\n overflow: auto;\n display: inline-block;\n}\n.task3-table .table[data-v-ed74a444]:after {\n content: \'\';\n display: block;\n clear: both;\n}\n.task3-table .table > div[data-v-ed74a444] {\n display: table-cell;\n white-space: nowrap;\n vertical-align: middle;\n height: 192px;\n width: auto;\n text-align: center;\n position: relative;\n border: 1px solid #f0f0f0;\n}\n.task3-table .table > div.title[data-v-ed74a444] {\n min-width: 200px;\n}\n.task3-table .table > div.start[data-v-ed74a444] {\n min-width: 100px;\n}\n.task3-table .table > div.total[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div.watch[data-v-ed74a444] {\n min-width: 90px;\n}\n.task3-table .table > div.over_work[data-v-ed74a444] {\n min-width: 120px;\n}\n.task3-table .table > div.recall[data-v-ed74a444] {\n min-width: 110px;\n}\n.task3-table .table > div .header[data-v-ed74a444] {\n position: absolute;\n width: 100%;\n left: 0;\n top: 0;\n height: 21px;\n border-bottom: 1px solid #f0f0f0;\n padding: 5px 0;\n text-align: center;\n}\n.task3-table .table .log-list > div[data-v-ed74a444] {\n text-align: center;\n padding: 5px 15px;\n border-bottom: 1px solid #f0f0f0;\n line-height: normal;\n}\n.bg-h[data-v-ed74a444] {\n background: #e4eff7;\n}\n[data-v-ed74a444] .hightLight {\n background: #fffbe4;\n}\n'],sourceRoot:""}])},hFUZ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("CCn6"),i=a("+TkF"),s=(a("xGts"),a("RyfI")),l={name:"task1",components:{teacherDesc:s.a},props:["teacherId"],data:function(){return{task1List:[],task1Detail:{show:!1,list:[],title:"",cur_date:""}}},mounted:function(){this.initPage()},methods:{initPage:function(){var t=this;Object(n._95)(this.teacherId).then(function(e){t.task1List=e})},refDesc1:function(){var t=this;Object(n._95)(this.teacherId).then(function(e){t.task1List=e,e.forEach(function(e){e.cur_date===t.task1Detail.cur_date&&(t.task1Detail.list=e.need_add_detail)})})},changeAddTeacher:function(t){var e=this;Object(n.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc1()})},showTask1Detail:function(t,e){this.task1Detail={show:!0,list:e?t.done_detail:t.need_add_detail,title:e?t.cur_date+" 未通过用户列表":t.cur_date+" 待加好友用户列表",cur_date:t.cur_date},this.dialogType=1}}},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务1:好友添加")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task1List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_add_teacher_num",label:"当天进班人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"done_num",label:"未通过人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row,1)}}},[t._v(t._s(e.row.done_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{"class-name":"hightLight",prop:"need_add_teacher_num",label:"需加好友人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticStyle:{"font-size":"20px"},attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row)}}},[t._v(t._s(e.row.need_add_teacher_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"add_rate",label:"完成情况",align:"center",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("label",{staticStyle:{width:"90px",display:"inline-block","text-align":"right"}},[t._v("好友通过率:")]),t._v(" "),Number(e.row.add_rate)>=70?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.row.add_rate)}}):t._e(),t._v(" "),Number(e.row.add_rate)<70?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.row.add_rate)}}):t._e()],1),t._v(" "),a("div",[a("label",{staticStyle:{width:"90px",display:"inline-block","text-align":"right"}},[t._v("任务处理率:")]),t._v(" "),100==Number(e.row.done_rate)?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.row.done_rate)}}):t._e(),t._v(" "),Number(e.row.done_rate)<100?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.row.done_rate)}}):t._e()],1)]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task1Detail.show,title:t.task1Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task1Detail,"show",e)}}},[a("el-table",{attrs:{data:t.task1Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.periods_title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"160",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"待通过",value:3}}),t._v(" "),a("el-option",{attrs:{label:"手机号不是微信号",value:4}}),t._v(" "),a("el-option",{attrs:{label:"用户已拒绝",value:5}}),t._v(" "),a("el-option",{attrs:{label:"暂未处理",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"沟通情况",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc1}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"入课时间","min-width":"140px",align:"center",sortable:""}})],1)],1)],1)};o._withStripped=!0;var r={render:o,staticRenderFns:[]},c=r;var d=!1;var _=a("VU/8")(l,c,!1,function(t){d||a("p2ic")},"data-v-c10cc07a",null);_.options.__file="src\\components\\teacherDetail\\task1.vue";var u=_.exports,h={name:"task2",props:["teacherId"],components:{teacherDesc:s.a},data:function(){return{task2List:[],lookDetail:{show:!1,loading:!1,list:[],nowPage:1,data:null,limit:500,total:0},task2Detail:{show:!1,list:[],type:1,weight:""}}},mounted:function(){this.initPage()},methods:{onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.showLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.showLook()},showLook:function(t){var e=this;t&&(this.lookDetail.data=t),this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};Object(n._114)(this.lookDetail.data.periods_id,this.lookDetail.data.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},initPage:function(){var t=this;Object(n._96)(this.teacherId).then(function(e){t.task2List=e})},changeWeight:function(t){var e=this;Object(n._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},showTask2Detail:function(t){this.task2Detail={show:!0,list:t.detail,title:"意向等级为"+t.weight+"的用户列表",weight:t.weight},this.task2Detail.type=1},refDesc2:function(){var t=this;1===this.task2Detail.type?Object(n._96)(this.teacherId).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})}):2===this.task2Detail.type&&Object(n._48)(this.task2Detail.periods_id,this.teacherId,{}).then(function(e){t.task2Detail.loading=!1,t.task2Detail.list=e})}}},p=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务4:意向用户转化")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task2List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"weight",label:"意向等级",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_num",label:"总人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask2Detail(e.row)}}},[t._v(t._s(e.row.total_num))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task2Detail.show,title:t.task2Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"160",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.refDesc2}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"200px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1)],1)],1)};p._withStripped=!0;var v={render:p,staticRenderFns:[]},f=v;var b=!1;var m=a("VU/8")(h,f,!1,function(t){b||a("QgwF")},"data-v-c0f09178",null);m.options.__file="src\\components\\teacherDetail\\task2.vue";var g=m.exports,w={name:"task3",components:{teacherDesc:s.a},props:["teacherId"],data:function(){return{task3List:[],task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:"",type:0}}},mounted:function(){this.initPage()},methods:{showTask3Detail:function(t,e,a,n){var i=this,s={is_true:e,is_watch:a,cur_date:n};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=n,this.task3Detail.type=1,this.dialogType=3,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",getWatchUserApi(t.periods_id,this.id,s).then(function(t){i.task3Detail.loading=!1,i.task3Detail.list=t})},initPage:function(){var t=this;Object(n._97)(this.id).then(function(e){t.task3List=e})}}},k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(n){return 1===n.is_start_course?a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(n.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,n.cur_date)}}},[t._v(t._s(n.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,n.cur_date)}}},[t._v(t._s(n.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,n.cur_date)}}},[t._v(t._s(n.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("span",[t._v(t._s(n.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("span",[t._v(t._s(n.work_rate))]):t._e()])]):t._e()}),t._v(" "),a("div",{staticClass:"recall",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需召回人数")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showRecallDetail(e)}}},[t._v(t._s(e.need_recall_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("已沟通:"+t._s(e.total_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),100==Number(e.desc_rate)?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.desc_rate)}}):t._e(),t._v(" "),Number(e.desc_rate)<100?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.desc_rate)}}):t._e()],1)])],2)])})],2),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"260",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc3}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",sortable:"",prop:"created_at"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户属性","min-width":"400",sortable:"",prop:"last_login_at"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 最后登录时间:"+t._s(e.row.last_login_at)+"\n "),a("br"),t._v("\n 是否添加老师:"+t._s(t._f("ADDTEACHER")(e.row.is_add_teacher))+"\n "),a("br"),t._v("\n 用户意向等级:"+t._s(e.row.weight)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1)],1)};k._withStripped=!0;var A={render:k,staticRenderFns:[]},x=A;var y=!1;var C=a("VU/8")(w,x,!1,function(t){y||a("6C9W")},"data-v-c0d46276",null);C.options.__file="src\\components\\teacherDetail\\task3.vue";var D=C.exports,S={name:"task",components:{teacherDesc:s.a,task1:u,task2:g,task3:D},props:["parentDetail"],data:function(){return{id:this.parentDetail?this.parentDetail.id:this.$route.params.id,task3List:[],task2Detail:{show:!1,list:[],type:1,weight:""},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,data:null,limit:500,total:0},task1Detail:{show:!1,list:[],title:"",cur_date:""},task5Detail:{show:!1,list:[],total:0,total_over_num:0,over_rate:0,total_over_reply_num:0,over_reply_rate:0},recallDetail:{show:!1,list:[],weight:""},overWorkDetail:{show:!1,list:[],weight:""},descDialog:{show:!1,id:"",descList:[],user_info:null,type:null},task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:"",type:0},dialogType:0}},methods:{showLook:function(t){var e=this;t&&(this.lookDetail.data=t),this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};Object(n._114)(this.lookDetail.data.periods_id,this.lookDetail.data.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.showLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.showLook()},showTask3Detail:function(t,e,a,i){var s=this,l={is_true:e,is_watch:a,cur_date:i};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=i,this.task3Detail.type=1,this.dialogType=3,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",Object(n._74)(t.periods_id,this.id,l).then(function(t){s.task3Detail.loading=!1,s.task3Detail.list=t})},showOverWorkDetail:function(t){var e=this;this.task2Detail.show=!0,this.task2Detail.loading=!0,this.task2Detail.periods_id=t.periods_id,this.task2Detail.type=2,this.task2Detail.title=t.title+" 截止今日全勤学员",this.dialogType=2,Object(n._48)(t.periods_id,this.id,{}).then(function(t){e.task2Detail.loading=!1,e.task2Detail.list=t})},showRecallDetail:function(t){var e=this;this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.periods_id=t.periods_id,this.task3Detail.type=3,this.task3Detail.title=t.title+" 今日需要招回学员",this.dialogType=3,Object(n._55)(t.periods_id,this.id,{}).then(function(t){e.task3Detail.loading=!1,e.task3Detail.list=t})},editComment:function(t,e){var a=this;this.$prompt("","添加沟通话术",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(e){var i=e.value;Object(n.l)(t,{desc:i}).then(function(t){switch(a.$message({type:"success",message:"添加沟通话术成功"}),a.dialogType){case 2:a.refDesc2();break;case 3:a.refDesc3();break;case 4:a.getTask5()}})})},refDesc3:function(){var t=this;if(1===this.task3Detail.type){var e={is_true:this.task3Detail.is_true,is_watch:this.task3Detail.is_watch,cur_date:this.task3Detail.cur_date};this.task3Detail.loading=!0,Object(n._74)(this.task3Detail.periods_id,this.id,e).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e})}else 2===this.task3Detail.type?Object(n._48)(this.task3Detail.periods_id,this.id,{}).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e}):3===this.task3Detail.type&&Object(n._55)(this.task3Detail.periods_id,this.id,{}).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e});Object(n._97)(this.id).then(function(e){t.task3List=e})},showTask5Detail:function(){this.task5Detail.show=!0,this.dialogType=4},refDesc2:function(){var t=this;1===this.task2Detail.type?task2Api(this.id).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})}):2===this.task2Detail.type&&(Object(n._48)(this.task2Detail.periods_id,this.id,{}).then(function(e){t.task2Detail.loading=!1,t.task2Detail.list=e}),Object(n._97)(this.id).then(function(e){t.task3List=e}))},changeAddTeacher:function(t){var e=this;Object(n.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},changeAddTeacher3:function(t){var e=this;Object(n.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight3:function(t){var e=this;Object(n._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight:function(t,e){var a=this;Object(n._9)(t.id,t.weight).then(function(){a.$message({type:"success",message:"数据更改成功"}),5===e?a.getTask5():a.refDesc2()})},changeView:function(t){var e=this;Object(n._8)(t.id,t.is_view_course).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},editDesc3:function(t){var e=this;this.$prompt("","请输入沟通情况",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(a){var i=a.value;Object(n.l)(t.id,{desc:i}).then(function(t){e.$message({type:"success",message:"更新成功"}),e.refDesc3()})}).catch(function(){})},editDesc:function(t,e){this.descDialog.show=!0,this.descDialog.id=t.id,this.descDialog.type=e||null,this.descDialog.user_info={avatar:t.avatar,nickname:t.nickname,user_id:t.user_id},this.getUserDescList()},getUserDescList:function(){var t=this;Object(n._69)(this.descDialog.id,{limit:1e3}).then(function(e){t.descDialog.descList=e.list})},getTask5:function(){var t=this;Object(n._99)(this.id).then(function(e){t.task5Detail.list=e.list,t.task5Detail.total=e.total,t.task5Detail.over_rate=e.over_rate,t.task5Detail.total_over_num=e.total_over_num,t.task5Detail.over_reply_rate=e.over_reply_rate,t.task5Detail.total_over_reply_num=e.total_over_reply_num})},initPage:function(){var t=this;Object(n._97)(this.id).then(function(e){t.task3List=e}),this.getTask5()}},filters:{ADDTEACHER:function(t){var e="";return 0===t?e="暂未处理":1===t?e="老师主动添加用户":2===t?e="用户主动添加老师":3===t?e="待通过":4===t?e="手机号不是微信号":5===t&&(e="用户已拒绝"),e}},mounted:function(){this.initPage()}},B=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"font-size":"14px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("task1",{attrs:{teacherId:t.id}})],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务2:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(n){return 1===n.is_start_course?a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(n.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,n.cur_date)}}},[t._v(t._s(n.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,n.cur_date)}}},[t._v(t._s(n.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,n.cur_date)}}},[t._v(t._s(n.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("span",[t._v(t._s(n.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==n.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===n.is_start_course?a("span",[t._v(t._s(n.work_rate))]):t._e()])]):t._e()}),t._v(" "),a("div",{staticClass:"recall",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需召回人数")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showRecallDetail(e)}}},[t._v(t._s(e.need_recall_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户已回复:"+t._s(e.total_reply_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("老师已沟通:"+t._s(e.total_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_reply_rate)?"#67C23A":"#f00",percentage:Number(e.desc_reply_rate)}})],1),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_rate)?"#67C23A":"#f00",percentage:Number(e.desc_rate)}})],1)])],2)])})],2)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:意向用户标记")])]),t._v(" "),a("div",[t._v("本期意向用户:")]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table",staticStyle:{width:"47%"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"over_work",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需沟通用户")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showOverWorkDetail(e)}}},[t._v(t._s(e.total_watch_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process",staticStyle:{"line-height":"30px"}},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户已回复:"+t._s(e.total_reply_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("老师已沟通:"+t._s(e.total_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_reply_rate)?"#67C23A":"#f00",percentage:Number(e.desc_reply_rate)}})],1),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.over_reply_rate)?"#67C23A":"#f00",percentage:Number(e.over_reply_rate)}})],1)])])])}),t._v(" "),a("br"),t._v(" "),a("div",[t._v("往期意向用户:")]),t._v(" "),a("div",{staticClass:"task3-table",staticStyle:{width:"47%"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n 往期活跃用户数(近三天)\n ")])]),t._v(" "),a("div",{staticClass:"over_work",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需沟通用户")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(e){t.showTask5Detail()}}},[t._v(t._s(t.task5Detail.total))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("用户已回复:"+t._s(t.task5Detail.total_over_reply_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("老师已沟通:"+t._s(t.task5Detail.total_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(t.task5Detail.over_reply_rate)?"#67C23A":"#f00",percentage:Number(t.task5Detail.over_reply_rate)}})],1),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(t.task5Detail.over_rate)?"#67C23A":"#f00",percentage:Number(t.task5Detail.over_rate)}})],1)])])])],2)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("task2",{attrs:{teacherId:t.id}})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"260",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc3}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",sortable:"",prop:"created_at"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户属性","min-width":"400",sortable:"",prop:"last_login_at"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 最后登录时间:"+t._s(e.row.last_login_at)+"\n "),a("br"),t._v("\n 是否添加老师:"+t._s(t._f("ADDTEACHER")(e.row.is_add_teacher))+"\n "),a("br"),t._v("\n 用户意向等级:"+t._s(e.row.weight)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task2Detail.show,title:t.task2Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"160",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.refDesc2}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"学习情况","min-width":"180",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 学习总时长:"+t._s(e.row.total_stay_time)+"秒\n "),a("br"),t._v("\n 学习课包模块数:"+t._s(e.row.total_times)+"次\n "),a("br"),t._v("\n 最后看课时间:"+t._s(e.row.created_at)+"\n ")]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task5Detail.show,width:"80%",title:"往期活跃用户列表"},on:{"update:visible":function(e){t.$set(t.task5Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task5Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.getTask5}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数信息","min-width":"120",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"学习情况","min-width":"180",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 学习总时长:"+t._s(e.row.total_stay_time)+"秒\n "),a("br"),t._v("\n 学习课包模块数:"+t._s(e.row.total_times)+"次\n "),a("br"),t._v("\n 最后看课时间:"+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row,5)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])})],1)],1)],1)};B._withStripped=!0;var E={render:B,staticRenderFns:[]},j=E;var O=!1;var T=a("VU/8")(S,j,!1,function(t){O||a("OKSQ")},"data-v-ed74a444",null);T.options.__file="src\\components\\teacherDetail\\task.vue";var L=T.exports,z=a("kmJW"),$={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(n._76)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},F=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)};F._withStripped=!0;var N={render:F,staticRenderFns:[]},P=N;var I=!1;var Y=a("VU/8")($,P,!1,function(t){I||a("utD1")},"data-v-4c99299c",null);Y.options.__file="src\\components\\teacherDetail\\sourceDialog.vue";var U=Y.exports,R={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(n._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},W=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"使用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)};W._withStripped=!0;var Z={render:W,staticRenderFns:[]},q=Z;var M=!1;var G=a("VU/8")(R,q,!1,function(t){M||a("E/ZT")},"data-v-22597032",null);G.options.__file="src\\components\\teacherDetail\\couponDialog.vue";var H=G.exports,V={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(n._56)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},Q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)};Q._withStripped=!0;var X={render:Q,staticRenderFns:[]},J=X;var K=!1;var tt=a("VU/8")(V,J,!1,function(t){K||a("rJ82")},"data-v-4c863f42",null);tt.options.__file="src\\components\\teacherDetail\\refundDetail.vue";var et=tt.exports,at=a("0qGg"),nt=a("CfzE"),it={name:"index",props:["parentDetail"],components:{page:z.a,task:L,UserList:at.a,chooseGoodDialog:nt.a,couponDialog:H,refundDetail:et,sourceDialog:U},data:function(){var t=new Date,e=t.getMonth()+1;return e<10&&(e="0"+e.toString()),{tabs:"task",nowDate:t=t.getFullYear()+"-"+e,searchFrom:{user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""},form:{nickname:"",user_id:"",status:[1,4,5],goods_id:"",out_trade_no:"",receive_mobile:"",mobile:""},task4Data:null,goodList:[],orderStatusOption:i.q,tableData:[],userList:[],list:[],id:"",isBindUser:!0,addShow:!1,detail:{},total:0,limit:10,nowPage:1,userObj:{classId:"",title:"",show:!1,total:0,limit:10,nowPage:1},addId:"",multipleSelection:[],chooseGoodDialogObj:{show:!1,code:""},orderListObj:{total:0,limit:10,nowPage:1},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""}}},methods:{getTask4:function(){var t=this;Object(n._98)(this.id).then(function(e){t.task4Data=e})},handleSelectionChange:function(t){this.multipleSelection=t},onAdd:function(){var t=this;0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.addId=this.multipleSelection[0].user_id,this.addId&&this.isBindUser&&Object(n._100)(this.id,{user_id:this.addId}).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.id=t.parentDetail?t.parentDetail.id:t.$route.params.id,t.getTeacherDetail(),t.getGoodsOption(),t.addShow=!1})):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})},onAddUser:function(t){this.isBindUser=t,this.addShow=!0,this.getUser()},getUser:function(){var t=this,e={page:this.userObj.nowPage,limit:this.userObj.limit};this.searchFrom.userId&&(e.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(e.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),Object(n._71)(e).then(function(e){t.userList=e.list,t.userObj.total=e.total})},changeRow:function(t,e){e.indexOf(t)>-1&&Object(n._27)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},showUser:function(t){this.userObj={classId:t.id,show:!0,title:this.detail.name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},onPageChange3:function(t){this.userObj.nowPage=t,this.getUser()},onSizeChange3:function(t){this.userObj.limit=t,this.userObj.nowPage=1,this.getUser()},onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getTeacherDetail()},onPageChange2:function(t){this.orderListObj.nowPage=t,this.getOrderList()},onSizeChange2:function(t){this.orderListObj.limit=t,this.orderListObj.nowPage=1,this.getOrderList()},getTeacherDetail:function(){var t=this;this.searchFrom={user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""};var e=this.id,a={limit:this.limit,page:this.nowPage};Object(n._66)(e,a).then(function(e){t.detail=e,t.detail.class_list&&(t.detail.class_list.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.list=t.detail.class_list.list||[],t.total=t.detail.class_list.total)})},createInviteLink:function(t){this.chooseGoodDialogObj.show=!0,0==this.detail.type?this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id:1==this.detail.type?this.chooseGoodDialogObj.code="CC-XXMM-"+t.user_id:this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},getOrderList:function(){var t=this,e={limit:this.orderListObj.limit,page:this.orderListObj.nowPage};this.form.nickname&&(e.nickname=this.form.nickname),this.form.user_id&&(e.user_id=this.form.user_id),this.form.status&&(e.status=this.form.status.toString()),this.form.goods_id&&(e.goods_id=this.form.goods_id),this.form.receive_mobile&&(e.receive_mobile=this.form.receive_mobile),this.form.out_trade_no&&(e.out_trade_no=this.form.out_trade_no),this.form.mobile&&(e.mobile=this.form.mobile),0!==this.detail.user_id&&(e.invite_id=this.detail.user_id,Object(n._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.tableData=e.list,t.orderListObj.total=e.total}))},getGoodsOption:function(){var t=this;Object(n._37)({page:1,limit:100,course_type:0}).then(function(e){t.goodList=e.list})},editComment:function(t,e){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:e||""}).then(function(e){var i=e.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n._4)(t,"order",{desc:i}).then(function(t){a.$message({type:"success",message:"编辑备注成功"}),a.getOrderList()})})})},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no}},filters:{teacherType:function(t){return i.u[t]},percent:function(t){return(100*t).toFixed(2)+"%"},status:function(t){return i.p[t]},moneytFilter:function(t){return t/100+"元"},filterGoods:function(t){return"["+i.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name}},mounted:function(){this.id=this.parentDetail?this.parentDetail.id:this.$route.params.id;var t=localStorage.getItem("phoneNum");t&&(t=JSON.parse(t),this.id=t.id),this.getTask4(),this.getTeacherDetail(),this.getGoodsOption()},watch:{tabs:function(t){"order"===t&&this.getOrderList()}}},st=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"teacher"},[a("div",{staticClass:"header"},[a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[a("label",[t._v(t._s(t._f("teacherType")(t.detail.type))+":")]),t._v(" "+t._s(t.detail.name)+"(T"+t._s(t.detail.squad)+")\n ")]),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"success",plain:""},on:{click:function(e){t.onAddUser(!0)}}},[t._v("老师绑定用户")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.qr,target:"_blank"}},[a("img",{attrs:{src:t.detail.qr}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n "),a("br"),t._v(" "),a("label",[t._v("带班总人数:")]),t._v(t._s(t.detail.total_join_num)+"\n "),a("br"),t._v(" "),a("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])])]),t._v(" "),t.detail.user_info?a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("绑定用户")]),t._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(e){t.createInviteLink(t.detail.user_info)}}},[t._v("\n 复制专属链接\n ")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.user_info.nickname)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("用户ID:")]),t._v(" "+t._s(t.detail.user_info.user_id)+"\n ")])])]):t._e(),t._v(" "),t.task4Data?a("el-card",{staticStyle:{width:"320px",display:"inline-block"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("当月销售转化率【"+t._s(t.nowDate)+"】")])]),t._v(" "),a("div",{staticClass:"text item"},[a("el-progress",{staticStyle:{float:"left","margin-right":"10px"},attrs:{type:"circle",percentage:Number(t.task4Data.trans_rate.split("%")[0])}})],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("label",[t._v("当月带班人数:")]),t._v(" "+t._s(t.task4Data.total_user_num)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("当月购课人数:")]),t._v(" "+t._s(t.task4Data.total_sale_num)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("当月累计业绩:")]),t._v(" "+t._s(t.task4Data.total_money)+"\n ")])])]):t._e()],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"},model:{value:t.tabs,callback:function(e){t.tabs=e},expression:"tabs"}},[a("el-tab-pane",{attrs:{label:"今日任务",name:"task"}},[a("task",{attrs:{parentDetail:t.parentDetail}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"期数列表",name:"periods"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"已进班人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_num",label:"需加好友数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"max_join_num",label:"最大班级人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v("\n 班级成员\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表",name:"order"}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:t.form.user_id,callback:function(e){t.$set(t.form,"user_id",e)},expression:"form.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户手机号"}},[a("el-input",{model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"收件人手机号"}},[a("el-input",{model:{value:t.form.receive_mobile,callback:function(e){t.$set(t.form,"receive_mobile",e)},expression:"form.receive_mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,n){return a("el-option",{key:n,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.orderStatusOption,function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"交易订单号"}},[a("el-input",{model:{value:t.form.out_trade_no,callback:function(e){t.$set(t.form,"out_trade_no",e)},expression:"form.out_trade_no"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getOrderList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticClass:"order_list",staticStyle:{width:"100%"},attrs:{data:t.tableData,fixed:""}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")"),a("br"),t._v("手机:"+t._s(e.row.user_mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"200"}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(a){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 编辑备注\n ")])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),a("page",{attrs:{total:t.orderListObj.total,limit:t.orderListObj.limit},on:{pageChange:t.onPageChange2,sizeChange:t.onSizeChange2}})],1)],1),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getTeacherDetail}}),t._v(" "),a("choose-good-dialog",{attrs:{dialogObj:t.chooseGoodDialogObj},on:{changeShow:t.changeShow}}),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.addShow},on:{"update:visible":function(e){t.addShow=e}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:t.searchFrom.userId,callback:function(e){t.$set(t.searchFrom,"userId",e)},expression:"searchFrom.userId"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:t.searchFrom.nickName,callback:function(e){t.$set(t.searchFrom,"nickName",e)},expression:"searchFrom.nickName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:t.searchFrom.mobile,callback:function(e){t.$set(t.searchFrom,"mobile",e)},expression:"searchFrom.mobile"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8,offset:16}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:t.getUser}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.userList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),t._v(" "),a("page",{attrs:{total:t.userObj.total,limit:t.userObj.limit},on:{pageChange:t.onPageChange3,sizeChange:t.onSizeChange3}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addShow=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1)};st._withStripped=!0;var lt={render:st,staticRenderFns:[]},ot=lt;var rt=!1;var ct=a("VU/8")(it,ot,!1,function(t){rt||(a("MeUK"),a("Q5Z3"))},"data-v-67261a49",null);ct.options.__file="src\\components\\teacherDetail\\index.vue";e.default=ct.exports},p2ic:function(t,e,a){var n=a("F4Ix");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("0e0e933c",n,!1,{})},rJ82:function(t,e,a){var n=a("SWNE");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("7221ac08",n,!1,{})},utD1:function(t,e,a){var n=a("64hg");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);a("rjj0")("5dac314c",n,!1,{})}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},a={54:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;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:"c9296fa1c8d8a3c9f89e",1:"13ecc92254166c2b45a6",2:"f2a06db15d213b608870",3:"a50f4c409a3bcea91381",4:"25316e7d3f0819488250",5:"3f83b1af222f5a136eca",6:"31ca7d2bee965bead03f",7:"fc753f558b39e6fe49c9",8:"cd8c166d314d7d6181cd",9:"b1b1fde138d45bfc25d2",10:"3f2164813ca748580385",11:"74fffc59d2b8ab639671",12:"5faa8c6fe93dd8318f6c",13:"5f3e53db5146d925a973",14:"095625c5ff57d0774602",15:"dfb974c4f18e203f717d",16:"e0551b536bb51e474bc9",17:"1a566fff237fd73182c7",18:"e921a577887de038df89",19:"5f0e5a8b123730833389",20:"1523dee6e75b5eeaee70",21:"d14e131c4b4983543f0c",22:"eee5ae7b25c0c9ba76db",23:"7636b0f88d1c1e5dcfde",24:"1ab0904dacff98c8be22",25:"a895cfaaf3538fc9d453",26:"2dc6ee3466c889c57317",27:"c096be33c7355e51f462",28:"70b0b4cf287b5b056886",29:"64f3d097b888469617a6",30:"0320595f56926c7eb86d",31:"8f5bbc0412d546335db6",32:"bf6ecc8dc5ed1336b225",33:"3b0ffb1fae55c57ecd2a",34:"6ec9b3fbbe91ad8b68e5",35:"d8cbbb94eba78aae5204",36:"da81b57fd678c10e3c7e",37:"055874e8ba8f293f4d0c",38:"d73f1b27521fa4569eb8",39:"fb2822aa5110c15c3d31",40:"cb7e7f070738f432d0b5",41:"9b9dc4d455282a10fc45",42:"b44529aaa35c8b216c7e",43:"03627096aa6c9e8cbc7c",44:"7d222355fa25f3d50691",45:"f002ee4b50549513cd1e",46:"737cb2db82f1793a8f73",47:"55e9f020a22f300bbb70",48:"a7d5dd30041d9587e338",49:"5063a876a0e5fcfc2d58",50:"a97af822fd1c8ab3dc1c",51:"e069a842df53d1309e99"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="/",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.c090c34acd3cfe3e6437704a811fb21e.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.7c3e9cbe7a7c837cdbb1.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.b44a659fceb1c1bcc783.js></script></body><script>let el = document.getElementsByTagName("script"); <!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https:////at.alicdn.com/t/font_746649_x1rivf5f5.css><link rel=stylesheet href=https://unpkg.com/element-ui@2.4.9/lib/theme-chalk/index.css><title>唱唱启蒙-后台</title><link href=/static/css/app.833106ec6ace57ceabe2cab0cd9ab467.css rel=stylesheet></head><body><script src=https://unpkg.com/vue@2.5.17/dist/vue.js></script><script src=https://unpkg.com/vuex@3.0.1/dist/vuex.min.js></script><script src=https://unpkg.com/axios@0.18.0/dist/axios.min.js></script><script src=https://unpkg.com/element-ui@2.4.9/lib/index.js></script><div id=app></div><script type=text/javascript src=/static/js/manifest.36e3bfda717b54ef2db9.js></script><script type=text/javascript src=/static/js/vendor.dabb3afa5856b271bc7f.js></script><script type=text/javascript src=/static/js/app.b44a659fceb1c1bcc783.js></script></body><script>let el = document.getElementsByTagName("script");
el.onerror = function(a,b,c){ el.onerror = function(a,b,c){
console.log('error:',a,b,c); console.log('error:',a,b,c);
}; };
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([3,6],{"+uY2":function(t,e){},EL0D:function(t,e){},K0yd:function(t,e){},KJ7d:function(t,e){},"MYx/":function(t,e){},WpiT:function(t,e){},Y0Vi:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("CCn6"),s=a("+TkF"),l=a("kmJW"),o=a("hFUZ"),n={name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",statusOption:[{label:"正常",value:0},{label:"禁用",value:1}],typeOption:[{label:"老师",value:0},{label:"新星妈妈",value:1},{label:"推广人",value:2},{label:"市场",value:3}],loading:!0,type:0,title:"",form:{name:"",type:0,squad:"",qr:"",alias:"",status:0,media_id:""},rules:{name:[{required:!0,message:"请输入名称",trigger:"change"}],qr:[{required:!0,message:"请输入二维码",trigger:"change"}]},teacherDetail:{},imageList:[],uploadShow:!0}},methods:{sub:function(){var t=this;this.imageList.length>0&&(this.form.qr=this.imageList[0].url);var e={name:this.form.name,type:this.form.type,qr:this.form.qr,squad:this.form.squad,alias:this.form.alias,status:this.form.status,media_id:this.form.media_id};switch(this.dialogObj.type){case 2:this.$refs.form.validate(function(a){a&&Object(i._7)(t.id,e).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash"),t.show=!1})});break;case 0:this.$refs.form.validate(function(a){a&&Object(i.p)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.$emit("reflash"),t.show=!1})})}},beforeAvatarUpload:function(){this.uploadShow=!1},handleRemove:function(){this.uploadShow=!0},handleAvatarSuccess:function(t){this.imageList=[{name:t.data.url,url:"https://cdn.singsingenglish.com/"+t.data.url}]},uploadFile:function(t){var e=this;this.loading=!0,this.$store.dispatch("setProgress",{type:"new",id:t.file.uid}),this.fileUid=t.file.uid,Object(i._113)({file:t.file,type:"all"}).then(function(t){e.form.media_id=t.wechat_info?t.wechat_info.media_id:"",e.imageList=[{name:t.url,url:"https://cdn.singsingenglish.com/"+t.url}],e.uploadShow=!1,e.loading=!1,e.$message({type:"success",message:"上传成功!"})}).catch(function(){e.loading=!1})},initDialog:function(){var t=this;switch(this.dialogObj.type){case 0:this.title="新增教师",this.show=this.dialogObj.show,this.type=0,this.form.name="",this.form.alias="",this.form.qr="",this.form.squad="",this.form.type=0,this.form.status=0,this.imageList=[],this.loading=!1,this.uploadShow=!0,this.form.media_id="";break;case 1:this.title="教师详情",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=1,Object(i._66)(this.id).then(function(e){t.teacherDetail=e,t.loading=!1});break;case 2:this.title="编辑",this.show=this.dialogObj.show,this.id=this.dialogObj.id,this.type=2,Object(i._66)(this.id).then(function(e){t.form.name=e.name,t.form.squad=e.squad,t.form.alias=e.alias,t.form.qr=e.qr,t.form.type=e.type,t.form.status=e.status,t.form.media_id=e.media_id?e.media_id:"",t.imageList=[{name:e.qr,url:e.qr}],t.uploadShow=!e.qr,t.loading=!1})}}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.title,center:"","append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[1===t.type?a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[t._v("ID")])]),t._v(" "),a("el-col",{attrs:{span:8}},[t._v("\n "+t._s(t.teacherDetail.id)+"\n ")]),t._v(" "),a("el-col",{attrs:{span:4}},[a("label",[t._v("创建时间")])]),t._v(" "),a("el-col",{attrs:{span:8}},[t._v(t._s(t.teacherDetail.created_at))])],1):t._e(),t._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[t._v("昵称")])]),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.type?a("span",[t._v(t._s(t.teacherDetail.name))]):t._e(),t._v(" "),1!==t.type?a("el-form-item",{attrs:{prop:"name"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("label",[t._v("微信号")])]),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.type?a("span",[t._v(t._s(t.teacherDetail.alias))]):t._e(),t._v(" "),1!==t.type?a("el-form-item",[a("el-input",{model:{value:t.form.alias,callback:function(e){t.$set(t.form,"alias",e)},expression:"form.alias"}})],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[t._v("状态")])]),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.type?a("span",[t._v(t._s(t.teacherDetail.status))]):t._e(),t._v(" "),1!==t.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.statusOption,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1):t._e()],1),t._v(" "),a("el-col",{attrs:{span:4}},[a("label",[t._v("类型")])]),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.type?a("span",[t._v(t._s(t.teacherDetail.type))]):t._e(),t._v(" "),1!==t.type?a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},t._l(t.typeOption,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1):t._e()],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:4}},[a("label",[t._v("二维码")])]),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.type?a("img",{staticClass:"qr-img",attrs:{src:t.teacherDetail.qr}}):t._e(),t._v(" "),1!==t.type?a("el-form-item",[a("el-upload",{class:{disabled:!t.uploadShow},attrs:{action:"/api/public/upload/zone","http-request":t.uploadFile,"before-upload":t.beforeAvatarUpload,"list-type":"picture-card","file-list":t.imageList,"on-success":t.handleAvatarSuccess,"on-remove":t.handleRemove}},[a("i",{staticClass:"el-icon-plus"})])],1):t._e()],1),t._v(" "),1===t.type?[a("el-col",{attrs:{span:4}},[a("label",[t._v("邀请码")])]),t._v(" "),a("el-col",{attrs:{span:8}},[1===t.type?a("span",[t._v(t._s(t.teacherDetail.invite_code))]):t._e()])]:t._e(),t._v(" "),a("el-col",{attrs:{span:4}},[a("label",[t._v("分组")])]),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.form.squad,callback:function(e){t.$set(t.form,"squad",e)},expression:"form.squad"}},t._l(10,function(t){return a("el-option",{key:t,attrs:{label:"T"+t,value:t}})}))],1)],2)],1),t._v(" "),1!==t.type?a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.sub}},[t._v("确 定")])],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(n,r,!1,function(t){a("lSHI"),a("ljmI")},"data-v-92bfd8d6",null).exports,_={name:"index",data:function(){return{searchFrom:{name:"",alias:"",status:"0",task_date:this.formatTime(new Date),squad:"1",type:""},dialogDetail:{show:!1,id:""},userList:[],total:0,nowPage:1,limit:20,dialogObj:{type:0,show:!1,id:""},dialogDetailObj:{show:!1,title:"班级列表",id:""},teacherTypeOption:[{id:0,label:"老师"},{id:1,label:"新星妈妈"}]}},components:{Dialog:a("g5CC").a,page:l.a,dialogCom:c,teacherDetail:o.default},filters:{teacherType:function(t){return s.u[t]}},mounted:function(){var t=localStorage.getItem("phoneNum");t?(t=JSON.parse(t),this.$router.push("/teacher/"+t.id)):this.getUser()},methods:{onPageChange:function(t){this.nowPage=t,this.getUser()},formatTime:function(t){var e=t.getFullYear(),a=t.getMonth()+1;a<10&&(a="0"+a);var i=t.getDate();return i<10&&(i="0"+i),e+"-"+a+"-"+i},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getUser()},getUser:function(){var t=this,e={limit:this.limit,page:this.nowPage};(this.searchFrom.type||0===this.searchFrom.type)&&(e.type=this.searchFrom.type),this.searchFrom.status&&(e.status=this.searchFrom.status),this.searchFrom.name&&(e.name=this.searchFrom.name),this.searchFrom.alias&&(e.alias=this.searchFrom.alias),this.searchFrom.task_date&&(e.task_date=this.searchFrom.task_date),this.searchFrom.squad&&(e.squad=this.searchFrom.squad),Object(i._67)(e).then(function(e){t.userList=e.list,t.total=e.total})},edit:function(t){this.dialogObj.id=t.id,this.dialogObj.type=2,this.dialogObj.show=!0},add:function(){this.dialogObj.type=0,this.dialogObj.show=!0},detail:function(t){this.dialogObj.id=t.id,this.dialogObj.type=1,this.dialogObj.show=!0},delTeacher:function(t){var e=this;this.$confirm("此操作将删除该账号?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i.O)(t.id).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getUser()})})},changeShow:function(t){this.dialogObj.show=t},classDetail:function(t){this.dialogDetailObj={show:!0,title:t.name+"班级详情",id:t.id}},goToTeacherDetail:function(t){this.dialogDetail.id=t.id,this.dialogDetail.show=!0}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"user"},[a("el-form",{ref:"searchFrom",attrs:{model:t.searchFrom,"label-width":"80px",inline:""}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:t.searchFrom.name,callback:function(e){t.$set(t.searchFrom,"name",e)},expression:"searchFrom.name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{model:{value:t.searchFrom.alias,callback:function(e){t.$set(t.searchFrom,"alias",e)},expression:"searchFrom.alias"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"老师状态",clearable:""}},[a("el-select",{attrs:{clearable:""},on:{change:t.getUser},model:{value:t.searchFrom.status,callback:function(e){t.$set(t.searchFrom,"status",e)},expression:"searchFrom.status"}},[a("el-option",{attrs:{label:"正常",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"禁用",value:"1"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"教师类型"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getUser},model:{value:t.searchFrom.type,callback:function(e){t.$set(t.searchFrom,"type",e)},expression:"searchFrom.type"}},t._l(t.teacherTypeOption,function(t){return a("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"任务日期"}},[a("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:t.searchFrom.task_date,callback:function(e){t.$set(t.searchFrom,"task_date",e)},expression:"searchFrom.task_date"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getUser}},[t._v("搜索")])],1),t._v(" "),t.$store.state.readonly?t._e():a("el-form-item",[a("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("新增教师")])],1)],1),t._v(" "),a("el-tabs",{staticStyle:{background:"white","padding-top":"10px"},attrs:{type:"card"},on:{"tab-click":t.getUser},model:{value:t.searchFrom.squad,callback:function(e){t.$set(t.searchFrom,"squad",e)},expression:"searchFrom.squad"}},t._l(10,function(t){return a("el-tab-pane",{key:t,attrs:{label:"T"+t,name:t.toString()}})})),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.userList}},[a("el-table-column",{attrs:{prop:"name",label:"老师"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("a",{attrs:{href:e.row.qr,target:"_blank"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.qr,alt:"二维码"}})]),t._v(" "),a("div",[t._v("\n 老师名:"+t._s(e.row.name)+"\n "),a("br"),t._v("\n 微信号:"+t._s(e.row.alias)+"\n "),a("br"),t._v("\n 分组:T"+t._s(e.row.squad)+"\n "),a("br"),t._v("\n 类别:"+t._s(t._f("teacherType")(e.row.type))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"添加好友"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 成功率:"),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.row.add_teacher_success_rate)?"#67C23A":"#f00",percentage:Number(e.row.add_teacher_success_rate)?Number(e.row.add_teacher_success_rate):0}}),t._v(" "),a("br"),t._v("\n 处理率:"),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.row.add_teacher_exec_rate)?"#67C23A":"#f00",percentage:Number(e.row.add_teacher_exec_rate)?Number(e.row.add_teacher_exec_rate):0}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"召回率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 回复率:"),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.row.recall_reply_rate)?"#67C23A":"#f00",percentage:Number(e.row.recall_reply_rate)?Number(e.row.recall_reply_rate):0}}),t._v(" "),a("br"),t._v("\n 处理率:"),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.row.recall_exec_rate)?"#67C23A":"#f00",percentage:Number(e.row.recall_exec_rate)?Number(e.row.recall_exec_rate):0}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"意向标记"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 回复率:"),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.row.over_reply_rate)?"#67C23A":"#f00",percentage:Number(e.row.over_reply_rate)?Number(e.row.over_reply_rate):0}}),t._v(" "),a("br"),t._v("\n 处理率:"),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.row.over_exec_rate)?"#67C23A":"#f00",percentage:Number(e.row.over_exec_rate)?Number(e.row.over_exec_rate):0}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"intention_num",label:"意向用户数"}}),t._v(" "),a("el-table-column",{attrs:{width:"280",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){t.goToTeacherDetail(e.row)}}},[t._v("\n 查看详情\n ")]),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{attrs:{size:"mini",plain:"",type:"warning"},on:{click:function(a){t.edit(e.row)}}},[t._v("\n 编辑\n ")]),t._v(" "),t.$store.state.deletePermission&&!t.$store.state.readonly?a("el-button",{attrs:{size:"mini",plain:"",type:"danger"},on:{click:function(a){t.delTeacher(e.row)}}},[t._v("\n 删除\n ")]):t._e()]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}}),t._v(" "),a("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getUser}}),t._v(" "),a("el-dialog",{attrs:{width:"90%",top:"5vh",visible:t.dialogDetail.show},on:{"update:visible":function(e){t.$set(t.dialogDetail,"show",e)}}},[t.dialogDetail.show?a("div",[a("teacher-detail",{attrs:{parentDetail:t.dialogDetail}})],1):t._e()])],1)},staticRenderFns:[]};var u=a("VU/8")(_,d,!1,function(t){a("K0yd")},"data-v-3bcada40",null);e.default=u.exports},bkEJ:function(t,e){},f2ga:function(t,e){},g5CC:function(t,e,a){"use strict";var i=a("CCn6"),s=a("+TkF"),l={props:["dialogObj"],data:function(){return{form:{teacher_id:"",max_join_num:"",class_name:""},teacherList:[],exitTeacherList:[],goodsList:[],periods:{}}},methods:{findDifferentArray:function(t,e){var a=[];return t.forEach(function(t){-1===e.findIndex(function(e){return e.teacher_id===t.id})&&a.push(t)}),a},getTeacher:function(){var t=this;Object(i._67)({limit:100}).then(function(e){t.teacherList=e.list})},getTeacherByPeriods:function(){var t=this;Object(i._67)().then(function(e){t.teacherList=e.list})},initPage:function(){var t=this;switch(this.periods=this.dialogObj.periods,this.dialogObj.type){case 0:this.dialogObj.periodsId||this.getPeriodList(),this.form={teacher_id:"",max_join_num:""},this.getTeacher();break;case 1:Object(i._25)(this.dialogObj.id).then(function(e){t.form={teacher_id:parseInt(e.teacher_id),max_join_num:e.max_join_num,class_name:e.class_name},t.getTeacher()})}},getPeriodList:function(){var t=this;Object(i._37)().then(function(e){e.list.forEach(function(t){t.name="["+s.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name,t.children=[]}),t.goodsList=e.list,t.periods||Object(i._49)({goods_id:t.goodsList[0].id}).then(function(e){e.list.forEach(function(t){t.name=t.title}),t.goodsList[0].children=e.list,t.periods=e.list[0]})})},onSave:function(){var t=this;switch(this.form.max_join_num=String(this.form.max_join_num),this.form.teacher_id=String(this.form.teacher_id),this.dialogObj.type){case 0:var e=this.dialogObj.periodsId?this.dialogObj.periodsId:this.periods.id;Object(i.f)(e,this.form).then(function(e){t.$message({type:"success",message:"添加成功!"}),t.$emit("reflash",t.periods),t.dialogObj.show=!1});break;case 1:Object(i.Y)(this.dialogObj.id,this.form).then(function(e){t.$message({type:"success",message:"修改成功!"}),t.$emit("reflash",t.periods),t.dialogObj.show=!1})}},handleItemChange:function(t){var e=this;Object(i._49)({goods_id:t[0]}).then(function(a){a.list.forEach(function(t){t.name=t.title}),e.goodsList.find(function(e){return e.id===t[0]}).children=a.list})},changePeriods:function(t){if(t.length>1){var e=this.goodsList.find(function(e){return e.id===t[0]});this.periods=e.children.find(function(e){return e.id===t[1]}),this.getTeacherByPeriods()}},selectName:function(t,e){var a=t.filter(function(t,a){return t.id==e});this.form.class_name=a[0].name+"一班"}},watch:{"dialogObj.show":function(t){t&&this.initPage()}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.dialogObj.title,visible:t.dialogObj.show},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[this.dialogObj.periodsId?t._e():a("el-form-item",{attrs:{label:"期数"}},[a("el-cascader",{attrs:{options:t.goodsList,props:{value:"id",label:"name"}},on:{"active-item-change":t.handleItemChange,change:t.changePeriods}})],1),t._v(" "),a("el-form-item",{attrs:{label:"老师"}},[a("el-select",{attrs:{placeholder:"请选择",filterable:""},on:{change:function(e){t.selectName(t.teacherList,t.form.teacher_id)}},model:{value:t.form.teacher_id,callback:function(e){t.$set(t.form,"teacher_id",e)},expression:"form.teacher_id"}},t._l(t.teacherList,function(t,e){return a("el-option",{key:e,attrs:{label:t.name,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"班级名称"}},[a("el-input",{staticStyle:{width:"220px"},model:{value:t.form.class_name,callback:function(e){t.$set(t.form,"class_name",e)},expression:"form.class_name"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"最大学员"}},[a("el-input-number",{model:{value:t.form.max_join_num,callback:function(e){t.$set(t.form,"max_join_num",e)},expression:"form.max_join_num"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogObj.show=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onSave}},[t._v("确 定")])],1)],1)},staticRenderFns:[]};var n=a("VU/8")(l,o,!1,function(t){a("tFn2")},"data-v-c007d8e2",null);e.a=n.exports},hFUZ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("CCn6"),s=a("+TkF"),l=(a("xGts"),a("RyfI")),o={name:"task1",components:{teacherDesc:l.a},props:["teacherId"],data:function(){return{task1List:[],task1Detail:{show:!1,list:[],title:"",cur_date:""}}},mounted:function(){this.initPage()},methods:{initPage:function(){var t=this;Object(i._95)(this.teacherId).then(function(e){t.task1List=e})},refDesc1:function(){var t=this;Object(i._95)(this.teacherId).then(function(e){t.task1List=e,e.forEach(function(e){e.cur_date===t.task1Detail.cur_date&&(t.task1Detail.list=e.need_add_detail)})})},changeAddTeacher:function(t){var e=this;Object(i.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc1()})},showTask1Detail:function(t,e){this.task1Detail={show:!0,list:e?t.done_detail:t.need_add_detail,title:e?t.cur_date+" 未通过用户列表":t.cur_date+" 待加好友用户列表",cur_date:t.cur_date},this.dialogType=1}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务1:好友添加")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task1List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_add_teacher_num",label:"当天进班人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"done_num",label:"未通过人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row,1)}}},[t._v(t._s(e.row.done_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{"class-name":"hightLight",prop:"need_add_teacher_num",label:"需加好友人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticStyle:{"font-size":"20px"},attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row)}}},[t._v(t._s(e.row.need_add_teacher_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"add_rate",label:"完成情况",align:"center",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("label",{staticStyle:{width:"90px",display:"inline-block","text-align":"right"}},[t._v("好友通过率:")]),t._v(" "),Number(e.row.add_rate)>=70?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.row.add_rate)}}):t._e(),t._v(" "),Number(e.row.add_rate)<70?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.row.add_rate)}}):t._e()],1),t._v(" "),a("div",[a("label",{staticStyle:{width:"90px",display:"inline-block","text-align":"right"}},[t._v("任务处理率:")]),t._v(" "),100==Number(e.row.done_rate)?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.row.done_rate)}}):t._e(),t._v(" "),Number(e.row.done_rate)<100?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.row.done_rate)}}):t._e()],1)]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task1Detail.show,title:t.task1Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task1Detail,"show",e)}}},[a("el-table",{attrs:{data:t.task1Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.periods_title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"160",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"待通过",value:3}}),t._v(" "),a("el-option",{attrs:{label:"手机号不是微信号",value:4}}),t._v(" "),a("el-option",{attrs:{label:"用户已拒绝",value:5}}),t._v(" "),a("el-option",{attrs:{label:"暂未处理",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"沟通情况",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc1}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"入课时间","min-width":"140px",align:"center",sortable:""}})],1)],1)],1)},staticRenderFns:[]};var r=a("VU/8")(o,n,!1,function(t){a("zhnS")},"data-v-f3311952",null).exports,c={name:"task2",props:["teacherId"],components:{teacherDesc:l.a},data:function(){return{task2List:[],lookDetail:{show:!1,loading:!1,list:[],nowPage:1,data:null,limit:500,total:0},task2Detail:{show:!1,list:[],type:1,weight:""}}},mounted:function(){this.initPage()},methods:{onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.showLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.showLook()},showLook:function(t){var e=this;t&&(this.lookDetail.data=t),this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};Object(i._114)(this.lookDetail.data.periods_id,this.lookDetail.data.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},initPage:function(){var t=this;Object(i._96)(this.teacherId).then(function(e){t.task2List=e})},changeWeight:function(t){var e=this;Object(i._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},showTask2Detail:function(t){this.task2Detail={show:!0,list:t.detail,title:"意向等级为"+t.weight+"的用户列表",weight:t.weight},this.task2Detail.type=1},refDesc2:function(){var t=this;1===this.task2Detail.type?Object(i._96)(this.teacherId).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})}):2===this.task2Detail.type&&Object(i._48)(this.task2Detail.periods_id,this.teacherId,{}).then(function(e){t.task2Detail.loading=!1,t.task2Detail.list=e})}}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务4:意向用户转化")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task2List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"weight",label:"意向等级",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_num",label:"总人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask2Detail(e.row)}}},[t._v(t._s(e.row.total_num))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task2Detail.show,title:t.task2Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"160",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.refDesc2}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"200px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(c,_,!1,function(t){a("+uY2")},"data-v-3c38e0b7",null).exports,u={name:"task3",components:{teacherDesc:l.a},props:["teacherId"],data:function(){return{task3List:[],task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:"",type:0}}},mounted:function(){this.initPage()},methods:{showTask3Detail:function(t,e,a,i){var s=this,l={is_true:e,is_watch:a,cur_date:i};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=i,this.task3Detail.type=1,this.dialogType=3,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",getWatchUserApi(t.periods_id,this.id,l).then(function(t){s.task3Detail.loading=!1,s.task3Detail.list=t})},initPage:function(){var t=this;Object(i._97)(this.id).then(function(e){t.task3List=e})}}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(i){return 1===i.is_start_course?a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(i.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,i.cur_date)}}},[t._v(t._s(i.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,i.cur_date)}}},[t._v(t._s(i.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,i.cur_date)}}},[t._v(t._s(i.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.work_rate))]):t._e()])]):t._e()}),t._v(" "),a("div",{staticClass:"recall",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需召回人数")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showRecallDetail(e)}}},[t._v(t._s(e.need_recall_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("已沟通:"+t._s(e.total_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),100==Number(e.desc_rate)?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.desc_rate)}}):t._e(),t._v(" "),Number(e.desc_rate)<100?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.desc_rate)}}):t._e()],1)])],2)])})],2),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"260",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc3}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",sortable:"",prop:"created_at"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户属性","min-width":"400",sortable:"",prop:"last_login_at"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 最后登录时间:"+t._s(e.row.last_login_at)+"\n "),a("br"),t._v("\n 是否添加老师:"+t._s(t._f("ADDTEACHER")(e.row.is_add_teacher))+"\n "),a("br"),t._v("\n 用户意向等级:"+t._s(e.row.weight)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1)],1)},staticRenderFns:[]};var p=a("VU/8")(u,h,!1,function(t){a("bkEJ")},"data-v-210ddd77",null).exports,f={name:"task",components:{teacherDesc:l.a,task1:r,task2:d,task3:p},props:["parentDetail"],data:function(){return{id:this.parentDetail?this.parentDetail.id:this.$route.params.id,task3List:[],task2Detail:{show:!1,list:[],type:1,weight:""},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,data:null,limit:500,total:0},task1Detail:{show:!1,list:[],title:"",cur_date:""},task5Detail:{show:!1,list:[],total:0,total_over_num:0,over_rate:0,total_over_reply_num:0,over_reply_rate:0},recallDetail:{show:!1,list:[],weight:""},overWorkDetail:{show:!1,list:[],weight:""},descDialog:{show:!1,id:"",descList:[],user_info:null,type:null},task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:"",type:0},dialogType:0}},methods:{showLook:function(t){var e=this;t&&(this.lookDetail.data=t),this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};Object(i._114)(this.lookDetail.data.periods_id,this.lookDetail.data.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.showLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.showLook()},showTask3Detail:function(t,e,a,s){var l=this,o={is_true:e,is_watch:a,cur_date:s};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=s,this.task3Detail.type=1,this.dialogType=3,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",Object(i._74)(t.periods_id,this.id,o).then(function(t){l.task3Detail.loading=!1,l.task3Detail.list=t})},showOverWorkDetail:function(t){var e=this;this.task2Detail.show=!0,this.task2Detail.loading=!0,this.task2Detail.periods_id=t.periods_id,this.task2Detail.type=2,this.task2Detail.title=t.title+" 截止今日全勤学员",this.dialogType=2,Object(i._48)(t.periods_id,this.id,{}).then(function(t){e.task2Detail.loading=!1,e.task2Detail.list=t})},showRecallDetail:function(t){var e=this;this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.periods_id=t.periods_id,this.task3Detail.type=3,this.task3Detail.title=t.title+" 今日需要招回学员",this.dialogType=3,Object(i._55)(t.periods_id,this.id,{}).then(function(t){e.task3Detail.loading=!1,e.task3Detail.list=t})},editComment:function(t,e){var a=this;this.$prompt("","添加沟通话术",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(e){var s=e.value;Object(i.l)(t,{desc:s}).then(function(t){switch(a.$message({type:"success",message:"添加沟通话术成功"}),a.dialogType){case 2:a.refDesc2();break;case 3:a.refDesc3();break;case 4:a.getTask5()}})})},refDesc3:function(){var t=this;if(1===this.task3Detail.type){var e={is_true:this.task3Detail.is_true,is_watch:this.task3Detail.is_watch,cur_date:this.task3Detail.cur_date};this.task3Detail.loading=!0,Object(i._74)(this.task3Detail.periods_id,this.id,e).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e})}else 2===this.task3Detail.type?Object(i._48)(this.task3Detail.periods_id,this.id,{}).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e}):3===this.task3Detail.type&&Object(i._55)(this.task3Detail.periods_id,this.id,{}).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e});Object(i._97)(this.id).then(function(e){t.task3List=e})},showTask5Detail:function(){this.task5Detail.show=!0,this.dialogType=4},refDesc2:function(){var t=this;1===this.task2Detail.type?task2Api(this.id).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})}):2===this.task2Detail.type&&(Object(i._48)(this.task2Detail.periods_id,this.id,{}).then(function(e){t.task2Detail.loading=!1,t.task2Detail.list=e}),Object(i._97)(this.id).then(function(e){t.task3List=e}))},changeAddTeacher:function(t){var e=this;Object(i.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},changeAddTeacher3:function(t){var e=this;Object(i.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight3:function(t){var e=this;Object(i._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight:function(t,e){var a=this;Object(i._9)(t.id,t.weight).then(function(){a.$message({type:"success",message:"数据更改成功"}),5===e?a.getTask5():a.refDesc2()})},changeView:function(t){var e=this;Object(i._8)(t.id,t.is_view_course).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},editDesc3:function(t){var e=this;this.$prompt("","请输入沟通情况",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(a){var s=a.value;Object(i.l)(t.id,{desc:s}).then(function(t){e.$message({type:"success",message:"更新成功"}),e.refDesc3()})}).catch(function(){})},editDesc:function(t,e){this.descDialog.show=!0,this.descDialog.id=t.id,this.descDialog.type=e||null,this.descDialog.user_info={avatar:t.avatar,nickname:t.nickname,user_id:t.user_id},this.getUserDescList()},getUserDescList:function(){var t=this;Object(i._69)(this.descDialog.id,{limit:1e3}).then(function(e){t.descDialog.descList=e.list})},getTask5:function(){var t=this;Object(i._99)(this.id).then(function(e){t.task5Detail.list=e.list,t.task5Detail.total=e.total,t.task5Detail.over_rate=e.over_rate,t.task5Detail.total_over_num=e.total_over_num,t.task5Detail.over_reply_rate=e.over_reply_rate,t.task5Detail.total_over_reply_num=e.total_over_reply_num})},initPage:function(){var t=this;Object(i._97)(this.id).then(function(e){t.task3List=e}),this.getTask5()}},filters:{ADDTEACHER:function(t){var e="";return 0===t?e="暂未处理":1===t?e="老师主动添加用户":2===t?e="用户主动添加老师":3===t?e="待通过":4===t?e="手机号不是微信号":5===t&&(e="用户已拒绝"),e}},mounted:function(){this.initPage()}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"font-size":"14px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("task1",{attrs:{teacherId:t.id}})],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务2:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(i){return 1===i.is_start_course?a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(i.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,i.cur_date)}}},[t._v(t._s(i.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,i.cur_date)}}},[t._v(t._s(i.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,i.cur_date)}}},[t._v(t._s(i.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.work_rate))]):t._e()])]):t._e()}),t._v(" "),a("div",{staticClass:"recall",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需召回人数")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showRecallDetail(e)}}},[t._v(t._s(e.need_recall_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户已回复:"+t._s(e.total_reply_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("老师已沟通:"+t._s(e.total_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_reply_rate)?"#67C23A":"#f00",percentage:Number(e.desc_reply_rate)}})],1),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_rate)?"#67C23A":"#f00",percentage:Number(e.desc_rate)}})],1)])],2)])})],2)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:意向用户标记")])]),t._v(" "),a("div",[t._v("本期意向用户:")]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table",staticStyle:{width:"47%"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"over_work",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需沟通用户")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showOverWorkDetail(e)}}},[t._v(t._s(e.total_watch_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process",staticStyle:{"line-height":"30px"}},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户已回复:"+t._s(e.total_reply_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("老师已沟通:"+t._s(e.total_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_reply_rate)?"#67C23A":"#f00",percentage:Number(e.desc_reply_rate)}})],1),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.over_reply_rate)?"#67C23A":"#f00",percentage:Number(e.over_reply_rate)}})],1)])])])}),t._v(" "),a("br"),t._v(" "),a("div",[t._v("往期意向用户:")]),t._v(" "),a("div",{staticClass:"task3-table",staticStyle:{width:"47%"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n 往期活跃用户数(近三天)\n ")])]),t._v(" "),a("div",{staticClass:"over_work",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需沟通用户")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(e){t.showTask5Detail()}}},[t._v(t._s(t.task5Detail.total))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("用户已回复:"+t._s(t.task5Detail.total_over_reply_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("老师已沟通:"+t._s(t.task5Detail.total_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(t.task5Detail.over_reply_rate)?"#67C23A":"#f00",percentage:Number(t.task5Detail.over_reply_rate)}})],1),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(t.task5Detail.over_rate)?"#67C23A":"#f00",percentage:Number(t.task5Detail.over_rate)}})],1)])])])],2)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("task2",{attrs:{teacherId:t.id}})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"260",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc3}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",sortable:"",prop:"created_at"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户属性","min-width":"400",sortable:"",prop:"last_login_at"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 最后登录时间:"+t._s(e.row.last_login_at)+"\n "),a("br"),t._v("\n 是否添加老师:"+t._s(t._f("ADDTEACHER")(e.row.is_add_teacher))+"\n "),a("br"),t._v("\n 用户意向等级:"+t._s(e.row.weight)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task2Detail.show,title:t.task2Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"160",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.refDesc2}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"学习情况","min-width":"180",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 学习总时长:"+t._s(e.row.total_stay_time)+"秒\n "),a("br"),t._v("\n 学习课包模块数:"+t._s(e.row.total_times)+"次\n "),a("br"),t._v("\n 最后看课时间:"+t._s(e.row.created_at)+"\n ")]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task5Detail.show,width:"80%",title:"往期活跃用户列表"},on:{"update:visible":function(e){t.$set(t.task5Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task5Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.getTask5}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数信息","min-width":"120",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"学习情况","min-width":"180",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 学习总时长:"+t._s(e.row.total_stay_time)+"秒\n "),a("br"),t._v("\n 学习课包模块数:"+t._s(e.row.total_times)+"次\n "),a("br"),t._v("\n 最后看课时间:"+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row,5)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])})],1)],1)],1)},staticRenderFns:[]};var m=a("VU/8")(f,v,!1,function(t){a("EL0D")},"data-v-256470bf",null).exports,b=a("kmJW"),g={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._76)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},w={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var k=a("VU/8")(g,w,!1,function(t){a("MYx/")},"data-v-334fc0ab",null).exports,y={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(i._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},D={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"使用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var x=a("VU/8")(y,D,!1,function(t){a("WpiT")},"data-v-3145d719",null).exports,S={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._56)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},O={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var j=a("VU/8")(S,O,!1,function(t){a("qteX")},"data-v-1fb6ff96",null).exports,C=a("0qGg"),T=a("CfzE"),L={name:"index",props:["parentDetail"],components:{page:b.a,task:m,UserList:C.a,chooseGoodDialog:T.a,couponDialog:x,refundDetail:j,sourceDialog:k},data:function(){var t=new Date,e=t.getMonth()+1;return e<10&&(e="0"+e.toString()),{tabs:"task",nowDate:t=t.getFullYear()+"-"+e,searchFrom:{user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""},form:{nickname:"",user_id:"",status:[1,4,5],goods_id:"",out_trade_no:"",receive_mobile:"",mobile:""},task4Data:null,goodList:[],orderStatusOption:s.q,tableData:[],userList:[],list:[],id:"",isBindUser:!0,addShow:!1,detail:{},total:0,limit:10,nowPage:1,userObj:{classId:"",title:"",show:!1,total:0,limit:10,nowPage:1},addId:"",multipleSelection:[],chooseGoodDialogObj:{show:!1,code:""},orderListObj:{total:0,limit:10,nowPage:1},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""}}},methods:{getTask4:function(){var t=this;Object(i._98)(this.id).then(function(e){t.task4Data=e})},handleSelectionChange:function(t){this.multipleSelection=t},onAdd:function(){var t=this;0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.addId=this.multipleSelection[0].user_id,this.addId&&this.isBindUser&&Object(i._100)(this.id,{user_id:this.addId}).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.id=t.parentDetail?t.parentDetail.id:t.$route.params.id,t.getTeacherDetail(),t.getGoodsOption(),t.addShow=!1})):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})},onAddUser:function(t){this.isBindUser=t,this.addShow=!0,this.getUser()},getUser:function(){var t=this,e={page:this.userObj.nowPage,limit:this.userObj.limit};this.searchFrom.userId&&(e.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(e.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),Object(i._71)(e).then(function(e){t.userList=e.list,t.userObj.total=e.total})},changeRow:function(t,e){e.indexOf(t)>-1&&Object(i._27)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},showUser:function(t){this.userObj={classId:t.id,show:!0,title:this.detail.name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},onPageChange3:function(t){this.userObj.nowPage=t,this.getUser()},onSizeChange3:function(t){this.userObj.limit=t,this.userObj.nowPage=1,this.getUser()},onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getTeacherDetail()},onPageChange2:function(t){this.orderListObj.nowPage=t,this.getOrderList()},onSizeChange2:function(t){this.orderListObj.limit=t,this.orderListObj.nowPage=1,this.getOrderList()},getTeacherDetail:function(){var t=this;this.searchFrom={user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""};var e=this.id,a={limit:this.limit,page:this.nowPage};Object(i._66)(e,a).then(function(e){t.detail=e,t.detail.class_list&&(t.detail.class_list.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.list=t.detail.class_list.list||[],t.total=t.detail.class_list.total)})},createInviteLink:function(t){this.chooseGoodDialogObj.show=!0,0==this.detail.type?this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id:1==this.detail.type?this.chooseGoodDialogObj.code="CC-XXMM-"+t.user_id:this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},getOrderList:function(){var t=this,e={limit:this.orderListObj.limit,page:this.orderListObj.nowPage};this.form.nickname&&(e.nickname=this.form.nickname),this.form.user_id&&(e.user_id=this.form.user_id),this.form.status&&(e.status=this.form.status.toString()),this.form.goods_id&&(e.goods_id=this.form.goods_id),this.form.receive_mobile&&(e.receive_mobile=this.form.receive_mobile),this.form.out_trade_no&&(e.out_trade_no=this.form.out_trade_no),this.form.mobile&&(e.mobile=this.form.mobile),0!==this.detail.user_id&&(e.invite_id=this.detail.user_id,Object(i._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.tableData=e.list,t.orderListObj.total=e.total}))},getGoodsOption:function(){var t=this;Object(i._37)({page:1,limit:100,course_type:0}).then(function(e){t.goodList=e.list})},editComment:function(t,e){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:e||""}).then(function(e){var s=e.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._4)(t,"order",{desc:s}).then(function(t){a.$message({type:"success",message:"编辑备注成功"}),a.getOrderList()})})})},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no}},filters:{teacherType:function(t){return s.u[t]},percent:function(t){return(100*t).toFixed(2)+"%"},status:function(t){return s.p[t]},moneytFilter:function(t){return t/100+"元"},filterGoods:function(t){return"["+s.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name}},mounted:function(){this.id=this.parentDetail?this.parentDetail.id:this.$route.params.id;var t=localStorage.getItem("phoneNum");t&&(t=JSON.parse(t),this.id=t.id),this.getTask4(),this.getTeacherDetail(),this.getGoodsOption()},watch:{tabs:function(t){"order"===t&&this.getOrderList()}}},$={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"teacher"},[a("div",{staticClass:"header"},[a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[a("label",[t._v(t._s(t._f("teacherType")(t.detail.type))+":")]),t._v(" "+t._s(t.detail.name)+"(T"+t._s(t.detail.squad)+")\n ")]),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"success",plain:""},on:{click:function(e){t.onAddUser(!0)}}},[t._v("老师绑定用户")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.qr,target:"_blank"}},[a("img",{attrs:{src:t.detail.qr}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n "),a("br"),t._v(" "),a("label",[t._v("带班总人数:")]),t._v(t._s(t.detail.total_join_num)+"\n "),a("br"),t._v(" "),a("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])])]),t._v(" "),t.detail.user_info?a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("绑定用户")]),t._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(e){t.createInviteLink(t.detail.user_info)}}},[t._v("\n 复制专属链接\n ")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.user_info.nickname)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("用户ID:")]),t._v(" "+t._s(t.detail.user_info.user_id)+"\n ")])])]):t._e(),t._v(" "),t.task4Data?a("el-card",{staticStyle:{width:"320px",display:"inline-block"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("当月销售转化率【"+t._s(t.nowDate)+"】")])]),t._v(" "),a("div",{staticClass:"text item"},[a("el-progress",{staticStyle:{float:"left","margin-right":"10px"},attrs:{type:"circle",percentage:Number(t.task4Data.trans_rate.split("%")[0])}})],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("label",[t._v("当月带班人数:")]),t._v(" "+t._s(t.task4Data.total_user_num)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("当月购课人数:")]),t._v(" "+t._s(t.task4Data.total_sale_num)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("当月累计业绩:")]),t._v(" "+t._s(t.task4Data.total_money)+"\n ")])])]):t._e()],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"},model:{value:t.tabs,callback:function(e){t.tabs=e},expression:"tabs"}},[a("el-tab-pane",{attrs:{label:"今日任务",name:"task"}},[a("task",{attrs:{parentDetail:t.parentDetail}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"期数列表",name:"periods"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"已进班人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_num",label:"需加好友数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"max_join_num",label:"最大班级人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v("\n 班级成员\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表",name:"order"}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:t.form.user_id,callback:function(e){t.$set(t.form,"user_id",e)},expression:"form.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户手机号"}},[a("el-input",{model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"收件人手机号"}},[a("el-input",{model:{value:t.form.receive_mobile,callback:function(e){t.$set(t.form,"receive_mobile",e)},expression:"form.receive_mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,i){return a("el-option",{key:i,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.orderStatusOption,function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"交易订单号"}},[a("el-input",{model:{value:t.form.out_trade_no,callback:function(e){t.$set(t.form,"out_trade_no",e)},expression:"form.out_trade_no"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getOrderList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticClass:"order_list",staticStyle:{width:"100%"},attrs:{data:t.tableData,fixed:""}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")"),a("br"),t._v("手机:"+t._s(e.row.user_mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"200"}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(a){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 编辑备注\n ")])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),a("page",{attrs:{total:t.orderListObj.total,limit:t.orderListObj.limit},on:{pageChange:t.onPageChange2,sizeChange:t.onSizeChange2}})],1)],1),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getTeacherDetail}}),t._v(" "),a("choose-good-dialog",{attrs:{dialogObj:t.chooseGoodDialogObj},on:{changeShow:t.changeShow}}),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.addShow},on:{"update:visible":function(e){t.addShow=e}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:t.searchFrom.userId,callback:function(e){t.$set(t.searchFrom,"userId",e)},expression:"searchFrom.userId"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:t.searchFrom.nickName,callback:function(e){t.$set(t.searchFrom,"nickName",e)},expression:"searchFrom.nickName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:t.searchFrom.mobile,callback:function(e){t.$set(t.searchFrom,"mobile",e)},expression:"searchFrom.mobile"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8,offset:16}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:t.getUser}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.userList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),t._v(" "),a("page",{attrs:{total:t.userObj.total,limit:t.userObj.limit},on:{pageChange:t.onPageChange3,sizeChange:t.onSizeChange3}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addShow=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var F=a("VU/8")(L,$,!1,function(t){a("KJ7d"),a("f2ga")},"data-v-5016a5fa",null);e.default=F.exports},lSHI:function(t,e){},ljmI:function(t,e){},qteX:function(t,e){},tFn2:function(t,e){},zhnS:function(t,e){}});
\ No newline at end of file
webpackJsonp([6],{"+uY2":function(t,e){},EL0D:function(t,e){},KJ7d:function(t,e){},"MYx/":function(t,e){},WpiT:function(t,e){},bkEJ:function(t,e){},f2ga:function(t,e){},hFUZ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("CCn6"),s=a("+TkF"),l=(a("xGts"),a("RyfI")),n={name:"task1",components:{teacherDesc:l.a},props:["teacherId"],data:function(){return{task1List:[],task1Detail:{show:!1,list:[],title:"",cur_date:""}}},mounted:function(){this.initPage()},methods:{initPage:function(){var t=this;Object(i._95)(this.teacherId).then(function(e){t.task1List=e})},refDesc1:function(){var t=this;Object(i._95)(this.teacherId).then(function(e){t.task1List=e,e.forEach(function(e){e.cur_date===t.task1Detail.cur_date&&(t.task1Detail.list=e.need_add_detail)})})},changeAddTeacher:function(t){var e=this;Object(i.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc1()})},showTask1Detail:function(t,e){this.task1Detail={show:!0,list:e?t.done_detail:t.need_add_detail,title:e?t.cur_date+" 未通过用户列表":t.cur_date+" 待加好友用户列表",cur_date:t.cur_date},this.dialogType=1}}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务1:好友添加")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task1List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"cur_date",label:"时间",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_add_teacher_num",label:"当天进班人数",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"done_num",label:"未通过人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row,1)}}},[t._v(t._s(e.row.done_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{"class-name":"hightLight",prop:"need_add_teacher_num",label:"需加好友人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticStyle:{"font-size":"20px"},attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask1Detail(e.row)}}},[t._v(t._s(e.row.need_add_teacher_num))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"add_rate",label:"完成情况",align:"center",width:"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("label",{staticStyle:{width:"90px",display:"inline-block","text-align":"right"}},[t._v("好友通过率:")]),t._v(" "),Number(e.row.add_rate)>=70?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.row.add_rate)}}):t._e(),t._v(" "),Number(e.row.add_rate)<70?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.row.add_rate)}}):t._e()],1),t._v(" "),a("div",[a("label",{staticStyle:{width:"90px",display:"inline-block","text-align":"right"}},[t._v("任务处理率:")]),t._v(" "),100==Number(e.row.done_rate)?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.row.done_rate)}}):t._e(),t._v(" "),Number(e.row.done_rate)<100?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.row.done_rate)}}):t._e()],1)]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task1Detail.show,title:t.task1Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task1Detail,"show",e)}}},[a("el-table",{attrs:{data:t.task1Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.periods_title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"是否添加老师","min-width":"160",prop:"is_add_teacher"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeAddTeacher(e.row)}},model:{value:e.row.is_add_teacher,callback:function(a){t.$set(e.row,"is_add_teacher",a)},expression:"scope.row.is_add_teacher"}},[a("el-option",{attrs:{label:"老师主动添加",value:1}}),t._v(" "),a("el-option",{attrs:{label:"用户主动添加",value:2}}),t._v(" "),a("el-option",{attrs:{label:"待通过",value:3}}),t._v(" "),a("el-option",{attrs:{label:"手机号不是微信号",value:4}}),t._v(" "),a("el-option",{attrs:{label:"用户已拒绝",value:5}}),t._v(" "),a("el-option",{attrs:{label:"暂未处理",value:0}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"沟通情况",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc1}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"入课时间","min-width":"140px",align:"center",sortable:""}})],1)],1)],1)},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("zhnS")},"data-v-f3311952",null).exports,c={name:"task2",props:["teacherId"],components:{teacherDesc:l.a},data:function(){return{task2List:[],lookDetail:{show:!1,loading:!1,list:[],nowPage:1,data:null,limit:500,total:0},task2Detail:{show:!1,list:[],type:1,weight:""}}},mounted:function(){this.initPage()},methods:{onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.showLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.showLook()},showLook:function(t){var e=this;t&&(this.lookDetail.data=t),this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};Object(i._114)(this.lookDetail.data.periods_id,this.lookDetail.data.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},initPage:function(){var t=this;Object(i._96)(this.teacherId).then(function(e){t.task2List=e})},changeWeight:function(t){var e=this;Object(i._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},showTask2Detail:function(t){this.task2Detail={show:!0,list:t.detail,title:"意向等级为"+t.weight+"的用户列表",weight:t.weight},this.task2Detail.type=1},refDesc2:function(){var t=this;1===this.task2Detail.type?Object(i._96)(this.teacherId).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})}):2===this.task2Detail.type&&Object(i._48)(this.task2Detail.periods_id,this.teacherId,{}).then(function(e){t.task2Detail.loading=!1,t.task2Detail.list=e})}}},_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务4:意向用户转化")])]),t._v(" "),a("el-table",{attrs:{border:"",data:t.task2List,align:"center","header-cell-style":{background:"#e4eff7"}}},[a("el-table-column",{attrs:{prop:"weight",label:"意向等级",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"total_num",label:"总人数",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){t.showTask2Detail(e.row)}}},[t._v(t._s(e.row.total_num))])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task2Detail.show,title:t.task2Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"160",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.refDesc2}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"200px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(c,_,!1,function(t){a("+uY2")},"data-v-3c38e0b7",null).exports,u={name:"task3",components:{teacherDesc:l.a},props:["teacherId"],data:function(){return{task3List:[],task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:"",type:0}}},mounted:function(){this.initPage()},methods:{showTask3Detail:function(t,e,a,i){var s=this,l={is_true:e,is_watch:a,cur_date:i};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=i,this.task3Detail.type=1,this.dialogType=3,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",getWatchUserApi(t.periods_id,this.id,l).then(function(t){s.task3Detail.loading=!1,s.task3Detail.list=t})},initPage:function(){var t=this;Object(i._97)(this.id).then(function(e){t.task3List=e})}}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(i){return 1===i.is_start_course?a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(i.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,i.cur_date)}}},[t._v(t._s(i.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,i.cur_date)}}},[t._v(t._s(i.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,i.cur_date)}}},[t._v(t._s(i.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.work_rate))]):t._e()])]):t._e()}),t._v(" "),a("div",{staticClass:"recall",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需召回人数")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showRecallDetail(e)}}},[t._v(t._s(e.need_recall_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("已沟通:"+t._s(e.total_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),100==Number(e.desc_rate)?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#67C23A",percentage:Number(e.desc_rate)}}):t._e(),t._v(" "),Number(e.desc_rate)<100?a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:"#f00",percentage:Number(e.desc_rate)}}):t._e()],1)])],2)])})],2),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"260",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc3}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",sortable:"",prop:"created_at"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户属性","min-width":"400",sortable:"",prop:"last_login_at"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 最后登录时间:"+t._s(e.row.last_login_at)+"\n "),a("br"),t._v("\n 是否添加老师:"+t._s(t._f("ADDTEACHER")(e.row.is_add_teacher))+"\n "),a("br"),t._v("\n 用户意向等级:"+t._s(e.row.weight)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1)],1)},staticRenderFns:[]};var v=a("VU/8")(u,h,!1,function(t){a("bkEJ")},"data-v-210ddd77",null).exports,p={name:"task",components:{teacherDesc:l.a,task1:r,task2:d,task3:v},props:["parentDetail"],data:function(){return{id:this.parentDetail?this.parentDetail.id:this.$route.params.id,task3List:[],task2Detail:{show:!1,list:[],type:1,weight:""},lookDetail:{show:!1,loading:!1,list:[],nowPage:1,data:null,limit:500,total:0},task1Detail:{show:!1,list:[],title:"",cur_date:""},task5Detail:{show:!1,list:[],total:0,total_over_num:0,over_rate:0,total_over_reply_num:0,over_reply_rate:0},recallDetail:{show:!1,list:[],weight:""},overWorkDetail:{show:!1,list:[],weight:""},descDialog:{show:!1,id:"",descList:[],user_info:null,type:null},task3Detail:{show:!1,list:[],is_true:"",is_watch:"",loading:!1,periods_id:"",cur_date:"",title:"",type:0},dialogType:0}},methods:{showLook:function(t){var e=this;t&&(this.lookDetail.data=t),this.lookDetail.show=!0,this.lookDetail.loading=!0;var a={limit:this.lookDetail.limit,page:this.lookDetail.nowPage};Object(i._114)(this.lookDetail.data.periods_id,this.lookDetail.data.user_id,a).then(function(t){e.lookDetail.list=t.list,e.lookDetail.loading=!1,e.lookDetail.total=t.total})},onLookDetailPageChange:function(t){this.lookDetail.nowPage=t,this.showLook()},onLookDetailSizeChange:function(t){this.lookDetail.limit=t,this.lookDetail.nowPage=1,this.showLook()},showTask3Detail:function(t,e,a,s){var l=this,n={is_true:e,is_watch:a,cur_date:s};this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.is_true=e,this.task3Detail.periods_id=t.periods_id,this.task3Detail.is_watch=a,this.task3Detail.cur_date=s,this.task3Detail.type=1,this.dialogType=3,this.task3Detail.title="【"+t.periods_id+"】"+t.title+" "+(1===e?"已":"未")+(1===a?"看课":"打卡")+"学员",Object(i._74)(t.periods_id,this.id,n).then(function(t){l.task3Detail.loading=!1,l.task3Detail.list=t})},showOverWorkDetail:function(t){var e=this;this.task2Detail.show=!0,this.task2Detail.loading=!0,this.task2Detail.periods_id=t.periods_id,this.task2Detail.type=2,this.task2Detail.title=t.title+" 截止今日全勤学员",this.dialogType=2,Object(i._48)(t.periods_id,this.id,{}).then(function(t){e.task2Detail.loading=!1,e.task2Detail.list=t})},showRecallDetail:function(t){var e=this;this.task3Detail.show=!0,this.task3Detail.loading=!0,this.task3Detail.periods_id=t.periods_id,this.task3Detail.type=3,this.task3Detail.title=t.title+" 今日需要招回学员",this.dialogType=3,Object(i._55)(t.periods_id,this.id,{}).then(function(t){e.task3Detail.loading=!1,e.task3Detail.list=t})},editComment:function(t,e){var a=this;this.$prompt("","添加沟通话术",{confirmButtonText:"确定",cancelButtonText:"取消",inputValue:""}).then(function(e){var s=e.value;Object(i.l)(t,{desc:s}).then(function(t){switch(a.$message({type:"success",message:"添加沟通话术成功"}),a.dialogType){case 2:a.refDesc2();break;case 3:a.refDesc3();break;case 4:a.getTask5()}})})},refDesc3:function(){var t=this;if(1===this.task3Detail.type){var e={is_true:this.task3Detail.is_true,is_watch:this.task3Detail.is_watch,cur_date:this.task3Detail.cur_date};this.task3Detail.loading=!0,Object(i._74)(this.task3Detail.periods_id,this.id,e).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e})}else 2===this.task3Detail.type?Object(i._48)(this.task3Detail.periods_id,this.id,{}).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e}):3===this.task3Detail.type&&Object(i._55)(this.task3Detail.periods_id,this.id,{}).then(function(e){t.task3Detail.loading=!1,t.task3Detail.show=!0,t.task3Detail.list=e});Object(i._97)(this.id).then(function(e){t.task3List=e})},showTask5Detail:function(){this.task5Detail.show=!0,this.dialogType=4},refDesc2:function(){var t=this;1===this.task2Detail.type?task2Api(this.id).then(function(e){t.task2List=e,e.forEach(function(e){e.weight===t.task2Detail.weight&&(t.task2Detail.list=e.detail)})}):2===this.task2Detail.type&&(Object(i._48)(this.task2Detail.periods_id,this.id,{}).then(function(e){t.task2Detail.loading=!1,t.task2Detail.list=e}),Object(i._97)(this.id).then(function(e){t.task3List=e}))},changeAddTeacher:function(t){var e=this;Object(i.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},changeAddTeacher3:function(t){var e=this;Object(i.t)(t.id,t.is_add_teacher).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight3:function(t){var e=this;Object(i._9)(t.id,t.weight).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc3()})},changeWeight:function(t,e){var a=this;Object(i._9)(t.id,t.weight).then(function(){a.$message({type:"success",message:"数据更改成功"}),5===e?a.getTask5():a.refDesc2()})},changeView:function(t){var e=this;Object(i._8)(t.id,t.is_view_course).then(function(){e.$message({type:"success",message:"数据更改成功"}),e.refDesc2()})},editDesc3:function(t){var e=this;this.$prompt("","请输入沟通情况",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(a){var s=a.value;Object(i.l)(t.id,{desc:s}).then(function(t){e.$message({type:"success",message:"更新成功"}),e.refDesc3()})}).catch(function(){})},editDesc:function(t,e){this.descDialog.show=!0,this.descDialog.id=t.id,this.descDialog.type=e||null,this.descDialog.user_info={avatar:t.avatar,nickname:t.nickname,user_id:t.user_id},this.getUserDescList()},getUserDescList:function(){var t=this;Object(i._69)(this.descDialog.id,{limit:1e3}).then(function(e){t.descDialog.descList=e.list})},getTask5:function(){var t=this;Object(i._99)(this.id).then(function(e){t.task5Detail.list=e.list,t.task5Detail.total=e.total,t.task5Detail.over_rate=e.over_rate,t.task5Detail.total_over_num=e.total_over_num,t.task5Detail.over_reply_rate=e.over_reply_rate,t.task5Detail.total_over_reply_num=e.total_over_reply_num})},initPage:function(){var t=this;Object(i._97)(this.id).then(function(e){t.task3List=e}),this.getTask5()}},filters:{ADDTEACHER:function(t){var e="";return 0===t?e="暂未处理":1===t?e="老师主动添加用户":2===t?e="用户主动添加老师":3===t?e="待通过":4===t?e="手机号不是微信号":5===t&&(e="用户已拒绝"),e}},mounted:function(){this.initPage()}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"font-size":"14px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("task1",{attrs:{teacherId:t.id}})],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务2:用户召回")])]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table"},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"total"},[a("div",{staticClass:"header bg-h"},[t._v("班级人数")]),t._v("\n "+t._s(e.total_user)+"\n ")]),t._v(" "),a("div",{staticClass:"log-list header-title bg-h"},[a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("日期")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("未看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总看课人数")]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[t._v("总打卡人数")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("看课率")]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[t._v("打卡率")])]),t._v(" "),t._l(e.watch_log,function(i){return 1===i.is_start_course?a("div",{staticClass:"log-list"},[a("div",{staticClass:" bg-h",staticStyle:{height:"19px","line-height":"19px"}},[t._v(t._s(i.cur_date))]),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,0,1,i.cur_date)}}},[t._v(t._s(i.total_no_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,1,i.cur_date)}}},[t._v(t._s(i.total_watch_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"28px","line-height":"28px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){t.showTask3Detail(e,1,0,i.cur_date)}}},[t._v(t._s(i.total_work_num))]):t._e()],1),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.watch_rate))]):t._e()]),t._v(" "),a("div",{staticStyle:{height:"19px","line-height":"19px"}},[1!==i.is_start_course?a("span",[t._v("-")]):t._e(),t._v(" "),1===i.is_start_course?a("span",[t._v(t._s(i.work_rate))]):t._e()])]):t._e()}),t._v(" "),a("div",{staticClass:"recall",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需召回人数")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showRecallDetail(e)}}},[t._v(t._s(e.need_recall_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户已回复:"+t._s(e.total_reply_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("老师已沟通:"+t._s(e.total_desc_num)+"人")]),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_reply_rate)?"#67C23A":"#f00",percentage:Number(e.desc_reply_rate)}})],1),t._v(" "),a("br"),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_rate)?"#67C23A":"#f00",percentage:Number(e.desc_rate)}})],1)])],2)])})],2)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("任务3:意向用户标记")])]),t._v(" "),a("div",[t._v("本期意向用户:")]),t._v(" "),!t.task3List||t.task3List.length<1?a("div",{staticStyle:{color:"#DDDDDD","text-align":"center"}},[t._v("\n ——暂无数据——\n ")]):t._e(),t._v(" "),t._l(t.task3List,function(e){return a("div",{staticClass:"task3-table",staticStyle:{width:"47%"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),a("div",{staticClass:"over_work",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需沟通用户")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(a){t.showOverWorkDetail(e)}}},[t._v(t._s(e.total_watch_user_num))])],1),t._v(" "),a("div",{staticClass:"recall_process",staticStyle:{"line-height":"30px"}},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户已回复:"+t._s(e.total_reply_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("老师已沟通:"+t._s(e.total_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.desc_reply_rate)?"#67C23A":"#f00",percentage:Number(e.desc_reply_rate)}})],1),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(e.over_reply_rate)?"#67C23A":"#f00",percentage:Number(e.over_reply_rate)}})],1)])])])}),t._v(" "),a("br"),t._v(" "),a("div",[t._v("往期意向用户:")]),t._v(" "),a("div",{staticClass:"task3-table",staticStyle:{width:"47%"}},[a("div",{staticClass:"table"},[a("div",{staticClass:"title",staticStyle:{width:"8%"}},[a("div",{staticClass:"header bg-h"},[t._v("期数")]),t._v(" "),a("div",[t._v("\n 往期活跃用户数(近三天)\n ")])]),t._v(" "),a("div",{staticClass:"over_work",staticStyle:{"background-color":"#fffbe4"}},[a("div",{staticClass:"header bg-h"},[t._v("今日需沟通用户")]),t._v(" "),a("el-button",{staticStyle:{"font-size":"30px","text-decoration":"underline"},attrs:{size:"mini",type:"text"},on:{click:function(e){t.showTask5Detail()}}},[t._v(t._s(t.task5Detail.total))])],1),t._v(" "),a("div",{staticClass:"recall_process"},[a("div",{staticClass:"header bg-h"},[t._v("完成情况")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("用户已回复:"+t._s(t.task5Detail.total_over_reply_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("老师已沟通:"+t._s(t.task5Detail.total_over_num)+"人")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("用户回复率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(t.task5Detail.over_reply_rate)?"#67C23A":"#f00",percentage:Number(t.task5Detail.over_reply_rate)}})],1),t._v(" "),a("div",{staticStyle:{"text-align":"left","margin-left":"20px","line-height":"30px"}},[t._v("任务处理率:\n "),a("el-progress",{staticStyle:{display:"inline-block",width:"120px"},attrs:{"text-inside":!0,"stroke-width":18,color:100===Number(t.task5Detail.over_rate)?"#67C23A":"#f00",percentage:Number(t.task5Detail.over_rate)}})],1)])])])],2)],1)],1),t._v(" "),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:12}},[a("task2",{attrs:{teacherId:t.id}})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task3Detail.show,width:"80%",title:t.task3Detail.title},on:{"update:visible":function(e){t.$set(t.task3Detail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.task3Detail.loading,expression:"task3Detail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.task3Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"260",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:2},on:{onSuccess:t.refDesc3}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"进班时间","min-width":"200",sortable:"",prop:"created_at"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户属性","min-width":"400",sortable:"",prop:"last_login_at"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 最后登录时间:"+t._s(e.row.last_login_at)+"\n "),a("br"),t._v("\n 是否添加老师:"+t._s(t._f("ADDTEACHER")(e.row.is_add_teacher))+"\n "),a("br"),t._v("\n 用户意向等级:"+t._s(e.row.weight)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"info",size:"mini"},on:{click:function(a){t.showLook(e.row)}}},[t._v("看课情况")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.lookDetail.show},on:{"update:visible":function(e){t.$set(t.lookDetail,"show",e)}}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.lookDetail.loading,expression:"lookDetail.loading"}],staticStyle:{width:"100%"},attrs:{data:t.lookDetail.list}},[a("el-table-column",{attrs:{prop:"start_at",label:"日期"}}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈看一看"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 1===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 1===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 1===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"宝贝玩一玩"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 2===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 2===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 2===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"爸妈秀宝贝"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 3===t.page_id})?a("span",[a("div",{domProps:{innerHTML:t._s(e.row.watch_list.find(function(t){return 3===t.page_id}).learn_report)}})]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 3===t.page_id})?t._e():a("span",[t._v("\n 暂未秀宝贝\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"多元趣味课"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 5===t.page_id})?a("span",[t._v("\n "+t._s(e.row.watch_list.find(function(t){return 5===t.page_id}).stay_time)+"\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 5===t.page_id})?t._e():a("span",[t._v("\n 暂未上课\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"分享"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.watch_list&&e.row.watch_list.length>0&&e.row.watch_list.find(function(t){return 4===t.page_id})?a("span",[t._v("\n 已分享\n ")]):t._e(),t._v(" "),e.row.watch_list.find(function(t){return 4===t.page_id})?t._e():a("span",[t._v("\n 暂未分享\n ")])]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task2Detail.show,title:t.task2Detail.title,width:"80%"},on:{"update:visible":function(e){t.$set(t.task2Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task2Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"160",label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.refDesc2}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"学习情况","min-width":"180",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 学习总时长:"+t._s(e.row.total_stay_time)+"秒\n "),a("br"),t._v("\n 学习课包模块数:"+t._s(e.row.total_times)+"次\n "),a("br"),t._v("\n 最后看课时间:"+t._s(e.row.created_at)+"\n ")]}}])})],1)],1),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.task5Detail.show,width:"80%",title:"往期活跃用户列表"},on:{"update:visible":function(e){t.$set(t.task5Detail,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.task5Detail.list,size:"mini",fixed:""}},[a("el-table-column",{attrs:{label:"用户",className:"f-c","min-width":"180",prop:"user_id"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{width:"40px","min-width":"40px",height:"40px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(" "+t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n "),a("br"),t._v(" Tel:"+t._s(e.row.mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"沟通情况"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("teacher-desc",{attrs:{row:e.row,descType:1},on:{onSuccess:t.getTask5}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"用户反馈"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_reply?a("span",[e.row.reply_content?a("span",[t._v(t._s(e.row.reply_content))]):t._e(),t._v(" "),e.row.reply_content&&""!==e.row.reply_content?t._e():a("span",[t._v("无内容")])]):t._e(),t._v(" "),e.row.is_reply?t._e():a("span",{staticStyle:{color:"red"}},[t._v("尚未回复")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"期数信息","min-width":"120",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 【"+t._s(e.row.periods_id)+"】"+t._s(e.row.title)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"学习情况","min-width":"180",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 学习总时长:"+t._s(e.row.total_stay_time)+"秒\n "),a("br"),t._v("\n 学习课包模块数:"+t._s(e.row.total_times)+"次\n "),a("br"),t._v("\n 最后看课时间:"+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"意向等级","min-width":"95",prop:"weight"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{size:"mini"},on:{change:function(a){t.changeWeight(e.row,5)}},model:{value:e.row.weight,callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row.weight"}},[a("el-option",{attrs:{label:"0",value:0}}),t._v(" "),a("el-option",{attrs:{label:"1",value:1}}),t._v(" "),a("el-option",{attrs:{label:"2",value:2}}),t._v(" "),a("el-option",{attrs:{label:"3",value:3}})],1)]}}])})],1)],1)],1)},staticRenderFns:[]};var b=a("VU/8")(p,f,!1,function(t){a("EL0D")},"data-v-256470bf",null).exports,m=a("kmJW"),w={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{moneyYuan:function(t){return t?(t/100).toFixed(2)+"元":""},filterStatus:function(t){var e="";return 0===t?e="审核中":1===t?e="提现成功":2===t&&(e="提现失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._76)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"提现详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"withdraw_no",label:"提现单号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户",width:"200",className:"f-c"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"user_mobile",label:"手机号"}}),t._v(" "),a("el-table-column",{attrs:{label:"提现金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneyYuan")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:{status:!0,red:2===e.row.status,green:1===e.row.status}},[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现成功时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.success_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提现时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.created_at)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"reason",label:"失败原因"}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}})],1)],1)},staticRenderFns:[]};var k=a("VU/8")(w,g,!1,function(t){a("MYx/")},"data-v-334fc0ab",null).exports,y={name:"sourceDialog",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="未使用":1===t?e="已使用":2===t&&(e="禁用"),e}},methods:{initPage:function(){var t=this,e={order_coupon_id:this.dialogObj.order_coupon_id,limit:200};Object(i._31)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},D={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"优惠券详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"coupon_no",label:"优惠券码"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠券金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"使用状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"use_at",label:"使用时间"}})],1)],1)},staticRenderFns:[]};var x=a("VU/8")(y,D,!1,function(t){a("WpiT")},"data-v-3145d719",null).exports,S={name:"refundDetail",props:["dialogObj"],data:function(){return{detail:[]}},filters:{filterStatus:function(t){var e="";return 0===t?e="退款中":1===t?e="退款成功":2===t&&(e="退款失败"),e}},methods:{initPage:function(){var t=this,e={out_trade_no:this.dialogObj.out_trade_no,limit:200};Object(i._56)(e).then(function(e){t.detail=e.list})}},watch:{"dialogObj.show":function(t){!0===t&&this.initPage()}}},C={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"退款详情",center:"","append-to-body":"",visible:t.dialogObj.show,width:"90%"},on:{"update:visible":function(e){t.$set(t.dialogObj,"show",e)}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.detail}},[a("el-table-column",{attrs:{prop:"refund_no",label:"退款编号"}}),t._v(" "),a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"用户信息","min-width":"140",className:"userInfo"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v("\n "+t._s(e.row.user_nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"order_money",label:"订单金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.order_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_money",label:"退款金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(parseFloat(e.row.refund_money/100))+"元\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),a("el-table-column",{attrs:{label:"退款状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("filterStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"success_at",label:"退款成功时间"}})],1)],1)},staticRenderFns:[]};var O=a("VU/8")(S,C,!1,function(t){a("qteX")},"data-v-1fb6ff96",null).exports,j=a("0qGg"),T=a("CfzE"),L={name:"index",props:["parentDetail"],components:{page:m.a,task:b,UserList:j.a,chooseGoodDialog:T.a,couponDialog:x,refundDetail:O,sourceDialog:k},data:function(){var t=new Date,e=t.getMonth()+1;return e<10&&(e="0"+e.toString()),{tabs:"task",nowDate:t=t.getFullYear()+"-"+e,searchFrom:{user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""},form:{nickname:"",user_id:"",status:[1,4,5],goods_id:"",out_trade_no:"",receive_mobile:"",mobile:""},task4Data:null,goodList:[],orderStatusOption:s.q,tableData:[],userList:[],list:[],id:"",isBindUser:!0,addShow:!1,detail:{},total:0,limit:10,nowPage:1,userObj:{classId:"",title:"",show:!1,total:0,limit:10,nowPage:1},addId:"",multipleSelection:[],chooseGoodDialogObj:{show:!1,code:""},orderListObj:{total:0,limit:10,nowPage:1},sourceDialog:{show:!1,out_trade_no:""},couponDetail:{show:!1,order_coupon_id:""},refundDetail:{show:!1,out_trade_no:""}}},methods:{getTask4:function(){var t=this;Object(i._98)(this.id).then(function(e){t.task4Data=e})},handleSelectionChange:function(t){this.multipleSelection=t},onAdd:function(){var t=this;0!==this.multipleSelection.length?1===this.multipleSelection.length?(this.addId=this.multipleSelection[0].user_id,this.addId&&this.isBindUser&&Object(i._100)(this.id,{user_id:this.addId}).then(function(e){t.$message({type:"success",message:"绑定成功!"}),t.id=t.parentDetail?t.parentDetail.id:t.$route.params.id,t.getTeacherDetail(),t.getGoodsOption(),t.addShow=!1})):this.$message({type:"error",message:"只能选择一个用户!"}):this.$message({type:"error",message:"请选择用户!"})},onAddUser:function(t){this.isBindUser=t,this.addShow=!0,this.getUser()},getUser:function(){var t=this,e={page:this.userObj.nowPage,limit:this.userObj.limit};this.searchFrom.userId&&(e.user_id=this.searchFrom.userId),this.searchFrom.nickName&&(e.nickname=this.searchFrom.nickName),this.searchFrom.mobile&&(e.mobile=this.searchFrom.mobile),Object(i._71)(e).then(function(e){t.userList=e.list,t.userObj.total=e.total})},changeRow:function(t,e){e.indexOf(t)>-1&&Object(i._27)(t.periods_id,t.id).then(function(e){t.arrive_course_rate=e.arrive_course_rate,t.watch_course_rate=e.watch_course_rate,t.over_course_rate=e.over_course_rate,t.work_rate=e.work_rate,t.over_work_rate=e.over_work_rate,t.clock_rate=e.clock_rate,t.over_clock_rate=e.over_clock_rate,t.transform_rate=e.transform_rate})},showUser:function(t){this.userObj={classId:t.id,show:!0,title:this.detail.name+"班级用户列表",teacherId:t.teacher_id,periods_id:t.periods_id,goods_id:t.goods_id}},onPageChange3:function(t){this.userObj.nowPage=t,this.getUser()},onSizeChange3:function(t){this.userObj.limit=t,this.userObj.nowPage=1,this.getUser()},onPageChange:function(t){this.nowPage=t,this.getTeacherDetail()},onSizeChange:function(t){this.limit=t,this.nowPage=1,this.getTeacherDetail()},onPageChange2:function(t){this.orderListObj.nowPage=t,this.getOrderList()},onSizeChange2:function(t){this.orderListObj.limit=t,this.orderListObj.nowPage=1,this.getOrderList()},getTeacherDetail:function(){var t=this;this.searchFrom={user_id:"",is_add_teacher:"",is_view_course:"",start_at:"",end_at:""};var e=this.id,a={limit:this.limit,page:this.nowPage};Object(i._66)(e,a).then(function(e){t.detail=e,t.detail.class_list&&(t.detail.class_list.list.forEach(function(t){t.arrive_course_rate=0,t.watch_course_rate=0,t.over_course_rate=0,t.work_rate=0,t.over_work_rate=0,t.clock_rate=0,t.over_clock_rate=0,t.transform_rate=0}),t.list=t.detail.class_list.list||[],t.total=t.detail.class_list.total)})},createInviteLink:function(t){this.chooseGoodDialogObj.show=!0,0==this.detail.type?this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id:1==this.detail.type?this.chooseGoodDialogObj.code="CC-XXMM-"+t.user_id:this.chooseGoodDialogObj.code="CC-TEACHER-"+t.user_id},changeShow:function(){this.chooseGoodDialogObj.show=!1,this.chooseGoodDialogObj.code=""},getOrderList:function(){var t=this,e={limit:this.orderListObj.limit,page:this.orderListObj.nowPage};this.form.nickname&&(e.nickname=this.form.nickname),this.form.user_id&&(e.user_id=this.form.user_id),this.form.status&&(e.status=this.form.status.toString()),this.form.goods_id&&(e.goods_id=this.form.goods_id),this.form.receive_mobile&&(e.receive_mobile=this.form.receive_mobile),this.form.out_trade_no&&(e.out_trade_no=this.form.out_trade_no),this.form.mobile&&(e.mobile=this.form.mobile),0!==this.detail.user_id&&(e.invite_id=this.detail.user_id,Object(i._47)(e).then(function(e){e.list.forEach(function(t){t.refundList=[]}),t.tableData=e.list,t.orderListObj.total=e.total}))},getGoodsOption:function(){var t=this;Object(i._37)({page:1,limit:100,course_type:0}).then(function(e){t.goodList=e.list})},editComment:function(t,e){var a=this;this.$prompt("","编辑备注",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"textarea",inputValue:e||""}).then(function(e){var s=e.value;a.$confirm("确定保存?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(i._4)(t,"order",{desc:s}).then(function(t){a.$message({type:"success",message:"编辑备注成功"}),a.getOrderList()})})})},showRef:function(t){this.refundDetail.show=!0,this.refundDetail.out_trade_no=t.out_trade_no},showCoupon:function(t){this.couponDetail.show=!0,this.couponDetail.order_coupon_id=t.order_coupon_id},showSource:function(t){this.sourceDialog.show=!0,this.sourceDialog.out_trade_no=t.out_trade_no}},filters:{teacherType:function(t){return s.u[t]},percent:function(t){return(100*t).toFixed(2)+"%"},status:function(t){return s.p[t]},moneytFilter:function(t){return t/100+"元"},filterGoods:function(t){return"["+s.g[t.goods_type]+"]["+t.current_price/100+"元]"+t.name}},mounted:function(){this.id=this.parentDetail?this.parentDetail.id:this.$route.params.id;var t=localStorage.getItem("phoneNum");t&&(t=JSON.parse(t),this.id=t.id),this.getTask4(),this.getTeacherDetail(),this.getGoodsOption()},watch:{tabs:function(t){"order"===t&&this.getOrderList()}}},$={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"teacher"},[a("div",{staticClass:"header"},[a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[a("label",[t._v(t._s(t._f("teacherType")(t.detail.type))+":")]),t._v(" "+t._s(t.detail.name)+"(T"+t._s(t.detail.squad)+")\n ")]),t._v(" "),t.$store.state.readonly?t._e():a("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"success",plain:""},on:{click:function(e){t.onAddUser(!0)}}},[t._v("老师绑定用户")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.qr,target:"_blank"}},[a("img",{attrs:{src:t.detail.qr}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.alias)+"\n "),a("br"),t._v(" "),a("label",[t._v("带班总人数:")]),t._v(t._s(t.detail.total_join_num)+"\n "),a("br"),t._v(" "),a("label",[t._v("老师状态:")]),t._v(t._s(0===t.detail.status?"正常":"禁用")+"\n ")])])]),t._v(" "),t.detail.user_info?a("el-card",{staticStyle:{width:"450px",display:"inline-block","margin-right":"10px"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("绑定用户")]),t._v(" "),a("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(e){t.createInviteLink(t.detail.user_info)}}},[t._v("\n 复制专属链接\n ")])],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("a",{attrs:{href:t.detail.user_info.avatar,target:"_blank"}},[a("img",{staticClass:"avatar",attrs:{src:t.detail.user_info.avatar}})])]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("微信号:")]),t._v(" "+t._s(t.detail.user_info.nickname)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("用户ID:")]),t._v(" "+t._s(t.detail.user_info.user_id)+"\n ")])])]):t._e(),t._v(" "),t.task4Data?a("el-card",{staticStyle:{width:"320px",display:"inline-block"}},[a("div",{attrs:{slot:"header"},slot:"header"},[a("span",[t._v("当月销售转化率【"+t._s(t.nowDate)+"】")])]),t._v(" "),a("div",{staticClass:"text item"},[a("el-progress",{staticStyle:{float:"left","margin-right":"10px"},attrs:{type:"circle",percentage:Number(t.task4Data.trans_rate.split("%")[0])}})],1),t._v(" "),a("div",{staticClass:"card-content"},[a("div",{staticClass:"text item"},[a("label",[t._v("当月带班人数:")]),t._v(" "+t._s(t.task4Data.total_user_num)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("当月购课人数:")]),t._v(" "+t._s(t.task4Data.total_sale_num)+"\n ")]),t._v(" "),a("div",{staticClass:"text item"},[a("label",[t._v("当月累计业绩:")]),t._v(" "+t._s(t.task4Data.total_money)+"\n ")])])]):t._e()],1),t._v(" "),a("el-tabs",{attrs:{type:"border-card"},model:{value:t.tabs,callback:function(e){t.tabs=e},expression:"tabs"}},[a("el-tab-pane",{attrs:{label:"今日任务",name:"task"}},[a("task",{attrs:{parentDetail:t.parentDetail}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"期数列表",name:"periods"}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list},on:{"expand-change":t.changeRow}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-table",{staticStyle:{width:"100%"},attrs:{data:[e.row]}},[a("el-table-column",{attrs:{label:"到课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.arrive_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"看课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.watch_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"完课率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_course_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤作业率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_work_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"全勤打卡率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.over_clock_rate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"转化率"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("percent")(e.row.transform_rate)))])]}}])})],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"class_name",label:"班级名称"}}),t._v(" "),a("el-table-column",{attrs:{prop:"join_num",label:"已进班人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"need_add_teacher_num",label:"需加好友数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"max_join_num",label:"最大班级人数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_at",label:"开课时间"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作",width:"280"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{size:"mini",plain:"",type:"primary"},on:{click:function(a){t.showUser(e.row)}}},[t._v("\n 班级成员\n ")])]}}])})],1),t._v(" "),a("page",{attrs:{total:t.total,limit:t.limit},on:{pageChange:t.onPageChange,sizeChange:t.onSizeChange}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"订单列表",name:"order"}},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px",inline:""}},[a("el-form-item",{attrs:{label:"用户ID"}},[a("el-input",{model:{value:t.form.user_id,callback:function(e){t.$set(t.form,"user_id",e)},expression:"form.user_id"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户昵称"}},[a("el-input",{model:{value:t.form.nickname,callback:function(e){t.$set(t.form,"nickname",e)},expression:"form.nickname"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"用户手机号"}},[a("el-input",{model:{value:t.form.mobile,callback:function(e){t.$set(t.form,"mobile",e)},expression:"form.mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"收件人手机号"}},[a("el-input",{model:{value:t.form.receive_mobile,callback:function(e){t.$set(t.form,"receive_mobile",e)},expression:"form.receive_mobile"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商品名称"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.goods_id,callback:function(e){t.$set(t.form,"goods_id",e)},expression:"form.goods_id"}},t._l(t.goodList,function(e,i){return a("el-option",{key:i,attrs:{label:t._f("filterGoods")(e),value:e.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"订单状态"}},[a("el-select",{attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:t.getOrderList},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.orderStatusOption,function(t){return a("el-option",{key:t.id,attrs:{label:t.value,value:t.id}})}))],1),t._v(" "),a("el-form-item",{attrs:{label:"交易订单号"}},[a("el-input",{model:{value:t.form.out_trade_no,callback:function(e){t.$set(t.form,"out_trade_no",e)},expression:"form.out_trade_no"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.getOrderList}},[t._v("搜索")])],1)],1),t._v(" "),a("el-table",{staticClass:"order_list",staticStyle:{width:"100%"},attrs:{data:t.tableData,fixed:""}},[a("el-table-column",{attrs:{prop:"out_trade_no",label:"订单号"}}),t._v(" "),a("el-table-column",{attrs:{label:"购买人",className:"f-c",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticClass:"avatar",attrs:{src:e.row.user_avatar}}),t._v(" "+t._s(e.row.user_nickname)),a("br"),t._v("(ID:"+t._s(e.row.user_id)+")"),a("br"),t._v("手机:"+t._s(e.row.user_mobile)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"periods_title",label:"期数标题"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods_name",label:"商品名称"}}),t._v(" "),a("el-table-column",{attrs:{width:"250",prop:"invite_id",className:"f-c",label:"推广人"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.invite_earnings>0&&0!==e.row.invite_id?a("div",{staticStyle:{width:"100%",display:"flex",color:"#409eff",cursor:"pointer"},on:{click:function(a){t.showSource(e.row)}}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_earnings&&0!==e.row.invite_id?a("div",{staticStyle:{display:"flex"}},[a("img",{staticClass:"avatar",attrs:{src:e.row.invite_avatar}}),t._v("\n 类型:"+t._s(e.row.invite_type)+" ("+t._s(e.row.invite_name)+")\n "),a("br"),t._v("\n 收益:"+t._s(e.row.invite_earnings/100)+"\n "),a("br"),t._v("\n 用户ID:"+t._s(e.row.invite_id)+"\n "),a("br"),t._v("\n 昵称:"+t._s(e.row.invite_nickname)+"\n "),a("br"),t._v("\n 手机:"+t._s(e.row.invite_mobile)+"\n ")]):t._e(),t._v(" "),0===e.row.invite_id?a("div",[t._v("\n\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"优惠活动"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.order_coupon_id?a("span",[t._v("\n\n ")]):t._e(),t._v(" "),0!==e.row.order_coupon_id?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showCoupon(e.row)}}},[t._v("\n 优惠券\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"付款状态",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[5===e.row.status||3===e.row.status?a("el-button",{attrs:{type:"text"},on:{click:function(a){t.showRef(e.row)}}},[t._v(t._s(t._f("status")(e.row.status)))]):t._e(),t._v(" "),5!==e.row.status&&3!==e.row.status?a("div",[t._v(t._s(t._f("status")(e.row.status)))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"实付金额",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("moneytFilter")(e.row.money))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"收货地址"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.user_address_id&&e.row.address_info?a("div",[t._v("\n "+t._s(e.row.address_info.receive_name)),a("br"),t._v("\n "+t._s(e.row.address_info.receive_mobile)),a("br"),t._v("\n "+t._s(e.row.address_info.province_name)+t._s(e.row.address_info.city)+t._s(e.row.address_info.area)+t._s(e.row.address_info.address)+"\n ")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_at",label:"购买时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"下单时间",sortable:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"desc",label:"备注"}}),t._v(" "),t.$store.state.readonly?t._e():a("el-table-column",{attrs:{width:"50",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"200"}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{attrs:{type:"info",plain:"",size:"mini"},on:{click:function(a){t.editComment(e.row.id,e.row.desc)}}},[t._v("\n 编辑备注\n ")])],1),t._v(" "),a("el-button",{attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[t._v("操作")])],1)]}}])})],1),t._v(" "),a("page",{attrs:{total:t.orderListObj.total,limit:t.orderListObj.limit},on:{pageChange:t.onPageChange2,sizeChange:t.onSizeChange2}})],1)],1),t._v(" "),a("source-dialog",{attrs:{dialogObj:t.sourceDialog}}),t._v(" "),a("refund-detail",{attrs:{dialogObj:t.refundDetail}}),t._v(" "),a("coupon-dialog",{attrs:{dialogObj:t.couponDetail}}),t._v(" "),a("user-list",{attrs:{userObj:t.userObj},on:{reflash:t.getTeacherDetail}}),t._v(" "),a("choose-good-dialog",{attrs:{dialogObj:t.chooseGoodDialogObj},on:{changeShow:t.changeShow}}),t._v(" "),a("el-dialog",{attrs:{"append-to-body":"",visible:t.addShow},on:{"update:visible":function(e){t.addShow=e}}},[a("el-form",{attrs:{"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"ID"}},[a("el-input",{model:{value:t.searchFrom.userId,callback:function(e){t.$set(t.searchFrom,"userId",e)},expression:"searchFrom.userId"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"昵称"}},[a("el-input",{model:{value:t.searchFrom.nickName,callback:function(e){t.$set(t.searchFrom,"nickName",e)},expression:"searchFrom.nickName"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"电话"}},[a("el-input",{model:{value:t.searchFrom.mobile,callback:function(e){t.$set(t.searchFrom,"mobile",e)},expression:"searchFrom.mobile"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:8,offset:16}},[a("el-form-item",[a("el-button",{staticStyle:{float:"right"},attrs:{type:"primary",plain:""},on:{click:t.getUser}},[t._v("搜索")])],1)],1)],1)],1),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.userList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),a("el-table-column",{attrs:{className:"f-c",label:"用户"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("img",{staticStyle:{"margin-right":"5px",width:"50px",height:"50px","border-radius":"50px"},attrs:{src:e.row.avatar}}),t._v(t._s(e.row.nickname)+"(ID:"+t._s(e.row.user_id)+")\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mobile",label:"手机号"}})],1),t._v(" "),a("page",{attrs:{total:t.userObj.total,limit:t.userObj.limit},on:{pageChange:t.onPageChange3,sizeChange:t.onSizeChange3}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.addShow=!1}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onAdd}},[t._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var z=a("VU/8")(L,$,!1,function(t){a("KJ7d"),a("f2ga")},"data-v-5016a5fa",null);e.default=z.exports},qteX:function(t,e){},zhnS:function(t,e){}});
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var d,t,o,i=0,u=[];i<c.length;i++)t=c[i],a[t]&&u.push(a[t][0]),a[t]=0;for(d in n)Object.prototype.hasOwnProperty.call(n,d)&&(e[d]=n[d]);for(f&&f(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=b(b.s=r[i]);return o};var c={},a={54:0};function b(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,b),a.l=!0,a.exports}b.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,b){f=a[e]=[c,b]});f[2]=c;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,b.nc&&r.setAttribute("nonce",b.nc),r.src=b.p+"static/js/"+e+"."+{0:"3c6a9466f6322812bb29",1:"70bc42dbc1ffaed57988",2:"8d64c4f32108e29e828a",3:"8581483796db28fb1e83",4:"f9b1c86fb172be37a9ec",5:"0770f442fbcafb9fbb6b",6:"72cc992f463f8d040b6b",7:"06e4c19733dffde6057a",8:"ed8ef396b51f943534c5",9:"95a10d5f8ad39ee47e8a",10:"901693097383eee4bb36",11:"f5785a1ae295125740f3",12:"8b62f9b9a60d674eac10",13:"19e3e554d1402ec008f9",14:"8c6f084e6255fbeded32",15:"7360d785ee332f5a4bb8",16:"377ce2b3eca0c3a88598",17:"ff8ef6eecfc24eaead59",18:"524fb6b2da79f077570f",19:"aaff5cb99e110a714ee1",20:"f45c5a602b2535d93d24",21:"3f9f11c97fb1e1427b87",22:"bb30e982e20decdf5597",23:"c594ea4a37322f8c7840",24:"ed17cab90908135eaffa",25:"fd6fb9d57686c26eb406",26:"ce23bfb9282a66c186c4",27:"bbf8405accf1afcd5be3",28:"c9bbffb9c2a6b58702da",29:"ac117b295bb4de6f3a14",30:"e9270346ac5a37b40765",31:"89ee2c867b096e88eecb",32:"18bd09ea1758c434e68b",33:"207f09ca5117a438027d",34:"3f43f058bf9441d0d79f",35:"37496d6823ff5bb7139f",36:"9da1921ac78c17085d92",37:"a9288b9ae1825f0a2aef",38:"b15e9a6506cc91cb36b7",39:"6dbe195c28187681cf8d",40:"0a7bd580c27c12e2babf",41:"43efb089718547897e5a",42:"f932e4cf13c0ebde02f0",43:"cb3aaae7ea0ea31fe041",44:"820b288e99876613dbbe",45:"093e400e86b53f46d09a",46:"d724b95e520c7e948730",47:"76f0d426db5ba9283455",48:"b163cd5e2750e3f00800",49:"fd79c4e277dbe5de3809",50:"1d6101cb1433a7f1e23a",51:"5bdb0d5bedd939cc3016"}[e]+".js";var d=setTimeout(t,12e4);function t(){r.onerror=r.onload=null,clearTimeout(d);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=t,n.appendChild(r),c},b.m=e,b.c=c,b.d=function(e,f,c){b.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(f,"a",f),f},b.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},b.p="/",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -215,9 +215,8 @@ ...@@ -215,9 +215,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-popover <el-popover
placement="top" placement="top"
width="400"> width="200">
<div style="text-align: center"> <div style="text-align: center">
<el-button type="primary" size="mini" plain @click="onGetUserDescList(scope.row)" >沟通情况</el-button>
<el-button type="primary" size="mini" plain @click="userLook(scope.row)">看课情况</el-button> <el-button type="primary" size="mini" plain @click="userLook(scope.row)">看课情况</el-button>
<el-button type="danger" size="mini" plain @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button> <el-button type="danger" size="mini" plain @click="onDel(scope.row)" v-if="$store.state.deletePermission && !$store.state.readonly">删除</el-button>
</div> </div>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
{{ row.desc }} {{ row.desc }}
</span> </span>
<span style='color:red' v-if="row.desc === '' && !typeFlag">今日未沟通</span> <span style='color:red' v-if="row.desc === '' && !typeFlag">今日未沟通</span>
<span style='color:red' v-if="row.desc === '' && typeFlag">暂未沟通</span>
</el-button> </el-button>
</div> </div>
<el-button size="mini" @click="editComment(row.id)"> <el-button size="mini" @click="editComment(row.id)">
......
...@@ -23,6 +23,14 @@ ...@@ -23,6 +23,14 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="任务日期">
<el-date-picker
v-model="searchFrom.task_date"
value-format="yyyy-MM-dd"
type="date"
placeholder="选择日期">
</el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" plain @click="getUser">搜索</el-button> <el-button type="primary" plain @click="getUser">搜索</el-button>
</el-form-item> </el-form-item>
...@@ -61,7 +69,7 @@ ...@@ -61,7 +69,7 @@
<el-table-column <el-table-column
prop="name" prop="name"
label="添加好友"> label="添加好友">
<template slot-scope="scope"> <template slot-scope="scope">
成功率:<el-progress 成功率:<el-progress
style="display: inline-block;width: 120px" style="display: inline-block;width: 120px"
...@@ -103,7 +111,7 @@ ...@@ -103,7 +111,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="当期意向"> label="意向标记">
<template slot-scope="scope"> <template slot-scope="scope">
回复率:<el-progress 回复率:<el-progress
style="display: inline-block;width: 120px" style="display: inline-block;width: 120px"
...@@ -122,31 +130,9 @@ ...@@ -122,31 +130,9 @@
</el-progress> </el-progress>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="name"
label="往期意向">
<template slot-scope="scope">
回复率:<el-progress
style="display: inline-block;width: 120px"
:text-inside="true"
:stroke-width="18"
:color="Number(scope.row.past_reply_rate)===100 ? '#67C23A' : '#f00'"
:percentage="Number(scope.row.past_reply_rate)?Number(scope.row.past_reply_rate) :0">
</el-progress>
<br>
处理率:<el-progress
style="display: inline-block;width: 120px"
:text-inside="true"
:stroke-width="18"
:color="Number(scope.row.past_exec_rate)===100 ? '#67C23A' : '#f00'"
:percentage="Number(scope.row.past_exec_rate)?Number(scope.row.past_exec_rate):0">
</el-progress>
</template>
</el-table-column>
<el-table-column <el-table-column
prop="intention_num" prop="intention_num"
label="当前意向用户数"> label="意向用户数">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="280" width="280"
...@@ -184,11 +170,13 @@ ...@@ -184,11 +170,13 @@
export default { export default {
name: "index", name: "index",
data(){ data(){
let nowDate = this.formatTime(new Date());
return { return {
searchFrom:{ searchFrom:{
name:'', name:'',
alias:"", alias:"",
status:'0', status:'0',
task_date:nowDate,
squad:"1", squad:"1",
type:"", type:"",
}, },
...@@ -199,7 +187,7 @@ ...@@ -199,7 +187,7 @@
userList:[], userList:[],
total:0, total:0,
nowPage:1, nowPage:1,
limit: 10, limit: 20,
dialogObj:{ dialogObj:{
type:0, type:0,
show:false, show:false,
...@@ -234,9 +222,9 @@ ...@@ -234,9 +222,9 @@
} }
}, },
mounted(){ mounted(){
let data= localStorage.getItem("phoneNum") let data= localStorage.getItem("phoneNum");
if(data){ if(data){
data=JSON.parse(data) data=JSON.parse(data);
this.$router.push('/teacher/'+ data.id); this.$router.push('/teacher/'+ data.id);
}else{ }else{
this.getUser() this.getUser()
...@@ -244,9 +232,19 @@ ...@@ -244,9 +232,19 @@
}, },
methods:{ methods:{
onPageChange(val){ onPageChange(val){
this.nowPage = val this.nowPage = val;
this.getUser() this.getUser()
}, },
formatTime(date){
let year = date.getFullYear();
let Month = date.getMonth()+1;
if(Month < 10){
Month = `0${Month}`
}
let Day = date.getDate();
if(Day<10)Day = `0${Day}`;
return `${year}-${Month}-${Day}`;
},
onSizeChange(val){ onSizeChange(val){
this.limit = val this.limit = val
this.nowPage = 1; this.nowPage = 1;
...@@ -269,6 +267,9 @@ ...@@ -269,6 +267,9 @@
if (this.searchFrom.alias) { if (this.searchFrom.alias) {
json.alias = this.searchFrom.alias json.alias = this.searchFrom.alias
} }
if (this.searchFrom.task_date){
json.task_date = this.searchFrom.task_date
}
if (this.searchFrom.squad) { if (this.searchFrom.squad) {
json.squad = this.searchFrom.squad json.squad = this.searchFrom.squad
} }
......
<template> <template>
<div style="font-size: 14px"> <div style="font-size: 14px">
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="16"> <el-col :span="24">
<task1 :teacherId="id"></task1> <task1 :teacherId="id"></task1>
</el-col> </el-col>
<el-col :span="8">
<task2 :teacherId="id"></task2>
</el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: 20px"> <el-row :gutter="20" style="margin-top: 20px">
<el-col :span="24"> <el-col :span="24">
<el-card> <el-card>
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>任务3:用户召回</span> <span>任务2:用户召回</span>
</div> </div>
<div v-if="!task3List || task3List.length < 1" style="color: #DDDDDD;text-align: center"> <div v-if="!task3List || task3List.length < 1" style="color: #DDDDDD;text-align: center">
——暂无数据—— ——暂无数据——
...@@ -98,7 +95,7 @@ ...@@ -98,7 +95,7 @@
<el-col :span="24"> <el-col :span="24">
<el-card> <el-card>
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>任务4:意向用户标记</span> <span>任务3:意向用户标记</span>
</div> </div>
<div>本期意向用户:</div> <div>本期意向用户:</div>
<div v-if="!task3List || task3List.length < 1" style="color: #DDDDDD;text-align: center"> <div v-if="!task3List || task3List.length < 1" style="color: #DDDDDD;text-align: center">
...@@ -175,6 +172,11 @@ ...@@ -175,6 +172,11 @@
</el-card> </el-card>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: 20px">
<el-col :span="12">
<task2 :teacherId="id"></task2>
</el-col>
</el-row>
<el-dialog append-to-body :visible.sync="task3Detail.show" width="80%" :title="task3Detail.title" > <el-dialog append-to-body :visible.sync="task3Detail.show" width="80%" :title="task3Detail.title" >
<el-table <el-table
:data="task3Detail.list" :data="task3Detail.list"
...@@ -194,6 +196,16 @@ ...@@ -194,6 +196,16 @@
<teacher-desc :row="scope.row" :descType="2" @onSuccess="refDesc3"></teacher-desc> <teacher-desc :row="scope.row" :descType="2" @onSuccess="refDesc3"></teacher-desc>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
label="用户反馈">
<template slot-scope="scope">
<span v-if="scope.row.is_reply">
<span v-if="scope.row.reply_content">{{scope.row.reply_content}}</span>
<span v-if="!scope.row.reply_content || scope.row.reply_content === ''">无内容</span>
</span>
<span v-if="!scope.row.is_reply" style="color: red">尚未回复</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="进班时间" min-width="200" sortable prop="created_at" > label="进班时间" min-width="200" sortable prop="created_at" >
</el-table-column> </el-table-column>
...@@ -763,6 +775,7 @@ ...@@ -763,6 +775,7 @@
.task3-table{ .task3-table{
padding: 10px; padding: 10px;
overflow: auto; overflow: auto;
display: inline-block;
.table{ .table{
&:after{ &:after{
content:''; content:'';
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<el-card class="box-card"> <el-card class="box-card">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>任务2:意向用户转化</span> <span>任务4:意向用户转化</span>
</div> </div>
<el-table border :data="task2List" align="center" :header-cell-style="{background:'#e4eff7'}"> <el-table border :data="task2List" align="center" :header-cell-style="{background:'#e4eff7'}">
<el-table-column prop="weight" label="意向等级" align="center"/> <el-table-column prop="weight" label="意向等级" align="center"/>
......
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