Преглед на файлове

试验仅保存本表修改

duy преди 1 месец
родител
ревизия
8cfff5fd23
променени са 1 файла, в които са добавени 5 реда и са изтрити 4 реда
  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,