修改bug
This commit is contained in:
parent
374a893bef
commit
59bf3b595c
@ -5,7 +5,7 @@ VUE_APP_TITLE = 幼儿园体质检测管理系统
|
|||||||
ENV = 'development'
|
ENV = 'development'
|
||||||
|
|
||||||
# 若依管理系统/开发环境
|
# 若依管理系统/开发环境
|
||||||
VUE_APP_BASE_API = 'http://192.168.16.64:8080'
|
VUE_APP_BASE_API = 'http://192.168.16.81:8080'
|
||||||
#'/dev-api'
|
#'/dev-api'
|
||||||
|
|
||||||
# 路由懒加载
|
# 路由懒加载
|
||||||
|
|||||||
@ -26,14 +26,6 @@ export function studentInfo(query) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询测试项目列表
|
|
||||||
export function testItems(query) {
|
|
||||||
return request({
|
|
||||||
url: '/system/testItems/list',
|
|
||||||
method: 'get',
|
|
||||||
params: query
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
//查询成绩批次编号列表
|
//查询成绩批次编号列表
|
||||||
export function testScoreBatch(query) {
|
export function testScoreBatch(query) {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="90px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属幼儿园" prop="categoryName">
|
<el-form-item label="所属幼儿园" prop="categoryName" v-if="showyey">
|
||||||
<el-button
|
<el-button
|
||||||
@click="kindergartenshow = true"
|
@click="kindergartenshow = true"
|
||||||
v-if="kindergartenName == '请选择幼儿园'"
|
v-if="kindergartenName == '请选择幼儿园'"
|
||||||
@ -284,6 +284,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
itemshow: false,
|
itemshow: false,
|
||||||
itemshow2: false,
|
itemshow2: false,
|
||||||
|
showyey: true,
|
||||||
total1: 0,
|
total1: 0,
|
||||||
total4: 0,
|
total4: 0,
|
||||||
//遮罩层
|
//遮罩层
|
||||||
@ -584,7 +585,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击批次
|
//点击批次
|
||||||
batchCodeshowclick() {
|
batchCodeshowclick() {
|
||||||
if (this.analysisqueryParams.kindergartenId == "") {
|
if (
|
||||||
|
this.analysisqueryParams.kindergartenId == "" ||
|
||||||
|
this.analysisqueryParams.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.testScore();
|
this.testScore();
|
||||||
@ -625,6 +629,22 @@ export default {
|
|||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
|
this.analysisqueryParams.kindergartenId = res.data.kindergartenId;
|
||||||
|
console.log(this.analysisqueryParams);
|
||||||
|
|
||||||
|
var user = res.data.roleKeys;
|
||||||
|
console.log(user);
|
||||||
|
if (user.includes("enchou")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
} else if (user.includes("teacher")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
} else if (user.includes("parent")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//获取幼儿园list
|
//获取幼儿园list
|
||||||
listKindergartenInfo(this.kqueryParams).then((response) => {
|
listKindergartenInfo(this.kqueryParams).then((response) => {
|
||||||
|
|||||||
@ -700,7 +700,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击所属班级
|
//点击所属班级
|
||||||
classshowclick() {
|
classshowclick() {
|
||||||
if (this.classqueryParams.kindergartenId == "") {
|
if (
|
||||||
|
this.classqueryParams.kindergartenId == "" ||
|
||||||
|
this.classqueryParams.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.classshow = true;
|
this.classshow = true;
|
||||||
|
|||||||
@ -712,7 +712,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击所属班级
|
//点击所属班级
|
||||||
classshowclick() {
|
classshowclick() {
|
||||||
if (this.classqueryParams.kindergartenId == "") {
|
if (
|
||||||
|
this.classqueryParams.kindergartenId == "" ||
|
||||||
|
this.classqueryParams.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.classshow = true;
|
this.classshow = true;
|
||||||
|
|||||||
@ -830,7 +830,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击所属班级
|
//点击所属班级
|
||||||
classshowclick() {
|
classshowclick() {
|
||||||
if (this.classqueryParams.kindergartenId == "") {
|
console.log(this.classqueryParams)
|
||||||
|
if (this.classqueryParams.kindergartenId == ""||this.classqueryParams.kindergartenId ==null) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.classshow = true;
|
this.classshow = true;
|
||||||
@ -899,9 +900,9 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
|
console.log(res);
|
||||||
this.classqueryParams.kindergartenId = res.data.kindergartenId;
|
this.classqueryParams.kindergartenId = res.data.kindergartenId;
|
||||||
var user = res.data.roleKeys;
|
var user = res.data.roleKeys;
|
||||||
console.log(user);
|
|
||||||
if (user.includes("enchou")) {
|
if (user.includes("enchou")) {
|
||||||
this.showyey = false;
|
this.showyey = false;
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -670,7 +670,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击所属班级
|
//点击所属班级
|
||||||
classshowclick() {
|
classshowclick() {
|
||||||
if (this.classqueryParams.kindergartenId == "") {
|
if (
|
||||||
|
this.classqueryParams.kindergartenId == "" ||
|
||||||
|
this.classqueryParams.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.classshow = true;
|
this.classshow = true;
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="90px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属幼儿园" prop="categoryName">
|
<el-form-item label="所属幼儿园" prop="categoryName" v-if="showyey">
|
||||||
<el-button
|
<el-button
|
||||||
@click="kindergartenshow = true"
|
@click="kindergartenshow = true"
|
||||||
v-if="kindergartenName == '请选择幼儿园'"
|
v-if="kindergartenName == '请选择幼儿园'"
|
||||||
@ -24,7 +24,10 @@
|
|||||||
|
|
||||||
<el-form-item label="班级类型" prop="categoryName" label-width="70px">
|
<el-form-item label="班级类型" prop="categoryName" label-width="70px">
|
||||||
<el-select
|
<el-select
|
||||||
v-if="analysislist.kindergartenId == ''"
|
v-if="
|
||||||
|
analysislist.kindergartenId == '' ||
|
||||||
|
this.analysislist.kindergartenId == null
|
||||||
|
"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
disabled
|
disabled
|
||||||
@click.native="selecetclick"
|
@click.native="selecetclick"
|
||||||
@ -306,6 +309,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
itemshow: false,
|
itemshow: false,
|
||||||
itemshow2: false,
|
itemshow2: false,
|
||||||
|
showyey: true,
|
||||||
total1: 0,
|
total1: 0,
|
||||||
total4: 0,
|
total4: 0,
|
||||||
//遮罩层
|
//遮罩层
|
||||||
@ -367,7 +371,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
selecetclick() {
|
selecetclick() {
|
||||||
if (this.analysislist.kindergartenId == "") {
|
if (
|
||||||
|
this.analysislist.kindergartenId == "" ||
|
||||||
|
this.analysislist.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
@ -450,6 +457,21 @@ export default {
|
|||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
this.analysislist.kindergartenId = res.data.kindergartenId;
|
||||||
|
console.log(this.analysislist);
|
||||||
|
|
||||||
|
var user = res.data.roleKeys;
|
||||||
|
console.log(user);
|
||||||
|
if (user.includes("enchou")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
} else if (user.includes("teacher")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
} else if (user.includes("parent")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//获取幼儿园list
|
//获取幼儿园list
|
||||||
listKindergartenInfo(this.kqueryParams).then((response) => {
|
listKindergartenInfo(this.kqueryParams).then((response) => {
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
v-show="showSearch"
|
v-show="showSearch"
|
||||||
label-width="90px"
|
label-width="90px"
|
||||||
>
|
>
|
||||||
<el-form-item label="所属幼儿园" prop="categoryName">
|
<el-form-item label="所属幼儿园" prop="categoryName" v-if="showyey">
|
||||||
<el-button
|
<el-button
|
||||||
@click="kindergartenshow = true"
|
@click="kindergartenshow = true"
|
||||||
v-if="kindergartenName == '请选择幼儿园'"
|
v-if="kindergartenName == '请选择幼儿园'"
|
||||||
@ -235,6 +235,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
itemshow: false,
|
itemshow: false,
|
||||||
itemshow2: false,
|
itemshow2: false,
|
||||||
|
showyey: true,
|
||||||
total1: 0,
|
total1: 0,
|
||||||
total4: 0,
|
total4: 0,
|
||||||
//遮罩层
|
//遮罩层
|
||||||
@ -569,7 +570,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击批次
|
//点击批次
|
||||||
batchCodeshowclick() {
|
batchCodeshowclick() {
|
||||||
if (this.analysisqueryParams.kindergartenId == "") {
|
if (
|
||||||
|
this.analysisqueryParams.kindergartenId == "" ||
|
||||||
|
this.analysisqueryParams.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.testScore();
|
this.testScore();
|
||||||
@ -610,6 +614,21 @@ export default {
|
|||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
this.analysisqueryParams.kindergartenId = res.data.kindergartenId;
|
||||||
|
console.log(this.analysisqueryParams);
|
||||||
|
|
||||||
|
var user = res.data.roleKeys;
|
||||||
|
console.log(user);
|
||||||
|
if (user.includes("enchou")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
} else if (user.includes("teacher")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
} else if (user.includes("parent")) {
|
||||||
|
this.showyey = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
//获取幼儿园list
|
//获取幼儿园list
|
||||||
listKindergartenInfo(this.kqueryParams).then((response) => {
|
listKindergartenInfo(this.kqueryParams).then((response) => {
|
||||||
|
|||||||
@ -579,7 +579,6 @@ export default {
|
|||||||
) {
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
console.log(1);
|
|
||||||
this.testScore();
|
this.testScore();
|
||||||
this.batchCodeshow = true;
|
this.batchCodeshow = true;
|
||||||
}
|
}
|
||||||
@ -603,7 +602,7 @@ export default {
|
|||||||
sexclick() {
|
sexclick() {
|
||||||
console.log(this.analysisqueryParams);
|
console.log(this.analysisqueryParams);
|
||||||
if (
|
if (
|
||||||
this.analysisqueryParams.kindergartenId != "" &&
|
this.analysisqueryParams.kindergartenId != null &&
|
||||||
this.analysisqueryParams.batchCode != ""
|
this.analysisqueryParams.batchCode != ""
|
||||||
) {
|
) {
|
||||||
this.analysisinfo();
|
this.analysisinfo();
|
||||||
|
|||||||
@ -851,7 +851,10 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击所属班级
|
//点击所属班级
|
||||||
classshowclick() {
|
classshowclick() {
|
||||||
if (this.classqueryParams.kindergartenId == "") {
|
if (
|
||||||
|
this.classqueryParams.kindergartenId == "" ||
|
||||||
|
this.classqueryParams.kindergartenId == null
|
||||||
|
) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.classshow = true;
|
this.classshow = true;
|
||||||
|
|||||||
@ -1231,7 +1231,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击所属班级
|
//点击所属班级
|
||||||
classshowclick() {
|
classshowclick() {
|
||||||
if (this.classqueryParams.kindergartenId == "") {
|
if (this.classqueryParams.kindergartenId == ""||this.classqueryParams.kindergartenId == null) {
|
||||||
this.$message.error("请先选择幼儿园");
|
this.$message.error("请先选择幼儿园");
|
||||||
} else {
|
} else {
|
||||||
this.classshow = true;
|
this.classshow = true;
|
||||||
|
|||||||
@ -332,19 +332,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
ClassListinfo() {
|
ClassListinfo() {
|
||||||
ClassList(this.classqueryParams).then((res) => {
|
ClassList(this.classqueryParams).then((res) => {
|
||||||
console.log(res.rows.length);
|
|
||||||
if (res.rows.length == 0) {
|
if (res.rows.length == 0) {
|
||||||
this.itemshow2 = true;
|
this.itemshow2 = true;
|
||||||
this.itemshow = false;
|
this.itemshow = false;
|
||||||
console.log(
|
|
||||||
this.yclassname1,
|
|
||||||
this.yclassname2,
|
|
||||||
this.yclassname3,
|
|
||||||
this.classscore1,
|
|
||||||
this.classscore2,
|
|
||||||
this.classscore3
|
|
||||||
);
|
|
||||||
console.log(this.itemshow2);
|
|
||||||
} else {
|
} else {
|
||||||
this.$nextTick((e) => {
|
this.$nextTick((e) => {
|
||||||
this.yclassname1 = [];
|
this.yclassname1 = [];
|
||||||
@ -353,8 +343,6 @@ export default {
|
|||||||
this.classscore1 = [];
|
this.classscore1 = [];
|
||||||
this.classscore2 = [];
|
this.classscore2 = [];
|
||||||
this.classscore3 = [];
|
this.classscore3 = [];
|
||||||
|
|
||||||
console.log(2);
|
|
||||||
res.rows.forEach((e) => {
|
res.rows.forEach((e) => {
|
||||||
if (e.classType == this.LARGECLASS) {
|
if (e.classType == this.LARGECLASS) {
|
||||||
this.yclassname1.push(e.className);
|
this.yclassname1.push(e.className);
|
||||||
@ -643,6 +631,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//点击批次
|
//点击批次
|
||||||
batchCodeshowclick() {
|
batchCodeshowclick() {
|
||||||
|
console.log(this.classqueryParams);
|
||||||
if (
|
if (
|
||||||
this.classqueryParams.kindergartenId == "" ||
|
this.classqueryParams.kindergartenId == "" ||
|
||||||
this.classqueryParams.kindergartenId == null
|
this.classqueryParams.kindergartenId == null
|
||||||
@ -691,9 +680,9 @@ export default {
|
|||||||
});
|
});
|
||||||
//用户权限
|
//用户权限
|
||||||
getRoleInfo().then((res) => {
|
getRoleInfo().then((res) => {
|
||||||
console.log(res);
|
|
||||||
this.studentlistqueryParams.kindergartenId = res.data.kindergartenId;
|
this.studentlistqueryParams.kindergartenId = res.data.kindergartenId;
|
||||||
this.classqueryParams.kindergartenId = res.data.kindergartenId;
|
this.classqueryParams.kindergartenId = res.data.kindergartenId;
|
||||||
|
console.log(this.classqueryParams);
|
||||||
|
|
||||||
var user = res.data.roleKeys;
|
var user = res.data.roleKeys;
|
||||||
console.log(user);
|
console.log(user);
|
||||||
|
|||||||
@ -902,7 +902,6 @@ import {
|
|||||||
updateTestItemScore,
|
updateTestItemScore,
|
||||||
classInfo,
|
classInfo,
|
||||||
studentInfo,
|
studentInfo,
|
||||||
testItems,
|
|
||||||
testScoreBatch,
|
testScoreBatch,
|
||||||
getAllTestItemScoreInfo,
|
getAllTestItemScoreInfo,
|
||||||
} from "@/api/system/testItemScore";
|
} from "@/api/system/testItemScore";
|
||||||
@ -1257,6 +1256,7 @@ export default {
|
|||||||
studentId: row.studentId,
|
studentId: row.studentId,
|
||||||
batchCode: row.batchCode,
|
batchCode: row.batchCode,
|
||||||
};
|
};
|
||||||
|
this.form.itemScoreList = [];
|
||||||
getTestItemScore(list).then((response) => {
|
getTestItemScore(list).then((response) => {
|
||||||
console.log();
|
console.log();
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user