个人成绩

This commit is contained in:
闫晓茹 2022-08-11 18:03:24 +08:00
parent f9e6e79521
commit 9b1bb5d4ee

View File

@ -123,7 +123,6 @@
label="所属批次编号" label="所属批次编号"
align="center" align="center"
prop="batchCode" prop="batchCode"
/> />
<el-table-column label="测试成绩" align="center" prop="itemScore"> <el-table-column label="测试成绩" align="center" prop="itemScore">
<template slot-scope="scope"> <template slot-scope="scope">
@ -1225,8 +1224,6 @@ export default {
{ required: true, message: "请输入测试成绩", trigger: "blur" }, { required: true, message: "请输入测试成绩", trigger: "blur" },
], ],
// itemScores: [ // itemScores: [
// { required: true, message: "", trigger: "blur" }, // { required: true, message: "", trigger: "blur" },
// ], // ],
@ -1235,7 +1232,6 @@ export default {
{ required: true, message: "综合评价不能为空", trigger: "blur" }, { required: true, message: "综合评价不能为空", trigger: "blur" },
] ]
}, },
}; };
}, },
created() { created() {
@ -1504,10 +1500,13 @@ export default {
// this.stname = row.studentName; // this.stname = row.studentName;
// this.testname=row.itemName; // this.testname=row.itemName;
// this.itemNumbername = row.batchCode; // this.itemNumbername = row.batchCode;
if(response.data.itemScore==''||response.data.itemScore==null){ if (response.data.itemScore == "" || response.data.itemScore == null) {
response.data.dictvalue='text'; response.data.dictvalue = "text";
}else if(response.data.scoreDictValue==''||response.data.scoreDictValue==null){ } else if (
response.data.dictvalue='number'; response.data.scoreDictValue == "" ||
response.data.scoreDictValue == null
) {
response.data.dictvalue = "number";
} }
this.form = response.data; this.form = response.data;
// this.form = response.className; // this.form = response.className;
@ -1519,7 +1518,6 @@ export default {
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
console.log("wwwwww")
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
@ -1533,6 +1531,14 @@ export default {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();
this.xmname = "请选择所属班级";
this.stname = "请选择学生姓名";
this.testname = "请选择测试项目名称";
this.itemNumbername = "请选择批次编号";
this.itemId2 = "";
this.itemId3 = "";
this.itemId4 = "";
this.itemId5 = "";
}); });
} }
} }
@ -1542,7 +1548,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal this.$modal
.confirm('是否确认删除个人成绩录入管理编号为"' + ids + '"的数据项?') .confirm("是否确认删除个人成绩的数据项?")
.then(function () { .then(function () {
return delTestItemScore(ids); return delTestItemScore(ids);
}) })