|
@@ -2054,13 +2054,25 @@ module.exports = {
|
|
|
},
|
|
|
// 咨询师以及咨询师经理审核内容显示
|
|
|
shenghePeo(arr, status) {
|
|
|
- //debugger
|
|
|
+ let newArr = arr
|
|
|
+ if (arr.length === 0) {
|
|
|
+ newArr = []
|
|
|
+ } else {
|
|
|
+ for (var i = 0; i < arr.length; i++) {
|
|
|
+ for (var j = 0; j < arr.length; j++) {
|
|
|
+ if (arr[i].name == arr[j].name && i != j) { //将后面重复的数删掉
|
|
|
+ arr.splice(j, 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ newArr = arr;
|
|
|
+ }
|
|
|
if (status == 2) {
|
|
|
- arr = arr || [];
|
|
|
+ // arr = arr || [];
|
|
|
let str = "咨询师(";
|
|
|
- for (let a = 0; a < arr.length; a++) {
|
|
|
- if (arr[a].status == 0) {
|
|
|
- str += arr[a].name + ",";
|
|
|
+ for (let a = 0; a < newArr.length; a++) {
|
|
|
+ if (newArr[a].status == 0) {
|
|
|
+ str += newArr[a].name + ",";
|
|
|
}
|
|
|
}
|
|
|
str = str.substr(0, str.length - 1);
|
|
@@ -2068,11 +2080,11 @@ module.exports = {
|
|
|
}
|
|
|
|
|
|
if (status == 3) {
|
|
|
- arr = arr || [];
|
|
|
+ // arr = arr || [];
|
|
|
let str = "咨询师经理(";
|
|
|
- for (let a = 0; a < arr.length; a++) {
|
|
|
- if (arr[a].status == 0) {
|
|
|
- str += arr[a].name + ",";
|
|
|
+ for (let a = 0; a < newArr.length; a++) {
|
|
|
+ if (newArr[a].status == 0) {
|
|
|
+ str += newArr[a].name + ",";
|
|
|
}
|
|
|
}
|
|
|
str = str.substr(0, str.length - 1);
|