@ -12,46 +12,50 @@
< / div >
< a -tabs default -active -key = " 1 " class = "tab-style" @change ="handleTabsChange" >
< a -tab -pane key = "1" tab = "行政班概况" >
< div style = "height:3rem;overflow: hidden" >
< img src = "./image/u5561.svg" class = "img-style" @click ="administrativeImgClick('table')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="administrativeImgClick('pie')" / >
< / div >
< div v-if ="showPie" >
< div style = "height:370px" >
< m -echarts
v - if = "pieFlag"
: echartStyle = "administrativeClassData.style"
: opinion = "administrativeClassData.c"
: opinionData = "administrativeClassData.e"
: isRing = true
v - on : currentEchartData = "getClassCountCompareByType"
> < / m - e c h a r t s >
< div v-if ="getData" >
< div style = "height:3rem;overflow: hidden" >
< img src = "./image/u5561.svg" class = "img-style" @click ="administrativeImgClick('table')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="administrativeImgClick('pie')" / >
< / div >
< div v-if ="showPie" >
< div style = "height:370px" >
< m -echarts
v - if = "pieFlag"
: echartStyle = "administrativeClassData.style"
: opinion = "administrativeClassData.c"
: opinionData = "administrativeClassData.e"
: isRing = true
v - on : currentEchartData = "getClassCountCompareByType"
> < / m - e c h a r t s >
< / div >
< / div >
< div v-else >
< 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 >
< / div >
< / div >
< div v-else >
< 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 >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< a -tab -pane key = "2" tab = "教学班概况" >
< 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)" >
< img :src ="require('./image/'+item.imgsrc+'.svg')" style = "margin-bottom: .4rem" / >
< span style = "margin-left: .5rem" > { { item . subject _name } } < / span >
< span class = "count" > { { item . total _count } } < / span >
< div v-if ="getData" >
< 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)" >
< img :src ="require('./image/'+item.imgsrc+'.svg')" style = "margin-bottom: .4rem" / >
< span style = "margin-left: .5rem" > { { item . subject _name } } < / span >
< span class = "count" > { { item . total _count } } < / span >
< / div >
< / div >
< / div >
< table class = "class-table" v-if ="classTable" >
< thead >
< table class = "class-table" v-if ="classTable" >
< thead >
< tr >
< th > < / th >
< th > 选考 < span class = "num-style" > { { subjectData [ 0 ] . count + subjectData [ 0 ] . teaching _count } } < / span > < / th >
< th > 学考 < span class = "num-style" > { { subjectData [ 1 ] . count + subjectData [ 1 ] . teaching _count } } < / span > < / th >
< / tr >
< / thead >
< tbody >
< / thead >
< tbody >
< tr >
< td style = "font-weight: bold" > 行政班 < span class = "num-style" > { { subjectData [ 0 ] . count + subjectData [ 1 ] . count } } < / span > < / td >
< td > { { subjectData [ 0 ] . count } } < / td >
@ -62,11 +66,13 @@
< td > { { subjectData [ 0 ] . teaching _count } } < / td >
< td > { { subjectData [ 1 ] . teaching _count } } < / td >
< / tr >
< / tbody >
< / table >
< / tbody >
< / table >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< a -tab -pane key = "3" tab = "走班概况" >
< div class = "goClass" >
< div v-if ="getData" class="goClass" >
< div class = "left-con" >
< div style = "height:370px" >
< m -echarts
@ -99,33 +105,37 @@
< / div >
< / div >
< / div >
< div v -else style = "text-align: center;margin: 4rem 0" > 暂无数据 < / div >
< / a - t a b - p a n e >
< a -tab -pane key = "4" tab = "男女比例" >
< div style = "height:3rem;overflow: hidden" >
< img src = "./image/u5729.svg" class = "img-style" @click ="sexImgClick('pie')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="sexImgClick('line')" / >
< / div >
< div v-if ="showLine" style="height:370px" >
< m -echarts
v - if = "sexPieFlag"
: echartStyle = "sexPieData.style"
: opinion = "sexPieData.c"
: opinionData = "sexPieData.e"
v - on : currentEchartData = "getSexStatic"
> < / m - e c h a r t s >
< / div >
< div v -else style = "height:370px" >
< m -bar -echarts
v - if = "sexLineFlag"
: echartStyle = "sexData.style"
: xAxisData = "sexData.xAxisData"
: legendData = "sexData.legendData"
: seriesData = "sexData.seriesData"
: xAxisName = "sexData.xAxisName"
: yAxisName = "sexData.yAxisName"
>
< / m - b a r - e c h a r t s >
< div v-if ="getData" >
< div style = "height:3rem;overflow: hidden" >
< img src = "./image/u5729.svg" class = "img-style" @click ="sexImgClick('pie')" / >
< img src = "./image/u5560.svg" class = "img-style" @click ="sexImgClick('line')" / >
< / div >
< div v-if ="showLine" style="height:370px" >
< m -echarts
v - if = "sexPieFlag"
: echartStyle = "sexPieData.style"
: opinion = "sexPieData.c"
: opinionData = "sexPieData.e"
v - on : currentEchartData = "getSexStatic"
> < / m - e c h a r t s >
< / div >
< div v -else style = "height:370px" >
< m -bar -echarts
v - if = "sexLineFlag"
: echartStyle = "sexData.style"
: xAxisData = "sexData.xAxisData"
: legendData = "sexData.legendData"
: seriesData = "sexData.seriesData"
: xAxisName = "sexData.xAxisName"
: yAxisName = "sexData.yAxisName"
>
< / m - b a r - e c h a r t s >
< / 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 s >
@ -257,7 +267,8 @@
] ,
xAxisName : "" ,
yAxisName : "人数" ,
}
} ,
getData : true ,
}
} ,
@ -276,35 +287,43 @@
} ,
handleTaskChange : function ( key ) {
this . task _id = key ;
if ( this . type === '1' ) {
this . administrativeTable = false ;
this . pieFlag = false ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else if ( this . type === '2' ) {
this . getClassComprehensiveInfo ( ) ;
} else if ( this . type === '3' ) {
this . goClassPieFlag = false ;
this . getStudentTeachingClassInfo ( ) ;
if ( key !== '' ) {
this . getData = true ;
if ( this . type === '1' ) {
this . administrativeTable = false ;
this . pieFlag = false ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else if ( this . type === '2' ) {
this . getClassComprehensiveInfo ( ) ;
} else if ( this . type === '3' ) {
this . goClassPieFlag = false ;
this . getStudentTeachingClassInfo ( ) ;
} else {
this . sexPieFlag = false ;
this . sexLineFlag = false ;
this . getSexStatic ( )
}
} else {
this . sexPieFlag = false ;
this . sexLineFlag = false ;
this . getSexStatic ( )
this . getData = false ;
}
} ,
handleTabsChange : function ( key ) {
this . type = key ;
if ( key === '1' ) {
this . showPie = true ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else if ( key === '2' ) {
this . index = 0 ;
this . getClassComprehensiveInfo ( ) ;
} else if ( key === '3' ) {
this . getStudentTeachingClassInfo ( ) ;
if ( this . task _id !== '' ) {
this . getData = true ;
if ( key === '1' ) {
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else if ( key === '2' ) {
this . getClassComprehensiveInfo ( ) ;
} else if ( key === '3' ) {
this . getStudentTeachingClassInfo ( ) ;
} else {
this . getSexStatic ( )
}
} else {
this . getSexStatic ( )
this . get Data= false ;
}
} ,
administrativeImgClick : function ( key ) {
@ -336,13 +355,15 @@
if ( result [ 0 ] . data . success === true ) {
this . taskFlag = true ;
if ( result [ 0 ] . data . list . length !== 0 ) {
this . getData = true ;
this . taskList = result [ 0 ] . data . list ;
this . task _id = result [ 0 ] . data . list [ 0 ] . divide _id ;
this . getClassCountCompareByType ( ) ;
this . getClassCountCompareByTypeDetail ( ) ;
} else {
this . stageList = [ { stage _name : '暂无数据' , stage _id : '' } ] ;
this . getData = false ;
this . taskList = [ { divide _name : '暂无数据' , divide _id : '' } ] ;
}
}