This commit is contained in:
2023-07-25 09:19:30 +08:00
parent 0bb93757ed
commit 828fdd5a50
5 changed files with 102 additions and 84 deletions

View File

@ -1,50 +1,36 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form <el-form ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="90px">
ref="queryForm" <student style="width: 500px; display: inline" @itemlist="itemlists"></student>
size="small"
:inline="true"
v-show="showSearch"
label-width="90px"
>
<student
style="width: 500px; display: inline"
@itemlist="itemlists"
></student>
<el-form-item> <el-form-item>
<el-button <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查看</el-button>
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>查看</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<right-toolbar <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row> </el-row>
<el-row v-show="itemshow"> <el-row v-show="itemshow">
<el-col :span="24" class="card-box" style=""> <el-col :span="24" class="card-box" style>
<el-card> <el-card>
<div style="margin-left: 50px"> <div style="margin-left: 50px">
<span>学校排名:</span <!-- <span>学校排名:</span
><span style="margin-left: 20px; margin-right: 20px">{{ ><span style="margin-left: 20px; margin-right: 20px">{{
analysislist.schoolRank analysislist.schoolRank
}}</span }}</span
> <span style="margin-left: 50px">区域排名:</span >-->
><span style="margin-left: 20px; margin-right: 20px">{{ <span style="margin-left: 50px">区域排名:</span>
<span style="margin-left: 20px; margin-right: 20px">
{{
analysislist.areaRank analysislist.areaRank
}}</span }}
> <span style="margin-left: 50px">区域成绩占比:</span </span>
><span style="margin-left: 20px; margin-right: 20px">{{ <span style="margin-left: 50px">区域成绩占比:</span>
<span style="margin-left: 20px; margin-right: 20px">
{{
analysislist.areaProportion analysislist.areaProportion
}}</span }}
> </span>
</div> </div>
<div slot="header" style="text-align: center; font-size: 25px"> <div slot="header" style="text-align: center; font-size: 25px">
@ -61,10 +47,7 @@
margin-top: 20px; margin-top: 20px;
" "
> >
<div <div class="bar" style="width: 400px; height: 300px; margin: 0 auto"></div>
class="bar"
style="width: 400px; height: 300px; margin: 0 auto"
></div>
</div> </div>
</div> </div>
</el-card> </el-card>
@ -75,9 +58,12 @@
<el-col :span="24" :offset="0"> <el-col :span="24" :offset="0">
<el-card> <el-card>
<div slot="header" style="text-align: center"> <div slot="header" style="text-align: center">
<img style="width: 40px" src="@/icons/笑脸.png" alt="" /> <img style="width: 40px" src="@/icons/笑脸.png" alt />
<div><!-- card title -->该学生此批次暂没数据</div> <div>
<!-- card title -->
该学生此批次暂没数据
</div>
</div> </div>
<!-- card body --> <!-- card body -->
</el-card> </el-card>
@ -93,7 +79,7 @@ import { constitution } from "@/api/system/constitution";
export default { export default {
name: "constitution", name: "constitution",
components: { components: {
student, student
}, },
data() { data() {
return { return {
@ -106,8 +92,8 @@ export default {
// //
analysisqueryParams: { analysisqueryParams: {
studentId: "", studentId: "",
batchCode: "", batchCode: ""
}, }
}; };
}, },
mounted() {}, mounted() {},
@ -128,7 +114,7 @@ export default {
var ydata = [ var ydata = [
this.analysislist.itemScoreList[i].itemScore, this.analysislist.itemScoreList[i].itemScore,
this.analysislist.itemScoreList[i].schoolAvgScore, this.analysislist.itemScoreList[i].schoolAvgScore,
this.analysislist.itemScoreList[i].cityAvgScore, this.analysislist.itemScoreList[i].cityAvgScore
]; ];
var textname = this.analysislist.itemScoreList[i].itemName; var textname = this.analysislist.itemScoreList[i].itemName;
var myChart = echarts.init(myEchart[i]); var myChart = echarts.init(myEchart[i]);
@ -136,31 +122,31 @@ export default {
title: { title: {
text: textname, text: textname,
subtext: "", subtext: "",
left: "50%", left: "50%"
}, },
tooltip: { tooltip: {
trigger: "axis", trigger: "axis",
axisPointer: { axisPointer: {
type: "shadow", type: "shadow"
}, },
formatter: function (params) { formatter: function(params) {
var tar = params[1]; var tar = params[1];
return tar.name + "<br/>" + tar.seriesName + " : " + tar.value; return tar.name + "<br/>" + tar.seriesName + " : " + tar.value;
}, }
}, },
grid: { grid: {
left: "3%", left: "3%",
right: "4%", right: "4%",
bottom: "3%", bottom: "3%",
containLabel: true, containLabel: true
}, },
xAxis: { xAxis: {
type: "category", type: "category",
splitLine: { show: false }, splitLine: { show: false },
data: this.analysislist.itemStudentList, data: this.analysislist.itemStudentList
}, },
yAxis: { yAxis: {
type: "value", type: "value"
}, },
series: [ series: [
{ {
@ -169,15 +155,15 @@ export default {
stack: "Total", stack: "Total",
itemStyle: { itemStyle: {
borderColor: "blue", borderColor: "blue",
color: "blue", color: "blue"
}, },
emphasis: { emphasis: {
itemStyle: { itemStyle: {
borderColor: "transparent", borderColor: "transparent",
color: "transparent", color: "transparent"
}, }
}, },
data: [0, 0, 0], data: [0, 0, 0]
}, },
{ {
name: "分数", name: "分数",
@ -187,31 +173,31 @@ export default {
barWidth: 35, barWidth: 35,
label: { label: {
show: true, show: true,
position: "inside", position: "inside"
}, },
itemStyle: { itemStyle: {
normal: { normal: {
color: function (colors) { color: function(colors) {
var colorList = [ var colorList = [
"#91cd77", "#91cd77",
"#5470c6", "#5470c6",
"#fc8251", "#fc8251",
"#ef6567", "#ef6567",
"#f9c956", "#f9c956",
"#75bedc", "#75bedc"
]; ];
return colorList[i]; return colorList[i];
}, }
}, }
}, },
// itemStyle: { // itemStyle: {
// borderColor: "#94D8F6", // borderColor: "#94D8F6",
// color: "#94D8F6", // color: "#94D8F6",
// }, // },
data: ydata, data: ydata
}, }
], ]
}; };
myChart.setOption(option); myChart.setOption(option);
@ -221,7 +207,7 @@ export default {
}, },
// //
analysislists() { analysislists() {
constitution(this.analysisqueryParams).then((res) => { constitution(this.analysisqueryParams).then(res => {
if (!res.data || res.data == "") { if (!res.data || res.data == "") {
this.itemshow2 = true; this.itemshow2 = true;
this.itemshow = false; this.itemshow = false;
@ -237,7 +223,7 @@ export default {
}, },
getList() { getList() {
// //
getRoleInfo().then((res) => { getRoleInfo().then(res => {
this.classqueryParams.kindergartenId = res.data.kindergartenId; this.classqueryParams.kindergartenId = res.data.kindergartenId;
var user = res.data.roleKeys; var user = res.data.roleKeys;
if (user.includes("enchou")) { if (user.includes("enchou")) {
@ -253,8 +239,8 @@ export default {
reset() { reset() {
this.form = {}; this.form = {};
this.resetForm("form"); this.resetForm("form");
}, }
}, }
}; };
</script> </script>
<style scoped='scss'> <style scoped='scss'>

View File

@ -139,7 +139,13 @@
/> />
<!-- 修改幼儿园检测报告对话框 --> <!-- 修改幼儿园检测报告对话框 -->
<el-dialog :title="title" :visible.sync="open" width="1350px" append-to-body> <el-dialog
:title="title"
:visible.sync="open"
width="1350px"
append-to-body
:before-close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> <el-form ref="form" :model="form" :rules="rules" label-width="100px">
<el-form-item label="审核状态" prop="checkStatus"> <el-form-item label="审核状态" prop="checkStatus">
<el-radio-group v-model="form.checkStatus"> <el-radio-group v-model="form.checkStatus">
@ -148,7 +154,12 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<div style="height: 550px; overflow: auto"> <div style="height: 550px; overflow: auto">
<kindergartenEcharts v-if="open" :itemlists="itemlist" class="personal"></kindergartenEcharts> <kindergartenEcharts
v-if="open"
:itemlists="itemlist"
class="personal"
@handtrue="handtrue"
></kindergartenEcharts>
</div> </div>
<!-- <el-form-item label="幼儿园名称" prop="kindergartenName"> <!-- <el-form-item label="幼儿园名称" prop="kindergartenName">
<el-input v-model="form.kindergartenName" /> <el-input v-model="form.kindergartenName" />
@ -164,11 +175,13 @@
</el-form-item>--> </el-form-item>-->
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click.native.prevent="submitForm" :loading="handtrueloading">
<span v-if="!handtrueloading"> </span>
<span v-else> 中...</span>
</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="openiframe" width="1350px" append-to-body> <el-dialog :visible.sync="openiframe" width="1350px" append-to-body>
<div style="height: 680px; overflow: auto"> <div style="height: 680px; overflow: auto">
<kindergartenEcharts :itemlists="itemlist" class="personal" v-if="openiframe"></kindergartenEcharts> <kindergartenEcharts :itemlists="itemlist" class="personal" v-if="openiframe"></kindergartenEcharts>
@ -318,6 +331,7 @@ export default {
data() { data() {
return { return {
//itemlist //itemlist
handtrueloading: true,
itemlist: { itemlist: {
kindergartenId: "", kindergartenId: "",
batchCode: "", batchCode: "",
@ -413,6 +427,11 @@ export default {
this.info(); this.info();
}, },
methods: { methods: {
handtrue(e) {
setTimeout(() => {
this.handtrueloading = e;
}, 1000);
},
/** 查询幼儿园检测报告列表 */ /** 查询幼儿园检测报告列表 */
info() { info() {
this.loading = true; this.loading = true;
@ -489,6 +508,7 @@ export default {
}, },
/** 审核按钮操作 */ /** 审核按钮操作 */
handleUpdate(item) { handleUpdate(item) {
this.handtrueloading = true;
this.itemlist.kindergartenId = item.kindergartenId; this.itemlist.kindergartenId = item.kindergartenId;
this.itemlist.batchCode = item.batchCode; this.itemlist.batchCode = item.batchCode;
this.itemlist.number++; this.itemlist.number++;

View File

@ -731,13 +731,6 @@ export default {
}, },
mounted() { mounted() {
this.classinfo(); this.classinfo();
this.getList();
this.classtype();
this.KindergartenPhysicalTestinfo();
this.StudentListinfo();
this.heightAndWeightinfo();
this.physiqueinfoFEMALE();
this.physiqueinfoMALE();
}, },
// watch: { // watch: {
// itemlists: { // itemlists: {
@ -1011,6 +1004,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.echartslist.studentSex = "FEMALE"; this.echartslist.studentSex = "FEMALE";
physiqueanalysis(this.echartslist).then(res => { physiqueanalysis(this.echartslist).then(res => {
this.$emit("handtrue", false);
if (res.data == [] || !res.data) { if (res.data == [] || !res.data) {
this.FEMALE = false; this.FEMALE = false;
} else { } else {
@ -1135,6 +1129,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.echartslist.studentSex = "MALE"; this.echartslist.studentSex = "MALE";
physiqueanalysis(this.echartslist).then(res => { physiqueanalysis(this.echartslist).then(res => {
this.physiqueinfoMALE();
if (res.data == [] || !res.data) { if (res.data == [] || !res.data) {
this.MALE = false; this.MALE = false;
} else { } else {
@ -1256,6 +1251,7 @@ export default {
heightAndWeightinfo() { heightAndWeightinfo() {
setTimeout(() => { setTimeout(() => {
heightAndWeightanalysis(this.echartslist).then(res => { heightAndWeightanalysis(this.echartslist).then(res => {
this.physiqueinfoFEMALE();
if (!res.data) { if (!res.data) {
this.heightAndWeightshow = false; this.heightAndWeightshow = false;
} else { } else {
@ -1508,6 +1504,7 @@ export default {
StudentListinfo() { StudentListinfo() {
setTimeout(() => { setTimeout(() => {
StudentList(this.echartslist).then(res => { StudentList(this.echartslist).then(res => {
this.heightAndWeightinfo();
if (res.data.testAllStudentScoreVOList != null) { if (res.data.testAllStudentScoreVOList != null) {
this.studentlist = res.data.testAllStudentScoreVOList; this.studentlist = res.data.testAllStudentScoreVOList;
} }
@ -1828,6 +1825,7 @@ export default {
KindergartenPhysicalTestinfo() { KindergartenPhysicalTestinfo() {
this.KindergartenPhysicalTestlist = {}; this.KindergartenPhysicalTestlist = {};
KindergartenPhysicalTestanalysis(this.echartslist).then(res => { KindergartenPhysicalTestanalysis(this.echartslist).then(res => {
this.StudentListinfo();
if (res.data == [] || !res.data) { if (res.data == [] || !res.data) {
this.KindergartenPhysicalTestshow = false; this.KindergartenPhysicalTestshow = false;
} else { } else {
@ -2078,6 +2076,7 @@ export default {
tKindergartenInfo(this.kindergartenType).then(res => { tKindergartenInfo(this.kindergartenType).then(res => {
this.type = res.data[0]; this.type = res.data[0];
this.type2 = res.data[1]; this.type2 = res.data[1];
this.classtype();
}); });
}, },
// //
@ -2092,6 +2091,7 @@ export default {
this.classtypelist.push(obj); this.classtypelist.push(obj);
}); });
this.developmentinfo(); this.developmentinfo();
this.KindergartenPhysicalTestinfo();
}); });
}, },
//list //list
@ -2099,6 +2099,7 @@ export default {
listClassinfo(this.echartslist).then(response => { listClassinfo(this.echartslist).then(response => {
this.classList = response.rows; this.classList = response.rows;
this.ClassListinfo(); this.ClassListinfo();
this.getList();
}); });
} }
} }

View File

@ -421,10 +421,13 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div style="height: 550px; overflow: auto"> <div style="height: 550px; overflow: auto">
<personalecharts v-if="open" :itemlists="itemlist" class="personal"></personalecharts> <personalecharts v-if="open" :itemlists="itemlist" class="personal" @handtrue="handtrue"></personalecharts>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click.native.prevent="submitForm" :loading="handtrueloading">
<span v-if="!handtrueloading"> </span>
<span v-else> 中...</span>
</el-button>
<el-button @click="cancel"> </el-button> <el-button @click="cancel"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -460,6 +463,7 @@ export default {
name: "PersonalCheckReport", name: "PersonalCheckReport",
data() { data() {
return { return {
handtrueloading: true,
total1: 0, total1: 0,
total2: 0, total2: 0,
total3: 0, total3: 0,
@ -609,6 +613,11 @@ export default {
this.listKindergartenInfoetList(); this.listKindergartenInfoetList();
}, },
methods: { methods: {
handtrue(e) {
setTimeout(() => {
this.handtrueloading = e;
}, 1000);
},
// //
lookhand(item) { lookhand(item) {
this.itemlist.studentId = item.studentId; this.itemlist.studentId = item.studentId;
@ -667,6 +676,7 @@ export default {
}, },
/** 审核按钮操作 */ /** 审核按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.handtrueloading = true;
this.itemlist.studentId = row.studentId; this.itemlist.studentId = row.studentId;
this.itemlist.batchCode = row.batchCode; this.itemlist.batchCode = row.batchCode;
this.itemlist.number++; this.itemlist.number++;

View File

@ -996,12 +996,12 @@
<el-col :span="24" class="card-box" style> <el-col :span="24" class="card-box" style>
<el-card> <el-card>
<div style="margin-left: 50px"> <div style="margin-left: 50px">
<span>学校排名:</span> <!-- <span>学校排名:</span>
<span style="margin-left: 20px; margin-right: 20px"> <span style="margin-left: 20px; margin-right: 20px">
{{ {{
constitutionlist.schoolRank constitutionlist.schoolRank
}} }}
</span> </span>-->
<span style="margin-left: 50px">区域排名:</span> <span style="margin-left: 50px">区域排名:</span>
<span style="margin-left: 20px; margin-right: 20px"> <span style="margin-left: 20px; margin-right: 20px">
{{ {{
@ -1126,11 +1126,6 @@ export default {
mounted() { mounted() {
this.constitutionlist = []; this.constitutionlist = [];
this.comprehensive(); this.comprehensive();
this.shape();
this.quality();
this.constitutioninfo();
this.listActioninfo();
this.select();
}, },
// watch: { // watch: {
// itemlists: { // itemlists: {
@ -1236,6 +1231,7 @@ export default {
this.selectposition4 = index; // this.selectposition4 = index; //
} }
} }
this.$emit("handtrue", false);
}); });
}, },
selectlistMethod({ row, column, rowIndex, columnIndex }) { selectlistMethod({ row, column, rowIndex, columnIndex }) {
@ -1275,6 +1271,7 @@ export default {
// comprehensive // comprehensive
comprehensive() { comprehensive() {
synthesize(this.echartslist).then(res => { synthesize(this.echartslist).then(res => {
this.shape();
if (res.data == [] || !res.data) { if (res.data == [] || !res.data) {
} else { } else {
this.sythesizestudent = res.data; this.sythesizestudent = res.data;
@ -1368,6 +1365,7 @@ export default {
shape() { shape() {
setTimeout(() => { setTimeout(() => {
analysis(this.echartslist).then(res => { analysis(this.echartslist).then(res => {
this.quality();
if (!res.data || res.data == "") { if (!res.data || res.data == "") {
this.shapeshow = false; this.shapeshow = false;
} else if ( } else if (
@ -1457,6 +1455,7 @@ export default {
quality() { quality() {
setTimeout(() => { setTimeout(() => {
testBodyScoreInfo(this.echartslist).then(res => { testBodyScoreInfo(this.echartslist).then(res => {
this.constitutioninfo();
if (!res.rows || res.rows == "" || res.rows == []) { if (!res.rows || res.rows == "" || res.rows == []) {
this.qualityshow = false; this.qualityshow = false;
} else { } else {
@ -1470,6 +1469,7 @@ export default {
constitutioninfo() { constitutioninfo() {
setTimeout(() => { setTimeout(() => {
constitution(this.echartslist).then(res => { constitution(this.echartslist).then(res => {
this.listActioninfo();
this.constitutionlist = res.data; this.constitutionlist = res.data;
if (!res.data || res.data == "") { if (!res.data || res.data == "") {
this.constitutionshow = false; this.constitutionshow = false;
@ -1700,6 +1700,7 @@ export default {
listActioninfo() { listActioninfo() {
setTimeout(() => { setTimeout(() => {
listAction(this.echartslist).then(res => { listAction(this.echartslist).then(res => {
this.select();
this.spanArr = []; this.spanArr = [];
this.position = 0; this.position = 0;
this.spanArr2 = []; this.spanArr2 = [];