|
@@ -150,11 +150,10 @@
|
|
|
handleConfirmAdd(){
|
|
handleConfirmAdd(){
|
|
|
let selectList = this.list.filter(l=>l.select);
|
|
let selectList = this.list.filter(l=>l.select);
|
|
|
if(selectList.length===0) return this.$showToast('请至少选择一位团队成员')
|
|
if(selectList.length===0) return this.$showToast('请至少选择一位团队成员')
|
|
|
- let sendList = selectList.map(l=>({realName:l.realName,id:l.id,category:l.category,categoryName:l.categoryName,email:l.email}))
|
|
|
|
|
let tempuser = selectList.find(s=>!s.category);
|
|
let tempuser = selectList.find(s=>!s.category);
|
|
|
if(tempuser) return this.$showToast(`请为团队人员【${tempuser.realName}】选择身份类型`)
|
|
if(tempuser) return this.$showToast(`请为团队人员【${tempuser.realName}】选择身份类型`)
|
|
|
|
|
|
|
|
- this.getOpenerEventChannel().emit('selectUserConfirm',sendList)
|
|
|
|
|
|
|
+ this.getOpenerEventChannel().emit('selectUserConfirm',selectList)
|
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|