报告、修改
This commit is contained in:
parent
0473b482c2
commit
6d4c7bcd7f
@ -5,7 +5,7 @@ VUE_APP_TITLE = 智慧幼儿体质评估与促进系统
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 智慧幼儿体质评估与促进系统/开发环境
|
# 智慧幼儿体质评估与促进系统/开发环境
|
||||||
VUE_APP_BASE_API = 'http://192.168.16.64:8080'
|
VUE_APP_BASE_API = 'http://192.168.16.81:8099'
|
||||||
#'/dev-api'
|
#'/dev-api'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
BIN
public/student.xlsx
Normal file
BIN
public/student.xlsx
Normal file
Binary file not shown.
36
src/api/system/kindergartenCheckReport.js
Normal file
36
src/api/system/kindergartenCheckReport.js
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询幼儿园检测报告列表
|
||||||
|
export function listKindergartenCheckReport(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/kindergartenCheckReport/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询幼儿园检测报告详细
|
||||||
|
export function getKindergartenCheckReport(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/kindergartenCheckReport/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改幼儿园检测报告
|
||||||
|
export function updateKindergartenCheckReport(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/kindergartenCheckReport/edit',
|
||||||
|
method: 'POST',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 幼儿园报告下载/预览
|
||||||
|
export function report(id) {
|
||||||
|
return request({
|
||||||
|
url: `/system/kindergartenCheckReport/download/report?id=${id}`,
|
||||||
|
method: 'POST',
|
||||||
|
responseType: 'blob'
|
||||||
|
})
|
||||||
|
}
|
||||||
54
src/api/system/personalCheckReport.js
Normal file
54
src/api/system/personalCheckReport.js
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询个人体质检测报告列表
|
||||||
|
export function listPersonalCheckReport(query) {
|
||||||
|
return request({
|
||||||
|
url: '/system/personalCheckReport/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询个人体质检测报告详细
|
||||||
|
export function getPersonalCheckReport(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/personalCheckReport/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增个人体质检测报告
|
||||||
|
export function addPersonalCheckReport(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/personalCheckReport',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改个人体质检测报告
|
||||||
|
export function updatePersonalCheckReport(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/personalCheckReport',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除个人体质检测报告
|
||||||
|
export function delPersonalCheckReport(id) {
|
||||||
|
return request({
|
||||||
|
url: '/system/personalCheckReport/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 幼儿报告下载/预览
|
||||||
|
export function report(id) {
|
||||||
|
return request({
|
||||||
|
url: `/system/personalCheckReport/download/report?id=${id}`,
|
||||||
|
method: 'POST',
|
||||||
|
responseType: 'blob'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -9,13 +9,20 @@ export function StudentList(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// // 查询
|
||||||
|
// export function ClassList(query) {
|
||||||
|
// return request({
|
||||||
|
// url: '/system/testAll/ClassList',
|
||||||
|
// method: 'get',
|
||||||
|
// params: query
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
|
// // 查询
|
||||||
// 查询
|
// export function selectAllClassById(query) {
|
||||||
export function ClassList(query) {
|
// return request({
|
||||||
return request({
|
// url: '/system/testAll/selectAllClassById',
|
||||||
url: '/system/testAll/ClassList',
|
// method: 'get',
|
||||||
method: 'get',
|
// params: query
|
||||||
params: query
|
// })
|
||||||
})
|
// }
|
||||||
}
|
|
||||||
@ -97,3 +97,12 @@ export function getAllTestItemScoreInfo(query) {
|
|||||||
params: query,
|
params: query,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 获取个人成绩得分
|
||||||
|
export function getStudentFraction(studentId, itemId, itemScore) {
|
||||||
|
return request({
|
||||||
|
url: `system/testItemScore/getStudentFraction?studentId=${studentId}&itemId=${itemId}&itemScore=${itemScore}`,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -11,12 +11,20 @@
|
|||||||
<el-button
|
<el-button
|
||||||
@click="kindergartenshow = true"
|
@click="kindergartenshow = true"
|
||||||
v-if="kindergartenName == '请选择幼儿园'"
|
v-if="kindergartenName == '请选择幼儿园'"
|
||||||
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
|
style="
|
||||||
|
width: 230px;
|
||||||
|
text-align: left;
|
||||||
|
height: 32px;
|
||||||
|
color: #c0c4cc;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
"
|
||||||
>{{ kindergartenName }}</el-button
|
>{{ kindergartenName }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@click="kindergartenshow = true"
|
@click="kindergartenshow = true"
|
||||||
style="width: 250px; text-align: left; height: 32px"
|
style="width: 230px; text-align: left; height: 32px"
|
||||||
v-else
|
v-else
|
||||||
>{{ kindergartenName }}</el-button
|
>{{ kindergartenName }}</el-button
|
||||||
>
|
>
|
||||||
@ -25,13 +33,13 @@
|
|||||||
<el-form-item label="所属批次" prop="categoryName">
|
<el-form-item label="所属批次" prop="categoryName">
|
||||||
<el-button
|
<el-button
|
||||||
@click="batchCodeshowclick"
|
@click="batchCodeshowclick"
|
||||||
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
|
style="width: 230px; text-align: left; height: 32px; color: #c0c4cc"
|
||||||
v-if="batchName == '请选择批次'"
|
v-if="batchName == '请选择批次'"
|
||||||
>{{ batchName }}</el-button
|
>{{ batchName }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@click="batchCodeshowclick"
|
@click="batchCodeshowclick"
|
||||||
style="width: 250px; text-align: left; height: 32px"
|
style="width: 230px; text-align: left; height: 32px"
|
||||||
v-else
|
v-else
|
||||||
>{{ batchName }}</el-button
|
>{{ batchName }}</el-button
|
||||||
>
|
>
|
||||||
@ -341,8 +349,8 @@ export default {
|
|||||||
this.testqueryParams = {
|
this.testqueryParams = {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
batchCode:'',
|
batchCode: "",
|
||||||
batchName:'',
|
batchName: "",
|
||||||
};
|
};
|
||||||
this.testScore();
|
this.testScore();
|
||||||
},
|
},
|
||||||
|
|||||||
@ -7,30 +7,30 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="90px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="学生" prop="categoryName" label-width="45px">
|
<el-form-item label="学生姓名" prop="categoryName">
|
||||||
<el-button
|
<el-button
|
||||||
@click="studentshowclick"
|
@click="studentshowclick"
|
||||||
v-if="studentname == '请选择学生'"
|
v-if="studentname == '请选择学生'"
|
||||||
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
|
style="width: 230px; text-align: left; height: 32px; color: #c0c4cc"
|
||||||
>{{ studentname }}</el-button
|
>{{ studentname }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@click="studentshowclick"
|
@click="studentshowclick"
|
||||||
style="width: 250px; text-align: left; height: 32px"
|
style="width: 230px; text-align: left; height: 32px"
|
||||||
v-else
|
v-else
|
||||||
>{{ studentname }}</el-button
|
>{{ studentname }}</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="所属批次" prop="categoryName" label-width="70px">
|
<el-form-item label="所属批次" prop="categoryName">
|
||||||
<el-button
|
<el-button
|
||||||
@click="batchCodeshowclick"
|
@click="batchCodeshowclick"
|
||||||
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
|
style="width: 230px; text-align: left; height: 32px; color: #c0c4cc"
|
||||||
v-if="batchName == '请选择批次'"
|
v-if="batchName == '请选择批次'"
|
||||||
>{{ batchName }}</el-button
|
>{{ batchName }}</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button
|
||||||
@click="batchCodeshowclick"
|
@click="batchCodeshowclick"
|
||||||
style="width: 250px; text-align: left; height: 32px"
|
style="width: 230px; text-align: left; height: 32px"
|
||||||
v-else
|
v-else
|
||||||
>{{ batchName }}</el-button
|
>{{ batchName }}</el-button
|
||||||
>
|
>
|
||||||
@ -635,18 +635,17 @@ export default {
|
|||||||
this.batchCode = localStorage.getItem("batchCode");
|
this.batchCode = localStorage.getItem("batchCode");
|
||||||
this.studentId = localStorage.getItem("studentId");
|
this.studentId = localStorage.getItem("studentId");
|
||||||
this.batchName = localStorage.getItem("batchName");
|
this.batchName = localStorage.getItem("batchName");
|
||||||
console.log(localStorage.getItem("studentname"));
|
|
||||||
|
|
||||||
if (localStorage.getItem("batchCode") == null) {
|
if (localStorage.getItem("batchCode") == null) {
|
||||||
this.batchName = "请选择批次";
|
this.batchName = "请选择批次";
|
||||||
} else {
|
} else {
|
||||||
this.batchCode = localStorage.getItem("batchCode");
|
this.batchCode = localStorage.getItem("batchCode");
|
||||||
|
this.$emit("itemlist", this.studentId, this.batchCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (localStorage.getItem("studentname") == null) {
|
if (localStorage.getItem("studentname") == null) {
|
||||||
this.studentname = "请选择学生";
|
this.studentname = "请选择学生";
|
||||||
} else {
|
} else {
|
||||||
this.studentname = localStorage.getItem("studentname");
|
this.studentname = localStorage.getItem("studentname");
|
||||||
|
this.$emit("itemlist", this.studentId, this.batchCode);
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
localStorage.getItem("batchCode") != null &&
|
localStorage.getItem("batchCode") != null &&
|
||||||
@ -790,7 +789,6 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
console.log(res);
|
|
||||||
var user = res.data.roleKeys;
|
var user = res.data.roleKeys;
|
||||||
if (user.includes("enchou")) {
|
if (user.includes("enchou")) {
|
||||||
this.classqueryParams.kindergartenId = res.data.kindergartenId;
|
this.classqueryParams.kindergartenId = res.data.kindergartenId;
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
></right-toolbar>
|
></right-toolbar>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<div v-if="itemshow" style="margin: 10px auto; width: 100%">
|
<div v-if="itemshow" style="margin: 10px auto; width: 100% ">
|
||||||
<el-table
|
<el-table
|
||||||
:data="actionlist"
|
:data="actionlist"
|
||||||
border
|
border
|
||||||
@ -120,7 +120,7 @@ export default {
|
|||||||
//查询传值
|
//查询传值
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 999,
|
||||||
// studentId: "10",
|
// studentId: "10",
|
||||||
// batchCode: "PC202208030005",
|
// batchCode: "PC202208030005",
|
||||||
studentId: "",
|
studentId: "",
|
||||||
@ -168,7 +168,6 @@ export default {
|
|||||||
});
|
});
|
||||||
// console.log(this.spanArr);
|
// console.log(this.spanArr);
|
||||||
},
|
},
|
||||||
|
|
||||||
// 合并单元格
|
// 合并单元格
|
||||||
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
|
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||||
// console.log(columnIndex);
|
// console.log(columnIndex);
|
||||||
|
|||||||
@ -36,8 +36,17 @@
|
|||||||
><span style="margin-left: 20px; margin-right: 20px">{{
|
><span style="margin-left: 20px; margin-right: 20px">{{
|
||||||
analysislist.schoolRank
|
analysislist.schoolRank
|
||||||
}}</span
|
}}</span
|
||||||
>名
|
>名 <span style="margin-left: 50px">区域排名:</span
|
||||||
|
><span style="margin-left: 20px; margin-right: 20px">{{
|
||||||
|
analysislist.areaRank
|
||||||
|
}}</span
|
||||||
|
>名 <span style="margin-left: 50px">区域成绩占比:</span
|
||||||
|
><span style="margin-left: 20px; margin-right: 20px">{{
|
||||||
|
analysislist.areaProportion
|
||||||
|
}}</span
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div slot="header" style="text-align: center; font-size: 25px">
|
<div slot="header" style="text-align: center; font-size: 25px">
|
||||||
<span>体测项目分值与全校、全市对比</span>
|
<span>体测项目分值与全校、全市对比</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
355
src/views/system/kindergartenCheckReport/index.vue
Normal file
355
src/views/system/kindergartenCheckReport/index.vue
Normal file
@ -0,0 +1,355 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="90px"
|
||||||
|
>
|
||||||
|
<kindergarten
|
||||||
|
@kinbatlist="kinbatlist"
|
||||||
|
style="display: inline; padding: 20px 0 20px 0"
|
||||||
|
></kindergarten>
|
||||||
|
<el-form-item label="报告名称" prop="reportName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.reportName"
|
||||||
|
placeholder="请输入报告名称"
|
||||||
|
style="width: 230px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告编号" prop="reportCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.reportCode"
|
||||||
|
placeholder="请输入报告编号"
|
||||||
|
clearable
|
||||||
|
style="width: 230px"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="审核状态" prop="checkTime">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.reportName"
|
||||||
|
style="width: 230px"
|
||||||
|
placeholder="请输入报告名称"
|
||||||
|
clearable
|
||||||
|
@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-table v-loading="loading" :data="kindergartenCheckReportList">
|
||||||
|
<el-table-column
|
||||||
|
label="幼儿园名称"
|
||||||
|
align="center"
|
||||||
|
prop="kindergartenName"
|
||||||
|
/>
|
||||||
|
<el-table-column label="批次名称" align="center" prop="batchName" />
|
||||||
|
<el-table-column label="报告名称" align="center" prop="reportName" />
|
||||||
|
<el-table-column label="报告编号" align="center" prop="reportCode" />
|
||||||
|
<el-table-column label="审核人" align="center" prop="checkUserId" />
|
||||||
|
<el-table-column label="审核状态" align="center" prop="checkStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.checkStatus == 0 ? "未审核" : "" }}
|
||||||
|
{{ scope.row.checkStatus == 1 ? "已审核" : "" }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
label="审核时间"
|
||||||
|
align="center"
|
||||||
|
prop="checkTime"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.checkTime, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<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-search"
|
||||||
|
@click="lookhand(scope.row)"
|
||||||
|
>预览</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['system:kindergartenCheckReport:edit']"
|
||||||
|
>审核</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-download"
|
||||||
|
@click="handleExport(scope.row)"
|
||||||
|
v-hasPermi="['system:kindergartenCheckReport:export']"
|
||||||
|
>下载</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="1200px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||||
|
<el-form-item label="审批状态" prop="checkStatus">
|
||||||
|
<el-radio-group v-model="form.checkStatus">
|
||||||
|
<el-radio :label="0">未审批</el-radio>
|
||||||
|
<el-radio :label="1">已审批</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告内容" prop="reportName">
|
||||||
|
<iframe
|
||||||
|
ref="pdfCotainer"
|
||||||
|
:src="pdfurl"
|
||||||
|
width="1000px"
|
||||||
|
height="550px"
|
||||||
|
></iframe>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="幼儿园名称" prop="kindergartenName">
|
||||||
|
<el-input v-model="form.kindergartenName" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="批次名称" prop="batchCode">
|
||||||
|
<el-input v-model="form.batchCode" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告编号" prop="reportCode">
|
||||||
|
<el-input v-model="form.reportCode" placeholder="请输入报告编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告名称" prop="reportName">
|
||||||
|
<el-input v-model="form.reportName" 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>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="预览"
|
||||||
|
:visible.sync="openiframe"
|
||||||
|
width="1050px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<div style="height: 600px">
|
||||||
|
<iframe
|
||||||
|
ref="pdfCotainer"
|
||||||
|
:src="pdfurl"
|
||||||
|
width="1000px"
|
||||||
|
height="600px"
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="openiframe = false">关闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listKindergartenCheckReport,
|
||||||
|
getKindergartenCheckReport,
|
||||||
|
addKindergartenCheckReport,
|
||||||
|
updateKindergartenCheckReport,
|
||||||
|
report,
|
||||||
|
} from "@/api/system/kindergartenCheckReport";
|
||||||
|
import kindergarten from "../../assembly/kindergarten.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { kindergarten },
|
||||||
|
name: "KindergartenCheckReport",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
openiframe: false,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 幼儿园检测报告表格数据
|
||||||
|
kindergartenCheckReportList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
kindergartenId: null,
|
||||||
|
batchCode: null,
|
||||||
|
reportCode: null,
|
||||||
|
reportName: null,
|
||||||
|
physicalSynthAnalysis: null,
|
||||||
|
downloadAddress: null,
|
||||||
|
motionLibraryId: null,
|
||||||
|
checkUserId: null,
|
||||||
|
checkTime: null,
|
||||||
|
checkStatus: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
pdfurl: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询幼儿园检测报告列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listKindergartenCheckReport(this.queryParams).then((response) => {
|
||||||
|
this.kindergartenCheckReportList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
kindergartenId: null,
|
||||||
|
batchCode: null,
|
||||||
|
reportCode: null,
|
||||||
|
reportName: null,
|
||||||
|
physicalSynthAnalysis: null,
|
||||||
|
downloadAddress: null,
|
||||||
|
motionLibraryId: null,
|
||||||
|
checkUserId: null,
|
||||||
|
checkTime: null,
|
||||||
|
checkStatus: 0,
|
||||||
|
delFlag: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
console.log(this.queryParams);
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
report(row.id).then((res) => {
|
||||||
|
this.pdfurl = window.URL.createObjectURL(res);
|
||||||
|
// window.open(this.pdfurl);
|
||||||
|
});
|
||||||
|
getKindergartenCheckReport(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改幼儿园检测报告审批状态";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updateKindergartenCheckReport(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addKindergartenCheckReport(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
//预览
|
||||||
|
lookhand(item) {
|
||||||
|
report(item.id).then((res) => {
|
||||||
|
this.pdfurl = window.URL.createObjectURL(res);
|
||||||
|
this.openiframe = true;
|
||||||
|
// window.open(this.pdfurl);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport(row) {
|
||||||
|
// report(row.id).then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// });
|
||||||
|
this.download(
|
||||||
|
`/system/kindergartenCheckReport/download/report?id=${row.id}`,
|
||||||
|
{},
|
||||||
|
`幼儿园检测报告.pdf`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
kinbatlist(kindergartenId, batchCode) {
|
||||||
|
console.log(kindergartenId, batchCode);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped='scss'>
|
||||||
|
::v-deep .el-form {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
372
src/views/system/personalCheckReport/index.vue
Normal file
372
src/views/system/personalCheckReport/index.vue
Normal file
@ -0,0 +1,372 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form
|
||||||
|
:model="queryParams"
|
||||||
|
ref="queryForm"
|
||||||
|
size="small"
|
||||||
|
:inline="true"
|
||||||
|
v-show="showSearch"
|
||||||
|
label-width="90px"
|
||||||
|
>
|
||||||
|
<student
|
||||||
|
style="display: inline; padding: 20px 0 20px 0"
|
||||||
|
@itemlist="itemlists"
|
||||||
|
></student>
|
||||||
|
|
||||||
|
<el-form-item label="报告名称" prop="reportName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.reportName"
|
||||||
|
placeholder="请输入报告名称"
|
||||||
|
clearable
|
||||||
|
style="width: 230px"
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告编号" prop="reportCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.reportCode"
|
||||||
|
placeholder="请输入报告编号"
|
||||||
|
style="width: 230px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="审核状态" prop="checkUserId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.checkUserId"
|
||||||
|
placeholder="请输入审核状态"
|
||||||
|
style="width: 230px"
|
||||||
|
clearable
|
||||||
|
@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-table v-loading="loading" :data="personalCheckReportList">
|
||||||
|
<el-table-column label="学生姓名" align="center" prop="studentName" />
|
||||||
|
<el-table-column label="批次名称" align="center" prop="batchName" />
|
||||||
|
<el-table-column label="报告名称" align="center" prop="reportName" />
|
||||||
|
<el-table-column label="报告编号" align="center" prop="reportCode" />
|
||||||
|
<el-table-column label="审核人" align="center" prop="checkUserId" />
|
||||||
|
<el-table-column
|
||||||
|
label="审核时间"
|
||||||
|
align="center"
|
||||||
|
prop="checkTime"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ parseTime(scope.row.checkTime, "{y}-{m}-{d}") }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="审核状态" align="center" prop="checkStatus">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.checkStatus == 0 ? "未审核" : "" }}
|
||||||
|
{{ scope.row.checkStatus == 1 ? "已审核" : "" }}
|
||||||
|
</template></el-table-column
|
||||||
|
>
|
||||||
|
<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-search"
|
||||||
|
@click="lookhand(scope.row)"
|
||||||
|
>预览</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-edit"
|
||||||
|
@click="handleUpdate(scope.row)"
|
||||||
|
v-hasPermi="['system:personalCheckReport:edit']"
|
||||||
|
>审核</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-download"
|
||||||
|
@click="handleExport(scope.row)"
|
||||||
|
v-hasPermi="['system:personalCheckReport:export']"
|
||||||
|
>下载</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="1200px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||||
|
<el-form-item label="审批状态" prop="checkStatus">
|
||||||
|
<el-radio-group v-model="form.checkStatus">
|
||||||
|
<el-radio :label="0">未审批</el-radio>
|
||||||
|
<el-radio :label="1">已审批</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告内容" prop="reportName">
|
||||||
|
<iframe
|
||||||
|
ref="pdfCotainer"
|
||||||
|
:src="pdfurl"
|
||||||
|
width="1000px"
|
||||||
|
height="550px"
|
||||||
|
></iframe>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="学生姓名" prop="studentId">
|
||||||
|
<el-input v-model="form.studentId" placeholder="请输入学生姓名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="批次编号" prop="batchCode">
|
||||||
|
<el-input v-model="form.batchCode" placeholder="请输入批次编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告编号" prop="reportCode">
|
||||||
|
<el-input v-model="form.reportCode" placeholder="请输入报告编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="报告名称" prop="reportName">
|
||||||
|
<el-input v-model="form.reportName" 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>
|
||||||
|
|
||||||
|
<el-dialog
|
||||||
|
title="预览"
|
||||||
|
:visible.sync="openiframe"
|
||||||
|
width="1050px"
|
||||||
|
append-to-body
|
||||||
|
>
|
||||||
|
<div style="height: 600px">
|
||||||
|
<iframe
|
||||||
|
ref="pdfCotainer"
|
||||||
|
:src="pdfurl"
|
||||||
|
width="1000px"
|
||||||
|
height="600px"
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="openiframe = false">关闭</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
listPersonalCheckReport,
|
||||||
|
getPersonalCheckReport,
|
||||||
|
delPersonalCheckReport,
|
||||||
|
addPersonalCheckReport,
|
||||||
|
updatePersonalCheckReport,
|
||||||
|
report,
|
||||||
|
} from "@/api/system/personalCheckReport";
|
||||||
|
import student from "../../assembly/student.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: { student },
|
||||||
|
name: "PersonalCheckReport",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
openiframe: false,
|
||||||
|
// 选中数组
|
||||||
|
ids: [],
|
||||||
|
// 非单个禁用
|
||||||
|
single: true,
|
||||||
|
// 非多个禁用
|
||||||
|
multiple: true,
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 个人体质检测报告表格数据
|
||||||
|
personalCheckReportList: [],
|
||||||
|
// 弹出层标题
|
||||||
|
title: "",
|
||||||
|
// 是否显示弹出层
|
||||||
|
open: false,
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
studentId: null,
|
||||||
|
batchCode: null,
|
||||||
|
reportCode: null,
|
||||||
|
reportName: null,
|
||||||
|
syntheticalAssess: null,
|
||||||
|
physicalAnalysisExplain: null,
|
||||||
|
unqualifyItemExplain: null,
|
||||||
|
downloadAddress: null,
|
||||||
|
prescriptionAdvice: null,
|
||||||
|
motionLibraryId: null,
|
||||||
|
checkUserId: null,
|
||||||
|
checkTime: null,
|
||||||
|
checkStatus: null,
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {},
|
||||||
|
pdfurl: null,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询个人体质检测报告列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listPersonalCheckReport(this.queryParams).then((response) => {
|
||||||
|
this.personalCheckReportList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 取消按钮
|
||||||
|
cancel() {
|
||||||
|
this.open = false;
|
||||||
|
this.reset();
|
||||||
|
},
|
||||||
|
// 表单重置
|
||||||
|
reset() {
|
||||||
|
this.form = {
|
||||||
|
id: null,
|
||||||
|
studentId: null,
|
||||||
|
batchCode: null,
|
||||||
|
reportCode: null,
|
||||||
|
reportName: null,
|
||||||
|
syntheticalAssess: null,
|
||||||
|
physicalAnalysisExplain: null,
|
||||||
|
unqualifyItemExplain: null,
|
||||||
|
downloadAddress: null,
|
||||||
|
prescriptionAdvice: null,
|
||||||
|
motionLibraryId: null,
|
||||||
|
checkUserId: null,
|
||||||
|
checkTime: null,
|
||||||
|
checkStatus: 0,
|
||||||
|
delFlag: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null,
|
||||||
|
};
|
||||||
|
this.resetForm("form");
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
console.log(this.queryParams);
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
handleUpdate(row) {
|
||||||
|
this.reset();
|
||||||
|
const id = row.id || this.ids;
|
||||||
|
report(row.id).then((res) => {
|
||||||
|
this.pdfurl = window.URL.createObjectURL(res);
|
||||||
|
// window.open(this.pdfurl);
|
||||||
|
});
|
||||||
|
getPersonalCheckReport(id).then((response) => {
|
||||||
|
this.form = response.data;
|
||||||
|
this.open = true;
|
||||||
|
this.title = "修改个人体质检测报告";
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
/** 提交按钮 */
|
||||||
|
submitForm() {
|
||||||
|
this.$refs["form"].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (this.form.id != null) {
|
||||||
|
updatePersonalCheckReport(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("修改成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addPersonalCheckReport(this.form).then((response) => {
|
||||||
|
this.$modal.msgSuccess("新增成功");
|
||||||
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
handleDelete(row) {
|
||||||
|
const ids = row.id || this.ids;
|
||||||
|
this.$modal
|
||||||
|
.confirm('是否确认删除个人体质检测报告编号为"' + ids + '"的数据项?')
|
||||||
|
.then(function () {
|
||||||
|
return delPersonalCheckReport(ids);
|
||||||
|
})
|
||||||
|
.then(() => {
|
||||||
|
this.getList();
|
||||||
|
this.$modal.msgSuccess("删除成功");
|
||||||
|
})
|
||||||
|
.catch(() => {});
|
||||||
|
},
|
||||||
|
|
||||||
|
//预览
|
||||||
|
lookhand(item) {
|
||||||
|
report(item.id).then((res) => {
|
||||||
|
this.pdfurl = window.URL.createObjectURL(res);
|
||||||
|
this.openiframe = true;
|
||||||
|
// window.open(this.pdfurl);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport(row) {
|
||||||
|
this.download(
|
||||||
|
`/system/personalCheckReport/download/report?id=${row.id}`,
|
||||||
|
{},
|
||||||
|
`幼儿检测报告.pdf`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
itemlists(studentId, batchCode) {
|
||||||
|
console.log(studentId, batchCode);
|
||||||
|
this.queryParams.studentId = studentId;
|
||||||
|
this.queryParams.batchCode = batchCode;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped='scss'>
|
||||||
|
::v-deep .el-form {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -330,7 +330,6 @@ export default {
|
|||||||
});
|
});
|
||||||
el.list = list1;
|
el.list = list1;
|
||||||
});
|
});
|
||||||
|
|
||||||
let seriesData = [];
|
let seriesData = [];
|
||||||
let yindicator = [];
|
let yindicator = [];
|
||||||
this.categoryScoreList.forEach((el) => {
|
this.categoryScoreList.forEach((el) => {
|
||||||
@ -371,9 +370,7 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var myChart = echarts.init(document.getElementById("chart"));
|
var myChart = echarts.init(document.getElementById("chart"));
|
||||||
|
|
||||||
let option = {
|
let option = {
|
||||||
//配置维度的最大值
|
//配置维度的最大值
|
||||||
color: "#D9A508",
|
color: "#D9A508",
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="68px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="学生姓名" prop="studentName">
|
<el-form-item label="学生姓名" prop="studentName">
|
||||||
<el-input
|
<el-input
|
||||||
@ -94,7 +94,6 @@
|
|||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
@ -131,6 +130,16 @@
|
|||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="info"
|
||||||
|
plain
|
||||||
|
icon="el-icon-upload2"
|
||||||
|
size="mini"
|
||||||
|
@click="handledata"
|
||||||
|
>导入</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="warning"
|
type="warning"
|
||||||
@ -265,7 +274,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total > 0"
|
v-show="total > 0"
|
||||||
:total="total"
|
:total="total"
|
||||||
@ -273,7 +281,6 @@
|
|||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- 添加或修改学生信息对话框 -->
|
<!-- 添加或修改学生信息对话框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
:title="title"
|
:title="title"
|
||||||
@ -388,12 +395,12 @@
|
|||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="身份证号" prop="cardNumber">
|
<el-form-item label="证件编号" prop="cardNumber">
|
||||||
<el-input
|
<el-input
|
||||||
style="width: 380px"
|
style="width: 380px"
|
||||||
maxlength="18"
|
maxlength="18"
|
||||||
v-model="form.cardNumber"
|
v-model="form.cardNumber"
|
||||||
placeholder="请输入身份证号"
|
placeholder="请输入证件编号"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="曾用名" prop="onceName">
|
<el-form-item label="曾用名" prop="onceName">
|
||||||
@ -532,7 +539,6 @@
|
|||||||
@pagination="kininfolist"
|
@pagination="kininfolist"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 学生家长 -->
|
<!-- 学生家长 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
width="800px"
|
width="800px"
|
||||||
@ -665,7 +671,6 @@
|
|||||||
>选择完成</el-button
|
>选择完成</el-button
|
||||||
>
|
>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- //班级信息表格数据 -->
|
<!-- //班级信息表格数据 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
width="1000px"
|
width="1000px"
|
||||||
@ -799,7 +804,6 @@
|
|||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 修改家长信息对话框 -->
|
<!-- 修改家长信息对话框 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="新增家长"
|
title="新增家长"
|
||||||
@ -879,6 +883,87 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<!-- //导入 -->
|
||||||
|
<el-dialog
|
||||||
|
:title="upload.title"
|
||||||
|
:visible.sync="upload.open"
|
||||||
|
width="550px"
|
||||||
|
append-to-body
|
||||||
|
:before-close="uploadopen"
|
||||||
|
>
|
||||||
|
<el-form
|
||||||
|
ref="form"
|
||||||
|
:model="upload.data"
|
||||||
|
:rules="rules"
|
||||||
|
label-width="100px"
|
||||||
|
>
|
||||||
|
<el-form-item label="所属幼儿园" prop="kindergartenId">
|
||||||
|
<el-button
|
||||||
|
@click="kininnerVisible = true"
|
||||||
|
style="width: 360px; text-align: left; height: 36px; color: #c0c4cc"
|
||||||
|
v-if="upload.data.kindergartenName == '请选择所属幼儿园'"
|
||||||
|
>{{ upload.data.kindergartenName }}</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
@click="kininnerVisible = true"
|
||||||
|
style="width: 360px; text-align: left; height: 36px"
|
||||||
|
v-else
|
||||||
|
>{{ kindergartenName }}</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="所属班级" prop="classId">
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="classclick"
|
||||||
|
style="width: 360px; text-align: left; height: 36px; color: #c0c4cc"
|
||||||
|
v-if="upload.data.className == '请选择所属班级'"
|
||||||
|
>{{ upload.data.className }}</el-button
|
||||||
|
>
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="classclick"
|
||||||
|
style="width: 360px; text-align: left; height: 36px"
|
||||||
|
v-else
|
||||||
|
>{{ classinfoName }}</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="上传文档">
|
||||||
|
<el-upload
|
||||||
|
ref="upload"
|
||||||
|
:limit="1"
|
||||||
|
accept=".xlsx, .xls"
|
||||||
|
:data="upload.data"
|
||||||
|
:headers="upload.headers"
|
||||||
|
:action="upload.url"
|
||||||
|
:disabled="upload.isUploading"
|
||||||
|
:on-progress="handleFileUploadProgress"
|
||||||
|
:on-success="handleFileSuccess"
|
||||||
|
:auto-upload="false"
|
||||||
|
drag
|
||||||
|
>
|
||||||
|
<i class="el-icon-upload"></i>
|
||||||
|
<div class="el-upload__text">
|
||||||
|
将文件拖到此处,或<em>点击上传</em>
|
||||||
|
</div>
|
||||||
|
<div class="el-upload__tip text-center" slot="tip">
|
||||||
|
<span>仅允许导入xls、xlsx格式文件。</span>
|
||||||
|
<el-link
|
||||||
|
type="primary"
|
||||||
|
:underline="false"
|
||||||
|
style="font-size: 12px; vertical-align: baseline"
|
||||||
|
@click="downloadExcel"
|
||||||
|
>下载模板</el-link
|
||||||
|
>
|
||||||
|
</div>
|
||||||
|
</el-upload>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitFileForm">确 定</el-button>
|
||||||
|
<el-button @click="uploadopen">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -896,6 +981,7 @@ import {
|
|||||||
tKindergartenInfo,
|
tKindergartenInfo,
|
||||||
listKindergartenInfo,
|
listKindergartenInfo,
|
||||||
} from "@/api/system/kindergartenInfo";
|
} from "@/api/system/kindergartenInfo";
|
||||||
|
import { getToken } from "@/utils/auth";
|
||||||
|
|
||||||
import { listClassinfo } from "@/api/system/classinfo";
|
import { listClassinfo } from "@/api/system/classinfo";
|
||||||
|
|
||||||
@ -929,18 +1015,28 @@ export default {
|
|||||||
//验证身份证
|
//验证身份证
|
||||||
var isCardId = (rule, value, callback) => {
|
var isCardId = (rule, value, callback) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
return new Error("请输入身份证号)");
|
callback();
|
||||||
} else {
|
} else {
|
||||||
const reg =
|
if (!this.checkSpecialKey(value)) {
|
||||||
/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/;
|
callback(new Error("不能含有特殊字符!!"));
|
||||||
const card = reg.test(value);
|
|
||||||
if (!card) {
|
|
||||||
callback(new Error("身份证号格式有误!"));
|
|
||||||
} else {
|
|
||||||
callback();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// var isCardId = (rule, value, callback) => {
|
||||||
|
// if (!value) {
|
||||||
|
// callback();
|
||||||
|
// } else {
|
||||||
|
// const reg =
|
||||||
|
// /^\d{6}(18|19|20)?\d{2}(0[1-9]|1[0-2])(([0-2][1-9])|10|20|30|31)\d{3}(\d|X|x)$/;
|
||||||
|
// const card = reg.test(value);
|
||||||
|
// if (!card) {
|
||||||
|
// callback(new Error("身份证号格式有误!"));
|
||||||
|
// } else {
|
||||||
|
// callback();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// };
|
||||||
return {
|
return {
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate(time) {
|
disabledDate(time) {
|
||||||
@ -952,9 +1048,26 @@ export default {
|
|||||||
return time.getTime() > Date.now();
|
return time.getTime() > Date.now();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
Data: "",
|
Data: "",
|
||||||
|
// 用户导入参数
|
||||||
|
upload: {
|
||||||
|
// 是否显示弹出层(用户导入)
|
||||||
|
open: false,
|
||||||
|
// 弹出层标题(用户导入)
|
||||||
|
title: "",
|
||||||
|
// 是否禁用上传
|
||||||
|
isUploading: false,
|
||||||
|
// 设置上传的请求头部
|
||||||
|
headers: { Authorization: "Bearer " + getToken() },
|
||||||
|
// 上传的地址
|
||||||
|
url: process.env.VUE_APP_BASE_API + "/system/studentInfo/importData",
|
||||||
|
data: {
|
||||||
|
kindergartenId: null,
|
||||||
|
classId: null,
|
||||||
|
kindergartenName: "请选择所属幼儿园",
|
||||||
|
className: "请选择所属班级",
|
||||||
|
},
|
||||||
|
},
|
||||||
//查看家长
|
//查看家长
|
||||||
parentStudentInfoList: [],
|
parentStudentInfoList: [],
|
||||||
//民族
|
//民族
|
||||||
@ -1076,6 +1189,12 @@ export default {
|
|||||||
form2: {},
|
form2: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
|
"upload.data.kindergartenId": [
|
||||||
|
{ required: true, message: "所属幼儿园不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
"upload.data.classId": [
|
||||||
|
{ required: true, message: "所属班级不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
kindergartenId: [
|
kindergartenId: [
|
||||||
{ required: true, message: "所属幼儿园不能为空", trigger: "blur" },
|
{ required: true, message: "所属幼儿园不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -1101,7 +1220,7 @@ export default {
|
|||||||
{ required: true, message: "请选择日期", trigger: "change" },
|
{ required: true, message: "请选择日期", trigger: "change" },
|
||||||
],
|
],
|
||||||
cardNumber: [
|
cardNumber: [
|
||||||
{ required: true, message: "请输入证件号", trigger: "blur" },
|
{ message: "请输入证件号", trigger: "blur" },
|
||||||
{ validator: isCardId, trigger: "blur" },
|
{ validator: isCardId, trigger: "blur" },
|
||||||
],
|
],
|
||||||
parentIdList: [
|
parentIdList: [
|
||||||
@ -1143,6 +1262,8 @@ export default {
|
|||||||
this.form.kindergartenId = row.id;
|
this.form.kindergartenId = row.id;
|
||||||
this.kindergartenid = row.id;
|
this.kindergartenid = row.id;
|
||||||
this.kindergartenName = row.kindergartenName;
|
this.kindergartenName = row.kindergartenName;
|
||||||
|
this.upload.data.kindergartenName = row.kindergartenName;
|
||||||
|
this.upload.data.kindergartenId = row.id;
|
||||||
this.classinfoList2.kindergartenId = row.id;
|
this.classinfoList2.kindergartenId = row.id;
|
||||||
this.kininnerVisible = false;
|
this.kininnerVisible = false;
|
||||||
this.classinfoName = "请选择所属班级";
|
this.classinfoName = "请选择所属班级";
|
||||||
@ -1549,6 +1670,8 @@ export default {
|
|||||||
classinfoclick(item) {
|
classinfoclick(item) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
this.classinfoName = item.className;
|
this.classinfoName = item.className;
|
||||||
|
this.upload.data.className = item.className;
|
||||||
|
this.upload.data.classId = item.id;
|
||||||
this.classinfoId = item.id;
|
this.classinfoId = item.id;
|
||||||
this.form.classId = item.id;
|
this.form.classId = item.id;
|
||||||
this.form2.classId = item.id;
|
this.form2.classId = item.id;
|
||||||
@ -1764,6 +1887,78 @@ export default {
|
|||||||
`studentInfo_${new Date().getTime()}.xlsx`
|
`studentInfo_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
checkSpecialKey(str) {
|
||||||
|
let specialKey =
|
||||||
|
"[`~!#$^&*()=|{}':;'\\[\\].<>/?~!#¥……&*()——|{}【】‘;:”“'。,、?]‘'";
|
||||||
|
for (let i = 0; i < str.length; i++) {
|
||||||
|
if (specialKey.indexOf(str.substr(i, 1)) != -1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
/** 导入按钮操作 */
|
||||||
|
handledata() {
|
||||||
|
this.upload.title = "用户导入";
|
||||||
|
this.upload.open = true;
|
||||||
|
},
|
||||||
|
// 提交上传文件
|
||||||
|
submitFileForm() {
|
||||||
|
if (this.upload.data.kindergartenId == null) {
|
||||||
|
this.$message.error("所属幼儿园不能为空");
|
||||||
|
} else if (this.upload.data.classId == null) {
|
||||||
|
this.$message.error("所属班级不能为空");
|
||||||
|
} else {
|
||||||
|
this.$refs.upload.submit();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 文件上传成功处理
|
||||||
|
handleFileSuccess(response, file, fileList) {
|
||||||
|
this.upload.open = false;
|
||||||
|
this.upload.isUploading = false;
|
||||||
|
this.upload.data = {
|
||||||
|
kindergartenId: null,
|
||||||
|
classId: null,
|
||||||
|
kindergartenName: "请选择所属幼儿园",
|
||||||
|
className: "请选择所属班级",
|
||||||
|
};
|
||||||
|
this.form.kindergartenId = null;
|
||||||
|
this.classinfoId = null;
|
||||||
|
this.$refs.upload.clearFiles();
|
||||||
|
this.$alert(
|
||||||
|
"<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" +
|
||||||
|
response.msg +
|
||||||
|
"</div>",
|
||||||
|
"导入结果",
|
||||||
|
{ dangerouslyUseHTMLString: true }
|
||||||
|
);
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
// 文件上传中处理
|
||||||
|
handleFileUploadProgress(event, file, fileList) {
|
||||||
|
this.upload.isUploading = true;
|
||||||
|
},
|
||||||
|
uploadopen() {
|
||||||
|
this.upload.open = false;
|
||||||
|
this.form.kindergartenId = null;
|
||||||
|
this.classinfoId = null;
|
||||||
|
this.upload.data = {
|
||||||
|
kindergartenId: null,
|
||||||
|
classId: null,
|
||||||
|
kindergartenName: "请选择所属幼儿园",
|
||||||
|
className: "请选择所属班级",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
/** 下载模板操作 */
|
||||||
|
downloadExcel() {
|
||||||
|
let a = document.createElement("a");
|
||||||
|
a.href = "/student.xlsx";
|
||||||
|
a.download = "学生信息模板表.xlsx";
|
||||||
|
a.style.display = "none";
|
||||||
|
document.body.appendChild(a);
|
||||||
|
a.click();
|
||||||
|
a.remove();
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -38,30 +38,30 @@
|
|||||||
<div class="title">大班</div>
|
<div class="title">大班</div>
|
||||||
<div
|
<div
|
||||||
id="main"
|
id="main"
|
||||||
style="width: 500px; height: 300px; margin: 0 auto"
|
style="width: 500px; height: 350px; margin: 0 auto"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="yclassname2.length != 0" style="position: relative">
|
<div v-if="yclassname2.length != 0" style="position: relative">
|
||||||
<div class="title">中班</div>
|
<div class="title">中班</div>
|
||||||
<div
|
<div
|
||||||
id="main2"
|
id="main2"
|
||||||
style="width: 500px; height: 300px; margin: 0 auto"
|
style="width: 500px; height: 350px; margin: 0 auto"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="yclassname3.length != 0" style="position: relative">
|
<div v-if="yclassname3.length != 0" style="position: relative">
|
||||||
<div class="title">小班</div>
|
<div class="title">小班</div>
|
||||||
<div
|
<div
|
||||||
id="main3"
|
id="main3"
|
||||||
style="width: 500px; height: 300px; margin: 0 auto"
|
style="width: 500px; height: 350px; margin: 0 auto"
|
||||||
></div>
|
></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 50%">
|
<div style="width: 50%">
|
||||||
<div slot="header" class="header" style="margin-bottom: 40px">
|
<div slot="header" class="header" style="margin-bottom: 20px">
|
||||||
<span>全国优秀幼儿榜(TOP10)</span>
|
<span>全园优秀幼儿榜(TOP10)</span>
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
ref="singleTable"
|
ref="studentlist"
|
||||||
:data="studentlist"
|
:data="studentlist"
|
||||||
highlight-current-row
|
highlight-current-row
|
||||||
style="margin: 0 auto; width: 530px"
|
style="margin: 0 auto; width: 530px"
|
||||||
@ -95,6 +95,49 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
|
<div
|
||||||
|
slot="header"
|
||||||
|
class="header"
|
||||||
|
style="margin-bottom: 20px; margin-top: 20px"
|
||||||
|
>
|
||||||
|
<span>班级优秀幼儿榜</span>
|
||||||
|
</div>
|
||||||
|
<el-table
|
||||||
|
ref="selectAllClassBylist"
|
||||||
|
:data="selectAllClassBylist"
|
||||||
|
highlight-current-row
|
||||||
|
style="margin: 0 auto; width: 530px"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
width="130"
|
||||||
|
label="排名"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="studentName"
|
||||||
|
label="姓名"
|
||||||
|
width="130"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="className"
|
||||||
|
label="班级"
|
||||||
|
width="130"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="itemFraction"
|
||||||
|
label="分数"
|
||||||
|
width="140"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -116,7 +159,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as echarts from "echarts";
|
import * as echarts from "echarts";
|
||||||
import { getRoleInfo } from "@/api/system/quality";
|
import { getRoleInfo } from "@/api/system/quality";
|
||||||
import { StudentList, ClassList } from "@/api/system/survey";
|
import {
|
||||||
|
StudentList,
|
||||||
|
ClassList,
|
||||||
|
selectAllClassById,
|
||||||
|
} from "@/api/system/survey";
|
||||||
import Kindergarten from "../../assembly/kindergarten.vue";
|
import Kindergarten from "../../assembly/kindergarten.vue";
|
||||||
export default {
|
export default {
|
||||||
name: "KindergartenPhysicalTest",
|
name: "KindergartenPhysicalTest",
|
||||||
@ -128,7 +175,12 @@ export default {
|
|||||||
// 显示搜索条件
|
// 显示搜索条件
|
||||||
showSearch: true,
|
showSearch: true,
|
||||||
studentlist: [],
|
studentlist: [],
|
||||||
|
selectAllClassBylist: [],
|
||||||
//查询传值
|
//查询传值
|
||||||
|
selectAllClassByquery: {
|
||||||
|
kindergartenId: "",
|
||||||
|
batchCode: "",
|
||||||
|
},
|
||||||
classqueryParams: {
|
classqueryParams: {
|
||||||
kindergartenId: "",
|
kindergartenId: "",
|
||||||
batchCode: "",
|
batchCode: "",
|
||||||
@ -164,28 +216,38 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.StudentListinfo();
|
this.StudentListinfo();
|
||||||
this.ClassListinfo();
|
// this.ClassListinfo();
|
||||||
|
// this.selectAllClassByIdinfo();
|
||||||
},
|
},
|
||||||
|
|
||||||
kinbatlist(kindergartenId, batchCode) {
|
kinbatlist(kindergartenId, batchCode) {
|
||||||
console.log(kindergartenId, batchCode);
|
console.log(kindergartenId, batchCode);
|
||||||
this.studentlistqueryParams.kindergartenId = kindergartenId;
|
this.studentlistqueryParams.kindergartenId = kindergartenId;
|
||||||
this.studentlistqueryParams.batchCode = batchCode;
|
this.studentlistqueryParams.batchCode = batchCode;
|
||||||
this.classqueryParams.kindergartenId = kindergartenId;
|
this.classqueryParams.kindergartenId = kindergartenId;
|
||||||
this.classqueryParams.batchCode = batchCode;
|
this.classqueryParams.batchCode = batchCode;
|
||||||
|
this.selectAllClassByquery.kindergartenId = kindergartenId;
|
||||||
|
this.selectAllClassByquery.batchCode = batchCode;
|
||||||
},
|
},
|
||||||
ClassListinfo() {
|
ClassListinfo() {
|
||||||
ClassList(this.classqueryParams).then((res) => {
|
ClassList(this.classqueryParams).then((res) => {});
|
||||||
if (res.rows.length == 0) {
|
},
|
||||||
this.itemshow2 = true;
|
StudentListinfo() {
|
||||||
this.itemshow = false;
|
StudentList(this.studentlistqueryParams).then((res) => {
|
||||||
} else {
|
if (res.data.testAllStudentScoreVOList != null) {
|
||||||
|
this.studentlist = res.data.testAllStudentScoreVOList;
|
||||||
|
this.itemshow2 = false;
|
||||||
|
this.itemshow = true;
|
||||||
|
}
|
||||||
|
if (res.data.allStudentScoreVOList != null) {
|
||||||
|
console.log(1);
|
||||||
this.yclassname1 = [];
|
this.yclassname1 = [];
|
||||||
this.yclassname2 = [];
|
this.yclassname2 = [];
|
||||||
this.yclassname3 = [];
|
this.yclassname3 = [];
|
||||||
this.classscore1 = [];
|
this.classscore1 = [];
|
||||||
this.classscore2 = [];
|
this.classscore2 = [];
|
||||||
this.classscore3 = [];
|
this.classscore3 = [];
|
||||||
res.rows.forEach((e) => {
|
res.data.allStudentScoreVOList.forEach((e) => {
|
||||||
if (e.classType == this.LARGECLASS) {
|
if (e.classType == this.LARGECLASS) {
|
||||||
this.yclassname1.push(e.className);
|
this.yclassname1.push(e.className);
|
||||||
if (
|
if (
|
||||||
@ -236,7 +298,6 @@ export default {
|
|||||||
// var myChart2 = echarts.init(document.getElementById("main2"));
|
// var myChart2 = echarts.init(document.getElementById("main2"));
|
||||||
// var myChart3 = echarts.init(document.getElementById("main3"));
|
// var myChart3 = echarts.init(document.getElementById("main3"));
|
||||||
var app = {};
|
var app = {};
|
||||||
|
|
||||||
var option;
|
var option;
|
||||||
var option2;
|
var option2;
|
||||||
var option3;
|
var option3;
|
||||||
@ -348,6 +409,9 @@ export default {
|
|||||||
yAxis: [
|
yAxis: [
|
||||||
{
|
{
|
||||||
type: "value",
|
type: "value",
|
||||||
|
// max: (value) => {
|
||||||
|
// return Math.ceil(value.max / 100) * 100;
|
||||||
|
// },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
@ -443,7 +507,6 @@ export default {
|
|||||||
if (this.yclassname3.length != 0) {
|
if (this.yclassname3.length != 0) {
|
||||||
option3 && myChart3.setOption(option3);
|
option3 && myChart3.setOption(option3);
|
||||||
}
|
}
|
||||||
|
|
||||||
// option && myChart.setOption(option);
|
// option && myChart.setOption(option);
|
||||||
// option2 && myChart2.setOption(option2);
|
// option2 && myChart2.setOption(option2);
|
||||||
// option3 && myChart3.setOption(option3);
|
// option3 && myChart3.setOption(option3);
|
||||||
@ -451,20 +514,24 @@ export default {
|
|||||||
this.itemshow2 = false;
|
this.itemshow2 = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
if (res.data.allClassByVOList != null) {
|
||||||
},
|
this.selectAllClassBylist = res.data.allClassByVOList;
|
||||||
StudentListinfo() {
|
}
|
||||||
StudentList(this.studentlistqueryParams).then((res) => {
|
if (
|
||||||
if (res.rows.length == 0) {
|
res.data.allStudentScoreVOList == null &&
|
||||||
|
res.data.testAllStudentScoreVOList == null &&
|
||||||
|
res.data.allClassByVOList == null
|
||||||
|
) {
|
||||||
this.itemshow2 = true;
|
this.itemshow2 = true;
|
||||||
this.itemshow = false;
|
this.itemshow = false;
|
||||||
} else {
|
|
||||||
this.studentlist = res.rows;
|
|
||||||
this.itemshow2 = false;
|
|
||||||
this.itemshow = true;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
selectAllClassByIdinfo() {
|
||||||
|
selectAllClassById(this.selectAllClassByquery).then((res) => {
|
||||||
|
console.log(this.selectAllClassBylist);
|
||||||
|
});
|
||||||
|
},
|
||||||
getList() {
|
getList() {
|
||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
|
|||||||
@ -408,6 +408,7 @@
|
|||||||
<el-input
|
<el-input
|
||||||
type="number"
|
type="number"
|
||||||
v-model="scope.row.itemScore"
|
v-model="scope.row.itemScore"
|
||||||
|
@input="oninputscore(scope.row)"
|
||||||
v-if="
|
v-if="
|
||||||
scope.row.itemScore != null ||
|
scope.row.itemScore != null ||
|
||||||
scope.row.scoreDictId == ResultType1.dictCode
|
scope.row.scoreDictId == ResultType1.dictCode
|
||||||
@ -429,7 +430,25 @@
|
|||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input type="number" v-model="scope.row.itemFraction"></el-input>
|
<el-input
|
||||||
|
type="number"
|
||||||
|
v-model="scope.row.itemFraction"
|
||||||
|
@input="oninputscore(scope.row)"
|
||||||
|
placeholder="请先输入个人成绩"
|
||||||
|
:disabled="true"
|
||||||
|
v-if="
|
||||||
|
scope.row.itemScore != null ||
|
||||||
|
scope.row.scoreDictId == ResultType1.dictCode
|
||||||
|
"
|
||||||
|
></el-input>
|
||||||
|
<el-input
|
||||||
|
@input="oninputscore(scope.row)"
|
||||||
|
v-model="scope.row.itemFraction"
|
||||||
|
v-if="
|
||||||
|
scope.row.scoreDictValue != null ||
|
||||||
|
scope.row.scoreDictId == ResultType2.dictCode
|
||||||
|
"
|
||||||
|
></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
@ -1118,7 +1137,7 @@
|
|||||||
<el-table
|
<el-table
|
||||||
ref="singleTable"
|
ref="singleTable"
|
||||||
:data="getAllTestItemScore"
|
:data="getAllTestItemScore"
|
||||||
style="width: 95%; "
|
style="width: 95%"
|
||||||
>
|
>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
property="itemCode"
|
property="itemCode"
|
||||||
@ -1204,6 +1223,7 @@ import {
|
|||||||
studentInfo,
|
studentInfo,
|
||||||
testScoreBatch,
|
testScoreBatch,
|
||||||
getAllTestItemScoreInfo,
|
getAllTestItemScoreInfo,
|
||||||
|
getStudentFraction,
|
||||||
} from "@/api/system/testItemScore";
|
} from "@/api/system/testItemScore";
|
||||||
import {
|
import {
|
||||||
tKindergartenInfo,
|
tKindergartenInfo,
|
||||||
@ -1349,6 +1369,19 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
oninputscore(item) {
|
||||||
|
getStudentFraction(
|
||||||
|
this.addqueryParams.studentId,
|
||||||
|
item.itemId,
|
||||||
|
item.itemScore
|
||||||
|
).then((res) => {
|
||||||
|
this.form.itemScoreList.forEach((e) => {
|
||||||
|
if (e.itemId == res.data.itemId) {
|
||||||
|
e.itemFraction = res.data.fraction;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
},
|
||||||
handledbClick(row, event, column) {
|
handledbClick(row, event, column) {
|
||||||
this.$refs.table.toggleRowSelection(row);
|
this.$refs.table.toggleRowSelection(row);
|
||||||
console.log(row, event, column);
|
console.log(row, event, column);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user