问答中心邀请多人
This commit is contained in:
@@ -1384,9 +1384,18 @@ export default {
|
|||||||
checkedRole(data){
|
checkedRole(data){
|
||||||
if(data[0].id){
|
if(data[0].id){
|
||||||
let asdId = sessionStorage.getItem('queId')
|
let asdId = sessionStorage.getItem('queId')
|
||||||
|
const usid = data.reduce((init,item,index,arr)=>{
|
||||||
|
let result
|
||||||
|
if(index === arr.length - 1){
|
||||||
|
result = init + item.id
|
||||||
|
}else{
|
||||||
|
result = init + item.id + ','
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
},'')
|
||||||
this.$http.postData('lawss/AskUser/insertAskUser',{
|
this.$http.postData('lawss/AskUser/insertAskUser',{
|
||||||
asdId: asdId,
|
asdId: asdId,
|
||||||
usid: data[0].id,
|
usid,
|
||||||
},{
|
},{
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user