个人成绩录入 添加批次名称 家长信息管理 新增家长

This commit is contained in:
shidongli 2022-08-30 10:51:10 +08:00
parent 55877574e3
commit aaa26457dc
3 changed files with 31 additions and 6 deletions

View File

@ -16,7 +16,14 @@ export function getParentInfo(id) {
method: 'get' method: 'get'
}) })
} }
//添加家长信息
export function addParentInfo(data) {
return request({
url: '/system/parentInfo/add',
method: 'post',
data: data
})
}
// 修改家长信息 // 修改家长信息
export function updateParentInfo(data) { export function updateParentInfo(data) {

View File

@ -40,6 +40,17 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:parentInfo:add']"
>新增</el-button
>
</el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button
type="success" type="success"
@ -168,6 +179,7 @@ import {
getParentInfo, getParentInfo,
delParentInfo, delParentInfo,
updateParentInfo, updateParentInfo,
addParentInfo,
} from "@/api/system/parentInfo"; } from "@/api/system/parentInfo";
export default { export default {
@ -316,6 +328,12 @@ export default {
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
}else {
addParentInfo(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
} }
} }
}); });

View File

@ -120,7 +120,7 @@
align="center" align="center"
prop="batchCode" prop="batchCode"
/> />
<el-table-column label="批次名称" align="center" prop="batchName" />
<el-table-column label="班级名称" align="center" prop="className" /> <el-table-column label="班级名称" align="center" prop="className" />
<el-table-column label="学生姓名" align="center" prop="studentName" /> <el-table-column label="学生姓名" align="center" prop="studentName" />
@ -1233,7 +1233,7 @@ export default {
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery(); this.handleQuery();
this.queryParams.className = ""; this.queryParams.className ="";
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {