| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 
 | randerProp:[
 {
 prop: 'month',
 label: '日期'
 },
 {
 prop: 'district',
 label: '区域'
 },
 {
 prop: 'starLevel',
 label: '星级'
 },
 {
 prop: 'maturity',
 label: '校区成熟属性'
 },
 {
 prop: 'teacherName',
 label: '班主任'
 },
 { prop: 'validStudentLast', label: '上月活跃人数' },
 { prop: 'newStudent', label: '本月新生人数' },
 { prop: 'leaveStudent', label: '本月CR流失人数', width: 135 },
 { prop: 'validStudent', label: '本月活跃人数' },
 { prop: 'courseNum', label: '续费科目数' },
 { prop: 'studentNum', label: '续费人次数' },
 { prop: 'validCourseLast', label: '上月活跃科目数', width: 116 },
 { prop: 'validCourse', label: '本月活跃科目' },
 { prop: 'addSubject', label: '扩科数' },
 { prop: 'addSubjectRate', label: '扩科续科率', filter: 'rate' },
 { prop: 'validCourseAvg', label: '活跃人均科目数', width: 116 },
 { prop: 'referralPeopleNum', label: '转介绍人次数' },
 { prop: 'deposit', label: '定金' },
 { prop: 'signNum', label: '签单数' },
 { prop: 'inPerformance', label: '业绩' },
 { prop: 'outPerformance', label: '退费' },
 { prop: 'performance', label: '净业绩' }
 ],
 renderData: [
 {
 addSubject: 0.0,
 addSubjectRate: 0.0,
 courseNum: 0.0,
 deposit: 0.0,
 inPerformance: 8660.0,
 leaveStudent: 0.0,
 maturity: '成熟校区',
 month: '2019-01-01',
 newStudent: 0.0,
 outPerformance: 0.0,
 performance: 8660.0,
 referralPeopleNum: 0.0,
 signNum: 1.0,
 starLevel: '五星校区',
 studentNum: 1.0,
 teacherName: '小二',
 validCourse: 0.0,
 validCourseAvg: 0.0,
 validCourseLast: 0.0,
 validStudent: 0.0,
 validStudentLast: 0.0
 },
 {
 addSubject: 0.0,
 addSubjectRate: 0.0,
 courseNum: 0.0,
 deposit: 0.0,
 inPerformance: 0.0,
 leaveStudent: 0.0,
 maturity: '成熟校区',
 month: '2019-01-01',
 newStudent: 0.0,
 outPerformance: 0.0,
 performance: 0.0,
 referralPeopleNum: 0.0,
 signNum: 0.0,
 starLevel: '五星校区',
 studentNum: 0.0,
 teacherName: '王五',
 validCourse: 0.0,
 validCourseAvg: 0.0,
 validCourseLast: 0.0,
 validStudent: 0.0,
 validStudentLast: 0.0
 },
 {
 addSubject: 0.0,
 addSubjectRate: 0.0,
 courseNum: 0.0,
 deposit: 0.0,
 inPerformance: 0.0,
 leaveStudent: 15.0,
 maturity: '成熟校区',
 month: '2019-01-01',
 newStudent: 0.0,
 outPerformance: 0.0,
 performance: 0.0,
 referralPeopleNum: 1.0,
 signNum: 0.0,
 starLevel: '五星校区',
 studentNum: 0.0,
 teacherName: '张三',
 validCourse: -30.0,
 validCourseAvg: 2.0,
 validCourseLast: 0.0,
 validStudent: -15.0,
 validStudentLast: 0.0
 },
 {
 addSubject: 0.0,
 addSubjectRate: 0.0,
 courseNum: 0.0,
 deposit: 0.0,
 inPerformance: 15470.0,
 leaveStudent: 15.0,
 maturity: '成熟校区',
 month: '2019-01-01',
 newStudent: 0.0,
 outPerformance: 0.0,
 performance: 15470.0,
 referralPeopleNum: 1.0,
 signNum: 1.0,
 starLevel: '五星校区',
 studentNum: 1.0,
 teacherName: '陈四',
 validCourse: -60.0,
 validCourseAvg: 4.0,
 validCourseLast: 0.0,
 validStudent: -15.0,
 validStudentLast: 0.0
 },
 
 ]
 
 render(){
 return (
 <el-table data={this.renderData}>
 {this.randerProp.map(item=>{
 if(item.prop == 'teacherName'){
 return <el-table-column prop={item.prop} label={item.label} header-align="center" align="center" {...{scopedSlots:{
 default:(props)=>{
 if( props.row.teacherName == '陈四'){
 return h('el-button', {props:{type:'primary'}}, ['按钮'])
 } else {
 return props.row.teacherName
 }
 }
 }}}></el-table-column>
 } else {
 return <el-table-column prop={item.prop} label={item.label} show-overflow-tooltip header-align="center" align="center" ></el-table-column>
 }
 })}
 </el-table>
 )
 }
 
 |