Sfoglia il codice sorgente

分盒整理删除接口

duy 2 anni fa
parent
commit
c985b5b7db

+ 8 - 0
src/api/modules/archiveFile/archiveFile.js

@@ -81,4 +81,12 @@ export default {
             params: form
         }, msg);
     },
+      //分盒整理删除接口
+      async removeAllocation(form, msg = true) {
+        return httpApi({
+            url: '/api/blade-archive/archiveFile/removeAllocation',
+            method: 'post',
+            params: form
+        }, msg);
+    },
 }

+ 13 - 0
src/views/file/collection.vue

@@ -694,6 +694,19 @@ const sortingTableSelection = (rows,list,event) => {
 //删除
 const sortingDelData = (row,index) => {
     sortingItemData.value.splice(index,1);
+  
+        delMessage(async () => {
+            const { error, code } = await archiveFileApi.removeAllocation({
+                boxName: row.boxName,
+                boxNumber:row.boxNumber
+            })
+            if (!error && code === 200) {
+                window.$message?.success('删除成功!')
+                // searchClick()
+                sortingClick()
+            }
+        })
+    
 }
 
 //添加分盒