|
@@ -238,26 +238,28 @@ export default {
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
// 遍历checked数组,拼接名字邮箱
|
|
// 遍历checked数组,拼接名字邮箱
|
|
- if (this.sign == 0) {//判断是协同人
|
|
|
|
- this.queryParams.personEmail = ''
|
|
|
|
- this.queryParams.handlePersonId = this.checked[0].id
|
|
|
|
- this.clientForm.handlePersonIds = this.checked[0].name + "<" + this.checked[0].email + ">"
|
|
|
|
- } else {
|
|
|
|
- for (var i = 0; i < this.checked.length; i++) {
|
|
|
|
- var a = this.checked[i].name + "<" + this.checked[i].email + ">"
|
|
|
|
- console.log(a);
|
|
|
|
- if (this.clientForm.syneryCCLists.indexOf(a) == -1) {
|
|
|
|
- this.clientForm.syneryCCLists.push(a)
|
|
|
|
- this.queryParams.syneryCCList.push({
|
|
|
|
- ccId: this.checked[i].id,
|
|
|
|
- ccEmail: this.checked[i].email,
|
|
|
|
- ccName: this.checked[i].name
|
|
|
|
- })
|
|
|
|
|
|
+ if(this.checked.length>0){
|
|
|
|
+ if (this.sign == 0) {//判断是协同人
|
|
|
|
+ this.queryParams.personEmail = ''
|
|
|
|
+ this.queryParams.handlePersonId = this.checked[0].id
|
|
|
|
+ this.clientForm.handlePersonIds = this.checked[0].name + "<" + this.checked[0].email + ">"
|
|
|
|
+ } else {
|
|
|
|
+ for (var i = 0; i < this.checked.length; i++) {
|
|
|
|
+ var a = this.checked[i].name + "<" + this.checked[i].email + ">"
|
|
|
|
+ console.log(a);
|
|
|
|
+ if (this.clientForm.syneryCCLists.indexOf(a) == -1) {
|
|
|
|
+ this.clientForm.syneryCCLists.push(a)
|
|
|
|
+ this.queryParams.syneryCCList.push({
|
|
|
|
+ ccId: this.checked[i].id,
|
|
|
|
+ ccEmail: this.checked[i].email,
|
|
|
|
+ ccName: this.checked[i].name
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.userInformation = false
|
|
this.userInformation = false
|
|
},
|
|
},
|
|
//点击icon打开人员信息弹出框
|
|
//点击icon打开人员信息弹出框
|