Merge remote-tracking branch 'origin/dev'

# Conflicts:
#	.env.development
This commit is contained in:
纪寒 2022-09-19 10:20:14 +08:00
commit 974ea7c82d
15 changed files with 995 additions and 366 deletions

View File

@ -5,7 +5,7 @@ VUE_APP_TITLE = 幼儿园体质检测管理系统
ENV = 'development'
# 若依管理系统/开发环境
VUE_APP_BASE_API = 'http://192.168.16.81:8080'
VUE_APP_BASE_API = 'http://192.168.16.81:8081'
#'/dev-api'
# 路由懒加载

View File

@ -9,6 +9,13 @@ export function listArea(query) {
})
}
export function listCityInfo() {
return request({
url: '/system/area/listCityInfo',
method: 'get'
})
}
// 查询区域管理详细
export function getArea(id) {
return request({

View File

@ -26,34 +26,70 @@
<el-button
@click="batchCodeshowclick"
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
v-if="batchCode == '请选择批次'"
>{{ batchCode }}</el-button
v-if="batchName == '请选择批次'"
>{{ batchName }}</el-button
>
<el-button
@click="batchCodeshowclick"
style="width: 250px; text-align: left; height: 32px"
v-else
>{{ batchCode }}</el-button
>{{ batchName }}</el-button
>
</el-form-item>
</el-form>
<!-- // -->
<el-dialog
width="590px"
width="700px"
title="选择批次"
:visible.sync="batchCodeshow"
append-to-body
style="margin-top: 20px"
:before-close="batchCodecancel"
>
<el-form
:model="testqueryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="90px"
>
<el-form-item label="批次编号" prop="batchCode">
<el-input
v-model="testqueryParams.batchCode"
placeholder="请输入批次编号"
clearable
/>
</el-form-item>
<el-form-item label="批次名称" prop="batchCode">
<el-input
v-model="testqueryParams.batchName"
placeholder="请输入批次名称"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="testScore"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="testresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="testScorelist"
align="center"
style="margin-top: 0px"
@cell-dblclick="batchCodeclick"
>
<el-table-column label="请选择" width="100" align="center">
<el-table-column label="请选择" width="200" align="center">
<template slot-scope="scope">
<el-button
type="primary"
@ -73,13 +109,13 @@
<el-table-column
property="batchCode"
label="批次编号"
width="200"
width="230"
align="center"
/>
<el-table-column
property="batchName"
label="批次名称"
width="200"
width="230"
align="center"
/>
</el-table>
@ -100,6 +136,34 @@
append-to-body
:before-close="kindergartencancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="110px"
>
<el-form-item label="幼儿园名称" prop="kindergartenName">
<el-input
style="width: 200px"
v-model="kqueryParams.kindergartenName"
placeholder="请输入幼儿园名称"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="kinhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="kinresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table :data="kindergartenList" @cell-dblclick="kindergartenNameclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
@ -205,7 +269,8 @@ export default {
//ID
kindergartenId: "",
//
batchCode: "请选择批次",
batchCode: "",
batchName: "请选择批次",
//list
testScorelist: [],
//
@ -223,6 +288,7 @@ export default {
methods: {
onshow() {
this.batchCode = localStorage.getItem("batchCode2");
this.batchName = localStorage.getItem("batchName2");
this.kindergartenId = localStorage.getItem("kindergartenId");
if (localStorage.getItem("kindergartenName") == null) {
this.kindergartenName = "请选择幼儿园";
@ -251,8 +317,10 @@ export default {
//
batchCodeclick(row) {
this.batchCode = row.batchCode;
this.batchName = row.batchName;
this.batchCodeshow = false;
localStorage.setItem("batchCode2", this.batchCode);
localStorage.setItem("batchName2", this.batchName);
if (this.kindergartenId != "") {
this.$emit("kinbatlist", this.kindergartenId, this.batchCode, 2);
}
@ -269,15 +337,46 @@ export default {
this.total4 = res.total;
});
},
testresetQuery() {
this.testqueryParams = {
pageNum: 1,
pageSize: 10,
batchCode:'',
batchName:'',
};
this.testScore();
},
//
batchCodecancel() {
this.batchCodeshow = false;
this.testresetQuery();
},
//
kindergartencancel() {
this.kindergartenshow = false;
this.kinresetQuery();
},
kinhandleQuery() {
//list
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total1 = response.total;
// console.log(this.kindergartenList);
});
},
kinresetQuery() {
this.kqueryParams = {
pageNum: 1,
pageSize: 10,
organizeId: null,
kindergartenName: null,
kindergartenAddress: null,
kindergartenType: null,
phone: null,
contacts: null,
};
this.kinhandleQuery();
},
getList() {
//
getRoleInfo().then((res) => {

View File

@ -21,30 +21,31 @@
>{{ studentname }}</el-button
>
</el-form-item>
<el-form-item label="批次成绩" prop="categoryName" label-width="70px">
<el-form-item label="所属批次" prop="categoryName" label-width="70px">
<el-button
@click="batchCodeshowclick"
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
v-if="batchCode == '请选择批次'"
>{{ batchCode }}</el-button
v-if="batchName == '请选择批次'"
>{{ batchName }}</el-button
>
<el-button
@click="batchCodeshowclick"
style="width: 250px; text-align: left; height: 32px"
v-else
>{{ batchCode }}</el-button
>{{ batchName }}</el-button
>
</el-form-item>
</el-form>
<!-- // -->
<el-dialog
width="880px"
width="950px"
title="选择学生"
:visible.sync="studentshow"
append-to-body
:before-close="studentcancel"
><el-form
>
<el-form
ref="queryForm"
size="small"
:inline="true"
@ -55,32 +56,53 @@
<el-button
@click="kindergartenshow = true"
v-if="kindergartenName == '请选择幼儿园'"
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
style="width: 200px; text-align: left; height: 32px; color: #c0c4cc"
>{{ kindergartenName }}</el-button
>
<el-button
@click="kindergartenshow = true"
style="width: 250px; text-align: left; height: 32px"
style="width: 200px; text-align: left; height: 32px"
v-else
>{{ kindergartenName }}</el-button
>
</el-form-item>
<el-form-item label="所属班级" prop="categoryName" label-width="70px">
<el-form-item label="所属班级" prop="categoryName" label-width="80px">
<el-button
@click="classshowclick"
style="width: 250px; text-align: left; height: 32px; color: #c0c4cc"
style="width: 200px; text-align: left; height: 32px; color: #c0c4cc"
v-if="className == '请选择班级'"
>{{ className }}</el-button
>
<el-button
@click="classshowclick"
style="width: 250px; text-align: left; height: 32px"
style="width: 200px; text-align: left; height: 32px"
v-else
>{{ className }}</el-button
>
</el-form-item>
<el-form-item label="学生姓名" prop="studentName" label-width="80px">
<el-input
style="width: 200px"
v-model="studentqueryParams.studentName"
placeholder="请输入学生姓名"
></el-input>
</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
:data="studentInfoList"
@ -151,6 +173,34 @@
append-to-body
:before-close="kindergartencancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="110px"
>
<el-form-item label="幼儿园名称" prop="kindergartenName">
<el-input
style="width: 200px"
v-model="kqueryParams.kindergartenName"
placeholder="请输入幼儿园名称"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="kinhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="kinresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table :data="kindergartenList" @cell-dblclick="kindergartenNameclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
@ -224,6 +274,34 @@
append-to-body
:before-close="classcancel"
>
<el-form
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="110px"
>
<el-form-item label="班级名称" prop="className">
<el-input
style="width: 200px"
v-model="classqueryParams.className"
placeholder="请输入班级名称"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="classhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="classresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="classinfoList"
align="center"
@ -300,20 +378,56 @@
<!-- // -->
<el-dialog
width="590px"
width="700px"
title="选择批次"
:visible.sync="batchCodeshow"
append-to-body
style="margin-top: 20px"
:before-close="batchCodecancel"
>
<el-form
:model="testqueryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="90px"
>
<el-form-item label="批次编号" prop="batchCode">
<el-input
v-model="testqueryParams.batchCode"
placeholder="请输入批次编号"
clearable
/>
</el-form-item>
<el-form-item label="批次名称" prop="batchCode">
<el-input
v-model="testqueryParams.batchName"
placeholder="请输入批次名称"
clearable
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="testScore"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="testresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table
:data="testScorelist"
align="center"
style="margin-top: 0px"
@cell-dblclick="batchCodeclick"
>
<el-table-column label="请选择" width="100" align="center">
<el-table-column label="请选择" width="200" align="center">
<template slot-scope="scope">
<el-button
type="primary"
@ -333,13 +447,13 @@
<el-table-column
property="batchCode"
label="批次编号"
width="200"
width="230"
align="center"
/>
<el-table-column
property="batchName"
label="批次名称"
width="200"
width="230"
align="center"
/>
</el-table>
@ -440,7 +554,8 @@ export default {
//ID
studentId: "",
//
batchCode: "请选择批次",
batchCode: "",
batchName: "请选择批次",
//list
testScorelist: [],
//
@ -458,13 +573,72 @@ export default {
this.onshow();
},
methods: {
//
classresetQuery() {
this.classqueryParams.className = "";
this.classinfo();
},
classhandleQuery() {
this.classinfo();
},
//
kinresetQuery() {
this.kqueryParams = {
pageNum: 1,
pageSize: 10,
organizeId: null,
kindergartenName: null,
kindergartenAddress: null,
kindergartenType: null,
phone: null,
contacts: null,
};
this.kinhandleQuery();
},
kinhandleQuery() {
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total1 = response.total;
// console.log(this.kindergartenList);
});
},
//
resetQuery() {
this.kindergartenName = "请选择幼儿园";
this.kindergartenId = "";
this.className = "请选择班级";
this.classId = "";
this.studentname = "请选择学生";
this.studentId = "";
this.studentqueryParams = {
pageNum: 1,
pageSize: 10,
classId: "",
nationDictId: null,
studentName: null,
studentSex: null,
studentNumber: null,
birthDate: null,
cardNumber: null,
onceName: null,
homeAddress: null,
kindergartenId: null,
};
this.studentlist();
},
//
handleQuery() {
this.studentlist();
},
onshow() {
this.batchCode = localStorage.getItem("batchCode");
this.studentId = localStorage.getItem("studentId");
this.batchName = localStorage.getItem("batchName");
console.log(localStorage.getItem("studentname"));
if (localStorage.getItem("batchCode") == null) {
this.batchCode = "请选择批次";
this.batchName = "请选择批次";
} else {
this.batchCode = localStorage.getItem("batchCode");
}
@ -491,8 +665,10 @@ export default {
batchCodeclick(row) {
console.log(row);
this.batchCode = row.batchCode;
this.batchName = row.batchName;
this.batchCodeshow = false;
localStorage.setItem("batchCode", this.batchCode);
localStorage.setItem("batchName", this.batchName);
if (this.studentId != "") {
this.$emit("itemlist", this.studentId, this.batchCode);
}
@ -504,6 +680,20 @@ export default {
this.total4 = res.total;
});
},
testresetQuery() {
this.testqueryParams = {
pageNum: 1,
pageSize: 10,
batchCode: "",
batchName: "",
};
this.testScore();
},
//
batchCodecancel() {
this.batchCodeshow = false;
this.testresetQuery();
},
//
studentshowclick() {
this.studentshow = true;
@ -542,10 +732,6 @@ export default {
}
// console.log(this.classqueryParams);
},
//
batchCodecancel() {
this.batchCodeshow = false;
},
//
studentcancel() {
this.studentshow = false;
@ -571,7 +757,6 @@ export default {
this.classshow = false;
this.studentname = "请选择学生";
this.studentId = "";
this.studentlist();
},
//
kindergartenNameclick(row) {
@ -618,7 +803,6 @@ export default {
console.log(1, this.kindergartenName);
return;
} else if (user.includes("parent")) {
return;
}
});

View File

@ -28,85 +28,62 @@
@queryTable="getList"
></right-toolbar>
</el-row>
<div v-if="itemshow" style="width:1361px;margin: 10px auto">
<el-row :gutter="24">
<div v-if="itemshow" style="margin: 10px auto; width: 100%">
<el-table
:data="actionlist"
border
:span-method="arraySpanMethod"
style="width:100%"
>
<el-table-column
prop="categoryName"
label="测试分类"
width="140"
align="center"
style="width: 95%; margin: 0 auto"
>
<el-table-column prop="categoryName" label="测试分类" align="center">
</el-table-column>
<el-table-column
prop="itemName"
label="测试项目"
width="135"
align="center"
>
<el-table-column prop="itemName" label="测试项目" align="center">
</el-table-column>
<el-table-column
prop="itemFraction"
label="动作技能总分"
width="115"
align="center"
>
</el-table-column>
<el-table-column
prop="unifiedStandardScore"
label="统一最高得分"
width="115"
align="center"
>
</el-table-column>
<el-table-column
prop="smallStandardScore"
label="小班最高得分"
width="115"
align="center"
>
</el-table-column>
<el-table-column
prop="middleStandardScore"
label="中班最高得分"
width="115"
align="center"
>
</el-table-column>
<el-table-column
prop="largeStandardScore"
label="大班最高得分"
width="115"
align="center"
>
</el-table-column>
<el-table-column
prop="itemScoreAll"
label="综合得分"
width="160"
align="center"
>
<el-table-column prop="itemScoreAll" label="综合得分" align="center">
</el-table-column>
<el-table-column
prop="syntheticalAssess"
label="综合评价"
width="170"
align="center"
>
</el-table-column>
<el-table-column
prop="remark"
label="测试目的"
width="180"
align="center"
>
<el-table-column prop="remark" label="测试目的" align="center">
</el-table-column>
</el-table>
</div>
</el-row>
<el-row :gutter="20" v-if="itemshow2">
<el-col :span="24" :offset="0">
<el-card>

View File

@ -127,21 +127,22 @@
<el-row v-show="itemshow">
<el-col :span="24" :offset="0">
<div style="margin: 0 auto">
<div style="margin: 0 autu; font-size: 14px">
<div
style="
line-height: 60px;
display: flex;
text-align: center;
justify-content: center;
color: #fff;
color: black;
font-weight:550;
"
>
<div
style="
width: 120px;
line-height: 60px;
border: 1px solid #f0f0f0;
background: #3c9299;
background: #F5F7FA;
"
>
年龄
@ -149,9 +150,8 @@
<div
style="
width: 120px;
line-height: 60px;
border: 1px solid #f0f0f0;
background: #3c9299;
background: #F5F7FA;
"
>
平均总分
@ -162,7 +162,7 @@
text-align: center;
line-height: 30px;
border: 1px solid #f0f0f0;
background: #3c9299;
background: #F5F7FA;
"
>
{{ item.parentName }}
@ -172,8 +172,8 @@
display: flex;
line-height: 30px;
border: 1px solid #f0f0f0;
background: #3c9299;
font-size: 14px;
background: #F5F7FA;
font-size: 12px;
"
>
<div
@ -186,28 +186,26 @@
</div>
</div>
</div>
<div style="font-size:15px">
<div style="font-size: 14px">
<div
style="text-align: center; display: flex; justify-content: center"
style="
text-align: center;
display: flex;
justify-content: center;
line-height: 50px;
"
v-for="item in categoryScoreList"
:key="item.prentId"
>
<div
style="
width: 120px;
line-height: 60px;
border: 1px solid #f0f0f0;
"
>
{{ item.className }}
</div>
<div
style="
width: 120px;
line-height: 60px;
border: 1px solid #f0f0f0;
"
>
<div style="width: 120px; border: 1px solid #f0f0f0">
{{ item.totalAvScore }}
</div>
<div>

View File

@ -195,7 +195,6 @@
v-model="form.parentId"
/>
</el-form-item>
<!-- <el-form-item label="所属上级" prop="parentId">
<el-input v-model="form.parentId" placeholder="请输入父级id" />
</el-form-item> -->
@ -213,7 +212,6 @@
maxlength="80"
/>
</el-form-item>
<el-form-item label="测试分类得分" prop="testItemLevelList">
<div
v-for="(item, index) in form.testItemLevelList"
@ -256,7 +254,6 @@
></el-button>
</div>
</el-form-item>
<el-form-item label="分类排序" prop="sorting">
<el-input
v-model="form.sorting"
@ -297,7 +294,6 @@ export default {
data() {
var roleMoeny = (rule, value, callback) => {
var str = this.form.sorting;
if (Number.isNaN(Number.parseFloat(str))) {
callback(new Error("请输入分类排序"));
} else if (str.length == 0) {
@ -306,39 +302,36 @@ export default {
callback();
}
};
let testItemLevelList = (rule, value, callback) => {
let min = value
.map((e) => {
return e.levelMinScore;
})
.toString();
let max = value
.map((e) => {
return e.levelMaxScore;
})
.toString();
console.log(min, max);
if (Number(max) < Number(min)) {
if (max && min && max < min) {
let ItemLevelList = (rule, value, callback) => {
for (let i = 0; i < value.length; i++) {
console.log(value[i].levelMinScore > value[i].levelMaxScore);
if (value[i].levelMinScore > value[i].levelMaxScore) {
callback(new Error("最高分必须大于最低分,请重新填写!"));
} else {
console.log(min, max);
}
}
if (
value.map((e) => {
return e.levelName;
}) == ""
) {
} else if (value[i].levelName == "") {
callback();
} else if (min == "") {
} else if (value[i].levelMinScore == "") {
callback();
} else if (max == "") {
} else if (value[i].levelMaxScore == "") {
callback();
} else {
callback();
}
}
// value.for((e) => {
// console.log(e.levelMinScore, e.levelMaxScore);
// console.log(e.levelMinScore > e.levelMaxScore);
// if (e.levelMinScore > e.levelMaxScore) {
// callback(new Error(","));
// } else if (e.levelName == "") {
// callback();
// } else if (e.levelMinScore == "") {
// callback();
// } else if (e.levelMaxScore == "") {
// callback();
// } else {
// callback();
// }
// });
};
return {
//
@ -379,7 +372,7 @@ export default {
testItemLevelList: [
{
// required: true,
validator: testItemLevelList,
validator: ItemLevelList,
trigger: "blur",
},
],

View File

@ -109,22 +109,26 @@
<div
ref="chart"
id="chart"
style="width: 1000px; height: 600px; margin: 0 auto"
style="width: 600px; height: 600px; margin: 0 auto"
></div>
</div>
</el-col>
<el-col :span="24" :offset="0">
<div style="margin: 0 auto">
<div
style="display: flex; text-align: center; justify-content: center"
style="
display: flex;
text-align: center;
justify-content: center;
color: black;
"
>
<div
style="
width: 120px;
line-height: 60px;
border: 1px solid #f0f0f0;
background: #27848b;
color: #fff;
background: #f5f7fa;
"
>
年龄
@ -134,8 +138,8 @@
width: 120px;
line-height: 60px;
border: 1px solid #f0f0f0;
background: #27848b;
color: #fff;
background: #f5f7fa;
color: black;
"
>
平均总分
@ -146,8 +150,8 @@
text-align: center;
line-height: 30px;
border: 1px solid #f0f0f0;
background: #27848b;
color: #fff;
background: #f5f7fa;
color: black;
"
>
{{ item.parentName }}
@ -157,8 +161,8 @@
display: flex;
line-height: 30px;
border: 1px solid #f0f0f0;
background: #27848b;
color: #fff;
background: #f5f7fa;
color: black;
"
>
<div
@ -173,14 +177,19 @@
</div>
<div>
<div
style="text-align: center; display: flex; justify-content: center"
style="
text-align: center;
display: flex;
justify-content: center;
font-size: 14px;
"
v-for="item in categoryAgeFractionList"
:key="item.prentId"
>
<div
style="
width: 120px;
line-height: 60px;
line-height: 50px;
border: 1px solid #f0f0f0;
"
>
@ -189,14 +198,14 @@
<div
style="
width: 120px;
line-height: 60px;
line-height: 50px;
border: 1px solid #f0f0f0;
"
>
{{ item.totalAvgFraction }}
</div>
<div>
<div style="display: flex; line-height: 60px">
<div style="display: flex; line-height: 50px">
<div
v-for="uitem in item.list"
:key="uitem.categoryId"
@ -280,10 +289,10 @@ export default {
kinbatlist(kin, batchCode) {
console.log(kin);
var a = kin;
console.log(a)
console.log(a);
this.analysisqueryParams.kindergartenId = a;
this.analysisqueryParams.batchCode = batchCode;
console.log(this.analysisqueryParams)
console.log(this.analysisqueryParams);
},
analysisinfo() {
@ -442,7 +451,7 @@ export default {
/* width: 70%; */
margin: 0 auto;
/* background-color: #f0f0f0; */
color: #27848B;
color: #27848b;
}
::v-deep .el-form {
display: inline;

View File

@ -32,9 +32,7 @@
class="box-card"
style="width: 95%; margin: 0 auto"
>
<div slot="header" style="text-align: center; ">
身体素质测试
</div>
<div slot="header" style="text-align: center">身体素质测试</div>
<el-row style="text-align: center">
<el-col
:span="5"
@ -141,10 +139,15 @@
left: 75%;
line-height: 20px;
overflow: hidden;
width: 32px;
width: 40px;
"
>
{{ ((item.maxScore - item.minScore) / 5) * 4 + item.minScore }}
{{
(
((item.maxScore - item.minScore) / 5) * 4 +
item.minScore
).toFixed(1)
}}
</div>
<div
style="
@ -163,10 +166,15 @@
left: 55%;
overflow: hidden;
line-height: 20px;
width: 32px;
width: 40px;
"
>
{{ ((item.maxScore - item.minScore) / 5) * 3 + item.minScore }}
{{
(
((item.maxScore - item.minScore) / 5) * 3 +
item.minScore
).toFixed(1)
}}
</div>
<div
style="
@ -185,10 +193,15 @@
left: 35%;
line-height: 20px;
overflow: hidden;
width: 32px;
width: 40px;
"
>
{{ ((item.maxScore - item.minScore) / 5) * 2 + item.minScore }}
{{
(
((item.maxScore - item.minScore) / 5) * 2 +
item.minScore
).toFixed(1)
}}
</div>
<div
style="
@ -208,10 +221,15 @@
left: 15%;
line-height: 20px;
overflow: hidden;
width: 32px;
width: 40px;
"
>
{{ ((item.maxScore - item.minScore) / 5) * 1 + item.minScore }}
{{
(
((item.maxScore - item.minScore) / 5) * 1 +
item.minScore
).toFixed(1)
}}
</div>
<div
style="
@ -355,7 +373,7 @@ export default {
//
studentscore: {
pageNum: 1,
pageSize: 10,
pageSize: 999,
studentId: "",
batchCode: "",
// studentId: "27",
@ -421,7 +439,7 @@ export default {
</script>
<style scoped='scss'>
.text {
font-size:14px
font-size: 14px;
}
.toptitle {
height: 50px;

View File

@ -58,6 +58,7 @@
<el-form-item label="身份证号" prop="cardNumber">
<el-input
v-model="queryParams.cardNumber"
maxlength="18"
placeholder="请输入身份证号"
clearable
@keyup.enter.native="handleQuery"
@ -390,6 +391,7 @@
<el-form-item label="身份证号" prop="cardNumber">
<el-input
style="width: 380px"
maxlength="18"
v-model="form.cardNumber"
placeholder="请输入身份证号"
/>
@ -1088,6 +1090,11 @@ export default {
message: "",
},
],
homeAddress:[
{
required: true, message: "请输入家庭住址", trigger: "blur"
}
],
birthDate: [
{ required: true, message: "请选择日期", trigger: "change" },
],
@ -1280,6 +1287,7 @@ export default {
this.parentInfoId = "";
this.classinfoName = "请选择所属班级";
this.classinfoId = "";
this.kindergartenName="请选择所在幼儿园";
this.open = true;
this.title = "添加学生信息";
},
@ -1369,6 +1377,7 @@ export default {
this.form2.nationDictId = this.form.nationDictId;
this.form2.studentName = this.form.studentName;
this.form2.kindergartenId = this.form.kindergartenId;
this.form2.studentSex = this.form.studentSex;
this.form2.studentNumber = this.form.studentNumber;
this.form2.birthDate = this.form.birthDate;
@ -1565,7 +1574,7 @@ export default {
this.parent2 = "";
this.classinfoName = "请选择所属班级";
this.classinfoId = "";
this.kindergartenid = "";
this.kindergartenName = "";
this.kindergartenName = "请选择所在幼儿园";
this.tags = [];
console.log(this.tags);
@ -1722,6 +1731,7 @@ export default {
this.parent2 = "";
this.parentlist = [];
this.tags = [];
});
}
}

View File

@ -390,7 +390,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="排序" prop="sorting">
<!-- <el-form-item label="排序" prop="sorting">
<el-input
style="width: 180px"
v-model="queryParams2.sorting"
@ -398,7 +398,7 @@
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
</el-form-item> -->
<el-form-item>
<el-button
type="primary"
@ -459,7 +459,7 @@
<el-table-column label="项目名称" align="center" prop="itemName" />
<el-table-column label="项目编号" align="center" prop="itemCode" />
<el-table-column label="项目内容" align="center" prop="itemContent" />
<el-table-column label="项目概述" align="center" prop="remark" />
<!-- <el-table-column label="项目概述" align="center" prop="remark" />
<el-table-column
label="项目度量单位"
align="center"
@ -485,7 +485,7 @@
align="center"
prop="unifiedStandardScore"
/>
<el-table-column label="排序" align="center" prop="sorting" />
<el-table-column label="排序" align="center" prop="sorting" /> -->
</el-table>
<pagination

View File

@ -362,6 +362,14 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="测试项目编号" prop="itemCode" label-width="90">
<el-input
v-model="queryParams2.itemCode"
placeholder="请输入测试项目编号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"

View File

@ -32,10 +32,10 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="批次编号" prop="batchCode">
<el-form-item label="批次名称" prop="batchCode">
<el-input
v-model="queryParams.batchCode"
placeholder="请输入批次编号"
v-model="queryParams.batchName"
placeholder="请输入批次名称"
clearable
@keyup.enter.native="handleQuery"
/>
@ -74,7 +74,7 @@
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
@click="handleUpdate2"
v-hasPermi="['system:testItemScore:edit']"
>修改</el-button
>
@ -112,7 +112,6 @@
v-loading="loading"
:data="testItemScoreList"
@selection-change="handleSelectionChange"
@row-dblclick="seepraent"
ref="table"
>
<el-table-column type="selection" width="50" align="center" />
@ -176,7 +175,7 @@
<el-dialog
:title="title"
:visible.sync="open"
width="1000px"
width="1300px"
append-to-body
:before-close="cancel"
>
@ -184,7 +183,7 @@
ref="form"
:model="form"
:rules="rules"
label-width="110px"
label-width="105px"
:inline="true"
>
<el-form-item label="所属幼儿园" prop="classId" v-if="form.id == ''">
@ -211,12 +210,20 @@
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
"
>{{ kindergartenName }}</el-button
>
</el-form-item>
<el-form-item label="所属班级" prop="classId" v-if="form.id == ''">
<el-form-item
label="所属班级"
prop="classId"
v-if="form.id == ''"
label-width="90px"
>
<el-button
type=""
@click="handleQuery2"
@ -240,11 +247,19 @@
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
"
>{{ 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"
label-width="90px"
>
<el-button
disabled
type=""
@ -257,7 +272,12 @@
>{{ stname }}</el-button
>
</el-form-item>
<el-form-item label="学生姓名" prop="studentId" v-else>
<el-form-item
label="学生姓名"
prop="studentId"
v-else
label-width="90px"
>
<el-button
this.stname="row.studentName;"
type=""
@ -286,7 +306,12 @@
>{{ stname }}</el-button
>
</el-form-item>
<el-form-item label="批次编号" prop="batchCode" v-if="form.id == null">
<el-form-item
label="所属批次"
prop="batchCode"
v-if="form.id == null"
label-width="90px"
>
<el-button
type=""
disabled
@ -299,7 +324,12 @@
>{{ itemNumbername }}</el-button
>
</el-form-item>
<el-form-item label="批次编号" prop="batchCode" v-else>
<el-form-item
label="所属批次"
prop="batchCode"
v-else
label-width="90px"
>
<el-button
this.itemNumbername="row.batchCode;"
type=""
@ -318,6 +348,146 @@
type=""
@click="testclick"
v-else
style="
width: 200px;
text-align: left;
height: 36px;
padding-left: -10px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
"
>{{ itemNumbername }}</el-button
>
</el-form-item>
</el-form>
<el-table
ref="singleTable"
:data="form.itemScoreList"
style="width: 93%; margin: 20px auto"
>
<el-table-column
property="itemCode"
label="项目编号"
width="230"
align="center"
>
</el-table-column>
<el-table-column
property="itemName"
label="项目名称"
width="230"
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="230"
align="center"
>
<template slot-scope="scope">
<el-input
type="number"
v-model="scope.row.itemScore"
v-if="
scope.row.itemScore != null ||
scope.row.scoreDictId == ResultType1.dictCode
"
></el-input>
<el-input
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="230"
align="center"
>
<template slot-scope="scope">
<el-input type="number" v-model="scope.row.itemFraction"></el-input>
</template>
</el-table-column>
<el-table-column
property="syntheticalAssess"
label="综合评价"
width="230"
align="center"
>
<template slot-scope="scope">
<el-input v-model="scope.row.syntheticalAssess"></el-input>
</template>
</el-table-column>
</el-table>
<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="title"
:visible.sync="open2"
width="1000px"
append-to-body
:before-close="cancel"
>
<el-form
ref="form"
:model="form"
:rules="rules"
label-width="105px"
:inline="true"
>
<el-form-item label="学生姓名" prop="studentId" label-width="90px">
<el-button
disabled
type=""
style="
width: 200px;
text-align: left;
height: 36px;
padding-left: -10px;
"
>{{ stname }}</el-button
>
</el-form-item>
<el-form-item
label="所属批次"
prop="batchCode"
v-if="form.id == null"
label-width="90px"
>
<el-button
type=""
disabled
style="
width: 200px;
text-align: left;
@ -417,7 +587,6 @@
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
<!-- // -->
<el-dialog
width="850px"
@ -426,8 +595,37 @@
append-to-body
:before-close="kindergartencancel"
>
<el-table :data="kindergartenList"
@cell-dblclick="kindergartenNameclick">
<el-form
:model="kqueryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-form-item label="幼儿园名称" prop="className">
<el-input
v-model="kqueryParams.kindergartenName"
placeholder="请输入幼儿园名称"
clearable
@keyup.enter.native="kinhandleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="kinhandleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="kinresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table :data="kindergartenList" @cell-dblclick="kindergartenNameclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
@ -488,7 +686,7 @@
:total="total6"
:page.sync="kqueryParams.pageNum"
:limit.sync="kqueryParams.pageSize"
@pagination="getList"
@pagination="kininfo"
/>
</el-dialog>
@ -511,9 +709,9 @@
<el-form-item label="班级名称" prop="className">
<el-input
v-model="queryParams2.className"
placeholder="请输入项目名称"
placeholder="请输入班级名称"
clearable
@keyup.enter.native="handleQuery"
@keyup.enter.native="handleQuery2"
/>
</el-form-item>
<el-form-item>
@ -524,12 +722,12 @@
@click="handleQuery2"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
<el-button icon="el-icon-refresh" size="mini" @click="classresetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-table :data="classInfos">
<el-table :data="classInfos" @cell-dblclick="xmclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
@ -625,7 +823,7 @@
:total="total2"
:page.sync="queryParams2.pageNum"
:limit.sync="queryParams2.pageSize"
@pagination="getList"
@pagination="classinfo"
/>
</el-dialog>
@ -665,7 +863,7 @@
>
</el-form-item>
</el-form>
<el-table :data="studentInfos">
<el-table :data="studentInfos" @cell-dblclick="studentclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
@ -781,7 +979,7 @@
:total="total3"
:page.sync="queryParams3.pageNum"
:limit.sync="queryParams3.pageSize"
@pagination="getList"
@pagination="studentinfo"
/>
</el-dialog>
@ -789,7 +987,7 @@
<el-dialog
width="850px"
title="选择批次编号"
title="选择所属批次"
:visible.sync="innerVisible4"
append-to-body
>
@ -809,6 +1007,14 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="批次名称" prop="batchCode">
<el-input
v-model="queryParams5.batchName"
placeholder="请输入批次名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
@ -822,7 +1028,7 @@
>
</el-form-item>
</el-form>
<el-table :data="testScoreBatchs">
<el-table :data="testScoreBatchs" @cell-dblclick="batchCodeclick">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
@ -1086,6 +1292,7 @@ export default {
title: "",
//
open: false,
open2: false,
itemId2: "",
itemId3: "",
//
@ -1117,6 +1324,7 @@ export default {
pageNum: 1,
pageSize: 10,
batchCode: null,
batchName: "",
},
addqueryParams: {
studentId: "",
@ -1145,6 +1353,7 @@ export default {
],
},
testitems: [],
selection2: {},
};
},
created() {
@ -1160,7 +1369,7 @@ export default {
seepraent(row) {
this.reset();
getAllTestItemScoreInfo(row).then((res) => {
console.log(res)
console.log(res);
this.getAllTestItemScore = res.data;
console.log(this.getAllTestItemScore);
this.innerVisible5 = true;
@ -1198,6 +1407,9 @@ export default {
this.itemId2 = "";
this.itemId3 = "";
this.form.classId = null;
this.queryParams3.classId = "";
this.addqueryParams.studentId = "";
console.log(this.queryParams3);
this.form.studentId = null;
},
//
@ -1216,7 +1428,9 @@ export default {
this.queryParams3.classId = row.id;
this.stname = "请选择学生姓名";
this.itemId3 = "";
this.addqueryParams.studentId = "";
this.form.studentId = null;
console.log(this.addqueryParams);
},
//
studentinfoclick() {
@ -1290,6 +1504,7 @@ export default {
//
cancel() {
this.open = false;
this.open2 = false;
this.reset();
this.kindergartenName = "请选择幼儿园";
this.kindergartenId = "";
@ -1321,49 +1536,110 @@ export default {
if (this.queryParams2.kindergartenId == "") {
this.$message.error("请先选择幼儿园");
} else {
classInfo(this.queryParams2).then((response) => {
this.classInfos = response.rows;
this.total = response.total;
this.loading = false;
this.classinfo();
this.innerVisible = true;
});
this.loading = false;
}
},
//
studentinfo() {
studentInfo(this.queryParams3).then((response) => {
this.studentInfos = response.rows;
this.total3 = response.total;
});
},
handleQuery3() {
this.queryParams3.pageNum = 1;
studentInfo(this.queryParams).then((response) => {
this.studentInfo = response.rows;
this.total = response.total;
this.studentinfo();
this.loading = false;
this.getList();
});
},
//
handleQuery5() {
this.queryParams5.pageNum = 1;
testScoreBatch(this.queryParams).then((response) => {
this.testScoreBatch = response.rows;
this.total = response.total;
testScoreBatch(this.queryParams5).then((response) => {
this.testScoreBatchs = response.rows;
this.total5 = response.total;
this.loading = false;
this.getList();
});
},
kinhandleQuery() {
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total6 = response.total;
});
},
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
listTestItemScore(this.queryParams).then((response) => {
this.testItemScoreList = response.rows;
this.total = response.total;
this.loading = false;
});
},
/** 重置按钮操作 */
classinfo() {
classInfo(this.queryParams2).then((response) => {
this.classInfos = response.rows;
this.total2 = response.total;
this.queryParams3.studentName = null;
});
},
classresetQuery() {
this.queryParams2.className = null;
this.queryParams3.classId == "";
this.classinfo();
},
kininfo() {
listKindergartenInfo(this.kqueryParams).then((response) => {
this.kindergartenList = response.rows;
this.total6 = response.total;
});
},
kinresetQuery() {
this.kqueryParams.kindergartenName = "";
this.queryParams2.kindergartenId = "";
},
resetQuery() {
this.resetForm("queryForm");
this.kqueryParams.kindergartenName = "";
//
this.queryParams2.className = null;
//
this.queryParams5 = {
pageNum: 1,
pageSize: 10,
batchCode: null,
batchName: "",
};
this.queryParams = {
pageNum: 1,
pageSize: 10,
className: null,
studentName: null,
itemName: null,
batchCode: null,
};
this.handleQuery();
this.queryParams.className = "";
studentInfo(this.queryParams3).then((response) => {
this.studentInfos = response.rows;
this.total3 = response.total;
});
},
//
handleSelectionChange(selection) {
this.ids = selection.map((item) => item.id);
this.single = selection.length !== 1;
this.multiple = !selection.length;
if (selection.length == 1) {
console.log(selection.studentId);
selection.forEach((e) => {
this.selection2.studentId = e.studentId;
this.selection2.batchCode = e.batchCode;
});
}
console.log(this.selection2);
},
/** 新增按钮操作 */
handleAdd() {
@ -1374,6 +1650,21 @@ export default {
this.title = "添加个人成绩录入管理";
},
/** 修改按钮操作 */
handleUpdate2() {
this.reset();
getTestItemScore(this.selection2).then((response) => {
console.log();
this.form = response.data;
this.open2 = 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);
});
},
handleUpdate(row) {
this.reset();
const id = row.id || this.ids;
@ -1382,10 +1673,11 @@ export default {
batchCode: row.batchCode,
};
this.form.itemScoreList = [];
console.log(list);
getTestItemScore(list).then((response) => {
console.log();
this.form = response.data;
this.open = true;
this.open2 = true;
this.queryParams3.classId = response.data.classId;
this.stname = response.data.studentName;
this.itemId3 = response.data.studentId;
@ -1401,7 +1693,7 @@ export default {
if (this.form.id == null) {
updateTestItemScore(this.form).then((response) => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.open2 = false;
this.getList();
this.xmname = "请选择所属班级";
this.stname = "请选择学生姓名";

View File

@ -210,6 +210,7 @@
label-width="160px"
:inline="true"
>
<div style="border-bottom: 1px solid #f1f1f1; margin-bottom: 20px">
<el-form-item label="所属分类" prop="itemCategoryId">
<treeselect
:normalizer="normalizer"
@ -219,6 +220,8 @@
style="width: 300px"
/>
</el-form-item>
</div>
<div style="border-bottom: 1px solid #f1f1f1; margin-bottom: 20px">
<el-form-item label="项目名称" prop="itemName">
<el-input
style="width: 300px"
@ -235,14 +238,6 @@
style="width: 300px"
/>
</el-form-item>
<el-form-item label="排序" prop="sorting">
<el-input
v-model="form.sorting"
placeholder="请输入排序"
maxlength="10"
style="width: 300px"
/>
</el-form-item>
<el-form-item label="测试项目成绩类型" prop="resultDictType">
<el-select
v-model="form.resultDictType"
@ -259,6 +254,42 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="项目概述" prop="remark">
<el-input
v-model="form.remark"
placeholder="请输入项目概述"
style="width: 300px"
maxlength="200"
/>
</el-form-item>
<el-form-item label="项目内容" prop="itemContent">
<el-input
type="textarea"
:autosize="{ minRows: 6, maxRows: 8 }"
v-model.number="form.itemContent"
placeholder="项目内容"
maxlength="200"
style="width: 500px"
/>
<!-- <editor
v-model="form.itemContent"
:min-height="190"
style="margin-left: 80px"
maxlength="200"
/> -->
</el-form-item>
</div>
<el-form-item label="排序" prop="sorting">
<el-input
v-model="form.sorting"
placeholder="请输入排序"
maxlength="10"
style="width: 300px"
/>
</el-form-item>
<el-form-item label="度量单位" prop="measureUnit">
<el-select
v-model="form.measureUnit"
@ -293,9 +324,12 @@
style="width: 300px"
/>
</el-form-item>
<el-form-item label="标准最高得分类型" prop="standardType">
<el-select
<el-radio-group v-model="form.standardType" style="width: 300px">
<el-radio :label="ty">统一指标</el-radio>
<el-radio :label="fty">非统一指标</el-radio>
</el-radio-group>
<!-- <el-select
v-model="form.standardType"
clearable
placeholder="请选择指标类型"
@ -308,7 +342,7 @@
:value="item.dictValue"
>
</el-option>
</el-select>
</el-select> -->
</el-form-item>
<el-form-item
label="大班标准最高得分"
@ -371,15 +405,7 @@
maxlength="50"
/>
</el-form-item>
<el-form-item label="测试目的" prop="remark">
<el-input
v-model="form.remark"
placeholder="请输入项目概述"
style="width: 300px"
maxlength="200"
/>
</el-form-item>
<el-form-item label="项目成绩级别" prop="itemLevelList">
<el-form-item label="成绩级别" prop="itemLevelList">
<div
v-for="(item, index) in form.itemLevelList"
:key="item.id"
@ -436,14 +462,6 @@
></el-button>
</div>
</el-form-item>
<el-form-item label="项目内容" prop="itemContent">
<editor
v-model="form.itemContent"
:min-height="190"
style="margin-left: 80px"
maxlength="200"
/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer" style="margin-right: 80px">
@ -681,19 +699,17 @@ export default {
}
};
let itemLevelList = (rule, value, callback) => {
let min = value
.map((e) => {
let min = value.map((e) => {
return e.levelMinScore;
})
.toString();
let max = value
.map((e) => {
});
let max = value.map((e) => {
return e.levelMaxScore;
})
.toString();
console.log(min, max);
});
console.log(value.length);
if (max && min && max < min) {
for (var i = 0; i < value.length; i++) {
console.log(min[i], max[i]);
if (max[i] < min[i]) {
callback(new Error("最高分必须大于最低分,请重新填写!"));
} else {
console.log(min, max);
@ -701,24 +717,17 @@ export default {
if (
value.map((e) => {
return e.levelName;
}) == ""
})[i] == ""
) {
callback();
} else if (
value.map((e) => {
return e.levelMinScore;
}) == ""
) {
} else if (min[i] == "") {
callback();
} else if (
value.map((e) => {
return e.levelMaxScore;
}) == ""
) {
} else if (max[i] == "") {
callback();
} else {
callback();
}
}
};
let minScore = (rule, value, callback) => {

View File

@ -99,7 +99,12 @@
<!-- <el-table-column label="主键id" align="center" prop="id" /> -->
<el-table-column label="批次编号" align="center" prop="batchCode" />
<el-table-column label="批次名称" align="center" prop="batchName" />
<el-table-column label="备注信息" align="center" prop="remark" :show-overflow-tooltip="true" />
<el-table-column
label="备注信息"
align="center"
prop="remark"
:show-overflow-tooltip="true"
/>
<el-table-column label="创建人" align="center" prop="createBy" />
<el-table-column label="创建时间" align="center" prop="createTime" />
<!-- <el-table-column label="修改人" align="center" prop="updateBy" />
@ -244,6 +249,13 @@
</template>
</el-table-column>
</el-table>
<pagination
v-show="total2 > 0"
:total="total2"
:page.sync="temqueryParams.pageNum"
:limit.sync="temqueryParams.pageSize"
@pagination="lookitem"
/>
</div>
</el-dialog>
@ -283,20 +295,20 @@
>
</el-form-item>
</el-form>
<el-table :data="testItemss">
<el-table :data="testItemss" @cell-dblclick="addtestitem">
<el-table-column label="请选择" width="70" align="center">
<template slot-scope="scope">
<el-button
type="primary"
style="width: 15px; height: 15px"
circle
style="width: 20px; height: 20px; padding: 0px"
v-if="items.find((e) => e.itemId == scope.row.id)"
@click="deltestitem(scope.row)"
></el-button>
<el-button
v-else
style="width: 15px; height: 15px"
circle
style="width: 20px; height: 20px; padding: 0px"
@click="addtestitem(scope.row)"
></el-button>
</template>
@ -431,7 +443,7 @@
margin-top: 30px;
margin-left: 85%;
width: 100px;
height: 50px;
height: 40px;
font-size: 15px;
"
>选择完成</el-button
@ -481,6 +493,13 @@
>
</el-table-column>
</el-table>
<pagination
v-show="total2 > 0"
:total="total2"
:page.sync="temqueryParams.pageNum"
:limit.sync="temqueryParams.pageSize"
@pagination="lookitem"
/>
</el-dialog>
</div>
</template>
@ -526,6 +545,7 @@ export default {
showSearch: true,
//
total: 0,
total2: 0,
testItemss: [],
total4: 0,
//
@ -541,6 +561,11 @@ export default {
batchCode: null,
batchName: null,
},
temqueryParams: {
pageNum: 1,
pageSize: 10,
id: "",
},
//
queryParams4: {
pageNum: 1,
@ -603,13 +628,12 @@ export default {
lookitem(item) {
this.itemlist = [];
this.items = [];
var id = {
batchId: item.id,
};
temBatchInfoList(id).then((res) => {
this.temqueryParams.id = item.id;
temBatchInfoList(this.temqueryParams).then((res) => {
console.log(res);
if (res.rows.length != 0) {
this.itemlist = res.rows;
this.total2 = res.total;
this.items = res.rows;
this.items.forEach((e) => {
e.itemType = e.resultDictType;
@ -703,6 +727,7 @@ export default {
this.reset();
this.open = true;
this.items = [];
this.total2 = 0;
this.title = "添加测试成绩批次";
},
/** 修改按钮操作 */