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