hc_zhufu
parent
f5e75f44de
commit
98e2711360
|
|
@ -60,7 +60,7 @@
|
||||||
const subTableData = ref([]);
|
const subTableData = ref([]);
|
||||||
const subTableList: any = ref([]);
|
const subTableList: any = ref([]);
|
||||||
const scrollValue = ref();
|
const scrollValue = ref();
|
||||||
const masterData = ref([])
|
const masterData = ref([]);
|
||||||
props.formConfig.forEach((element) => {
|
props.formConfig.forEach((element) => {
|
||||||
console.log(element);
|
console.log(element);
|
||||||
if (element.disabled == false) {
|
if (element.disabled == false) {
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
width: 120,
|
width: 120,
|
||||||
});
|
});
|
||||||
subTableData.value.push(element);
|
subTableData.value.push(element);
|
||||||
}else if(!element.type){
|
} else if (!element.type && element.ifShow) {
|
||||||
masterData.value.push(element);
|
masterData.value.push(element);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -152,7 +152,9 @@
|
||||||
}
|
}
|
||||||
saveSubTableList.push(emptyObj);
|
saveSubTableList.push(emptyObj);
|
||||||
});
|
});
|
||||||
query[subTableId.value] = JSON.stringify(saveSubTableList);
|
if (subTableId.value) {
|
||||||
|
query[subTableId.value] = JSON.stringify(saveSubTableList);
|
||||||
|
}
|
||||||
return query;
|
return query;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,12 @@
|
||||||
item.csType = element.data[currentIndex].csType;
|
item.csType = element.data[currentIndex].csType;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
console.log(item);
|
||||||
|
if (item.csType == 'int') {
|
||||||
|
item.componentProps.options.forEach((optionChild) => {
|
||||||
|
optionChild.value = Number(optionChild.value);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 设计子表给里面的控件增加csType字段
|
// 设计子表给里面的控件增加csType字段
|
||||||
if (item.type == 'subTable') {
|
if (item.type == 'subTable') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue