幼儿评估
This commit is contained in:
53
ruoyi-ui/src/api/benyi/assessmentchild.js
Normal file
53
ruoyi-ui/src/api/benyi/assessmentchild.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询幼儿评估列表
|
||||
export function listAssessmentchild(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentchild/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询幼儿评估详细
|
||||
export function getAssessmentchild(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentchild/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增幼儿评估
|
||||
export function addAssessmentchild(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentchild',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿评估
|
||||
export function updateAssessmentchild(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentchild',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除幼儿评估
|
||||
export function delAssessmentchild(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentchild/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出幼儿评估
|
||||
export function exportAssessmentchild(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentchild/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
53
ruoyi-ui/src/api/benyi/assessmentrecordchild.js
Normal file
53
ruoyi-ui/src/api/benyi/assessmentrecordchild.js
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询幼儿评估记录列表
|
||||
export function listAssessmentrecordchild(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentrecordchild/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询幼儿评估记录详细
|
||||
export function getAssessmentrecordchild(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentrecordchild/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增幼儿评估记录
|
||||
export function addAssessmentrecordchild(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentrecordchild',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幼儿评估记录
|
||||
export function updateAssessmentrecordchild(data) {
|
||||
return request({
|
||||
url: '/benyi/assessmentrecordchild',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除幼儿评估记录
|
||||
export function delAssessmentrecordchild(id) {
|
||||
return request({
|
||||
url: '/benyi/assessmentrecordchild/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出幼儿评估记录
|
||||
export function exportAssessmentrecordchild(query) {
|
||||
return request({
|
||||
url: '/benyi/assessmentrecordchild/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
@ -13,6 +13,7 @@
|
||||
icon="el-icon-s-data"
|
||||
size="mini"
|
||||
@click="submitForm"
|
||||
v-hasPermi="['benyi:assessmentchild:add']"
|
||||
>生成图表</el-button
|
||||
>
|
||||
</div>
|
||||
@ -72,9 +73,14 @@
|
||||
:key="itemYs.id"
|
||||
>
|
||||
<p class="checkbox-item flex align-center">
|
||||
<el-checkbox v-model="itemYs.id">{{
|
||||
itemYs.name
|
||||
}}</el-checkbox>
|
||||
<el-checkbox-group
|
||||
v-model="checkList"
|
||||
@change="handlecheckedItemsChange"
|
||||
>
|
||||
<el-checkbox :label="itemYs.id" :key="itemYs.id">{{
|
||||
itemYs.name
|
||||
}}</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</p>
|
||||
<div class="check-info" v-if="itemYs.ckbz">
|
||||
{{ itemYs.ckbz }}
|
||||
@ -156,15 +162,21 @@ import {
|
||||
} from "@/api/benyi/assessmentcontent";
|
||||
|
||||
import { getChildByAssessment } from "@/api/benyi/child";
|
||||
import {
|
||||
addAssessmentchild,
|
||||
updateAssessmentchild,
|
||||
} from "@/api/benyi/assessmentchild";
|
||||
|
||||
export default {
|
||||
name: "Assessmentstudent",
|
||||
|
||||
data() {
|
||||
return {
|
||||
childId: "",
|
||||
childName: "",
|
||||
childCsrq: "",
|
||||
bjmc: "",
|
||||
classid: "",
|
||||
trem: "",
|
||||
zbjsxm: "",
|
||||
assessmentscope: "",
|
||||
@ -174,6 +186,8 @@ export default {
|
||||
ids: [],
|
||||
// 评估内容表格数据
|
||||
assessmentcontentList: [],
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
parentid: undefined,
|
||||
@ -184,23 +198,26 @@ export default {
|
||||
},
|
||||
activeName: "健康",
|
||||
checked: false,
|
||||
checkList: [],
|
||||
};
|
||||
},
|
||||
created() {
|
||||
// this.getList();
|
||||
const childId = this.$route.params && this.$route.params.id;
|
||||
console.log("childId:" + childId);
|
||||
this.childId = childId;
|
||||
// console.log("childId:" + childId);
|
||||
this.getChild(childId);
|
||||
},
|
||||
methods: {
|
||||
getChild(childId) {
|
||||
getChildByAssessment(childId).then((response) => {
|
||||
console.log(response);
|
||||
// console.log(response);
|
||||
if (response.code == "200") {
|
||||
this.childName = response.data.name;
|
||||
this.childCsrq = response.data.csrq;
|
||||
this.trem = response.trem;
|
||||
this.bjmc = response.data.bjmc;
|
||||
this.classid = response.data.classid;
|
||||
this.zbjsxm = response.data.zbjsmc;
|
||||
if (response.isAssessment == "0") {
|
||||
this.msgError(
|
||||
@ -218,7 +235,7 @@ export default {
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listAssessmentcontent(this.queryParams).then((response) => {
|
||||
console.log("rows:" + response.rows);
|
||||
// console.log("rows:" + response.rows);
|
||||
this.assessmentcontentList = response.rows;
|
||||
this.loading = false;
|
||||
});
|
||||
@ -233,11 +250,55 @@ export default {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// // 表单重置
|
||||
// reset() {
|
||||
// this.form = {
|
||||
// id: undefined,
|
||||
// childid: undefined,
|
||||
// classid: undefined,
|
||||
// contentid: undefined,
|
||||
// type: undefined,
|
||||
// xn: undefined,
|
||||
// userid: undefined,
|
||||
// createTime: undefined,
|
||||
// };
|
||||
// this.resetForm("form");
|
||||
// },
|
||||
/** 提交按钮 */
|
||||
submitForm: function () {},
|
||||
submitForm: function () {
|
||||
var items = "";
|
||||
this.checkList.forEach((item) => {
|
||||
//当全选被选中的时候,循环遍历源数据,把数据的每一项加入到默认选中的数组去
|
||||
items = items + item + ",";
|
||||
});
|
||||
// console.log(items);
|
||||
// console.log("提交:"+this.checkList.length);
|
||||
if (this.checkList.length == 0) {
|
||||
this.msgError("请至少选择一项数据");
|
||||
} else {
|
||||
this.form.childid = this.childId;
|
||||
this.form.classid = this.classid;
|
||||
this.form.items = items;
|
||||
this.form.type = "Y";
|
||||
this.form.xn = this.trem;
|
||||
addAssessmentchild(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("评估成功");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
handleClick(tab) {
|
||||
// this.activeName = tab
|
||||
},
|
||||
handlecheckedItemsChange(value) {
|
||||
// var items = "";
|
||||
// this.checkList.forEach((item) => {
|
||||
// //当全选被选中的时候,循环遍历源数据,把数据的每一项加入到默认选中的数组去
|
||||
// items = items + item + ",";
|
||||
// });
|
||||
// console.log(items);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user