From 8e3b638a35f6b7649c7ba8a322fd0a15f845efcf Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 20 九月 2025 00:08:09 +0800
Subject: [PATCH] 界面优化

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

diff --git a/src/views/flowmgr/backImport1.vue b/src/views/flowmgr/backImport1.vue
index 2f2dd51..52509e6 100644
--- a/src/views/flowmgr/backImport1.vue
+++ b/src/views/flowmgr/backImport1.vue
@@ -4,8 +4,8 @@
       @selection-change="selectionChange">
       <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" size="default" icon="el-icon-upload" @click="importData">瀵煎叆</el-button>
+          <el-button type="primary" :disabled="this.selection.length==0" size="default" icon="el-icon-checked" plain @click="handleWarehouse"
             style="margin-left: 12px;">鍏ュ簱</el-button>
         </div>
       </template>
@@ -15,15 +15,15 @@
     </avue-crud>
     <el-dialog title="宸ユ帶缃戞枃浠跺鍏�" append-to-body v-model="excelBox" width="555px">
       <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter" :upload-error="uploadError">
-        <!-- <template #excelTemplate>
+        <!-- <template #excelTemplate> icon="el-icon-circle-plus"
           <el-button type="primary" @click="handleTemplate">
             鐐瑰嚮涓嬭浇<i class="el-icon-download el-icon--right"></i>
           </el-button>
         </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>
@@ -56,21 +56,17 @@
         menu: true,
         selection: true,
         column: [
-          {
+          /*{
             label: '绋嬪簭缂栧彿',
             prop: 'programNo'
-          },
+          },*/
           {
-            label: '绋嬪簭鍚嶇О',
+            label: '绋嬪簭鍖呭悕',
             prop: 'programName',
           },
           {
             label: '鏂囦欢鍒拌揪鏃堕棿',
             prop: 'fileBackTime',
-          },
-          {
-            label: '鏂囦欢鏁版嵁搴撶紪鍙�',
-            prop: 'id',
           },
         ],
       },
@@ -117,6 +113,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