diff --git a/src/api/system/motionInfo.js b/src/api/system/motionInfo.js index 35a7682..81e3bc7 100644 --- a/src/api/system/motionInfo.js +++ b/src/api/system/motionInfo.js @@ -38,7 +38,7 @@ export function updateMotionInfo(data) { // 删除运动处方字典 export function delMotionInfo(id) { return request({ - url: '/system/motionInfo' + id, + url: '/system/motionInfo/' + id, method: 'delete' }) } diff --git a/src/api/system/parentInfo.js b/src/api/system/parentInfo.js index 88bca51..5571c7e 100644 --- a/src/api/system/parentInfo.js +++ b/src/api/system/parentInfo.js @@ -16,7 +16,14 @@ export function getParentInfo(id) { method: 'get' }) } - +//添加家长信息 +export function addParentInfo(data) { + return request({ + url: '/system/parentInfo/add', + method: 'post', + data: data + }) +} // 修改家长信息 export function updateParentInfo(data) { diff --git a/src/api/system/testItemScore.js b/src/api/system/testItemScore.js index dcb0b3a..d932d80 100644 --- a/src/api/system/testItemScore.js +++ b/src/api/system/testItemScore.js @@ -9,6 +9,16 @@ export function listTestItemScore(query) { }) } +// 查询测试项目 +export function testItems(query) { + return request({ + url: '/system/testItems/list', + method: 'get', + params: query + }) +} + + // 查询班级信息列表 export function classInfo(query) { return request({ @@ -46,6 +56,14 @@ export function getTestItemScore(query) { }) } +// 查询个人成绩 +// export function getAllTestItemScoreInfo(id) { +// return request({ +// url: 'system/testItemScore/getAllTestItemScoreInfo' + id, +// method: 'get' +// }) +// } + // 新增个人成绩录入管理 export function addTestItemScore(data) { return request({ @@ -76,6 +94,6 @@ export function getAllTestItemScoreInfo(query) { return request({ url: '/system/testItemScore/getAllTestItemScoreInfo', method: 'get', - params: query + params: query, }) } \ No newline at end of file diff --git a/src/views/assembly/kindergarten.vue b/src/views/assembly/kindergarten.vue new file mode 100644 index 0000000..e23d11f --- /dev/null +++ b/src/views/assembly/kindergarten.vue @@ -0,0 +1,325 @@ + + + diff --git a/src/views/assembly/student.vue b/src/views/assembly/student.vue new file mode 100644 index 0000000..bc0ff2b --- /dev/null +++ b/src/views/assembly/student.vue @@ -0,0 +1,643 @@ + + + diff --git a/src/views/system/KindergartenPhysicalTest/index.vue b/src/views/system/KindergartenPhysicalTest/index.vue index 289f44a..a8bf966 100644 --- a/src/views/system/KindergartenPhysicalTest/index.vue +++ b/src/views/system/KindergartenPhysicalTest/index.vue @@ -7,33 +7,17 @@ v-show="showSearch" label-width="90px" > - + + {{ kindergartenName }} - {{ kindergartenName }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 @@ -43,134 +27,11 @@ @queryTable="getList" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- 基本信息 + 体测达标分析
幼儿园名称: - 本园参加体测各年龄阶段人数分部 + 本园参加体测各年龄阶段人数分部
- 本园体测成绩达标率(%) + 本园体测成绩达标率(%) { if (res.data == [] || !res.data) { @@ -575,52 +408,6 @@ export default { option2 && myChart.setOption(option2); }, - //点击批次左边 - batchCodeclick(row) { - this.batchCodeName = row.batchName; - this.batchCodeId = row.id; - this.analysisqueryParams.batchCode = row.batchCode; - this.batchCodeshow = false; - this.analysisinfo(); - }, - //点击批次 - batchCodeshowclick() { - if ( - this.analysisqueryParams.kindergartenId == "" || - this.analysisqueryParams.kindergartenId == null - ) { - this.$message.error("请先选择幼儿园"); - } else { - this.testScore(); - this.batchCodeshow = true; - } - }, - //批次 - testScore() { - testScoreBatch(this.testqueryParams).then((res) => { - this.testScorelist = res.rows; - this.total4 = res.total; - }); - }, - //批次关闭 - batchCodecancel() { - this.batchCodeshow = false; - }, - //幼儿园关闭 - kindergartencancel() { - this.kindergartenshow = false; - }, - //幼儿园左侧点击 - kindergartenNameclick(row) { - this.analysisqueryParams.kindergartenId = row.id; - this.kindergartenName = row.kindergartenName; - this.kindergartenId = row.id; - if (this.analysisqueryParams.batchCode != "") { - this.analysisinfo(); - } - this.kindergartenshow = false; - }, - getList() { tKindergartenInfo(this.kindergartenType).then((res) => { this.type = res.data[0]; @@ -629,29 +416,15 @@ 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) => { - this.kindergartenList = response.rows; - this.total1 = response.total; - // console.log(this.kindergartenList); - }); }, // 表单重置 reset() { @@ -665,4 +438,17 @@ export default { ::v-deep .el-card__header { border: none; } +::v-deep .el-form { + display: inline; +} +.title { + display: block; + width: 350px; + margin: 0 auto; + line-height: 35px; + background-color: #60c5f1; + color: #fff; + font-size: 15px; + border-radius: 20px; +} diff --git a/src/views/system/action/index.vue b/src/views/system/action/index.vue index 9a11029..e8c3417 100644 --- a/src/views/system/action/index.vue +++ b/src/views/system/action/index.vue @@ -7,69 +7,18 @@ v-show="showSearch" label-width="90px" > - - {{ kindergartenName }} - {{ kindergartenName }} - + - + {{ className }} - - {{ className }} - - - - {{ studentname }} - {{ studentname }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 @@ -79,360 +28,85 @@ @queryTable="getList" > - - - - - - - +
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - + + - - - - - - - - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - -
- -
-
- +
@@ -448,106 +122,19 @@
+ diff --git a/src/views/system/classinfo/index.vue b/src/views/system/classinfo/index.vue index 7e7f822..eb10b78 100644 --- a/src/views/system/classinfo/index.vue +++ b/src/views/system/classinfo/index.vue @@ -205,7 +205,7 @@ > - + @@ -221,6 +221,7 @@ @@ -247,7 +248,9 @@ 取 消
- + @@ -388,9 +390,11 @@ export default { console.log(str); // 验证手机号的正则表达式 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}$/; + /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[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 isTel = reg.test(str); + const isTel = reg.test(value); if (str.length == 11) { if (regMobile.test(str)) { diff --git a/src/views/system/comprehensive/index.vue b/src/views/system/comprehensive/index.vue index 0cd6265..23cdd71 100644 --- a/src/views/system/comprehensive/index.vue +++ b/src/views/system/comprehensive/index.vue @@ -7,72 +7,22 @@ v-show="showSearch" label-width="90px" > - - {{ kindergartenName }} - {{ kindergartenName }} - + - + {{ className }} - - {{ className }} - - - - {{ studentname }} - {{ studentname }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -356,15 +42,10 @@ margin-top: 10px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; + padding-left: 20px; " > -
+
姓名:{{ sythesizestudent.studentName }}
@@ -383,12 +64,12 @@
-
+
所属幼儿园:{{ sythesizestudent.kindergartenName }}
班级:{{ sythesizestudent.className }}
-
+
地址:{{ sythesizestudent.kindergartenAddress }}
@@ -397,17 +78,28 @@ - +
+
+ 幼儿综合得分 +
{{ index == 0 ? null : "+" }} + - {{ item.categoryScore }} + {{ item.categoryName }}( {{ item.categoryScore }}) - {{ item.categoryName }}
= - {{ sythesizestudent.totalCategoryScore }} + 综合得分({{ sythesizestudent.totalCategoryScore }}) (综合得分) + >
-
+
获取徽章
-
{{ item }}
+
{{ item }}
- +
综合体质分析图 @@ -501,122 +189,43 @@ + \ No newline at end of file diff --git a/src/views/system/constitution/index.vue b/src/views/system/constitution/index.vue index d4ea718..3d0d1e7 100644 --- a/src/views/system/constitution/index.vue +++ b/src/views/system/constitution/index.vue @@ -7,69 +7,17 @@ v-show="showSearch" label-width="90px" > - + + {{ kindergartenName }} - {{ kindergartenName }} - - - - {{ className }} - - {{ className }} - - - - {{ studentname }} - {{ studentname }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 @@ -80,270 +28,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -394,122 +78,41 @@ + diff --git a/src/views/system/heightAndWeight/index.vue b/src/views/system/heightAndWeight/index.vue index a237648..c0a1e35 100644 --- a/src/views/system/heightAndWeight/index.vue +++ b/src/views/system/heightAndWeight/index.vue @@ -7,33 +7,17 @@ v-show="showSearch" label-width="90px" > - + + {{ kindergartenName }} - {{ kindergartenName }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 @@ -44,128 +28,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -221,62 +83,19 @@ diff --git a/src/views/system/quality/index.vue b/src/views/system/quality/index.vue index c860454..abea337 100644 --- a/src/views/system/quality/index.vue +++ b/src/views/system/quality/index.vue @@ -7,69 +7,17 @@ v-show="showSearch" label-width="90px" > - + + {{ kindergartenName }} - {{ kindergartenName }} - - - - {{ className }} - - {{ className }} - - - - {{ studentname }} - {{ studentname }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 @@ -79,284 +27,19 @@ @queryTable="getList" > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
身体素质测试
综合评价 @@ -399,6 +77,7 @@ > 成绩评价 -
- {{ item.leveName }} +
+ {{ item.scoreDictValue }}
{ @@ -796,155 +396,20 @@ export default { } }); }, - // 点击学生按钮 - studentshowclick() { - if (this.studentqueryParams.classId == "") { - this.$message.error("请先选择班级"); - } else { - this.studentshow = true; - this.studentlist(); - } - }, - //点击批次 - batchCodeshowclick() { - if (this.studentscore.studentId == "") { - this.$message.error("请先选择学生"); - } else { - this.testScore(); - this.batchCodeshow = true; - } - }, - //点击批次左边 - batchCodeclick(row) { - this.batchCodeName = row.batchName; - this.batchCodeId = row.id; - this.studentscore.batchCode = row.batchCode; - this.batchCodeshow = false; - this.studenttext(); - }, - //批次 - testScore() { - testScoreBatch(this.testqueryParams).then((res) => { - this.testScorelist = res.rows; - this.total4 = res.total; - }); - }, - //学生左侧按钮 - studentclick(row) { - this.studentname = row.studentName; - this.studentId = row.id; - this.studentshow = false; - this.studentscore.studentId = row.id; - if (this.studentscore.batchCode != "") { - this.studenttext(); - } - }, - - //获取学生 - studentlist() { - listStudentInfo(this.studentqueryParams).then((res) => { - this.studentInfoList = res.rows; - this.total3 = res.total; - - // console.log(this.studentInfoList); - }); - }, - //点击所属班级 - classshowclick() { - if ( - this.classqueryParams.kindergartenId == "" || - this.classqueryParams.kindergartenId == null - ) { - this.$message.error("请先选择幼儿园"); - } else { - this.classshow = true; - this.classinfo(); - } - // console.log(this.classqueryParams); - }, - //批次关闭 - batchCodecancel() { - this.batchCodeshow = false; - }, - //学生关闭 - studentcancel() { - this.studentshow = false; - }, - //幼儿园关闭 - kindergartencancel() { - this.kindergartenshow = false; - }, - //班级关闭 - classcancel() { - this.classshow = false; - }, - //班级左侧点击 - classclick(row) { - // console.log(row); - this.className = row.className; - this.classId = row.id; - this.studentqueryParams.classId = row.id; - this.studentname = "请选择学生"; - this.studentId = ""; - this.studentscore.studentId = ""; - this.classshow = false; - }, - //幼儿园左侧点击 - kindergartenNameclick(row) { - this.classqueryParams.kindergartenId = row.id; - this.kindergartenName = row.kindergartenName; - this.kindergartenId = row.id; - this.className = "请选择班级"; - this.classId = ""; - this.studentname = "请选择学生"; - this.studentId = ""; - this.studentscore.studentId = ""; - this.kindergartenshow = false; - }, - //班级类型 - class() { - tKindergartenInfo(this.ClassType).then((res) => { - this.dictValue1 = res.data[0].dictValue; - this.dictValue2 = res.data[1].dictValue; - this.dictValue3 = res.data[2].dictValue; - this.dictValue4 = res.data[3].dictValue; - }); - }, - //班级list - classinfo() { - listClassinfo(this.classqueryParams).then((response) => { - this.classinfoList = response.rows; - this.total2 = response.total; - // console.log(this.classinfoList); - }); - }, - 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; } else if (user.includes("teacher")) { - this.showyey = false; return; } else if (user.includes("parent")) { - this.showyey = false; - this.showbj = false; return; } }); - //获取幼儿园list - listKindergartenInfo(this.kqueryParams).then((response) => { - this.kindergartenList = response.rows; - this.total1 = response.total; - - // console.log(this.kindergartenList); - }); }, // 表单重置 reset() { @@ -955,6 +420,16 @@ export default { }; diff --git a/src/views/system/shape/index.vue b/src/views/system/shape/index.vue index a4a33f3..dea22a3 100644 --- a/src/views/system/shape/index.vue +++ b/src/views/system/shape/index.vue @@ -7,69 +7,17 @@ v-show="showSearch" label-width="90px" > - + + {{ kindergartenName }} - {{ kindergartenName }} - - - - {{ className }} - - {{ className }} - - - - {{ studentname }} - {{ studentname }} - - - - {{ batchCodeName }} - {{ batchCodeName }}查看 @@ -80,270 +28,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/system/teacherInfo/index.vue b/src/views/system/teacherInfo/index.vue index a4e1cea..c9cabb7 100644 --- a/src/views/system/teacherInfo/index.vue +++ b/src/views/system/teacherInfo/index.vue @@ -9,7 +9,13 @@ label-width="68px" > - + {{ kindergartenName }} - + - + - + @@ -302,7 +308,10 @@ - +