- {{ analysislist.heightName }}:
- {{ analysislist.heightScore
+ {{
+ analysislist.heightName
+ ? analysislist.heightName
+ : "身高"
+ }}: {{ analysislist.heightScore
}}{{ analysislist.heightMeasureUnit }}
@@ -392,8 +400,11 @@
style="text-align: center"
>
- {{ analysislist.weightName }}:
- {{ analysislist.weightScore
+ {{
+ analysislist.weightName
+ ? analysislist.weightName
+ : "体重"
+ }}: {{ analysislist.weightScore
}}{{ analysislist.weightMeasureUnit }}
@@ -430,6 +441,7 @@
style="height: 310px"
>
@@ -605,6 +617,7 @@
+
BMI
@@ -798,7 +816,7 @@
{{ item.levelMinScore }}~{{ item.levelMaxScore }}
-
+
-->
@@ -951,16 +969,21 @@ export default {
return {
itemshow: false,
itemshow2: false,
+ itemshow3: true,
+ weightshow: true,
+ heightshow: true,
+ showyey: true,
+ showbj: true,
total1: 0,
total2: 0,
total3: 0,
total4: 0,
itemweight: "",
- weightMax: 50,
+ weightMax: 70,
weightMin: 10,
itemheight: "",
heightMax: 150,
- heightMin: 50,
+ heightMin: 30,
//遮罩层
kindergartenshow: false,
classshow: false,
@@ -1061,9 +1084,36 @@ export default {
//学生身体形态
studentanalysis() {
analysis(this.analysisstudent).then((res) => {
- if (!res.data || res.data == "" || res.data == []) {
+ if (!res.data || res.data == "") {
this.itemshow2 = true;
+ this.itemshow3 = false;
this.itemshow = false;
+ } else if (res.data.weightScore == 0 || res.data.weightScore == null) {
+ this.weightshow = false;
+ this.analysislist = res.data;
+ this.itemheight = res.data.heightScore;
+ this.bmiItemLevel = res.data.bmiItemLevel;
+ this.itemweight = res.data.weightScore;
+ this.itemshow2 = false;
+ this.itemshow3 = false;
+ this.itemshow = true;
+ } else if (res.data.heightScore == 0 || res.data.heightScore == null) {
+ this.heightshow = false;
+ this.analysislist = res.data;
+ this.itemheight = res.data.heightScore;
+ this.bmiItemLevel = res.data.bmiItemLevel;
+ this.itemweight = res.data.weightScore;
+ this.itemshow2 = false;
+ this.itemshow3 = false;
+ this.itemshow = true;
+ } else if (res.data.bmiItemLevel == null) {
+ this.analysislist = res.data;
+ this.itemheight = res.data.heightScore;
+ this.bmiItemLevel = res.data.bmiItemLevel;
+ this.itemweight = res.data.weightScore;
+ this.itemshow2 = false;
+ this.itemshow3 = false;
+ this.itemshow = true;
} else {
this.analysislist = res.data;
this.itemheight = res.data.heightScore;
@@ -1094,6 +1144,7 @@ export default {
{
type: "pie",
radius: ["40%", "70%"],
+ // center: ["37%", "50%"],
itemStyle: {
normal: {
color: function (colors) {
@@ -1123,6 +1174,7 @@ export default {
option && myChart.setOption(option);
this.itemshow2 = false;
this.itemshow = true;
+ this.itemshow3 = true;
}
});
},
@@ -1165,6 +1217,9 @@ export default {
this.studentId = row.id;
this.studentshow = false;
this.analysisstudent.studentId = row.id;
+ if (this.analysisstudent.batchCode != "") {
+ this.studentanalysis();
+ }
},
//获取学生
studentlist() {
@@ -1206,6 +1261,9 @@ export default {
this.className = row.className;
this.classId = row.id;
this.studentqueryParams.classId = row.id;
+ this.studentname = "请选择学生";
+ this.studentId = "";
+ this.analysisstudent.studentId = "";
this.classshow = false;
},
//幼儿园左侧点击
@@ -1213,6 +1271,11 @@ export default {
this.classqueryParams.kindergartenId = row.id;
this.kindergartenName = row.kindergartenName;
this.kindergartenId = row.id;
+ this.className = "请选择班级";
+ this.classId = "";
+ this.studentname = "请选择学生";
+ this.studentId = "";
+ this.analysisstudent.studentId = "";
this.kindergartenshow = false;
},
//班级类型
@@ -1238,6 +1301,20 @@ export default {
//用户权限
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) => {
diff --git a/src/views/system/studentInfo/index.vue b/src/views/system/studentInfo/index.vue
index c55b939..25a9c88 100644
--- a/src/views/system/studentInfo/index.vue
+++ b/src/views/system/studentInfo/index.vue
@@ -82,7 +82,7 @@
@click="handleQuery"
>搜索
-
重置
@@ -284,7 +284,7 @@
-
+
@@ -299,6 +299,7 @@
type="date"
value-format="yyyy-MM-dd"
placeholder="请选择出生日期"
+ :picker-options="pickerOptions"
>
@@ -359,7 +360,7 @@
@click="handleQuery3"
>搜索
-
重置
搜索
-
重置
@@ -596,7 +597,7 @@
@@ -678,12 +679,19 @@ export default {
// 验证手机号的正则表达式
const regMobile =
/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
+ const reg = /^(0[0-9]{2,3}\-)([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/;
+ const isTel = reg.test(value);
- if (regMobile.test(value)) {
- return cb();
+ if (value.length == 11) {
+ if (regMobile.test(value)) {
+ return cb();
+ }
+ } else if (11 < value.length <= 13) {
+ if (isTel) {
+ return cb();
+ }
}
-
- cb(new Error("请输入合法的手机号"));
+ cb(new Error("请输入正确的联系电话"));
};
//验证身份证
var isCardId = (rule, value, callback) => {
@@ -701,6 +709,11 @@ export default {
}
};
return {
+ pickerOptions: {
+ disabledDate(time) {
+ return time.getTime() > Date.now();
+ },
+ },
//查看家长
parentStudentInfoList: [],
//民族
@@ -809,12 +822,15 @@ export default {
form2: {},
// 表单校验
rules: {
+ studentNumber: [
+ { required: true, message: "请输入学生编号", trigger: "blur" },
+ ],
phone: [
{
required: true,
validator: checkMobile,
trigger: "blur",
- message: "请输入正确的手机号",
+ message: "",
},
],
birthDate: [
@@ -946,7 +962,6 @@ export default {
handleQuery3() {
listParentInfo(this.parentInfoList2).then((response) => {
this.parentInfoList = response.rows;
- console.log(this.parentInfoList);
this.total3 = response.total;
});
},
@@ -959,6 +974,17 @@ export default {
// console.log(this.classinfoList);
});
},
+ /** 重置按钮操作 */
+ resetQuery2() {
+ this.classinfoList2 = {
+ pageNum: 1,
+ pageSize: 10,
+ kindergartenId: null,
+ className: null,
+ classType: null,
+ };
+ this.handleQuery2();
+ },
/** 新增按钮操作 */
handleAdd() {
this.reset();
@@ -1160,7 +1186,7 @@ export default {
console.log(this.form);
console.log(this.form2);
console.log(this.parentlist);
- console.log(this.parent1, this.parent2);
+ // console.log(this.parent1, this.parent2);
console.log(this.tags);
},
handleSelectionChange(selection) {
@@ -1285,17 +1311,32 @@ export default {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
- this.getList();
+ listStudentInfo(this.queryParams).then((res) => {
+ this.studentInfoList = res.rows;
+ this.total = res.total;
+ this.loading = false;
+ });
},
cancel3() {
- this.resetQuery();
+ this.resetQuery2();
this.innerVisible = false;
},
/** 重置按钮操作 */
- resetQuery() {
+ resetQuery1() {
this.resetForm("queryForm");
this.handleQuery();
},
+ /** 重置按钮操作 */
+ resetQuery3() {
+ this.parentInfoList2 = {
+ pageNum: 1,
+ pageSize: 10,
+ parentName: null,
+ parentSex: null,
+ phone: null,
+ };
+ this.handleQuery3();
+ },
/** 查询学生信息列表 */
getList() {
@@ -1307,7 +1348,7 @@ export default {
});
tKindergartenInfo(this.nationType).then((res) => {
this.nactionlist = res.data;
- console.log(this.nactionlist);
+ // console.log(this.nactionlist);
});
tKindergartenInfo(this.ClassType).then((res) => {
// console.log(res.data);
@@ -1323,18 +1364,12 @@ export default {
});
listParentInfo(this.parentInfoList2).then((response) => {
this.parentInfoList = response.rows;
- console.log(this.parentInfoList);
+ // console.log(this.parentInfoList);
this.total3 = response.total;
this.loading = false;
});
listStudentInfo(this.queryParams).then((res) => {
- // res.rows.forEach((el) => {
- // el.className = this.classinfoList.filter(
- // (e) => e.id == el.classId
- // )[0].className;
- // });
this.studentInfoList = res.rows;
- // console.log(this.studentInfoList);
this.total = res.total;
this.loading = false;
});
@@ -1364,6 +1399,10 @@ export default {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
+ this.parent1 = "";
+ this.parent2 = "";
+ this.parentlist = [];
+ this.tags = [];
});
}
}
@@ -1373,7 +1412,7 @@ export default {
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal
- .confirm('是否确认删除该学生信息吗?')
+ .confirm("是否确认删除该学生信息吗?")
.then(function () {
return delStudentInfo(ids);
})
diff --git a/src/views/system/survey/index.vue b/src/views/system/survey/index.vue
new file mode 100644
index 0000000..18cb883
--- /dev/null
+++ b/src/views/system/survey/index.vue
@@ -0,0 +1,730 @@
+
+
+
+
+ {{ kindergartenName }}
+ {{ kindergartenName }}
+
+
+
+ {{ batchCodeName }}
+ {{ batchCodeName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+
+
该幼儿园此批次暂无数据
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/teacherInfo/index.vue b/src/views/system/teacherInfo/index.vue
index 30093fd..a4e1cea 100644
--- a/src/views/system/teacherInfo/index.vue
+++ b/src/views/system/teacherInfo/index.vue
@@ -56,7 +56,7 @@
@click="handleQuery"
>搜索
- 重置
@@ -126,7 +126,7 @@
align="center"
prop="kindergartenName"
/>
-
+
查看
-
+