duy il y a 2 mois
Parent
commit
a81b8f10fc
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      src/views/tentative/material/approach.vue

+ 9 - 1
src/views/tentative/material/approach.vue

@@ -791,7 +791,8 @@ const tableRowPdfFinished = async (data1) => {
     const row = tableRowData.value, key = tabTypeKey.value
     row[key] = data1?.link
     row[key + 'Name'] = data1.originalName
-  
+ 
+
     // //保存请求
     // const { error, code } = await approachApi.submitForm({
     //     ...row,
@@ -814,10 +815,17 @@ const tableRowPdfFinished = async (data1) => {
         })
     //处理数据
     tableRowData.value = row
+    console.log(row, 'row111111111')
+    
     tableRowPdfDisabled.value = false
     if (!error && code === 200) {
         // window?.$message?.success('操作成功')
         await getTableData()
+        tableData.value.forEach(item => {
+            if (item.id === row.id) {
+                tableRowData.value = item
+            }
+        })
     }
 }
 const getCaption = (obj) => {