|
@@ -107,10 +107,8 @@ export default {
|
|
|
...teacher(['fetch']),
|
|
|
async search() {
|
|
|
const teacher = await this.fetch(this.teaid);
|
|
|
- const xsscore = Number.parseFloat(teacher.xsscore);
|
|
|
- console.log(typeof xsscore);
|
|
|
- console.log(typeof xsscore.toFixed(2));
|
|
|
- teacher.xsscore = xsscore;
|
|
|
+ let xsscore = parseFloat(teacher.data.xsscore).toFixed(2);
|
|
|
+ teacher.data.xsscore = xsscore;
|
|
|
this.$set(this, `teainfo`, teacher.data);
|
|
|
},
|
|
|
},
|