From 9935385d2e894d4a29974d9ac628540b6148ea2b Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期一, 07 七月 2025 19:52:16 +0800
Subject: [PATCH] 优化展示

---
 src/views/flowmgr/backImport.vue |   51 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 40 insertions(+), 11 deletions(-)

diff --git a/src/views/flowmgr/backImport.vue b/src/views/flowmgr/backImport.vue
index 827fcc4..765128e 100644
--- a/src/views/flowmgr/backImport.vue
+++ b/src/views/flowmgr/backImport.vue
@@ -14,10 +14,15 @@
       @size-change="sizeChange"
       @refresh-change="refreshChange"
       @on-load="onLoad"
+      @selection-change="selectionChange"
     >
       <template #menu-left>
-        <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">瀵煎叆</el-button>
-        <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleEdit">鍏ュ簱</el-button>
+        <div style="display: flex;">
+          <el-upload action="/blade-mdm/program/dncsendback/upload">
+            <el-button type="primary" size="default" icon="el-icon-circle-plus">瀵煎叆</el-button>
+          </el-upload>
+          <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse" style="margin-left: 12px;">鍏ュ簱</el-button>
+        </div>
       </template>
     </avue-crud>
   </basic-container>
@@ -27,6 +32,7 @@
 export default {
   data() {
     return {
+      selection: [],
       search: {},
       loading: true,
       mypage: {
@@ -41,8 +47,8 @@
         labelWidth: 120,
         emptyBtn: false,
         searchSpan: 8,
-        selection: true,
         menu: false,
+        selection: true,
         column: [
           {
             label: '鏂囦欢璺緞',
@@ -53,15 +59,15 @@
           },
           {
             label: '浠诲姟缂栧彿',
-            prop: ''
+            prop: 'programNo'
           },
           {
             label: '绋嬪簭鍚嶇О',
-            prop: '',
+            prop: 'programName',
           },
           {
             label: '鏂囦欢鍒拌揪鏃堕棿',
-            prop: '',
+            prop: 'fileBackTime',
           },
           {
             label: '鏂囦欢鏁版嵁搴撶紪鍙�',
@@ -85,7 +91,7 @@
           },
           {
             label: 'MD5鍊�',
-            prop: ''
+            prop: 'md5	'
           }
         ],
       },
@@ -93,8 +99,32 @@
     };
   },
   methods: {
-    handleEdit(row,index) {
-      
+    selectionChange(selection) {
+      this.selection = selection;
+    },
+    handleWarehouse(row,index) {
+      if(this.selection.length == 0) {
+        this.$message.error("璇烽�夋嫨鏁版嵁")
+      }else {
+        var selection = [];
+        this.selection.forEach(item=> {
+          selection.push(item.id);
+        })
+        this.loading = true;
+        var obj = {
+          ids: selection.join(","),
+        }
+        axios({
+          url: '/blade-mdm/program/dncsendback/accept',
+          method: 'get',
+          params: obj,
+        }).then(
+          res => {
+            this.$message.success("鎿嶄綔鎴愬姛");
+            this.loading = false;
+          }
+        );
+      }
     },
     searchReset() {
       //this.onLoad(this.mypage);
@@ -122,7 +152,7 @@
         size: this.mypage.size,
       }
       axios({
-        url: '/blade-mdm/machineback/file/page',
+        url: '/blade-mdm/program/dncsendback/page',
         method: 'get',
         params: obj,
       }).then(
@@ -136,7 +166,6 @@
             
         }
       );
-
     }
   },
 };

--
Gitblit v1.9.3