From b14bf62abb3480d95beee8314fcb08c0d893813b Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期一, 22 九月 2025 14:18:19 +0800
Subject: [PATCH] 文件下发,回传文件处理的查看下载
---
src/views/flowmgr/backImport1.vue | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/views/flowmgr/backImport1.vue b/src/views/flowmgr/backImport1.vue
index 2f2dd51..3f50e26 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',
},
],
},
@@ -99,7 +95,6 @@
},
methods: {
showContent(row, column, event) {
- console.log(row,111)
axios({
url: '/blade-mdm/program/dncsendback/back-file-content',
method: 'get',
@@ -117,6 +112,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