From 729b698b17d7468acbc6c495746a72c9150fdaeb Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期二, 09 九月 2025 11:49:47 +0800
Subject: [PATCH] 按钮改名下传

---
 src/views/flowmgr/backImport1.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/views/flowmgr/backImport1.vue b/src/views/flowmgr/backImport1.vue
index 2f2dd51..7d7e199 100644
--- a/src/views/flowmgr/backImport1.vue
+++ b/src/views/flowmgr/backImport1.vue
@@ -5,7 +5,7 @@
       <template #menu-left>
         <div style="display: flex;">
           <el-button type="primary" size="default" icon="el-icon-circle-plus" @click="importData">瀵煎叆</el-button>
-          <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse"
+          <el-button type="primary" :disabled="this.selection.length==0" size="default" icon="el-icon-circle-plus" plain @click="handleWarehouse"
             style="margin-left: 12px;">鍏ュ簱</el-button>
         </div>
       </template>
@@ -22,8 +22,8 @@
         </template> -->
       </avue-form>
     </el-dialog>
-    <el-dialog title="鏂囦欢鍚嶇О" append-to-body v-model="fileViewModel">
-      <el-table :data="tableData" border @row-click="showContent" max-height="200" highlight-current-row>
+    <el-dialog title="鏌ョ湅鏂囦欢" append-to-body v-model="fileViewModel">
+      <el-table :data="tableData" ref="filesTable" border @row-click="showContent" max-height="200" highlight-current-row>
         <el-table-column type="index" label="#" width="40" align="center"/>
         <el-table-column prop="name" label="绋嬪簭鍚嶇О"></el-table-column>
       </el-table>
@@ -61,7 +61,7 @@
             prop: 'programNo'
           },
           {
-            label: '绋嬪簭鍚嶇О',
+            label: '绋嬪簭鍖呭悕',
             prop: 'programName',
           },
           {
@@ -117,6 +117,11 @@
     fileView(row) {
       this.tableData = row.files;
       this.fileViewModel = true;
+      if(this.tableData.length > 0){
+        this.showContent(this.tableData[0])
+        this.$refs.filesTable.setCurrentRow(this.tableData[0]);
+      }
+      
     },
     selectionChange(selection) {
       this.selection = selection;

--
Gitblit v1.9.3