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