webpackJsonp([47],{"3v57":function(t,e,n){var a=n("OlqX");"string"==typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);n("rjj0")("5ce04b49",a,!1,{})},OlqX:function(t,e,n){(t.exports=n("FZ+f")(!0)).push([t.i,"\n[data-v-36189ea5] .el-table--enable-row-hover .el-table__body tr:hover > td {\n  background-color: #fff;\n}\n[data-v-36189ea5] .el-table .warning-row {\n  background: oldlace;\n}\n[data-v-36189ea5] .el-progress-bar__inner {\n  max-width: 100% !important;\n}\n.el-main .content .router-block .child-view[data-v-36189ea5] {\n  height: 100vh;\n}\n","",{version:3,sources:["C:/Users/Administrator/Desktop/后台/admin/src/components/marketStatistics/index.vue"],names:[],mappings:";AACA;EACE,uBAAuB;CACxB;AACD;EACE,oBAAoB;CACrB;AACD;EACE,2BAA2B;CAC5B;AACD;EACE,cAAc;CACf",file:"index.vue",sourcesContent:["\n[data-v-36189ea5] .el-table--enable-row-hover .el-table__body tr:hover > td {\n  background-color: #fff;\n}\n[data-v-36189ea5] .el-table .warning-row {\n  background: oldlace;\n}\n[data-v-36189ea5] .el-progress-bar__inner {\n  max-width: 100% !important;\n}\n.el-main .content .router-block .child-view[data-v-36189ea5] {\n  height: 100vh;\n}\n"],sourceRoot:""}])},SKyX:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=n("CCn6"),r={name:"index",data:function(){return{list:[],dateList:[],propertyList:["title","start_at","total_join_num","total_max_join_num","total_target_join_num","complete_rate","target_diff","wait_join_num","other_wait_join_num"]}},methods:{initPage:function(){var t=this;Object(a._55)().then(function(e){t.list=e,e[0].date&&e[0].date.forEach(function(e){t.dateList.push(e.pay_date)})})},tableRowClassName:function(t){t.row;return 0===t.rowIndex?"warning-row":""},arraySpanMethod:function(t){if(this.propertyList.indexOf(t.column.property)>-1){if(0===t.rowIndex||t.row.id!==this.list[t.rowIndex-1].id){for(var e=1,n=t.rowIndex+1;n<this.list.length&&t.row.id===this.list[n].id;n++)e++;return{rowspan:e,colspan:1}}return{rowspan:0,colspan:0}}return{rowspan:1,colspan:1}}},created:function(){this.initPage()}},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{attrs:{border:"",align:"center","header-cell-style":{background:"#5f5f5f",color:"#fff"},data:t.list,height:"calc(100vh - 60px)",size:"mini","row-class-name":t.tableRowClassName,"span-method":t.arraySpanMethod}},[n("el-table-column",{attrs:{"min-width":"180",prop:"wait_join_num",align:"left",fixed:"left",label:"期数总状况"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n        期数名称："+t._s(e.row.title)+"\n        "),n("br"),t._v("\n        开始时间："+t._s(e.row.start_at)+"\n        "),n("br"),t._v("\n        团购待进班人数："+t._s(e.row.wait_join_num)+"\n        "),n("br"),t._v("\n        外部订单待进班人数："+t._s(e.row.other_wait_join_num)+"\n        "),n("br"),t._v("\n        总进班人数："+t._s(e.row.total_join_num)+"\n        "),n("br"),t._v("\n        需求供量："+t._s(e.row.total_max_join_num)+"\n        "),n("br"),t._v("\n        目标差距："+t._s(e.row.target_diff<0?"超标"+-1*e.row.target_diff:e.row.target_diff)+"个\n        "),n("br"),t._v("\n        完成率："),n("el-progress",{staticStyle:{display:"inline-block",width:"calc(90% - 50px)"},attrs:{"text-inside":!0,"stroke-width":16,status:e.row.complete_rate>=1?"exception":"success",percentage:1e3*e.row.complete_rate/10}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"class_name",align:"center","min-width":"80",fixed:"left",label:"班级名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n        "+t._s("合计"===e.row.title?"合计":e.row.class_name)+"\n      ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"max_join_num","min-width":"60",align:"center",label:"预计加入人数"}}),t._v(" "),n("el-table-column",{attrs:{prop:"join_num","min-width":"60",align:"center",label:"已进班人数"}}),t._v(" "),n("el-table-column",{attrs:{prop:"other_allot_num",align:"center","min-width":"60",label:"外部订单已分配人数"}}),t._v(" "),t._l(t.dateList,function(e,a){return n("el-table-column",{key:a,attrs:{align:"center",label:e}},[n("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"系统招生量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.date[a].total_buy_num)+"\n        ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center","min-width":"60px",prop:"wait_join_num",label:"外部订单招生量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.date[a].total_other_buy_num)+"\n        ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center","min-width":"60px",label:"进班量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n          "+t._s(e.row.date[a].total_into_num)+"\n        ")]}}])})],1)})],2)],1)};o._withStripped=!0;var i={render:o,staticRenderFns:[]},l=i;var s=!1;var _=n("VU/8")(r,l,!1,function(t){s||n("3v57")},"data-v-36189ea5",null);_.options.__file="src\\components\\marketStatistics\\index.vue";e.default=_.exports}});