From d7b00dc7a788d3889ca7c21a648689ba007e89c7 Mon Sep 17 00:00:00 2001
From: zhusiyu <410827992@qq.com>
Date: Thu, 28 Jul 2022 17:16:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E7=AE=A1=E7=90=86=E7=A9=BA?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../studentManage.vue | 87 +++++++++++--------
1 file changed, 51 insertions(+), 36 deletions(-)
diff --git a/src/views/screenAdaptation/pages/moralEducationCenter/studentClassTeacherManage/studentManage.vue b/src/views/screenAdaptation/pages/moralEducationCenter/studentClassTeacherManage/studentManage.vue
index 528c12c..9a82467 100644
--- a/src/views/screenAdaptation/pages/moralEducationCenter/studentClassTeacherManage/studentManage.vue
+++ b/src/views/screenAdaptation/pages/moralEducationCenter/studentClassTeacherManage/studentManage.vue
@@ -29,24 +29,37 @@
-
+
{{item.total}}
{{item.stage_name}}部
+
+
+
- {{genderBoy}}生
+ {{typeof genderBoy == 'string' ? genderBoy : ' '}}生
{{numrBoy}}人
- {{boybili}}%
+ {{!isNaN(boybili) ? boybili : 0}}%
@@ -54,14 +67,14 @@
- {{genderGril}}生
+ {{typeof genderGril == 'string' ? genderGril : ' '}}生
{{numGril}}人
- {{grilbili}}%
+ {{!isNaN(grilbili) ? grilbili : 0}}%
@@ -74,7 +87,9 @@
v-if="collapseData.length !=0">
-
+
@@ -113,7 +128,7 @@
+ v-for='(item,index) in honorDataSourse' :key='index'>
@@ -209,11 +224,11 @@
//学生管理数据2
studentManageData2: [],
genderGril: '',
- numGril: '',
+ numGril: 0,
genderBoy: '',
- numrBoy: '',
- boybili: '',
- grilbili: '',
+ numrBoy: 0,
+ boybili: 0,
+ grilbili: 0,
spinning: false,
currentKey: '0',
rightTopShow: true,
@@ -279,16 +294,8 @@
currentKey(val, old) {
this.currentKey = val
}
- },
- beforeMount() {
- },
- created() {
-
},
mounted() {
- this.$nextTick(() => {
-
- })
//学生管理数据1获取
this.getStudentManageData1()
//学生管理数据2获取
@@ -349,9 +356,10 @@
// this.getStudentManageData2()
this.spinning = false;
if (result[0].data.result.length != 0) {
- this.studentManageData1 = JSON.parse(result[0].data.result)
- for (let i = 0; i < this.studentManageData1.length; i++) {
- this.allStudeantTotal += this.studentManageData1[i].total
+ let temp = JSON.parse(result[0].data.result)
+ this.studentManageData1 = temp
+ for (let i = 0; i < temp.length; i++) {
+ this.allStudeantTotal += temp[i].total
}
}
})
@@ -383,11 +391,11 @@
this.numGril = this.studentManageData2[0].total
this.genderBoy = this.studentManageData2[1].XB_NAME
this.numrBoy = this.studentManageData2[1].total
+ this.boybili = parseInt(Number(this.numrBoy) / Number(this.allStudeantTotal) * 100) + 1
+ this.grilbili = parseInt(Number(this.numGril) / Number(this.allStudeantTotal) * 100)
this.getEchartsBoy()
this.getEchartsGirl()
}
- this.boybili = parseInt(Number(this.numrBoy) / Number(this.allStudeantTotal) * 100) + 1
- this.grilbili = parseInt(Number(this.numGril) / Number(this.allStudeantTotal) * 100)
})
},
//学生管理折叠面板数据获取
@@ -428,7 +436,7 @@
})
},
- //学生管理数据4获取
+ //学生管理表格数据获取
getStudentManageData4: function () {
let param = {
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
@@ -463,15 +471,15 @@
} else {
this.collapseDataEmpty = true
}
- res.forEach(item => {
- if (item.stage_name == '小学') {
- this.collapseData[0].tableData.push(item)
- } else if (item.stage_name == '初中') {
- this.collapseData[1].tableData.push(item)
- } else if (item.stage_name == '高中') {
- this.collapseData[2].tableData.push(item)
- }
- })
+// res.forEach(item => {
+// if (item.stage_name == '小学') {
+// this.collapseData[0].tableData.push(item)
+// } else if (item.stage_name == '初中') {
+// this.collapseData[1].tableData.push(item)
+// } else if (item.stage_name == '高中') {
+// this.collapseData[2].tableData.push(item)
+// }
+// })
})
},
//学生荣誉
@@ -525,7 +533,8 @@
this.spinning = false;
if (result[0].data.result != '') {
this.studentNoticeData = JSON.parse(result[0].data.result)
- } else {
+ }
+ if (this.studentNoticeData.length == 0) {
this.studentNoticeDataEmpty = true
}
})
@@ -764,7 +773,6 @@
}
}
-
}
.left-topNum-num > div:nth-child(2) {
@@ -1080,6 +1088,13 @@
padding: 20px 10px 15px 20px;
margin-top: 20px;
border-radius: 7px;
+ .timeLine-empty {
+ margin-top: -6px;
+ margin-right: 62px;
+ /deep/ .ant-empty-image {
+ height: 80px !important;
+ }
+ }
}
}
}