学生信息管理 查看
This commit is contained in:
parent
e4c9be4e2f
commit
66e39af9bd
@ -6,45 +6,9 @@
|
|||||||
size="small"
|
size="small"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="90px"
|
label-width="68px"
|
||||||
>
|
>
|
||||||
<!-- <el-form-item label="所属幼儿园" prop="classId">
|
<el-form-item label="所属班级" prop="className">
|
||||||
<el-button
|
|
||||||
type=""
|
|
||||||
@click="yryinnerVisible = true"
|
|
||||||
v-if="kindergartenName == '请选择幼儿园'"
|
|
||||||
style="
|
|
||||||
width: 208.33px;
|
|
||||||
text-align: left;
|
|
||||||
height: 36px;
|
|
||||||
color: #c0c4cc;
|
|
||||||
padding-left: -10px;
|
|
||||||
"
|
|
||||||
>{{ kindergartenName }}</el-button
|
|
||||||
>
|
|
||||||
|
|
||||||
<el-button
|
|
||||||
type=""
|
|
||||||
@click="yryinnerVisible = true"
|
|
||||||
v-else
|
|
||||||
style="
|
|
||||||
width: 208.33px;
|
|
||||||
text-align: left;
|
|
||||||
height: 36px;
|
|
||||||
padding-left: -10px;
|
|
||||||
"
|
|
||||||
>{{ kindergartenName }}</el-button
|
|
||||||
>
|
|
||||||
</el-form-item> -->
|
|
||||||
<el-form-item label="批次编号" prop="batchCode">
|
|
||||||
<el-input
|
|
||||||
v-model="queryParams.batchCode"
|
|
||||||
placeholder="请输入批次编号"
|
|
||||||
clearable
|
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="班级名称" prop="className">
|
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams.className"
|
v-model="queryParams.className"
|
||||||
placeholder="请输入所属班级"
|
placeholder="请输入所属班级"
|
||||||
@ -60,6 +24,22 @@
|
|||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="项目名称" prop="itemName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.itemName"
|
||||||
|
placeholder="请输入项目名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="批次编号" prop="batchCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.batchCode"
|
||||||
|
placeholder="请输入批次编号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button
|
<el-button
|
||||||
@ -111,6 +91,17 @@
|
|||||||
>删除</el-button
|
>删除</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<!-- <el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['system:testItemScore:export']"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</el-col> -->
|
||||||
<right-toolbar
|
<right-toolbar
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
@queryTable="getList"
|
@queryTable="getList"
|
||||||
@ -121,6 +112,8 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
:data="testItemScoreList"
|
:data="testItemScoreList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
|
@row-dblclick="seepraent"
|
||||||
|
ref="table"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="50" align="center" />
|
<el-table-column type="selection" width="50" align="center" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -143,11 +136,19 @@
|
|||||||
class-name="small-padding fixed-width"
|
class-name="small-padding fixed-width"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-search"
|
||||||
|
@click="seepraent(scope.row)"
|
||||||
|
v-hasPermi="['system:testItemScore:edit']"
|
||||||
|
>查看</el-button
|
||||||
|
>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate2(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['system:testItemScore:edit']"
|
v-hasPermi="['system:testItemScore:edit']"
|
||||||
>修改</el-button
|
>修改</el-button
|
||||||
>
|
>
|
||||||
@ -162,6 +163,7 @@
|
|||||||
</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"
|
||||||
@ -182,9 +184,66 @@
|
|||||||
ref="form"
|
ref="form"
|
||||||
:model="form"
|
:model="form"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="100px"
|
label-width="110px"
|
||||||
:inline="true"
|
:inline="true"
|
||||||
>
|
>
|
||||||
|
<el-form-item label="所属幼儿园" prop="classId" v-if="form.id == ''">
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="yryinnerVisible = true"
|
||||||
|
v-if="kindergartenName == '请选择幼儿园'"
|
||||||
|
style="
|
||||||
|
width: 240px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
color: #c0c4cc;
|
||||||
|
padding-left: -10px;
|
||||||
|
"
|
||||||
|
>{{ kindergartenName }}</el-button
|
||||||
|
>
|
||||||
|
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="yryinnerVisible = true"
|
||||||
|
v-else
|
||||||
|
style="
|
||||||
|
width: 240px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
padding-left: -10px;
|
||||||
|
"
|
||||||
|
>{{ kindergartenName }}</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<el-form-item label="所属班级" prop="classId" v-if="form.id == ''">
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="handleQuery2"
|
||||||
|
v-if="xmname == '请选择所属班级'"
|
||||||
|
style="
|
||||||
|
width: 200px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
color: #c0c4cc;
|
||||||
|
padding-left: -10px;
|
||||||
|
"
|
||||||
|
>{{ xmname }}</el-button
|
||||||
|
>
|
||||||
|
|
||||||
|
<el-button
|
||||||
|
type=""
|
||||||
|
@click="handleQuery2"
|
||||||
|
v-else
|
||||||
|
style="
|
||||||
|
width: 200px;
|
||||||
|
text-align: left;
|
||||||
|
height: 36px;
|
||||||
|
padding-left: -10px;
|
||||||
|
"
|
||||||
|
>{{ xmname }}</el-button
|
||||||
|
>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="学生姓名" prop="studentId" v-if="form.id == null">
|
<el-form-item label="学生姓名" prop="studentId" v-if="form.id == null">
|
||||||
<el-button
|
<el-button
|
||||||
disabled
|
disabled
|
||||||
@ -348,10 +407,7 @@
|
|||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-input
|
<el-input v-model="scope.row.syntheticalAssess"></el-input>
|
||||||
v-model="scope.row.syntheticalAssess"
|
|
||||||
maxlength="200"
|
|
||||||
></el-input>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@ -370,7 +426,8 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
:before-close="kindergartencancel"
|
:before-close="kindergartencancel"
|
||||||
>
|
>
|
||||||
<el-table :data="kindergartenList" @cell-dblclick="kindergartenNameclick">
|
<el-table :data="kindergartenList"
|
||||||
|
@cell-dblclick="kindergartenNameclick">
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -436,6 +493,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!--所属班级 弹窗 -->
|
<!--所属班级 弹窗 -->
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
width="850px"
|
width="850px"
|
||||||
title="选择所属班级"
|
title="选择所属班级"
|
||||||
@ -453,7 +511,7 @@
|
|||||||
<el-form-item label="班级名称" prop="className">
|
<el-form-item label="班级名称" prop="className">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams2.className"
|
v-model="queryParams2.className"
|
||||||
placeholder="请输入班级名称"
|
placeholder="请输入项目名称"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter.native="handleQuery"
|
@keyup.enter.native="handleQuery"
|
||||||
/>
|
/>
|
||||||
@ -466,12 +524,12 @@
|
|||||||
@click="handleQuery2"
|
@click="handleQuery2"
|
||||||
>搜索</el-button
|
>搜索</el-button
|
||||||
>
|
>
|
||||||
<el-button icon="el-icon-refresh" size="mini" @click="classresetQuery"
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table :data="classInfos" @cell-dblclick="xmclick">
|
<el-table :data="classInfos">
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -567,13 +625,13 @@
|
|||||||
:total="total2"
|
:total="total2"
|
||||||
:page.sync="queryParams2.pageNum"
|
:page.sync="queryParams2.pageNum"
|
||||||
:limit.sync="queryParams2.pageSize"
|
:limit.sync="queryParams2.pageSize"
|
||||||
@pagination="classresetQuery"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 学生姓名弹窗 -->
|
<!-- 学生姓名弹窗 -->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
width="1050px"
|
width="850px"
|
||||||
title="选择学生姓名"
|
title="选择学生姓名"
|
||||||
:visible.sync="innerVisible2"
|
:visible.sync="innerVisible2"
|
||||||
append-to-body
|
append-to-body
|
||||||
@ -586,64 +644,6 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="90px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属幼儿园" prop="classId" v-if="form.id == ''">
|
|
||||||
<el-button
|
|
||||||
type=""
|
|
||||||
@click="yryinnerVisible = true"
|
|
||||||
v-if="kindergartenName == '请选择幼儿园'"
|
|
||||||
style="
|
|
||||||
width: 200px;
|
|
||||||
text-align: left;
|
|
||||||
height: 36px;
|
|
||||||
color: #c0c4cc;
|
|
||||||
padding-left: -10px;
|
|
||||||
"
|
|
||||||
>{{ kindergartenName }}</el-button
|
|
||||||
>
|
|
||||||
|
|
||||||
<el-button
|
|
||||||
type=""
|
|
||||||
@click="yryinnerVisible = true"
|
|
||||||
v-else
|
|
||||||
style="
|
|
||||||
width: 200px;
|
|
||||||
text-align: left;
|
|
||||||
height: 36px;
|
|
||||||
padding-left: -10px;
|
|
||||||
"
|
|
||||||
>{{ kindergartenName }}</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item label="所属班级" prop="classId" v-if="form.id == ''">
|
|
||||||
<el-button
|
|
||||||
type=""
|
|
||||||
@click="handleQuery2"
|
|
||||||
v-if="xmname == '请选择所属班级'"
|
|
||||||
style="
|
|
||||||
width: 200px;
|
|
||||||
text-align: left;
|
|
||||||
height: 36px;
|
|
||||||
color: #c0c4cc;
|
|
||||||
padding-left: -10px;
|
|
||||||
"
|
|
||||||
>{{ xmname }}</el-button
|
|
||||||
>
|
|
||||||
|
|
||||||
<el-button
|
|
||||||
type=""
|
|
||||||
@click="handleQuery2"
|
|
||||||
v-else
|
|
||||||
style="
|
|
||||||
width: 200px;
|
|
||||||
text-align: left;
|
|
||||||
height: 36px;
|
|
||||||
padding-left: -10px;
|
|
||||||
"
|
|
||||||
>{{ xmname }}</el-button
|
|
||||||
>
|
|
||||||
</el-form-item>
|
|
||||||
|
|
||||||
<el-form-item label="学生姓名" prop="studentName">
|
<el-form-item label="学生姓名" prop="studentName">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="queryParams3.studentName"
|
v-model="queryParams3.studentName"
|
||||||
@ -660,15 +660,12 @@
|
|||||||
@click="handleQuery3"
|
@click="handleQuery3"
|
||||||
>搜索</el-button
|
>搜索</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
||||||
icon="el-icon-refresh"
|
|
||||||
size="mini"
|
|
||||||
@click="studentresetQuery"
|
|
||||||
>重置</el-button
|
>重置</el-button
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table :data="studentInfos" @cell-dblclick="studentclick">
|
<el-table :data="studentInfos">
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -690,7 +687,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="studentName"
|
property="studentName"
|
||||||
label="学生姓名"
|
label="学生姓名"
|
||||||
width="120"
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -698,7 +695,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="studentSex"
|
property="studentSex"
|
||||||
label="学生性别"
|
label="学生性别"
|
||||||
width="100"
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -738,7 +735,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
property="onceName"
|
property="onceName"
|
||||||
label="曾用名"
|
label="曾用名"
|
||||||
width="100"
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -750,7 +747,7 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<!-- <el-table-column
|
<el-table-column
|
||||||
property="creatBy"
|
property="creatBy"
|
||||||
label="创建人"
|
label="创建人"
|
||||||
width="150"
|
width="150"
|
||||||
@ -777,14 +774,14 @@
|
|||||||
width="150"
|
width="150"
|
||||||
align="center"
|
align="center"
|
||||||
>
|
>
|
||||||
</el-table-column> -->
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total3 > 0"
|
v-show="total3 > 0"
|
||||||
:total="total3"
|
:total="total3"
|
||||||
:page.sync="queryParams3.pageNum"
|
:page.sync="queryParams3.pageNum"
|
||||||
:limit.sync="queryParams3.pageSize"
|
:limit.sync="queryParams3.pageSize"
|
||||||
@pagination="studentinfoclick"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
@ -904,6 +901,101 @@
|
|||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
|
<!-- //查看个人成绩 -->
|
||||||
|
<el-dialog
|
||||||
|
title="查看个人成绩"
|
||||||
|
:visible.sync="innerVisible5"
|
||||||
|
append-to-body
|
||||||
|
style="margin-top: 5%"
|
||||||
|
width="1000px"
|
||||||
|
>
|
||||||
|
<el-table
|
||||||
|
ref="singleTable"
|
||||||
|
:data="getAllTestItemScore"
|
||||||
|
style="width: 95%; margin: 20px auto"
|
||||||
|
>
|
||||||
|
<el-table-column
|
||||||
|
property="itemCode"
|
||||||
|
label="项目编号"
|
||||||
|
width="185"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="itemName"
|
||||||
|
label="项目名称"
|
||||||
|
width="185"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column
|
||||||
|
property="scoreDictId"
|
||||||
|
label="字典类型"
|
||||||
|
align="center"
|
||||||
|
width="120"
|
||||||
|
>
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{
|
||||||
|
scope.row.scoreDictId == ResultType1.dictCode
|
||||||
|
? ResultType1.dictLabel
|
||||||
|
: ""
|
||||||
|
}}{{
|
||||||
|
scope.row.scoreDictId == ResultType2.dictCode
|
||||||
|
? ResultType2.dictLabel
|
||||||
|
: ""
|
||||||
|
}}</template
|
||||||
|
>
|
||||||
|
</el-table-column> -->
|
||||||
|
<el-table-column
|
||||||
|
property="itemScore"
|
||||||
|
label="个人成绩"
|
||||||
|
width="180"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<!-- <template slot-scope="scope">
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
type="number"
|
||||||
|
v-model="scope.row.itemScore"
|
||||||
|
v-if="
|
||||||
|
scope.row.itemScore != null ||
|
||||||
|
scope.row.scoreDictId == ResultType1.dictCode
|
||||||
|
"
|
||||||
|
></el-input>
|
||||||
|
<el-input
|
||||||
|
readonly
|
||||||
|
v-model="scope.row.scoreDictValue"
|
||||||
|
v-if="
|
||||||
|
scope.row.scoreDictValue != null ||
|
||||||
|
scope.row.scoreDictId == ResultType2.dictCode
|
||||||
|
"
|
||||||
|
></el-input>
|
||||||
|
</template> -->
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
property="itemFraction"
|
||||||
|
label="个人成绩得分"
|
||||||
|
width="180"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<!-- <template slot-scope="scope">
|
||||||
|
<el-input type="number" v-model="scope.row.itemFraction" readonly></el-input>
|
||||||
|
</template> -->
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
|
<el-table-column
|
||||||
|
property="syntheticalAssess"
|
||||||
|
label="综合评价"
|
||||||
|
width="180"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
<!-- <template slot-scope="scope">
|
||||||
|
<el-input v-model="scope.row.syntheticalAssess" readonly></el-input>
|
||||||
|
</template> -->
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -926,6 +1018,7 @@ import {
|
|||||||
import Treeselect from "@riophae/vue-treeselect";
|
import Treeselect from "@riophae/vue-treeselect";
|
||||||
export default {
|
export default {
|
||||||
name: "TestItemScore",
|
name: "TestItemScore",
|
||||||
|
components: { Treeselect },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
value: "",
|
value: "",
|
||||||
@ -949,6 +1042,7 @@ export default {
|
|||||||
testItemss: [],
|
testItemss: [],
|
||||||
testScoreBatchs: [],
|
testScoreBatchs: [],
|
||||||
innerVisible4: false,
|
innerVisible4: false,
|
||||||
|
innerVisible5: false,
|
||||||
itemNumbername: "请选择批次编号",
|
itemNumbername: "请选择批次编号",
|
||||||
//幼儿园查询参数
|
//幼儿园查询参数
|
||||||
kqueryParams: {
|
kqueryParams: {
|
||||||
@ -986,6 +1080,8 @@ export default {
|
|||||||
classInfos: [],
|
classInfos: [],
|
||||||
// 个人成绩录入管理表格数据
|
// 个人成绩录入管理表格数据
|
||||||
testItemScoreList: [],
|
testItemScoreList: [],
|
||||||
|
//个人成绩查看
|
||||||
|
getAllTestItemScore: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
@ -1027,9 +1123,6 @@ export default {
|
|||||||
batchId: "",
|
batchId: "",
|
||||||
batchCode: "",
|
batchCode: "",
|
||||||
},
|
},
|
||||||
studentId: "",
|
|
||||||
batchCode: "",
|
|
||||||
|
|
||||||
// 表单参数
|
// 表单参数
|
||||||
form: {},
|
form: {},
|
||||||
// 表单校验
|
// 表单校验
|
||||||
@ -1057,9 +1150,44 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
handledbClick(row, event, column) {
|
||||||
|
// alert("我被双击了");
|
||||||
|
this.$refs.table.toggleRowSelection(row);
|
||||||
|
|
||||||
|
console.log(row, event, column);
|
||||||
|
},
|
||||||
|
// 查看个人信息
|
||||||
|
seepraent(row) {
|
||||||
|
this.reset();
|
||||||
|
// const row = row.id || this.ids;
|
||||||
|
getAllTestItemScoreInfo(row).then((res) => {
|
||||||
|
this.getAllTestItemScore = res.data;
|
||||||
|
// console.log(this.getAllTestItemScore);
|
||||||
|
this.innerVisible5 = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
// seepraent(row) {
|
||||||
|
// getAllTestItemScoreInfo(row).then((res) => {
|
||||||
|
// console.log(res)
|
||||||
|
// this.form.getAllTestItemScore = [];
|
||||||
|
// // // console.log(this.addqueryParams);
|
||||||
|
// this.getAllTestItemScore = res.data.getAllTestItemScore;
|
||||||
|
// // console.log(this.form);
|
||||||
|
// // this.form.itemScoreList = res.data;
|
||||||
|
// // console.log(this.getAllTestItemScore);
|
||||||
|
// this.innerVisible5 = true;
|
||||||
|
// });
|
||||||
|
// },
|
||||||
testclick() {
|
testclick() {
|
||||||
this.innerVisible4 = true;
|
if (this.addqueryParams.studentId == "") {
|
||||||
|
this.$message.error("请先选择学生");
|
||||||
|
} else {
|
||||||
|
this.innerVisible4 = true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
delitem(item) {
|
delitem(item) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
@ -1067,24 +1195,26 @@ export default {
|
|||||||
return e.id != item.id;
|
return e.id != item.id;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getAllTestItemScore() {
|
// getAllTestItemScore() {
|
||||||
this.form.itemScoreList = [];
|
// this.form.itemScoreList = [];
|
||||||
console.log(this.addqueryParams);
|
// console.log(this.addqueryParams);
|
||||||
getAllTestItemScoreInfo(this.addqueryParams).then((res) => {
|
// getAllTestItemScoreInfo(this.addqueryParams).then((res) => {
|
||||||
console.log(this.form);
|
// console.log(this.form);
|
||||||
this.form.itemScoreList = res.data;
|
// this.form.itemScoreList = res.data;
|
||||||
});
|
// });
|
||||||
},
|
// },
|
||||||
//幼儿园左侧点击
|
//幼儿园左侧点击
|
||||||
kindergartenNameclick(row) {
|
kindergartenNameclick(row) {
|
||||||
this.queryParams2.kindergartenId = row.id;
|
this.queryParams2.kindergartenId = row.id;
|
||||||
this.queryParams.kindergartenId = row.id;
|
|
||||||
this.kindergartenName = row.kindergartenName;
|
this.kindergartenName = row.kindergartenName;
|
||||||
this.kindergartenId = row.id;
|
this.kindergartenId = row.id;
|
||||||
this.queryParams3.kindergartenId = row.id;
|
|
||||||
this.yryinnerVisible = false;
|
this.yryinnerVisible = false;
|
||||||
this.xmname = "请选择所属班级";
|
this.xmname = "请选择所属班级";
|
||||||
|
this.stname = "请选择学生姓名";
|
||||||
this.itemId2 = "";
|
this.itemId2 = "";
|
||||||
|
this.itemId3 = "";
|
||||||
|
this.form.classId = null;
|
||||||
|
this.form.studentId = null;
|
||||||
},
|
},
|
||||||
//幼儿园关闭
|
//幼儿园关闭
|
||||||
kindergartencancel() {
|
kindergartencancel() {
|
||||||
@ -1092,30 +1222,38 @@ export default {
|
|||||||
},
|
},
|
||||||
// 班级信息
|
// 班级信息
|
||||||
xmclick(row) {
|
xmclick(row) {
|
||||||
|
console.log(row);
|
||||||
this.xmname = row.className;
|
this.xmname = row.className;
|
||||||
this.itemId2 = row.id;
|
this.itemId2 = row.id;
|
||||||
|
this.form.classId = row.id;
|
||||||
|
console.log(this.form);
|
||||||
this.innerVisible = false;
|
this.innerVisible = false;
|
||||||
|
this.form.className = row.className;
|
||||||
this.queryParams3.classId = row.id;
|
this.queryParams3.classId = row.id;
|
||||||
|
this.stname = "请选择学生姓名";
|
||||||
|
this.itemId3 = "";
|
||||||
|
this.form.studentId = null;
|
||||||
},
|
},
|
||||||
//打开选择学生页面
|
//打开选择学生页面
|
||||||
studentinfoclick() {
|
studentinfoclick() {
|
||||||
//查询学生信息
|
if (this.queryParams3.classId == "" || !this.queryParams3.classId) {
|
||||||
studentInfo(this.queryParams3).then((res) => {
|
this.$message.error("请先选择班级");
|
||||||
this.studentInfos = res.rows;
|
} else {
|
||||||
this.total3 = res.total;
|
//查询学生信息
|
||||||
this.innerVisible2 = true;
|
studentInfo(this.queryParams3).then((res) => {
|
||||||
this.itemId2 = this.queryParams3.classId;
|
this.studentInfos = res.rows;
|
||||||
});
|
this.total3 = res.total;
|
||||||
|
this.innerVisible2 = true;
|
||||||
|
this.itemId2 = this.queryParams3.classId;
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 学生信息
|
// 学生信息
|
||||||
studentclick(row) {
|
studentclick(row) {
|
||||||
console.log(row);
|
|
||||||
this.stname = row.studentName;
|
this.stname = row.studentName;
|
||||||
this.itemId3 = row.id;
|
this.itemId3 = row.id;
|
||||||
this.form.studentId = row.id;
|
this.form.studentId = row.id;
|
||||||
this.form.className = row.className;
|
|
||||||
this.addqueryParams.studentId = row.id;
|
this.addqueryParams.studentId = row.id;
|
||||||
this.form.classId = row.classId;
|
|
||||||
this.innerVisible2 = false;
|
this.innerVisible2 = false;
|
||||||
this.form.studentName = row.studentName;
|
this.form.studentName = row.studentName;
|
||||||
if (this.form.batchCode != null) {
|
if (this.form.batchCode != null) {
|
||||||
@ -1132,17 +1270,13 @@ export default {
|
|||||||
console.log(this.addqueryParams);
|
console.log(this.addqueryParams);
|
||||||
this.innerVisible4 = false;
|
this.innerVisible4 = false;
|
||||||
this.form.batchCode = row.batchCode;
|
this.form.batchCode = row.batchCode;
|
||||||
if (this.addqueryParams.studentId != "") {
|
this.getAllTestItemScore();
|
||||||
this.getAllTestItemScore();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
/** 查询个人成绩录入管理列表 */
|
/** 查询个人成绩录入管理列表 */
|
||||||
|
|
||||||
getList() {
|
getList() {
|
||||||
//查询班级信息
|
//查询班级信息
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
console.log(this.queryParams);
|
|
||||||
|
|
||||||
//获取幼儿园list
|
//获取幼儿园list
|
||||||
listKindergartenInfo(this.kqueryParams).then((response) => {
|
listKindergartenInfo(this.kqueryParams).then((response) => {
|
||||||
this.kindergartenList = response.rows;
|
this.kindergartenList = response.rows;
|
||||||
@ -1191,6 +1325,8 @@ export default {
|
|||||||
studentId: null,
|
studentId: null,
|
||||||
batchCode: null,
|
batchCode: null,
|
||||||
itemScoreList: [],
|
itemScoreList: [],
|
||||||
|
batchId:null,
|
||||||
|
batchCode:null,
|
||||||
};
|
};
|
||||||
this.resetForm("form");
|
this.resetForm("form");
|
||||||
},
|
},
|
||||||
@ -1203,7 +1339,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
classInfo(this.queryParams2).then((response) => {
|
classInfo(this.queryParams2).then((response) => {
|
||||||
this.classInfos = response.rows;
|
this.classInfos = response.rows;
|
||||||
this.total2 = response.total;
|
this.total = response.total;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.innerVisible = true;
|
this.innerVisible = true;
|
||||||
});
|
});
|
||||||
@ -1212,7 +1348,12 @@ export default {
|
|||||||
// 学生姓名
|
// 学生姓名
|
||||||
handleQuery3() {
|
handleQuery3() {
|
||||||
this.queryParams3.pageNum = 1;
|
this.queryParams3.pageNum = 1;
|
||||||
this.studentinfoclick();
|
studentInfo(this.queryParams).then((response) => {
|
||||||
|
this.studentInfo = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
this.getList();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
// 批次编号
|
// 批次编号
|
||||||
handleQuery5() {
|
handleQuery5() {
|
||||||
@ -1231,86 +1372,14 @@ export default {
|
|||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.kindergartenName = "请选择幼儿园";
|
|
||||||
//幼儿园ID
|
|
||||||
this.kindergartenId = "";
|
|
||||||
this.queryParams = {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
className: null,
|
|
||||||
studentName: null,
|
|
||||||
itemName: null,
|
|
||||||
kindergartenId: null,
|
|
||||||
batchCode: null,
|
|
||||||
};
|
|
||||||
this.queryParams.className = "";
|
|
||||||
this.handleQuery();
|
|
||||||
},
|
|
||||||
classresetQuery() {
|
|
||||||
this.queryParams2.className = null;
|
|
||||||
classInfo(this.queryParams2).then((response) => {
|
|
||||||
this.classInfos = response.rows;
|
|
||||||
this.total2 = response.total;
|
|
||||||
this.loading = false;
|
|
||||||
this.innerVisible = true;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
studentresetQuery() {
|
|
||||||
this.queryParams3 = {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
studentName: null,
|
|
||||||
classId: "",
|
|
||||||
};
|
|
||||||
this.kindergartenName = "请选择幼儿园";
|
|
||||||
this.kindergartenId = "";
|
|
||||||
this.xmname = "请选择所属班级";
|
|
||||||
this.itemId2 = "";
|
|
||||||
this.studentinfoclick();
|
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
this.queryParams.className = "";
|
this.queryParams.className = "";
|
||||||
this.getList();
|
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
// 多选框选中数据
|
||||||
resetQuery() {
|
handleSelectionChange(selection) {
|
||||||
this.resetForm("queryForm");
|
this.ids = selection.map((item) => item.id);
|
||||||
this.kindergartenName = "请选择幼儿园";
|
this.single = selection.length !== 1;
|
||||||
//幼儿园ID
|
this.multiple = !selection.length;
|
||||||
this.kindergartenId = "";
|
|
||||||
this.queryParams = {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
className: null,
|
|
||||||
studentName: null,
|
|
||||||
itemName: null,
|
|
||||||
kindergartenId: null,
|
|
||||||
batchCode: null,
|
|
||||||
};
|
|
||||||
this.queryParams.className = "";
|
|
||||||
this.handleQuery();
|
|
||||||
},
|
|
||||||
classresetQuery() {
|
|
||||||
this.queryParams2.className = null;
|
|
||||||
classInfo(this.queryParams2).then((response) => {
|
|
||||||
this.classInfos = response.rows;
|
|
||||||
this.total2 = response.total;
|
|
||||||
this.loading = false;
|
|
||||||
this.innerVisible = true;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
studentresetQuery() {
|
|
||||||
this.queryParams3 = {
|
|
||||||
pageNum: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
studentName: null,
|
|
||||||
classId: "",
|
|
||||||
};
|
|
||||||
this.kindergartenName = "请选择幼儿园";
|
|
||||||
this.kindergartenId = "";
|
|
||||||
this.xmname = "请选择所属班级";
|
|
||||||
this.itemId2 = "";
|
|
||||||
this.studentinfoclick();
|
|
||||||
this.queryParams.className = "";
|
|
||||||
},
|
},
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
@ -1322,28 +1391,8 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
console.log(row);
|
this.reset();
|
||||||
// this.reset();
|
const id = row.id || this.ids;
|
||||||
var list = {
|
|
||||||
studentId: this.studentId[0],
|
|
||||||
batchCode: this.batchCode[0],
|
|
||||||
};
|
|
||||||
this.form.itemScoreList = [];
|
|
||||||
getTestItemScore(list).then((response) => {
|
|
||||||
console.log();
|
|
||||||
this.form = response.data;
|
|
||||||
this.open = true;
|
|
||||||
this.queryParams3.classId = response.data.classId;
|
|
||||||
this.stname = response.data.studentName;
|
|
||||||
this.itemId3 = response.data.studentId;
|
|
||||||
this.addqueryParams.studentId = response.data.studentId;
|
|
||||||
this.itemNumbername = response.data.batchCode;
|
|
||||||
console.log(this.form);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
handleUpdate2(row) {
|
|
||||||
console.log(row);
|
|
||||||
// this.reset();
|
|
||||||
var list = {
|
var list = {
|
||||||
studentId: row.studentId,
|
studentId: row.studentId,
|
||||||
batchCode: row.batchCode,
|
batchCode: row.batchCode,
|
||||||
@ -1363,13 +1412,13 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
console.log(this.form);
|
|
||||||
this.$refs["form"].validate((valid) => {
|
this.$refs["form"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.id == null) {
|
if (this.form.id == null) {
|
||||||
updateTestItemScore(this.form).then((response) => {
|
updateTestItemScore(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
this.xmname = "请选择所属班级";
|
this.xmname = "请选择所属班级";
|
||||||
this.stname = "请选择学生姓名";
|
this.stname = "请选择学生姓名";
|
||||||
this.itemNumbername = "请选择批次编号";
|
this.itemNumbername = "请选择批次编号";
|
||||||
@ -1378,8 +1427,6 @@ export default {
|
|||||||
this.kindergartenName = "请选择幼儿园";
|
this.kindergartenName = "请选择幼儿园";
|
||||||
this.kindergartenId = "";
|
this.kindergartenId = "";
|
||||||
this.queryParams2.kindergartenId = "";
|
this.queryParams2.kindergartenId = "";
|
||||||
this.queryParams.kindergartenId = "";
|
|
||||||
this.getList();
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.form.itemScoreList.forEach((e) => {
|
this.form.itemScoreList.forEach((e) => {
|
||||||
@ -1388,6 +1435,7 @@ export default {
|
|||||||
addTestItemScore(this.form).then((response) => {
|
addTestItemScore(this.form).then((response) => {
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
|
this.getList();
|
||||||
this.xmname = "请选择所属班级";
|
this.xmname = "请选择所属班级";
|
||||||
this.stname = "请选择学生姓名";
|
this.stname = "请选择学生姓名";
|
||||||
this.itemNumbername = "请选择批次编号";
|
this.itemNumbername = "请选择批次编号";
|
||||||
@ -1396,8 +1444,6 @@ export default {
|
|||||||
this.kindergartenName = "请选择幼儿园";
|
this.kindergartenName = "请选择幼儿园";
|
||||||
this.kindergartenId = "";
|
this.kindergartenId = "";
|
||||||
this.queryParams2.kindergartenId = "";
|
this.queryParams2.kindergartenId = "";
|
||||||
this.queryParams.kindergartenId = "";
|
|
||||||
this.getList();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1407,6 +1453,7 @@ export default {
|
|||||||
handleDelete(row) {
|
handleDelete(row) {
|
||||||
const studentId = row.studentId;
|
const studentId = row.studentId;
|
||||||
const batchCode = row.batchCode;
|
const batchCode = row.batchCode;
|
||||||
|
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm("是否确认删除个人成绩的数据项?")
|
.confirm("是否确认删除个人成绩的数据项?")
|
||||||
.then(function () {
|
.then(function () {
|
||||||
@ -1418,27 +1465,16 @@ export default {
|
|||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
/** 导出按钮操作 */
|
||||||
handleSelectionChange(selection) {
|
handleExport() {
|
||||||
this.ids = selection.map((item) => item.id);
|
this.download(
|
||||||
this.single = selection.length !== 1;
|
"system/testItemScore/export",
|
||||||
this.multiple = !selection.length;
|
{
|
||||||
this.studentId = selection.map((item) => item.studentId);
|
...this.queryParams,
|
||||||
this.batchCode = selection.map((item) => item.batchCode);
|
},
|
||||||
console.log(this.studentId, this.batchCode);
|
`testItemScore_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
},
|
},
|
||||||
// /** 修改按钮操作 */
|
|
||||||
// handleUpdate(row) {
|
|
||||||
// console.log(row.id);
|
|
||||||
|
|
||||||
// this.reset();
|
|
||||||
// const id = row.id || this.ids;
|
|
||||||
// getTestItemScore(id).then((response) => {
|
|
||||||
// this.form = response.data;
|
|
||||||
// this.open = true;
|
|
||||||
// this.title = "修改个人成绩录入管理";
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user