修改页面

This commit is contained in:
曹辉 2022-08-31 14:35:30 +08:00
parent 7cfffbd3d2
commit 56c552159a

View File

@ -155,7 +155,7 @@
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
@click="handleUpdate2(scope.row)"
v-hasPermi="['system:testItemScore:edit']"
>修改</el-button
>
@ -356,7 +356,10 @@
align="center"
>
<template slot-scope="scope">
<el-input v-model="scope.row.syntheticalAssess" maxlength="200"></el-input>
<el-input
v-model="scope.row.syntheticalAssess"
maxlength="200"
></el-input>
</template>
</el-table-column>
</el-table>
@ -1346,6 +1349,26 @@ export default {
console.log(this.form);
});
},
handleUpdate2(row) {
console.log(row);
// this.reset();
var list = {
studentId: row.studentId,
batchCode: row.batchCode,
};
this.form.itemScoreList = [];
getTestItemScore(list).then((response) => {
console.log();
this.form = response.data;
this.open = true;
this.queryParams3.classId = response.data.classId;
this.stname = response.data.studentName;
this.itemId3 = response.data.studentId;
this.addqueryParams.studentId = response.data.studentId;
this.itemNumbername = response.data.batchCode;
console.log(this.form);
});
},
/** 提交按钮 */
submitForm() {
console.log(this.form);
@ -1410,7 +1433,7 @@ export default {
this.multiple = !selection.length;
this.studentId = selection.map((item) => item.studentId);
this.batchCode = selection.map((item) => item.batchCode);
console.log(this.studentId,this.batchCode)
console.log(this.studentId, this.batchCode);
},
// /** */
// handleUpdate(row) {