修改bug

This commit is contained in:
曹辉 2022-08-29 11:51:56 +08:00
parent 374a893bef
commit 59bf3b595c
14 changed files with 94 additions and 40 deletions

View File

@ -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'
# 路由懒加载

View File

@ -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) {

View File

@ -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,7 +585,10 @@ export default {
},
//
batchCodeshowclick() {
if (this.analysisqueryParams.kindergartenId == "") {
if (
this.analysisqueryParams.kindergartenId == "" ||
this.analysisqueryParams.kindergartenId == null
) {
this.$message.error("请先选择幼儿园");
} else {
this.testScore();
@ -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) => {

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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) => {

View File

@ -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) => {

View File

@ -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();

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;