mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect-embeded.git
synced 2025-06-24 05:24:12 +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;
|
||||
paramData.value = [];
|
||||
const items = entity.value && entity.value.paramJson ? JSON.parse(entity.value.paramJson) : [];
|
||||
items.forEach((d: any) => {
|
||||
paramData.value.push({ ...d });
|
||||
items.forEach((d: any, index: number) => {
|
||||
if (Object.keys(d).includes('sn')) {
|
||||
paramData.value.push({...d});
|
||||
} else {
|
||||
paramData.value.push({ sn: (index + 1) + '', ...d});
|
||||
}
|
||||
});
|
||||
await setFieldsValue({
|
||||
...data.record,
|
||||
|
Loading…
Reference in New Issue
Block a user