@ -12,6 +12,7 @@
< / div >
< / div >
< a -tabs default -active -key = " 1 " class = "tab-style" @change ="handleTabsChange" >
< a -tabs default -active -key = " 1 " class = "tab-style" @change ="handleTabsChange" >
< a -tab -pane key = "1" tab = "行政班概况" >
< a -tab -pane key = "1" tab = "行政班概况" >
< div v-if ="getData" >
< div style = "height:3rem;overflow: hidden" >
< div style = "height:3rem;overflow: hidden" >
< img src = "./image/u5561.svg" class = "img-style" @click ="administrativeImgClick('table')" / >
< img src = "./image/u5561.svg" class = "img-style" @click ="administrativeImgClick('table')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="administrativeImgClick('pie')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="administrativeImgClick('pie')" / >
@ -34,8 +35,11 @@
< a -table v -if = " administrativeTable " style = "min-height: 10rem;margin-bottom:2rem" :columns ="columns" :data-source ="tableData" size = "small" :pagination ="false" rowKey = 'class_id' >
< a -table v -if = " administrativeTable " style = "min-height: 10rem;margin-bottom:2rem" :columns ="columns" :data-source ="tableData" size = "small" :pagination ="false" rowKey = 'class_id' >
< / a - t a b l e >
< / a - t a b l e >
< / div >
< / div >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< / a - t a b - p a n e >
< a -tab -pane key = "2" tab = "教学班概况" >
< a -tab -pane key = "2" tab = "教学班概况" >
< div v-if ="getData" >
< div class = "class-style" >
< div class = "class-style" >
< div class = "block-style" :style ="{background:index===type?'#00A4FF':'#C6D7F2'}" v-for ="(item,type) in this.administrativeClass" :key="item.subject_id" @click="handleCardClick(item.subject_id,type)" >
< div class = "block-style" :style ="{background:index===type?'#00A4FF':'#C6D7F2'}" v-for ="(item,type) in this.administrativeClass" :key="item.subject_id" @click="handleCardClick(item.subject_id,type)" >
< img :src ="require('./image/'+item.imgsrc+'.svg')" style = "margin-bottom: .4rem" / >
< img :src ="require('./image/'+item.imgsrc+'.svg')" style = "margin-bottom: .4rem" / >
@ -64,9 +68,11 @@
< / tr >
< / tr >
< / tbody >
< / tbody >
< / table >
< / table >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< / a - t a b - p a n e >
< a -tab -pane key = "3" tab = "走班概况" >
< a -tab -pane key = "3" tab = "走班概况" >
< div class = "goClass" >
< div v-if ="getData" class="goClass" >
< div class = "left-con" >
< div class = "left-con" >
< div style = "height:370px" >
< div style = "height:370px" >
< m -echarts
< m -echarts
@ -99,8 +105,10 @@
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< / a - t a b - p a n e >
< a -tab -pane key = "4" tab = "男女比例" >
< a -tab -pane key = "4" tab = "男女比例" >
< div v-if ="getData" >
< div style = "height:3rem;overflow: hidden" >
< div style = "height:3rem;overflow: hidden" >
< img src = "./image/u5729.svg" class = "img-style" @click ="sexImgClick('pie')" / >
< img src = "./image/u5729.svg" class = "img-style" @click ="sexImgClick('pie')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="sexImgClick('line')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="sexImgClick('line')" / >
@ -126,6 +134,8 @@
>
>
< / m - b a r - e c h a r t s >
< / m - b a r - e c h a r t s >
< / div >
< / div >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< / a - t a b - p a n e >
< / a - t a b s >
< / a - t a b s >
@ -257,7 +267,8 @@
] ,
] ,
xAxisName : "" ,
xAxisName : "" ,
yAxisName : "人数" ,
yAxisName : "人数" ,
}
} ,
getData : true ,
}
}
} ,
} ,
@ -276,6 +287,8 @@
} ,
} ,
handleTaskChange : function ( key ) {
handleTaskChange : function ( key ) {
this . task _id = key ;
this . task _id = key ;
if ( key !== '' ) {
this . getData = true ;
if ( this . type === '1' ) {
if ( this . type === '1' ) {
this . administrativeTable = false ;
this . administrativeTable = false ;
this . pieFlag = false ;
this . pieFlag = false ;
@ -291,21 +304,27 @@
this . sexLineFlag = false ;
this . sexLineFlag = false ;
this . getSexStatic ( )
this . getSexStatic ( )
}
}
} else {
this . getData = false ;
}
} ,
} ,
handleTabsChange : function ( key ) {
handleTabsChange : function ( key ) {
this . type = key ;
this . type = key ;
if ( this . task _id !== '' ) {
this . getData = true ;
if ( key === '1' ) {
if ( key === '1' ) {
this . showPie = true ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else if ( key === '2' ) {
} else if ( key === '2' ) {
this . index = 0 ;
this . getClassComprehensiveInfo ( ) ;
this . getClassComprehensiveInfo ( ) ;
} else if ( key === '3' ) {
} else if ( key === '3' ) {
this . getStudentTeachingClassInfo ( ) ;
this . getStudentTeachingClassInfo ( ) ;
} else {
} else {
this . getSexStatic ( )
this . getSexStatic ( )
}
}
} else {
this . getData = false ;
}
} ,
} ,
administrativeImgClick : function ( key ) {
administrativeImgClick : function ( key ) {
if ( key === 'pie' ) {
if ( key === 'pie' ) {
@ -336,13 +355,15 @@
if ( result [ 0 ] . data . success === true ) {
if ( result [ 0 ] . data . success === true ) {
this . taskFlag = true ;
this . taskFlag = true ;
if ( result [ 0 ] . data . list . length !== 0 ) {
if ( result [ 0 ] . data . list . length !== 0 ) {
this . getData = true ;
this . taskList = result [ 0 ] . data . list ;
this . taskList = result [ 0 ] . data . list ;
this . task _id = result [ 0 ] . data . list [ 0 ] . divide _id ;
this . task _id = result [ 0 ] . data . list [ 0 ] . divide _id ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else {
} else {
this . stageList = [ { stage _name : '暂无数据' , stage _id : '' } ] ;
this . getData = false ;
this . taskList = [ { divide _name : '暂无数据' , divide _id : '' } ] ;
}
}
}
}