基站SN:{{ clazzDetail.stationSn }}
配对码:{{ clazzDetail.pairingCode }}
频点:{{ clazzDetail.frequency }}
@@ -129,7 +142,7 @@
@@ -167,13 +180,14 @@
{{ formStuCla.className }}
-
+
+
{
if (valid) {
+ if (this.formStuCla.classId == this.formStuCla.oldClassId) {
+ this.$message.warning("班级无变更~");
+ return;
+ }
const { data, status, info } =
await this.$request.studentChangeClass({
studentId: this.formStuCla.studentId,
@@ -494,6 +509,7 @@ export default {
if (status == 0) {
this.diaChangeClass = false;
this.$message.success(info);
+ await this._QueryClazz(this.query.grade);
this._QueryData();
} else {
this.$message.error(info);
@@ -528,7 +544,7 @@ export default {
});
if (status === 0) {
this.$message.success("删除成功");
- this.studentList.splice(index, 1);
+ await this._QueryClazz(this.query.grade);
this._QueryData();
} else {
this.$message.error(info);
@@ -539,7 +555,9 @@ export default {
this.query.classId = "";
this.query.studentName = "";
this.query.studentCode = "";
- await this._QueryClass(val);
+ if (val != 80 && val != 81) {
+ await this._QueryClass(val);
+ }
this._QueryData(3);
},
serQuery(type) {
@@ -550,44 +568,33 @@ export default {
return;
}
this.query.classId = "";
- this.query.status = 9;
this.query.studentCode = "";
this.query.grade = "";
query.studentName = this.query.studentName;
- query.status = this.query.status;
+ query.status = 9;
} else if (type == 2) {
if (!this.query.studentCode) {
this.$message.warning("输入学生学号~");
return;
}
this.query.classId = "";
- this.query.status = 9;
this.query.studentName = "";
this.query.grade = "";
query.studentCode = this.query.studentCode;
- query.status = this.query.status;
+ query.status = 9;
} else if (type == 3) {
this.query.studentName = "";
this.query.studentCode = "";
- this.query.status = 0;
- query.grade = this.query.grade;
- query.classId = this.query.classId;
- } else if (type == 4) {
- this.clazzDetail.stationSn = "";
- this.query.studentName = "";
- this.query.studentCode = "";
- if (this.query.status) {
- this.query.grade = "";
- this.query.classId = "";
+ if (this.query.grade == 80) {
+ query.status = -1;
+ } else if (this.query.grade == 81) {
+ query.status = 2;
} else {
- this.query.grade = this.gradeList[0]?.value;
- this.query.classId = this.classList[0]?.id;
query.grade = this.query.grade;
query.classId = this.query.classId;
}
- query.status = this.query.status;
} else {
- query = this.query;
+ query = { ...this.query };
}
return query;
},
@@ -645,7 +652,6 @@ export default {
});
if (status === 0) {
this.classList = (data.list && [...data?.list]) || [];
- this.formStuCla.classId = this.classList[0].id;
} else {
this.$message.error(info);
}
@@ -774,7 +780,7 @@ export default {
box-shadow: 2px 2px 5px #7f7f7f;
margin: 0 20px 20px 0;
.s-li-box {
- width: 180px;
+ width: 160px;
border-radius: 10px;
min-height: 120px;
padding: 0 12px 5px;