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

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'
})
}
//添加家长信息
export function addParentInfo(data) {
return request({
url: '/system/parentInfo/add',
method: 'post',
data: data
})
}
// 修改家长信息
export function updateParentInfo(data) {

View File

@ -38,8 +38,19 @@
>
</el-form-item>
</el-form>
<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-button
type="success"
@ -168,6 +179,7 @@ import {
getParentInfo,
delParentInfo,
updateParentInfo,
addParentInfo,
} from "@/api/system/parentInfo";
export default {
@ -316,6 +328,12 @@ export default {
this.open = false;
this.getList();
});
}else {
addParentInfo(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});

View File

@ -120,10 +120,10 @@
align="center"
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="studentName" />
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createTime" />
@ -648,7 +648,7 @@
icon="el-icon-search"
size="mini"
@click="handleQuery3"
>搜索</el-button
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
@ -1233,7 +1233,7 @@ export default {
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
this.queryParams.className = "";
this.queryParams.className ="";
},
//
handleSelectionChange(selection) {