基础信息管理 所有双击选中 添加查看
This commit is contained in:
parent
5ab8d48451
commit
671966510f
@ -46,6 +46,14 @@ export function getTestItemScore(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询个人成绩
|
||||||
|
// export function getAllTestItemScoreInfo(id) {
|
||||||
|
// return request({
|
||||||
|
// url: 'system/testItemScore/getAllTestItemScoreInfo' + id,
|
||||||
|
// method: 'get'
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
// 新增个人成绩录入管理
|
// 新增个人成绩录入管理
|
||||||
export function addTestItemScore(data) {
|
export function addTestItemScore(data) {
|
||||||
return request({
|
return request({
|
||||||
@ -76,6 +84,6 @@ export function getAllTestItemScoreInfo(query) {
|
|||||||
return request({
|
return request({
|
||||||
url: '/system/testItemScore/getAllTestItemScoreInfo',
|
url: '/system/testItemScore/getAllTestItemScoreInfo',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -293,7 +293,7 @@
|
|||||||
|
|
||||||
<el-table
|
<el-table
|
||||||
:data="kindergartenInfoList"
|
:data="kindergartenInfoList"
|
||||||
@row-click="kindergartenNameclick"
|
@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">
|
||||||
@ -388,9 +388,11 @@ export default {
|
|||||||
console.log(str);
|
console.log(str);
|
||||||
// 验证手机号的正则表达式
|
// 验证手机号的正则表达式
|
||||||
const regMobile =
|
const regMobile =
|
||||||
/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/;
|
/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
||||||
|
// /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/;
|
||||||
|
// /^(?:(?:\+|0086))?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[0-9]))\d{8}$/;
|
||||||
const reg = /^(0[0-9]{2,3}\-)([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/;
|
const reg = /^(0[0-9]{2,3}\-)([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/;
|
||||||
const isTel = reg.test(str);
|
const isTel = reg.test(value);
|
||||||
|
|
||||||
if (str.length == 11) {
|
if (str.length == 11) {
|
||||||
if (regMobile.test(str)) {
|
if (regMobile.test(str)) {
|
||||||
|
|||||||
@ -381,21 +381,22 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table ref="tags" :data="parentInfoList" align="center">
|
<el-table ref="tags" :data="parentInfoList" align="center" @cell-dblclick="handleSelectionChange2">
|
||||||
<el-table-column label="请选择" width="100" align="center">
|
<!-- <el-table-column type="selection" label="请选择" width="100" align="center"> -->
|
||||||
|
|
||||||
|
<el-table-column label="请选择" width="100" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
style="width: 15px; height: 15px"
|
style="width: 20px; height: 20px;padding:0px;"
|
||||||
circle
|
|
||||||
v-if="parent1 == scope.row.id || parent2 == scope.row.id"
|
v-if="parent1 == scope.row.id || parent2 == scope.row.id"
|
||||||
@click="handleSelectionChange3(scope.row)"
|
@click="handleSelectionChange3(scope.row)"
|
||||||
></el-button>
|
></el-button>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-else
|
v-else
|
||||||
style="width: 15px; height: 15px"
|
style="width: 20px; height: 20px;padding:0px"
|
||||||
circle
|
|
||||||
@click="handleSelectionChange2(scope.row)"
|
@click="handleSelectionChange2(scope.row)"
|
||||||
></el-button>
|
></el-button>
|
||||||
</template>
|
</template>
|
||||||
@ -509,7 +510,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table :data="classinfoList" align="center" style="margin-top: 10px">
|
<el-table :data="classinfoList" align="center" style="margin-top: 10px" @cell-dblclick="classinfoclick">
|
||||||
<el-table-column label="请选择" width="80" align="center">
|
<el-table-column label="请选择" width="80" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
@ -1334,6 +1335,7 @@ export default {
|
|||||||
resetQuery1() {
|
resetQuery1() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
|
form.studentNumber=null;
|
||||||
},
|
},
|
||||||
/** 重置按钮操作 */
|
/** 重置按钮操作 */
|
||||||
resetQuery3() {
|
resetQuery3() {
|
||||||
@ -1444,3 +1446,7 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@ -302,8 +302,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table :data="kindergartenInfoList">
|
<el-table :data="kindergartenInfoList" @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
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -431,7 +431,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-table :data="classinfoList" align="center" style="margin-top: 10px">
|
<el-table :data="classinfoList" align="center" style="margin-top: 10px" @cell-dblclick="classinfoclick">
|
||||||
<!-- <el-table-column type="selection" width="50" align="center" /> -->
|
<!-- <el-table-column type="selection" width="50" align="center" /> -->
|
||||||
<el-table-column label="请选择" width="70" align="center">
|
<el-table-column label="请选择" width="70" align="center">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@ -494,21 +494,20 @@
|
|||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-button
|
<pagination
|
||||||
type="success"
|
|
||||||
plain
|
|
||||||
size="mini"
|
|
||||||
@click="cancel3"
|
|
||||||
style="margin-top: 30px; margin-left: 20px"
|
|
||||||
>选择完成</el-button
|
|
||||||
>
|
|
||||||
<pagination
|
|
||||||
v-show="total2 > 0"
|
v-show="total2 > 0"
|
||||||
:total="total2"
|
:total="total2"
|
||||||
:page.sync="classinfoList2.pageNum"
|
:page.sync="classinfoList2.pageNum"
|
||||||
:limit.sync="classinfoList2.pageSize"
|
:limit.sync="classinfoList2.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
size="mini"
|
||||||
|
@click="cancel3"
|
||||||
|
style="margin-top: 30px; margin-left: 85%;width: 100px; height: 50px;font-size:15px"
|
||||||
|
>选择完成</el-button>
|
||||||
|
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
|||||||
@ -113,20 +113,19 @@
|
|||||||
:data="testItemScoreList"
|
:data="testItemScoreList"
|
||||||
@selection-change="handleSelectionChange"
|
@selection-change="handleSelectionChange"
|
||||||
@row-dblclick="handledbClick"
|
@row-dblclick="handledbClick"
|
||||||
ref="table"
|
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
|
||||||
width="150"
|
width="150"
|
||||||
label="所属批次编号"
|
label="所属批次编号"
|
||||||
align="center"
|
align="center"
|
||||||
prop="batchCode"
|
prop="batchCode"
|
||||||
/>
|
/>
|
||||||
<el-table-column label="批次名称" align="center" prop="batchName" />
|
<el-table-column label="批次名称" align="center" prop="batchName" />
|
||||||
<el-table-column label="班级名称" align="center" prop="className" />
|
<el-table-column label="班级名称" align="center" prop="className" />
|
||||||
<el-table-column label="学生姓名" align="center" prop="studentName" />
|
<el-table-column label="学生姓名" align="center" prop="studentName" />
|
||||||
|
|
||||||
|
|
||||||
<el-table-column label="创建人" align="center" prop="createBy" />
|
<el-table-column label="创建人" align="center" prop="createBy" />
|
||||||
<el-table-column label="创建时间" align="center" prop="createTime" />
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
||||||
<!-- <el-table-column label="修改人" align="center" prop="updateBy" />
|
<!-- <el-table-column label="修改人" align="center" prop="updateBy" />
|
||||||
@ -137,6 +136,14 @@
|
|||||||
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"
|
||||||
@ -419,7 +426,8 @@
|
|||||||
append-to-body
|
append-to-body
|
||||||
:before-close="kindergartencancel"
|
:before-close="kindergartencancel"
|
||||||
>
|
>
|
||||||
<el-table :data="kindergartenList">
|
<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
|
||||||
@ -893,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>
|
||||||
|
|
||||||
@ -939,6 +1042,7 @@ export default {
|
|||||||
testItemss: [],
|
testItemss: [],
|
||||||
testScoreBatchs: [],
|
testScoreBatchs: [],
|
||||||
innerVisible4: false,
|
innerVisible4: false,
|
||||||
|
innerVisible5: false,
|
||||||
itemNumbername: "请选择批次编号",
|
itemNumbername: "请选择批次编号",
|
||||||
//幼儿园查询参数
|
//幼儿园查询参数
|
||||||
kqueryParams: {
|
kqueryParams: {
|
||||||
@ -976,6 +1080,8 @@ export default {
|
|||||||
classInfos: [],
|
classInfos: [],
|
||||||
// 个人成绩录入管理表格数据
|
// 个人成绩录入管理表格数据
|
||||||
testItemScoreList: [],
|
testItemScoreList: [],
|
||||||
|
//个人成绩查看
|
||||||
|
getAllTestItemScore: [],
|
||||||
// 弹出层标题
|
// 弹出层标题
|
||||||
title: "",
|
title: "",
|
||||||
// 是否显示弹出层
|
// 是否显示弹出层
|
||||||
@ -1046,12 +1152,36 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handledbClick(row, event, column) {
|
handledbClick(row, event, column) {
|
||||||
// alert("我被双击了");
|
// alert("我被双击了");
|
||||||
this.$refs.table.toggleRowSelection(row);
|
this.$refs.table.toggleRowSelection(row);
|
||||||
|
|
||||||
console.log(row, event, column);
|
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() {
|
||||||
if (this.addqueryParams.studentId == "") {
|
if (this.addqueryParams.studentId == "") {
|
||||||
this.$message.error("请先选择学生");
|
this.$message.error("请先选择学生");
|
||||||
@ -1065,14 +1195,14 @@ 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;
|
||||||
@ -1195,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");
|
||||||
},
|
},
|
||||||
@ -1241,7 +1373,7 @@ export default {
|
|||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
this.queryParams.className ="";
|
this.queryParams.className = "";
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user