shaogen1995 hace 1 día
padre
commit
166ab2296d
Se han modificado 2 ficheros con 10 adiciones y 2 borrados
  1. 9 2
      src/pages/Zother/EditBtn/index.tsx
  2. 1 0
      src/pages/Zother/EditTop/index.tsx

+ 9 - 2
src/pages/Zother/EditBtn/index.tsx

@@ -105,12 +105,19 @@ function EditBtn({
             ...v,
             id: v.isNew || flag ? null : v.id
           }
+          // console.log('----------', snapSon)
 
           // 只有一个藏品的第二个模块
           if (isTow && i === 0) {
+            const info2Res: any = info2
+
             snapSon = {
-              ...snapSon,
-              ...info2
+              id: snapSon.id,
+              idTemp: snapSon.idTemp,
+              name: snapSon.name,
+              num: snapSon.num,
+              thumbPc: snapSon.thumbPc,
+              ...info2Res
             }
             if (info.files2 && info.files2.length) {
               snapSon.fileIds2 = info.files2.map(v => v.id).join(',')

+ 1 - 0
src/pages/Zother/EditTop/index.tsx

@@ -93,6 +93,7 @@ function EditTop({ rowArr, pageTxt, APIobj, fileUpInfo, moreDom }: Props) {
 
           arrTemp.push(obj)
 
+          // 第二个模块的信息回显
           if (moreDom && moreDom.domList && moreDom.domList.length && i === 0) {
             let obj2: any = {}