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/projectManagement/Management/components/formDia.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/projectManagement/Management/components/formDia.vue b/src/views/projectManagement/Management/components/formDia.vue
index c2ee9c2..2609166 100644
--- a/src/views/projectManagement/Management/components/formDia.vue
+++ b/src/views/projectManagement/Management/components/formDia.vue
@@ -174,7 +174,7 @@
           </div>
           <div class="section-actions" @click.stop>
             <el-button v-if="!isView" type="primary" @click="openProductForm('add')">娣诲姞</el-button>
-            <el-button v-if="!isView" plain type="danger" @click="deleteProduct">鍒犻櫎</el-button>
+            <el-button v-if="!isView" plain type="danger" @click="deleteProduct" v-hasPermi="['projectManagement:Management:remove']">鍒犻櫎</el-button>
             <el-icon class="toggle-icon" @click="toggleSection('product')">
               <ArrowDown v-if="sectionCollapsed.product" />
               <ArrowUp v-else />
@@ -272,7 +272,7 @@
               <el-input v-model="row.remark" placeholder="璇疯緭鍏�" clearable :disabled="isView" />
             </template>
             <template #teamAction="{ row, index }">
-              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeTeamRow(index)">鍒犻櫎</el-button>
+              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeTeamRow(index)" v-hasPermi="['projectManagement:Management:remove']">鍒犻櫎</el-button>
               <span v-else>鈥�</span>
             </template>
           </PIMTable>
@@ -414,7 +414,7 @@
               <el-input v-model="row.address" placeholder="璇疯緭鍏�" clearable :disabled="isView" />
             </template>
             <template #addressAction="{ row, index }">
-              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeAddressRow(index)">鍒犻櫎</el-button>
+              <el-button v-if="!isView" link type="danger" :icon="Delete" @click="removeAddressRow(index)" v-hasPermi="['projectManagement:Management:remove']">鍒犻櫎</el-button>
               <span v-else>鈥�</span>
             </template>
           </PIMTable>
@@ -1342,9 +1342,9 @@
 }
 
 function downloadAttachment(att) {
-  if (att?.name) {
+  if (att) {
     try {
-      proxy.$download.name(att.url);
+			proxy.$download.byUrl(att.url, att.originalFilename);
       return
     } catch (e) {}
   }

--
Gitblit v1.9.3