表单设计单选按钮value类型

zzq
刘妍 2024-06-12 09:56:39 +08:00
parent 933140aff2
commit b8bb1d377e
1 changed files with 9 additions and 1 deletions

View File

@ -203,7 +203,9 @@
item.csType = element.data[currentIndex].csType;
}
});
console.log(item.label, item.csType);
if (item.csType == 'int') {
console.log(item);
item.componentProps.options.forEach((optionChild) => {
optionChild.value = Number(optionChild.value);
});
@ -245,6 +247,11 @@
list.csType = element.data[currentIndex].csType;
}
});
if (list.csType == 'int') {
list.componentProps.options.forEach((optionChild) => {
optionChild.value = Number(optionChild.value);
});
}
}
// csType
if (list.type == 'subTable') {
@ -358,7 +365,8 @@
console.log('正常提交');
// saveFormDatas.value.scheme.scheme = JSON.stringify(schems);
setTimeout(() => {
submitSaveClick(schems);
console.log(schems);
// submitSaveClick(schems);
}, 500);
}
}