|
@@ -63,7 +63,6 @@ function ContentForm(props) {
|
|
|
const { type,detail } = useContext(FiledContext);
|
|
|
const { back, form, cancel } = props;
|
|
|
const initialValues = detail
|
|
|
- console.log(initialValues);
|
|
|
const vilidateRules = {
|
|
|
required: '${label}不能为空!',
|
|
|
};
|
|
@@ -90,6 +89,17 @@ function ContentForm(props) {
|
|
|
});
|
|
|
setTableList(columnList);
|
|
|
setList(data)
|
|
|
+ if(type == 2){
|
|
|
+ data.forEach((item, i) => {
|
|
|
+ detail.columnList.forEach(it => {
|
|
|
+ if (item.getTableNameDTO.tableCname == it.tableCname) {
|
|
|
+ let colList = data[i].getColumnNameDTOList
|
|
|
+ setColList([...colList])
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -140,7 +150,6 @@ function ContentForm(props) {
|
|
|
}
|
|
|
//正则式选择获取id
|
|
|
function onChange(value, options) {
|
|
|
- console.log(options);
|
|
|
form.setFieldsValue({
|
|
|
regularId: options ? options.key : ''
|
|
|
});
|
|
@@ -185,9 +194,11 @@ function ContentForm(props) {
|
|
|
setStandardValueList(standardValueList)
|
|
|
seIsChange(false)
|
|
|
list.forEach((item, i) => {
|
|
|
- columnList.forEach(it => {
|
|
|
+ detail.columnList.forEach(it => {
|
|
|
+ console.log(456);
|
|
|
if (item.getTableNameDTO.tableCname == it.tableCname) {
|
|
|
let colList = list[i].getColumnNameDTOList
|
|
|
+ console.log(colList);
|
|
|
setColList([...colList])
|
|
|
}
|
|
|
});
|