mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect-embeded.git
synced 2025-06-24 13:34:13 +08:00
fixed
This commit is contained in:
parent
bb15f8ca33
commit
3e3b405ae0
@ -118,8 +118,12 @@ const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (
|
|||||||
entity.value = data?.record;
|
entity.value = data?.record;
|
||||||
paramData.value = [];
|
paramData.value = [];
|
||||||
const items = entity.value && entity.value.paramJson ? JSON.parse(entity.value.paramJson) : [];
|
const items = entity.value && entity.value.paramJson ? JSON.parse(entity.value.paramJson) : [];
|
||||||
items.forEach((d: any) => {
|
items.forEach((d: any, index: number) => {
|
||||||
|
if (Object.keys(d).includes('sn')) {
|
||||||
paramData.value.push({...d});
|
paramData.value.push({...d});
|
||||||
|
} else {
|
||||||
|
paramData.value.push({ sn: (index + 1) + '', ...d});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
await setFieldsValue({
|
await setFieldsValue({
|
||||||
...data.record,
|
...data.record,
|
||||||
|
Loading…
Reference in New Issue
Block a user