Browse Source

复制本表调保存接口

duy 1 year ago
parent
commit
388f64b314
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/tentative/detect/components/ListItem.vue

+ 10 - 1
src/views/tentative/detect/components/ListItem.vue

@@ -736,7 +736,16 @@ const copyClick = async (item, index) => {
     if (pkeyIds) {
         if (isStatus.value !== '3') {
             if (item.isRenderTableForm && !item.isCancopy) {
-                window.$message.warning('请先保存数据再复制本表')
+                // window.$message.warning('请先保存数据再复制本表')
+                copyClickLoading.value = true
+                const res = await saveExcelBussData(item, index)
+                     if (res) {
+                        // renewData(newaddId.value)
+                        await copeBussTab(pkeyIds)
+
+                    } else {
+                        window?.$message?.warning('复制本表操作失败')
+                    }
             } else {
                 if (!item.isRenderTableForm) {
                     await copeBussTab(pkeyIds)