Ver código fonte

试验仅保存本表修改

duy 1 mês atrás
pai
commit
8cfff5fd23
1 arquivos alterados com 5 adições e 4 exclusões
  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,