fix: 修复组织架构、联想弹层组件、选择组件对sepTextField字段赋值异常问题,并对移动端的配置进行适配
This commit is contained in:
@ -106,7 +106,7 @@
|
||||
if (!props.sepTextField || !props.row) {
|
||||
return;
|
||||
}
|
||||
props.row[props.sepTextField] = v;
|
||||
props.row[camelCaseString(props.sepTextField)] = v;
|
||||
}
|
||||
|
||||
function resetTreeList(list) {
|
||||
|
||||
@ -139,7 +139,7 @@
|
||||
const options = unref(selectedDataSourceVal.value);
|
||||
const txtArr = options
|
||||
.filter((opt) => {
|
||||
return arr.includes(opt.id);
|
||||
return arr.includes(opt.value);
|
||||
})
|
||||
.map((item) => item[props.labelField]);
|
||||
formData[camelCaseString(props.sepTextField)] = txtArr.join(',');
|
||||
|
||||
@ -172,7 +172,7 @@
|
||||
return arr.includes(opt.value);
|
||||
})
|
||||
.map((item) => item.label);
|
||||
props.row[props.sepTextField] = txtArr.join(',');
|
||||
props.row[camelCaseString(props.sepTextField)] = txtArr.join(',');
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
Reference in New Issue
Block a user