Commit bd3efa2f by xinla

--no commit message

1 parent cd3121ee
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
activityScene: '', activityScene: '',
groupCodeId: 0, groupCodeId: 0,
isJoinConfirmFriends: true, isJoinConfirmFriends: true,
mediaId: 0, // mediaId: 0,
qrCode: '', qrCode: '',
weEmpleCodeTags: [ weEmpleCodeTags: [
{ {
...@@ -76,13 +76,14 @@ export default { ...@@ -76,13 +76,14 @@ export default {
}, },
// 选择人员变化事件 // 选择人员变化事件
selectedUser(users) { selectedUser(users) {
// debugger debugger
this.form.weEmpleCodeUseScops = users.map((d) => { this.form.weEmpleCodeUseScops = users.map((d) => {
return { return {
businessId: d.id || d.userId, businessId: d.id || d.userId,
businessName: d.name, businessName: d.name,
businessIdType: d.userId ? 2 : 1, businessIdType: d.userId ? 2 : 1,
mobile: d.mobile, mobile: d.mobile,
empleCodeId: d.empleCodeId,
} }
}) })
}, },
...@@ -94,7 +95,10 @@ export default { ...@@ -94,7 +95,10 @@ export default {
}, },
// 选择二维码确认按钮 // 选择二维码确认按钮
submitSelectQrCode(data) { submitSelectQrCode(data) {
// debugger
this.form.groupCodeId = data.id
this.form.qrCode = data.codeUrl this.form.qrCode = data.codeUrl
this.$refs.form.validateField('qrCode')
}, },
removeMaterial() { removeMaterial() {
this.form.mediaId = '' this.form.mediaId = ''
...@@ -105,16 +109,20 @@ export default { ...@@ -105,16 +109,20 @@ export default {
this.msgError('请至少选择一名使用员工') this.msgError('请至少选择一名使用员工')
return return
} }
this.loading = true this.$refs.form.validate((valid) => {
;(this.form.id ? update : add)(this.form) if (valid) {
.then(({ data }) => { this.loading = true
this.msgSuccess('操作成功') ;(this.form.id ? update : add)({ WeCommunityNewGroupDto: this.form })
this.loading = false .then(({ data }) => {
this.$router.back() this.msgSuccess('操作成功')
}) this.loading = false
.catch(() => { this.$router.back()
this.loading = false })
}) .catch(() => {
this.loading = false
})
}
})
}, },
}, },
} }
......
...@@ -153,6 +153,7 @@ ...@@ -153,6 +153,7 @@
<SelectUser <SelectUser
:visible.sync="dialogVisibleSelectAuditUser" :visible.sync="dialogVisibleSelectAuditUser"
title="选择添加人" title="选择添加人"
isSigleSelect
@success="selectedAuditUser" @success="selectedAuditUser"
></SelectUser> ></SelectUser>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!