Parcourir la source

试验仅保存本表修改

duy il y a 1 mois
Parent
commit
8cfff5fd23
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 5 4
      src/views/tentative/detect/components/ListItem.vue

+ 5 - 4
src/views/tentative/detect/components/ListItem.vue

@@ -793,10 +793,11 @@ const saveExcelBussData = async (item, index, showTip = true) => {
             InitObj[name] = url
         }
         baseData.value.tableType = tabTypeKeyInfo.value
-        if (newaddId.value.length > 0) {
-            baseData.value.id = newaddId.value
-        }
-
+        // if (newaddId.value.length > 0) {
+        //     baseData.value.id = newaddId.value
+        // }
+    const { id } = item
+      baseData.value.id = id || nodeIdvaluedata.value || newaddId.value
         const { error, code, data, msg } = await dataApi.saveExcelBussData({
             ...baseData.value,
             isBatchSave: 0,