表单设计单选按钮value类型
parent
933140aff2
commit
b8bb1d377e
|
|
@ -203,7 +203,9 @@
|
||||||
item.csType = element.data[currentIndex].csType;
|
item.csType = element.data[currentIndex].csType;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
console.log(item.label, item.csType);
|
||||||
if (item.csType == 'int') {
|
if (item.csType == 'int') {
|
||||||
|
console.log(item);
|
||||||
item.componentProps.options.forEach((optionChild) => {
|
item.componentProps.options.forEach((optionChild) => {
|
||||||
optionChild.value = Number(optionChild.value);
|
optionChild.value = Number(optionChild.value);
|
||||||
});
|
});
|
||||||
|
|
@ -245,6 +247,11 @@
|
||||||
list.csType = element.data[currentIndex].csType;
|
list.csType = element.data[currentIndex].csType;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (list.csType == 'int') {
|
||||||
|
list.componentProps.options.forEach((optionChild) => {
|
||||||
|
optionChild.value = Number(optionChild.value);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 设计子表给里面的控件增加csType字段
|
// 设计子表给里面的控件增加csType字段
|
||||||
if (list.type == 'subTable') {
|
if (list.type == 'subTable') {
|
||||||
|
|
@ -358,7 +365,8 @@
|
||||||
console.log('正常提交');
|
console.log('正常提交');
|
||||||
// saveFormDatas.value.scheme.scheme = JSON.stringify(schems);
|
// saveFormDatas.value.scheme.scheme = JSON.stringify(schems);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
submitSaveClick(schems);
|
console.log(schems);
|
||||||
|
// submitSaveClick(schems);
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue