fix score edit
This commit is contained in:
parent
4df8142a7a
commit
99a4466197
|
|
@ -101,12 +101,13 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if (this.id) {
|
Promise.all([getList(), getClassList(), subjectList()])
|
||||||
Promise.all([getList(), getClassList(), subjectList()])
|
.then(([studentRes, classRes, subjectRes]) => {
|
||||||
.then(([studentRes, classRes, subjectRes]) => {
|
this.studentList = studentRes.result
|
||||||
this.studentList = studentRes.result
|
this.classList = classRes.result
|
||||||
this.classList = classRes.result
|
this.subjectList = subjectRes.result
|
||||||
this.subjectList = subjectRes.result
|
|
||||||
|
if (this.id) {
|
||||||
const params = {
|
const params = {
|
||||||
id: this.id
|
id: this.id
|
||||||
}
|
}
|
||||||
|
|
@ -123,8 +124,8 @@ export default {
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
}
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user