From 7ef49600cea8b57873b35a3edf019bad603c869d Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 18 九月 2025 09:11:09 +0800
Subject: [PATCH] 首页下载问题修复
---
src/views/wel/shemi.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/wel/shemi.vue b/src/views/wel/shemi.vue
index 4ec79b4..855fab8 100644
--- a/src/views/wel/shemi.vue
+++ b/src/views/wel/shemi.vue
@@ -641,7 +641,7 @@
handleDownload(row){
NProgress.start();
exportBlob(
- `/blade-mdm/program/node/download-by-nodeid?nodeId=${row.id}`
+ `/blade-mdm/program/nodehis/download-by-nodeid?nodeId=${row.id}`
).then(res => {
if (res.status !== 200) {
return this.$message.error(res.msg);
@@ -804,7 +804,12 @@
res => {
if(res.data.code === 200) {
- this.hisFileTableData = res.data.data
+ this.hisFileTableData = res.data.data;
+ if(this.hisFileTableData.length > 0){
+ this.showHisContent(this.hisFileTableData[0])
+ this.$refs.hisFilesTable.setCurrentRow(this.hisFileTableData[0]);
+ }
+
} else {
this.$message.error('绋嬪簭鍐呭鍔犺浇澶辫触');
}
@@ -818,7 +823,7 @@
params: {nodeId: row.id}
}).then(
res => {
- console.log(res)
+
if(res.data.code === 200) {
this.hisFileContent = res.data.data;
} else {
--
Gitblit v1.9.3