| | |
| | | phone: '', |
| | | unittype: null, |
| | | districtId: null, |
| | | peerRecipientGroupId: null |
| | | peerRecipientGroupId: '' |
| | | }, |
| | | rules: { |
| | | recipientName: [{ required: true, message: '请输入姓名或称呼', trigger: 'blur'}], |
| | |
| | | methods:{ |
| | | openDialog(type,data,group){ |
| | | const t = this |
| | | group.forEach(item => { |
| | | if(item.name === '未分类'){ |
| | | item.id = '' |
| | | } |
| | | }) |
| | | t.groupData = group |
| | | console.log(t.groupData,'data222') |
| | | if(type == 'add'){ |
| | |
| | | phone: '', |
| | | unittype: null, |
| | | districtId: null, |
| | | peerRecipientGroupId: null |
| | | peerRecipientGroupId: '' |
| | | } |
| | | }else{ |
| | | t.title = '编辑用户' |
| | |
| | | t.form[i] = data[i] |
| | | } |
| | | } |
| | | t.form.peerRecipientGroupId = data.peerRecipientGroupId ? data.peerRecipientGroupId: null |
| | | t.form.peerRecipientGroupId = data.peerRecipientGroupId ? data.peerRecipientGroupId: '' |
| | | } |
| | | t.visible = true |
| | | }, |