|
|
@@ -115,7 +115,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="渠道方" prop="channelIds">
|
|
|
<el-select v-model="form.channelIds" multiple placeholder="请选择(可多选)" style="width: 100%;">
|
|
|
- <el-option v-for="item in channelOptions" :key="item.id" :label="item.channelName" :value="item.id"></el-option>
|
|
|
+ <el-option v-for="item in channelOptions" :key="item.id" :label="item.channelName" :value="String(item.id)"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="姓名" prop="realName">
|
|
|
@@ -253,7 +253,7 @@ export default {
|
|
|
this.form.userLevel = res.data.userLevel || 1
|
|
|
// channelIds 字符串转数组(用于多选回显)
|
|
|
const ids = res.data.channelIds
|
|
|
- this.form.channelIds = ids ? ids.split(',').map(id => Number(id.trim())).filter(Boolean) : []
|
|
|
+ this.form.channelIds = ids ? ids.split(',').map(id => id.trim()).filter(Boolean) : []
|
|
|
|
|
|
this.userInfo = JSON.parse(JSON.stringify(res.data))
|
|
|
this.userInfo.phoneCopy = this.userInfo.phone
|
|
|
@@ -284,7 +284,7 @@ export default {
|
|
|
id: d.id,
|
|
|
nickName: d.nickName || '',
|
|
|
uniqueNo: d.uniqueNo || '',
|
|
|
- channelIds: d.channelIds ? d.channelIds.split(',').map(id => Number(id.trim())).filter(Boolean) : [],
|
|
|
+ channelIds: d.channelIds ? d.channelIds.split(',').map(id => id.trim()).filter(Boolean) : [],
|
|
|
realName: d.realName || '',
|
|
|
idCard: d.idCard || '',
|
|
|
welfareName: d.welfareName || '',
|