[mod]增加选科统计志愿组合

init
CUIYUWEI 4 years ago
parent e045026421
commit 5ee7ef4ac9

@ -32,19 +32,41 @@
</ul>
</div>
</a-tab-pane>
<!--<a-tab-pane key="2" tab="志愿组合" force-render>-->
<!--<div class="titleStyle">年级志愿组合情况对比一览表</div>-->
<!--<bar-echarts-->
<!--:xAxisData="volunteerCombination.xAxisData"-->
<!--:echartStyle="volunteerCombination.style"-->
<!--:seriesData="volunteerCombination.seriesData"-->
<!--:xAxisName="volunteerCombination.xAxisName"-->
<!--:yAxisName="volunteerCombination.yAxisName"-->
<!--:legendData="volunteerCombination.legendData"-->
<!--:isType="volunteerCombination.isType"-->
<!--v-on:volunteerCombination="getStudentApplyCount"-->
<!--&gt;</bar-echarts>-->
<!--</a-tab-pane>-->
<a-tab-pane key="2" tab="志愿组合" force-render>
<div class="leftContents">
<div class="titleStyle">年级志愿组合情况对比一览表</div>
<bar-echarts
:xAxisData="volunteerCombination.xAxisData"
:echartStyle="volunteerCombination.style"
:seriesData="volunteerCombination.seriesData"
:xAxisName="volunteerCombination.xAxisName"
:yAxisName="volunteerCombination.yAxisName"
:legendData="volunteerCombination.legendData"
:isType="volunteerCombination.isType"
v-on:volunteerCombination="getStudentApplyCount"
v-if="barFlag"
></bar-echarts>
</div>
<div class="rightContents">
<div class="widthBox">
<div style="height:3rem">
<img :src=this.imgSrc class="img2"/>
<span style="float: left;margin: 0.8rem 0 1rem 0.5rem">志愿组合</span>
</div>
<vue-scroll v-if="subjectArr.length > 0" class="plan-list-div" :ops="listScroll" style="height:20rem">
<ul class="ulLine">
<li :key="item.key" v-for="(item,index) in subjectArr">
<div style="float: left;">{{item.key}}
<img :src=winnerSrc class="img3" :style="{display:index===0||index===1?'block':'none'}"/>
</div>
<div style="float: right;">{{item.value}}</div>
</li>
</ul>
</vue-scroll>
</div>
</div>
</a-tab-pane>
</a-tabs>
</div>
@ -60,6 +82,8 @@
import Political from './image/political.png';
import History from './image/history.png';
import Geography from './image/geography.png';
import JianTou from './image/u4603.svg';
import WinnerSrc from './image/u4579.svg';
export default {
name: "chooseStatisticsBig",
components: {
@ -70,6 +94,12 @@
data:function() {
return {
lineFlag:false,
barFlag:false,
type:1,
imgSrc:JianTou,
winnerSrc:WinnerSrc,
listScroll: this.StaticParams.scrollOption,
subjectArr:[],
singleSubject:{
xAxisData:[],
list:[],
@ -84,29 +114,15 @@
},
volunteerCombination:{
xAxisData:[],
yAxis:[],
style: {
height: ''
},
isType:"across",
legendData:['自动接警','人工接警'],
seriesData:[
{
name: '自动接警',
type: 'bar',
stack:'111',//
barMaxWidth: '20',//
data: [20, 30, 40]
},
{
name: '人工接警',
type: 'bar',
stack:'111',//
barMaxWidth: '20',//
data: [10, 50, 35]
}
],
xAxisName:"年级",
yAxisName:"课程总数"
legendData:[],
seriesData:[],
xAxisName:"志愿组合",
yAxisName:"人数"
}
};
@ -121,7 +137,14 @@
},
methods: {
callback(key) {
console.log(key);
this.type=key;
if(key==="1"){
this.lineFlag=false;
this.getStudentApplyCount();
}else if(key==="2"){
this.barFlag=false;
this.getStudentThreeApplyCount();
}
},
getStudentApplyCount:function () {
let params={
@ -186,6 +209,48 @@
}
}
})
},
getStudentThreeApplyCount:function () {
let params={
bureauId:this.BaseConfig.person_info_my.bureau_id,
};
this.InterfaceConfig.callInterface([{
url:InterfaceConfig.getStudentThreeApplyCount.url,
params:params,
method:InterfaceConfig.getStudentThreeApplyCount.method,
isTestLogin:InterfaceConfig.getStudentThreeApplyCount.isTestLogin,
isOfficeInterface:false
}],(result)=> {
if(result[0].data.success){
this.barFlag=true;
let data=result[0].data;
let series=[];
let legendData=[];
if(data.list.length!==0){
data.list.forEach((item)=>{
legendData.push(item.year);
let count=[];
let xName=[];
item.xaxis.forEach((itemIn)=>{
xName.push(itemIn.xaxis_name);
count.push(itemIn.count);
this.volunteerCombination.xAxisData=xName;
});
series.push({name:item.year,type:"bar",data:count,stack:"11"});
});
this.volunteerCombination.legendData=legendData;
this.volunteerCombination.seriesData=series;
}
if(data.listSum.length!==0){
let dom=[];
data.listSum.forEach((sumItem,sunIndex)=>{
dom.push({key:sumItem.xaxis_name,value:sumItem.count})
})
this.subjectArr=dom;
}
}
})
}
}
}
@ -202,6 +267,11 @@
width: 40%;
float: left;
}
.leftContents {
width: 60%;
float: left;
}
.rightContent {
width: 60%;
float: left;
@ -234,7 +304,49 @@
line-height: 90px;
width: 58%;
}
}
.rightContents {
width: 40%;
float: left;
.widthBox{
width: 13rem;
height: 18rem;
margin: 2rem auto;
background: #FDFDFD;
box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}
.img2{
width: 15px;
height: 15px;
float: left;
margin: 1rem 0 1rem 1rem;
}
.img3{
width: 15px;
height: 15px;
float: right;
}
.ulLine{
width: 13rem;
list-style: none;
padding: 0;
height: 14rem;
/*overflow-y: auto;*/
}
.ulLine li{
float: left;
height: 2rem;
width: 98%;
border-bottom: 1px solid #F2F2F2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 0 1rem 0 1rem;
}
.plan-list-div {
min-height: 12rem;
max-height: 14rem;
}
}
}

@ -17,19 +17,20 @@
></bar-echarts>
</div>
</a-tab-pane>
<!--<a-tab-pane key="2" tab="志愿组合" force-render>-->
<!--<div class="titleStyle">年级志愿组合情况对比一览表</div>-->
<!--<bar-echarts-->
<!--:xAxisData="volunteerCombination.xAxisData"-->
<!--:echartStyle="volunteerCombination.style"-->
<!--:seriesData="volunteerCombination.seriesData"-->
<!--:xAxisName="volunteerCombination.xAxisName"-->
<!--:yAxisName="volunteerCombination.yAxisName"-->
<!--:legendData="volunteerCombination.legendData"-->
<!--:isType="volunteerCombination.isType"-->
<!--v-on:volunteerCombination="getStudentApplyCount"-->
<!--&gt;</bar-echarts>-->
<!--</a-tab-pane>-->
<a-tab-pane key="2" tab="志愿组合" force-render>
<div class="titleStyle">年级志愿组合情况对比一览表</div>
<bar-echarts
:xAxisData="volunteerCombination.xAxisData"
:echartStyle="volunteerCombination.style"
:seriesData="volunteerCombination.seriesData"
:xAxisName="volunteerCombination.xAxisName"
:yAxisName="volunteerCombination.yAxisName"
:legendData="volunteerCombination.legendData"
:isType="volunteerCombination.isType"
v-on:volunteerCombination="getStudentApplyCount"
v-if="barFlag"
></bar-echarts>
</a-tab-pane>
</a-tabs>
</div>
@ -49,6 +50,8 @@
data:function() {
return {
lineFlag:false,
barFlag:false,
type:1,
singleSubject:{
xAxisData:[],
style: {
@ -61,29 +64,15 @@
},
volunteerCombination:{
xAxisData:[],
yAxis:[],
style: {
height: ''
},
isType:"across",
legendData:['自动接警','人工接警'],
seriesData:[
{
name: '自动接警',
type: 'bar',
stack:'111',//
barMaxWidth: '20',//
data: [20, 30, 40]
},
{
name: '人工接警',
type: 'bar',
stack:'111',//
barMaxWidth: '20',//
data: [10, 50, 35]
}
],
xAxisName:"年级",
yAxisName:"课程总数"
legendData:[],
seriesData:[],
xAxisName:"志愿组合",
yAxisName:"人数"
}
};
@ -98,7 +87,14 @@
},
methods: {
callback(key) {
console.log(key);
this.type=key;
if(key==="1"){
this.lineFlag=false;
this.getStudentApplyCount();
}else if(key==="2"){
this.barFlag=false;
this.getStudentThreeApplyCount();
}
},
getStudentApplyCount:function () {
let params={
@ -135,6 +131,42 @@
}
}
})
},
getStudentThreeApplyCount:function () {
let params={
bureauId:this.BaseConfig.person_info_my.bureau_id,
};
this.InterfaceConfig.callInterface([{
url:InterfaceConfig.getStudentThreeApplyCount.url,
params:params,
method:InterfaceConfig.getStudentThreeApplyCount.method,
isTestLogin:InterfaceConfig.getStudentThreeApplyCount.isTestLogin,
isOfficeInterface:false
}],(result)=> {
if(result[0].data.success){
this.barFlag=true;
let data=result[0].data;
let series=[];
let legendData=[];
if(data.list.length!==0){
data.list.forEach((item)=>{
legendData.push(item.year);
let count=[];
let xName=[];
item.xaxis.forEach((itemIn)=>{
xName.push(itemIn.xaxis_name);
count.push(itemIn.count);
this.volunteerCombination.xAxisData=xName;
});
series.push({name:item.year,type:"bar",data:count,stack:"11"});
});
this.volunteerCombination.legendData=legendData;
this.volunteerCombination.seriesData=series;
}
}
})
}

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="15px" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1 0 0 1 -559 -131 )">
<path d="M 0.3314208984375 4.50827114397322 L 0.377404478302002 4.36025584821429 C 0.497361776605706 3.93953647270282 0.840575632062955 3.65480793144224 1.22775653035719 3.65480793144224 C 1.56588083454895 3.65480793144224 1.87509835056266 3.87273549444075 2.02690713638306 4.21802616786412 C 2.19101780526394 4.58532520683218 2.14379337500719 5.02967825088038 1.90751857955933 5.34139956508091 C 1.87967531158447 5.37707751970564 1.85141017272949 5.41034479771205 1.82230130447388 5.45373689208984 C 2.48716478118896 5.91996095057896 3.1490751864624 6.37847086931501 3.80592317825317 6.84083785086496 C 4.05482511886597 7.01681694737026 4.30710198944092 7.19279602975028 4.55600391769409 7.36298951084682 C 4.59365110184603 7.39970728873866 4.64152157392011 7.41987828598734 4.69101422423067 7.41987828598734 C 4.77574172529274 7.41987828598734 4.85199971482289 7.36113865798738 4.88379511962891 7.27138396885463 C 5.640625756073 5.69625055873326 6.39956572219849 4.11436725690569 7.1610368888855 2.52573407749721 C 6.83475350633099 2.36804557578316 6.61634872964199 2.01069001513367 6.59910912826538 1.60630359165737 C 6.5844541501562 1.31493961132469 6.68256082427504 1.03093269250296 6.86741698104859 0.829584910191127 C 7.03529718016371 0.641074768066786 7.26123794309691 0.535448252177211 7.49659101333192 0.535448252177211 C 7.76787050010327 0.535448252177211 8.02460169800226 0.675642896033857 8.19503459243774 0.916851251220703 C 8.57176243331909 1.44671706508092 8.43549917724609 2.06433135811942 7.83644706344605 2.53055541660854 C 8.03092806838989 2.93892333513532 8.22119038925171 3.35066620657785 8.41946820739746 3.75903412510463 C 8.96536499816895 4.90169289289202 9.51421486038208 6.04435166067941 10.0655959231567 7.1870104284668 C 10.1921562355042 7.45218440447126 10.2735766973877 7.47677326642718 10.4980102999878 7.32152595493862 C 11.3476518255615 6.72850052385603 12.1981370805359 6.13402867832729 13.0486223478699 5.53762829432896 L 13.1730733058167 5.44746915265764 C 12.9970868389332 5.2653359272835 12.8897245301345 5.01233242709246 12.8735472550964 4.74162424229213 C 12.8724038158814 4.72053665343979 12.871831685499 4.69941367298102 12.871831685499 4.6782856324275 C 12.871831685499 4.11271640576854 13.2730055761312 3.6542319593318 13.7678786494578 3.6542319593318 C 14.1661365924321 3.6542319593318 14.5165998403662 3.95464302897589 14.6280949589539 4.39159458775112 C 14.6377979150391 4.43112961931501 14.6525632846069 4.47211105119978 14.663953711853 4.51164608276367 L 14.663953711853 4.86890775303432 C 14.5196749584961 5.39925570504325 14.2218363789368 5.70589325108119 13.7139076831055 5.70975031389509 C 13.694443241265 5.77154161494666 13.6764370379154 5.83392024812643 13.6599086183166 5.8968185030692 L 12.1673407411194 11.7417350537109 C 12.1019512490845 11.9963020751953 12.0247494589233 12.0638008933803 11.7990502560425 12.0638008933803 L 3.20940226501465 12.0638008933803 C 2.9689376802063 12.0638008933803 2.89511083236694 12.0001591380092 2.82972134033203 11.7417350537109 C 2.42557208999634 10.1603338900321 2.02142285202026 8.57700418788365 1.61727361404419 6.99222808541434 C 1.50927548446655 6.5650569203404 1.39790241256714 6.1383678792899 1.2899042829895 5.7078217754255 C 0.937311933785965 5.73375630067127 0.604514705927964 5.51957893206124 0.441106499176026 5.16156339163644 C 0.399122586697158 5.0662878529883 0.362486679979692 4.96805531099241 0.3314208984375 4.86746133858817 L 0.3314208984375 4.50875328212193 Z M 7.49346863342285 13.087854566476 L 7.49346863342285 13.0859260280064 L 11.5066959484863 13.0859260280064 C 11.5175120809158 13.0853246326844 11.5283394066417 13.0850238017493 11.5391683322197 13.0850238017493 C 11.9082262203048 13.0850238017493 12.2074067512566 13.4269444085513 12.2074067512566 13.8487248520771 C 12.2074067512566 14.2182411192693 11.9759220308463 14.5347523692959 11.6577245741272 14.6003104975237 C 11.60808430345 14.6123134522953 11.5574304090013 14.617973105743 11.5066959484863 14.6171852056013 L 3.47981944747925 14.6171852056013 C 3.18451206848144 14.6273100360979 2.91873542861938 14.4151708468192 2.82465892684937 14.0950335456194 C 2.72457625057348 13.7823835098398 2.82227338231723 13.4319530014751 3.06217044021607 13.2431018779646 C 3.19463689544678 13.1466749827358 3.34735299224854 13.0931580437361 3.50470964401245 13.087854566476 C 4.83612406860352 13.0767654738072 6.16500728027344 13.087854566476 7.49346863342285 13.087854566476 Z " fill-rule="nonzero" fill="#facd91" stroke="none" transform="matrix(1 0 0 1 559 131 )" />
</g>
</svg>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="15px" height="12px" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1 0 0 1 -505 -90 )">
<path d="M 3.24249605055292 3.25148514851485 C 3.43996840442338 3.05346534653465 3.53870458135861 2.81452145214521 3.53870458135861 2.53465346534653 C 3.53870458135861 2.25478547854785 3.43996840442338 2.01584158415842 3.24249605055292 1.81782178217822 C 3.04502369668246 1.61980198019802 2.80674038967878 1.52079207920792 2.52764612954186 1.52079207920792 C 2.24855186940495 1.52079207920792 2.01026856240126 1.61980198019802 1.81279620853081 1.81782178217822 C 1.61532385466035 2.01584158415842 1.51658767772512 2.25478547854785 1.51658767772512 2.53465346534653 C 1.51658767772512 2.81452145214521 1.61532385466035 3.05346534653465 1.81279620853081 3.25148514851485 C 2.01026856240126 3.44950495049505 2.24855186940495 3.54851485148515 2.52764612954186 3.54851485148515 C 2.80674038967878 3.54851485148515 3.04502369668246 3.44950495049505 3.24249605055292 3.25148514851485 Z M 11.6745655608215 6.37623762376238 C 11.8694049499737 6.58217821782178 11.9668246445498 6.82244224422442 11.9668246445498 7.0970297029703 C 11.9668246445498 7.37689768976898 11.8694049499737 7.61452145214521 11.6745655608215 7.80990099009901 L 7.79620853080569 11.7069306930693 C 7.59083728278041 11.9023102310231 7.35123749341759 12 7.07740916271722 12 C 6.79831490258031 12 6.56134807793576 11.9023102310231 6.36650868878357 11.7069306930693 L 0.718799368088468 6.03564356435644 C 0.518694049499737 5.84026402640264 0.348867825171143 5.57359735973597 0.209320695102686 5.23564356435644 C 0.0697735650342285 4.8976897689769 0 4.58877887788779 0 4.30891089108911 L 0 1.01386138613861 C 0 0.739273927392739 0.100052659294365 0.501650165016502 0.300157977883096 0.3009900990099 C 0.500263296471827 0.100330033003299 0.737230121116377 0 1.01105845181675 0 L 4.29699842022117 0 C 4.57609268035808 0 4.884149552396 0.069966996699669 5.22116903633491 0.20990099009901 C 5.55818852027383 0.349834983498349 5.82675092153765 0.520132013201319 6.02685624012638 0.720792079207921 L 11.6745655608215 6.37623762376238 Z M 14.7077409162717 6.37623762376238 C 14.9025803054239 6.58217821782178 15 6.82244224422442 15 7.0970297029703 C 15 7.37689768976898 14.9025803054239 7.61452145214521 14.7077409162717 7.80990099009901 L 10.8293838862559 11.7069306930693 C 10.6240126382306 11.9023102310231 10.3844128488678 12 10.1105845181675 12 C 9.92101105845182 12 9.76566614007372 11.9630363036304 9.64454976303318 11.8891089108911 C 9.52343338599263 11.8151815181518 9.38388625592417 11.6963696369637 9.2259083728278 11.5326732673267 L 12.9383886255924 7.80990099009901 C 13.1332280147446 7.61452145214521 13.2306477093207 7.37689768976898 13.2306477093207 7.0970297029703 C 13.2306477093207 6.82244224422442 13.1332280147446 6.58217821782178 12.9383886255924 6.37623762376238 L 7.29067930489731 0.720792079207921 C 7.09057398630858 0.520132013201319 6.82201158504476 0.349834983498349 6.48499210110584 0.20990099009901 C 6.14797261716693 0.069966996699669 5.83991574512902 0 5.5608214849921 0 L 7.33017377567141 0 C 7.60926803580832 0 7.91732490784624 0.069966996699669 8.25434439178515 0.20990099009901 C 8.59136387572407 0.349834983498349 8.85992627698789 0.520132013201319 9.06003159557662 0.720792079207921 L 14.7077409162717 6.37623762376238 Z " fill-rule="nonzero" fill="#d7d7d7" stroke="none" transform="matrix(1 0 0 1 505 90 )" />
</g>
</svg>

@ -120,13 +120,13 @@
yAxis: yAxis,
grid: {
left: '5%',
right: '6%',
right: '10%',
bottom: '20%',
containLabel: true
},
legend: {
x:'center',
y:this.isType==='time'||this.isType==='manyBarFloor'?'top':'bottom',
y:this.isType==='time'||this.isType==='manyBarFloor'||this.isType==='across'?'top':'bottom',
data: this.legendData
},
dataZoom: this.isType==='time'?[{
@ -136,7 +136,7 @@
}, {
start: 10,
end: 30,
}]:this.isType==="manyBarFloor"?[ {
}]:this.isType==="manyBarFloor"||this.isType==="across"?[ {
show: true,
realtime: true,
start: 0,

@ -129,6 +129,11 @@ const InterfaceConfig = {
* week 必填 number 机构ID
* */
"getTeacherCourseTable":{url:"selectCourse/coresetime/getTeacherCourseTable",method:"get",isTestLogin:false},
/*
*选排课-选课志愿组合
* bureau_id 必填 number 机构ID
* */
"getStudentThreeApplyCount":{url:"selectCourse/statistics/subjectCourse/getStudentThreeApplyCount",method:"get",isTestLogin:false},
};
export default InterfaceConfig

Loading…
Cancel
Save