From bc365ef47ae4e01754aeadbae26170e11c9bb80e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 六月 2026 16:56:12 +0800
Subject: [PATCH] 新疆马铃薯 1.删除按钮添加操作权限

---
 src/views/safeProduction/safeWorkApproval/fileList.vue |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/safeProduction/safeWorkApproval/fileList.vue b/src/views/safeProduction/safeWorkApproval/fileList.vue
index 5cc65f1..4ff03ee 100644
--- a/src/views/safeProduction/safeWorkApproval/fileList.vue
+++ b/src/views/safeProduction/safeWorkApproval/fileList.vue
@@ -6,7 +6,7 @@
         <template #default="scope">
           <el-button link type="primary" size="small" @click="downLoadFile(scope.row)">涓嬭浇</el-button>
           <el-button link type="primary" size="small" @click="lookFile(scope.row)">棰勮</el-button>
-          <el-button link type="danger" size="small" @click="handleDelete(scope.row)">鍒犻櫎</el-button>
+          <el-button link type="danger" size="small" @click="handleDelete(scope.row)" v-hasPermi="['safeProduction:safeWorkApproval:remove']">鍒犻櫎</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -32,7 +32,7 @@
   tableData.value = list
 }
 const downLoadFile = (row) => {
-  proxy.$download.name(row.url);
+	proxy.$download.byUrl(row.url, row.originalFilename);
 
 }
 const lookFile = (row) => {

--
Gitblit v1.9.3