|
@@ -808,6 +808,14 @@ export default {
|
|
|
for (let i = 0; i < data.length; i++) {
|
|
for (let i = 0; i < data.length; i++) {
|
|
|
this.successorOptions.push( { key: data[i].successorId, value: data[i].successorName } );
|
|
this.successorOptions.push( { key: data[i].successorId, value: data[i].successorName } );
|
|
|
}
|
|
}
|
|
|
|
|
+ // 学员数组去重
|
|
|
|
|
+ let map = new Map();
|
|
|
|
|
+ this.successorOptions.forEach((item, index) => {
|
|
|
|
|
+ if (!map.has(item["successorId"])) {
|
|
|
|
|
+ map.set(item["successorId"], item);
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ this.successorOptions = [...map.values()];
|
|
|
if (this.successorOptions.length != 0) {
|
|
if (this.successorOptions.length != 0) {
|
|
|
// 默认选中列表中第一个学员
|
|
// 默认选中列表中第一个学员
|
|
|
this.queryParams.successorId = this.successorOptions[0].key;
|
|
this.queryParams.successorId = this.successorOptions[0].key;
|
|
@@ -992,17 +1000,19 @@ export default {
|
|
|
}).then(response => {
|
|
}).then(response => {
|
|
|
let data = response.data;
|
|
let data = response.data;
|
|
|
let score = {};
|
|
let score = {};
|
|
|
|
|
+ // 截取至小数点后两位
|
|
|
|
|
+ overallScore = overallScore.toString().substring(0,overallScore.toString().indexOf(".")+3);
|
|
|
if (this.queryParams.feedbackSeason == "1") {
|
|
if (this.queryParams.feedbackSeason == "1") {
|
|
|
- score.quarterOne = overallScore.toFixed(2);
|
|
|
|
|
|
|
+ score.quarterOne = overallScore;
|
|
|
}
|
|
}
|
|
|
if (this.queryParams.feedbackSeason == "2") {
|
|
if (this.queryParams.feedbackSeason == "2") {
|
|
|
- score.quarterTwo = overallScore.toFixed(2);
|
|
|
|
|
|
|
+ score.quarterTwo = overallScore;
|
|
|
}
|
|
}
|
|
|
if (this.queryParams.feedbackSeason == "3") {
|
|
if (this.queryParams.feedbackSeason == "3") {
|
|
|
- score.quarterThree = overallScore.toFixed(2);
|
|
|
|
|
|
|
+ score.quarterThree = overallScore;
|
|
|
}
|
|
}
|
|
|
if (this.queryParams.feedbackSeason == "4") {
|
|
if (this.queryParams.feedbackSeason == "4") {
|
|
|
- score.quarterFour = overallScore.toFixed(2);
|
|
|
|
|
|
|
+ score.quarterFour = overallScore;
|
|
|
}
|
|
}
|
|
|
if (data != null) {
|
|
if (data != null) {
|
|
|
score.id = data.id;
|
|
score.id = data.id;
|