This commit is contained in:
曹辉 2023-04-18 15:53:11 +08:00
parent 0b3f31a23f
commit ddc154b99e
3 changed files with 5 additions and 20 deletions

View File

@ -127,12 +127,7 @@ export default {
}, },
methods: { methods: {
onshow() { onshow() {
// this.classId = localStorage.getItem("classId"); this.className = "请选择班级";
if (localStorage.getItem("className") == null) {
this.className = "请选择班级";
} else {
// this.className = localStorage.getItem("className");
}
this.$emit("classelist", this.classId); this.$emit("classelist", this.classId);
}, },
// //
@ -140,9 +135,7 @@ export default {
this.className = row.className; this.className = row.className;
this.classId = row.id; this.classId = row.id;
this.classshow = false; this.classshow = false;
localStorage.setItem("className", this.className); this.$emit("classelist", this.classId);
localStorage.setItem("classId", this.classId);
this.$emit("classelist", this.classId, 1);
}, },
// //
classcancel() { classcancel() {

View File

@ -120,8 +120,7 @@ export default {
this.kindergartenName = row.kindergartenName; this.kindergartenName = row.kindergartenName;
this.kindergartenId = row.id; this.kindergartenId = row.id;
this.kindergartenshow = false; this.kindergartenshow = false;
// localStorage.setItem("kindergarId", this.kindergartenId); this.$emit("kinbatlist", this.kindergartenId);
this.$emit("kinbatlist", this.kindergartenId, 1);
}, },
// //
kindergartencancel() { kindergartencancel() {

View File

@ -109,12 +109,7 @@ export default {
}, },
methods: { methods: {
onshow() { onshow() {
// this.parentId = localStorage.getItem("parentId"); this.parentName = "请选择家长";
if (localStorage.getItem("parentName") == null) {
this.parentName = "请选择家长";
} else {
// this.parentName = localStorage.getItem("parentName");
}
this.$emit("parentlist", this.parentId); this.$emit("parentlist", this.parentId);
}, },
// //
@ -122,9 +117,7 @@ export default {
this.parentName = row.parentName; this.parentName = row.parentName;
this.parentId = row.id; this.parentId = row.id;
this.parentshow = false; this.parentshow = false;
localStorage.setItem("parentName", this.parentName); this.$emit("parentlist", this.parentId);
// localStorage.setItem("parentId", this.parentId);
this.$emit("parentlist", this.parentId, 1);
}, },
// //
parentcancel() { parentcancel() {