diff --git a/.env.development b/.env.development index 4213da2..6a5988e 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,7 @@ VUE_APP_TITLE = 幼儿园体质检测管理系统 ENV = 'development' # 若依管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.16.62:8090' +VUE_APP_BASE_API = 'http://192.168.16.64:8080' #'/dev-api' # 路由懒加载 diff --git a/src/api/system/classconstitution.js b/src/api/system/classconstitution.js index 2689c97..140a1b2 100644 --- a/src/api/system/classconstitution.js +++ b/src/api/system/classconstitution.js @@ -3,8 +3,8 @@ import request from '@/utils/request' // 查询 export function ClassList(query) { return request({ - url: 'system/testItemAvgScore/ClassList', + url: '/system/testItemAvgScore/ClassList', method: 'get', params: query }) -} +} \ No newline at end of file diff --git a/src/api/system/quality.js b/src/api/system/quality.js index b8250e6..f991d11 100644 --- a/src/api/system/quality.js +++ b/src/api/system/quality.js @@ -10,7 +10,7 @@ export function getRoleInfo() { // 查询身体素质 export function testBodyScoreInfo(query) { return request({ - url: 'system/testBodyScoreInfo/listBody', + url: '/system/testBodyScoreInfo/listBody', method: 'get', params: query }) diff --git a/src/api/system/survey.js b/src/api/system/survey.js index 144e05c..26cca87 100644 --- a/src/api/system/survey.js +++ b/src/api/system/survey.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询 export function StudentList(query) { return request({ - url: 'system/testAll/StudentList', + url: '/system/testAll/StudentList', method: 'get', params: query }) @@ -14,8 +14,8 @@ export function StudentList(query) { // 查询 export function ClassList(query) { return request({ - url: 'system/testAll/ClassList', + url: '/system/testAll/ClassList', method: 'get', params: query }) -} +} \ No newline at end of file diff --git a/src/views/system/action/index.vue b/src/views/system/action/index.vue index f182bd7..83931ba 100644 --- a/src/views/system/action/index.vue +++ b/src/views/system/action/index.vue @@ -658,7 +658,7 @@ export default { }, //点击批次 batchCodeshowclick() { - if (this.analysisqueryParams.studentId == "") { + if (this.queryParams.studentId == "") { this.$message.error("请先选择学生"); } else { this.testScore(); diff --git a/src/views/system/comprehensive/index.vue b/src/views/system/comprehensive/index.vue index ead023c..295738a 100644 --- a/src/views/system/comprehensive/index.vue +++ b/src/views/system/comprehensive/index.vue @@ -632,7 +632,7 @@ export default { max: el.maxScore, }); }); - console.log(seriesData, yindicator); + // console.log(seriesData, yindicator); var myChart = echarts.init(document.getElementById("chart")); diff --git a/src/views/system/quality/index.vue b/src/views/system/quality/index.vue index b75854c..c9cbc69 100644 --- a/src/views/system/quality/index.vue +++ b/src/views/system/quality/index.vue @@ -917,7 +917,6 @@ export default { listClassinfo(this.classqueryParams).then((response) => { this.classinfoList = response.rows; this.total2 = response.total; - // console.log(this.classinfoList); }); }, diff --git a/src/views/system/testItemScore/index.vue b/src/views/system/testItemScore/index.vue index 58189ae..b867507 100644 --- a/src/views/system/testItemScore/index.vue +++ b/src/views/system/testItemScore/index.vue @@ -91,7 +91,7 @@ >删除 - + 请选择所属幼儿园{{ kindergartenName }} - + >{{ kindergartenName }} + + + + + + + + + + + + + + + + + + + { - this.classInfos = res.rows; - this.total2 = res.total; - this.loading = false; - }); // 查询测试项目 - testItems(this.queryParams4).then((res) => { - console.log(res); this.testItemss = res.rows; this.total4 = res.total; this.loading = false; }); - + //获取幼儿园list + listKindergartenInfo(this.kqueryParams).then((response) => { + this.kindergartenList = response.rows; + this.total6 = response.total; + }); // 查询测试成绩批次编号 - testScoreBatch(this.queryParams5).then((res) => { - console.log(res); this.testScoreBatchs = res.rows; this.total5 = res.total; this.loading = false; @@ -1590,7 +1686,6 @@ export default { listTestItemScore(this.queryParams).then((response) => { this.testItemScoreList = response.rows; - console.log(this.testItemScoreList); this.total = response.total; this.loading = false; }); @@ -1600,13 +1695,14 @@ export default { this.itemResultTypelist = res.data; this.ResultType1 = this.itemResultTypelist[0]; this.ResultType2 = this.itemResultTypelist[1]; - console.log(this.ResultType1); }); }, // 取消按钮 cancel() { this.open = false; this.reset(); + this.kindergartenName = "请选择幼儿园"; + this.kindergartenId = ""; this.xmname = "请选择所属班级"; this.stname = "请选择学生姓名"; this.testname = "请选择测试项目名称"; @@ -1615,6 +1711,8 @@ export default { this.itemId3 = ""; this.itemId4 = ""; this.itemId5 = ""; + this.queryParams2.kindergartenId = ""; + this.queryParams3.classId = ""; }, cancel2() { this.open2 = false; @@ -1666,12 +1764,16 @@ export default { // 所属班级 handleQuery2() { this.queryParams2.pageNum = 1; - classInfo(this.queryParams).then((response) => { - this.classInfo = response.rows; - this.total = response.total; - this.loading = false; - this.getList(); - }); + 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.innerVisible = true; + }); + } }, // 学生姓名 handleQuery3() { @@ -1760,6 +1862,7 @@ export default { this.form.itemFraction = this.realVal; this.form.itemScore = this.realVal; this.form2.itemFraction = this.realVal; + console.log(this.form2); this.$refs["form"].validate((valid) => { if (valid) { if (this.form.id != null) {