儿童学习与发展档案
This commit is contained in:
53
ruoyi-ui/src/api/benyi/learndevelopmentfamily.js
Normal file
53
ruoyi-ui/src/api/benyi/learndevelopmentfamily.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询儿童学习与发展档案(家长)列表
|
||||
export function listFamily(query) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentfamily/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询儿童学习与发展档案(家长)详细
|
||||
export function getFamily(id) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentfamily/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增儿童学习与发展档案(家长)
|
||||
export function addFamily(data) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentfamily',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改儿童学习与发展档案(家长)
|
||||
export function updateFamily(data) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentfamily',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除儿童学习与发展档案(家长)
|
||||
export function delFamily(id) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentfamily/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出儿童学习与发展档案(家长)
|
||||
export function exportFamily(query) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentfamily/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
53
ruoyi-ui/src/api/benyi/learndevelopmentteacher.js
Normal file
53
ruoyi-ui/src/api/benyi/learndevelopmentteacher.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询儿童学习与发展档案(教师)列表
|
||||
export function listTeacher(query) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentteacher/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询儿童学习与发展档案(教师)详细
|
||||
export function getTeacher(id) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentteacher/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增儿童学习与发展档案(教师)
|
||||
export function addTeacher(data) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentteacher',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改儿童学习与发展档案(教师)
|
||||
export function updateTeacher(data) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentteacher',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除儿童学习与发展档案(教师)
|
||||
export function delTeacher(id) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentteacher/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出儿童学习与发展档案(教师)
|
||||
export function exportTeacher(query) {
|
||||
return request({
|
||||
url: '/benyi/learndevelopmentteacher/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
314
ruoyi-ui/src/views/benyi/learndevelopmentfamily/index.vue
Normal file
314
ruoyi-ui/src/views/benyi/learndevelopmentfamily/index.vue
Normal file
@ -0,0 +1,314 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
||||
<el-form-item label="幼儿id" prop="childid">
|
||||
<el-input
|
||||
v-model="queryParams.childid"
|
||||
placeholder="请输入幼儿id"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="学年学期" prop="xnxq">
|
||||
<el-input
|
||||
v-model="queryParams.xnxq"
|
||||
placeholder="请输入学年学期"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['benyi:learndevelopmentfamily:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['benyi:learndevelopmentfamily:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['benyi:learndevelopmentfamily:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="familyList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<el-table-column label="幼儿id" align="center" prop="childid" />
|
||||
<el-table-column label="学年学期" align="center" prop="xnxq" />
|
||||
<el-table-column label="作品照片" align="center" prop="zpimgs" />
|
||||
<el-table-column label="作品照片备注" align="center" prop="zpimgremarks" />
|
||||
<el-table-column label="生活照片" align="center" prop="shimgs" />
|
||||
<el-table-column label="生活照片备注" align="center" prop="shimgsremarks" />
|
||||
<el-table-column label="有趣事件" align="center" prop="yqsj" />
|
||||
<el-table-column label="有趣事件备注" align="center" prop="yqsjremarks" />
|
||||
<el-table-column label="教师评语" align="center" prop="jspy" />
|
||||
<el-table-column label="教师评语备注" align="center" prop="jspyremarks" />
|
||||
<el-table-column label="创建人" align="center" prop="createuserid" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['benyi:learndevelopmentfamily:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:learndevelopmentfamily:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改儿童学习与发展档案(家长)对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="幼儿id" prop="childid">
|
||||
<el-input v-model="form.childid" placeholder="请输入幼儿id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="学年学期" prop="xnxq">
|
||||
<el-input v-model="form.xnxq" placeholder="请输入学年学期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="作品照片" prop="zpimgs">
|
||||
<el-input v-model="form.zpimgs" placeholder="请输入作品照片" />
|
||||
</el-form-item>
|
||||
<el-form-item label="作品照片备注" prop="zpimgremarks">
|
||||
<el-input v-model="form.zpimgremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="生活照片" prop="shimgs">
|
||||
<el-input v-model="form.shimgs" placeholder="请输入生活照片" />
|
||||
</el-form-item>
|
||||
<el-form-item label="生活照片备注" prop="shimgsremarks">
|
||||
<el-input v-model="form.shimgsremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="有趣事件" prop="yqsj">
|
||||
<el-input v-model="form.yqsj" placeholder="请输入有趣事件" />
|
||||
</el-form-item>
|
||||
<el-form-item label="有趣事件备注" prop="yqsjremarks">
|
||||
<el-input v-model="form.yqsjremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="教师评语" prop="jspy">
|
||||
<el-input v-model="form.jspy" placeholder="请输入教师评语" />
|
||||
</el-form-item>
|
||||
<el-form-item label="教师评语备注" prop="jspyremarks">
|
||||
<el-input v-model="form.jspyremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createuserid">
|
||||
<el-input v-model="form.createuserid" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listFamily,
|
||||
getFamily,
|
||||
delFamily,
|
||||
addFamily,
|
||||
updateFamily,
|
||||
} from "@/api/benyi/learndevelopmentfamily";
|
||||
|
||||
export default {
|
||||
name: "Family",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 儿童学习与发展档案(家长)表格数据
|
||||
familyList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
childid: undefined,
|
||||
xnxq: undefined,
|
||||
zpimgs: undefined,
|
||||
zpimgremarks: undefined,
|
||||
shimgs: undefined,
|
||||
shimgsremarks: undefined,
|
||||
yqsj: undefined,
|
||||
yqsjremarks: undefined,
|
||||
jspy: undefined,
|
||||
jspyremarks: undefined,
|
||||
createuserid: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询儿童学习与发展档案(家长)列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listFamily(this.queryParams).then((response) => {
|
||||
this.familyList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
childid: undefined,
|
||||
xnxq: undefined,
|
||||
zpimgs: undefined,
|
||||
zpimgremarks: undefined,
|
||||
shimgs: undefined,
|
||||
shimgsremarks: undefined,
|
||||
yqsj: undefined,
|
||||
yqsjremarks: undefined,
|
||||
jspy: undefined,
|
||||
jspyremarks: undefined,
|
||||
createuserid: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加儿童学习与发展档案(家长)";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getFamily(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改儿童学习与发展档案(家长)";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateFamily(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addFamily(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm(
|
||||
'是否确认删除儿童学习与发展档案(家长)编号为"' + ids + '"的数据项?',
|
||||
"警告",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
return delFamily(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
314
ruoyi-ui/src/views/benyi/learndevelopmentteacher/index.vue
Normal file
314
ruoyi-ui/src/views/benyi/learndevelopmentteacher/index.vue
Normal file
@ -0,0 +1,314 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" label-width="68px">
|
||||
<el-form-item label="幼儿id" prop="childid">
|
||||
<el-input
|
||||
v-model="queryParams.childid"
|
||||
placeholder="请输入幼儿id"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="学年学期" prop="xnxq">
|
||||
<el-input
|
||||
v-model="queryParams.xnxq"
|
||||
placeholder="请输入学年学期"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['benyi:learndevelopmentteacher:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['benyi:learndevelopmentteacher:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['benyi:learndevelopmentteacher:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="teacherList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<el-table-column label="幼儿id" align="center" prop="childid" />
|
||||
<el-table-column label="学年学期" align="center" prop="xnxq" />
|
||||
<el-table-column label="观察记录" align="center" prop="gcjl" />
|
||||
<el-table-column label="观察记录备注" align="center" prop="gcjlremarks" />
|
||||
<el-table-column label="问题与方案" align="center" prop="wtyfa" />
|
||||
<el-table-column label="问题与方案备注" align="center" prop="wtyfaremarks" />
|
||||
<el-table-column label="评估结果" align="center" prop="pgjg" />
|
||||
<el-table-column label="评估结果备注" align="center" prop="pgjgremarks" />
|
||||
<el-table-column label="教育计划" align="center" prop="jyjh" />
|
||||
<el-table-column label="教育计划备注" align="center" prop="jyjhremarks" />
|
||||
<el-table-column label="创建人" align="center" prop="createuserid" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['benyi:learndevelopmentteacher:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['benyi:learndevelopmentteacher:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改儿童学习与发展档案(教师)对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="幼儿id" prop="childid">
|
||||
<el-input v-model="form.childid" placeholder="请输入幼儿id" />
|
||||
</el-form-item>
|
||||
<el-form-item label="学年学期" prop="xnxq">
|
||||
<el-input v-model="form.xnxq" placeholder="请输入学年学期" />
|
||||
</el-form-item>
|
||||
<el-form-item label="观察记录" prop="gcjl">
|
||||
<el-input v-model="form.gcjl" placeholder="请输入观察记录" />
|
||||
</el-form-item>
|
||||
<el-form-item label="观察记录备注" prop="gcjlremarks">
|
||||
<el-input v-model="form.gcjlremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="问题与方案" prop="wtyfa">
|
||||
<el-input v-model="form.wtyfa" placeholder="请输入问题与方案" />
|
||||
</el-form-item>
|
||||
<el-form-item label="问题与方案备注" prop="wtyfaremarks">
|
||||
<el-input v-model="form.wtyfaremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="评估结果" prop="pgjg">
|
||||
<el-input v-model="form.pgjg" placeholder="请输入评估结果" />
|
||||
</el-form-item>
|
||||
<el-form-item label="评估结果备注" prop="pgjgremarks">
|
||||
<el-input v-model="form.pgjgremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="教育计划" prop="jyjh">
|
||||
<el-input v-model="form.jyjh" placeholder="请输入教育计划" />
|
||||
</el-form-item>
|
||||
<el-form-item label="教育计划备注" prop="jyjhremarks">
|
||||
<el-input v-model="form.jyjhremarks" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="创建人" prop="createuserid">
|
||||
<el-input v-model="form.createuserid" placeholder="请输入创建人" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
listTeacher,
|
||||
getTeacher,
|
||||
delTeacher,
|
||||
addTeacher,
|
||||
updateTeacher,
|
||||
} from "@/api/benyi/learndevelopmentteacher";
|
||||
|
||||
export default {
|
||||
name: "Teacher",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 儿童学习与发展档案(教师)表格数据
|
||||
teacherList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
childid: undefined,
|
||||
xnxq: undefined,
|
||||
gcjl: undefined,
|
||||
gcjlremarks: undefined,
|
||||
wtyfa: undefined,
|
||||
wtyfaremarks: undefined,
|
||||
pgjg: undefined,
|
||||
pgjgremarks: undefined,
|
||||
jyjh: undefined,
|
||||
jyjhremarks: undefined,
|
||||
createuserid: undefined,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询儿童学习与发展档案(教师)列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listTeacher(this.queryParams).then((response) => {
|
||||
this.teacherList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
childid: undefined,
|
||||
xnxq: undefined,
|
||||
gcjl: undefined,
|
||||
gcjlremarks: undefined,
|
||||
wtyfa: undefined,
|
||||
wtyfaremarks: undefined,
|
||||
pgjg: undefined,
|
||||
pgjgremarks: undefined,
|
||||
jyjh: undefined,
|
||||
jyjhremarks: undefined,
|
||||
createuserid: undefined,
|
||||
createTime: undefined,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length != 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加儿童学习与发展档案(教师)";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getTeacher(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改儿童学习与发展档案(教师)";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != undefined) {
|
||||
updateTeacher(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addTeacher(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm(
|
||||
'是否确认删除儿童学习与发展档案(教师)编号为"' + ids + '"的数据项?',
|
||||
"警告",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
return delTeacher(ids);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user