|
|
|
@ -38,19 +38,23 @@ class Signinstatistics extends Component {
|
|
|
|
|
if(response.data.history_attendances.length>0){
|
|
|
|
|
response.data.history_attendances.map((item,key)=>{
|
|
|
|
|
newlists.push({
|
|
|
|
|
month: item.index,
|
|
|
|
|
// month: item.index,
|
|
|
|
|
// month: item.name+" "+item.attendance_date+" "+item.start_time+"-"+item.end_time,
|
|
|
|
|
month:item.name,
|
|
|
|
|
city:"到课率",
|
|
|
|
|
temperature: (item.normal_rate).toFixed(0)
|
|
|
|
|
temperature: (item.normal_rate*100).toFixed(0)
|
|
|
|
|
})
|
|
|
|
|
newlists.push({
|
|
|
|
|
month: item.index,
|
|
|
|
|
//month: item.index,
|
|
|
|
|
month:item.name,
|
|
|
|
|
city: "旷课率",
|
|
|
|
|
temperature: (item.absence_rate).toFixed(0)
|
|
|
|
|
temperature: (item.absence_rate*100).toFixed(0)
|
|
|
|
|
})
|
|
|
|
|
newlists.push({
|
|
|
|
|
month: item.index,
|
|
|
|
|
//month: item.index,
|
|
|
|
|
month:item.name,
|
|
|
|
|
city: "请假率",
|
|
|
|
|
temperature: (item.leave_rate).toFixed(0)
|
|
|
|
|
temperature: (item.leave_rate*100).toFixed(0)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -101,8 +105,9 @@ class Signinstatistics extends Component {
|
|
|
|
|
let {datas,newlist,course_groups,spal}=this.state;
|
|
|
|
|
|
|
|
|
|
const cols = {
|
|
|
|
|
month: {
|
|
|
|
|
range: [0, 1]
|
|
|
|
|
temperature: {
|
|
|
|
|
type: 'log',
|
|
|
|
|
base: 10
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|