From 5d6531c446e2f312d70e6d10da4bd499e856af56 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期四, 04 十二月 2025 10:36:18 +0800
Subject: [PATCH] 修改新增

---
 src/views/work/qualityInfo/infrastructureMng/maintainPlan/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/views/work/qualityInfo/infrastructureMng/maintainPlan/index.vue b/src/views/work/qualityInfo/infrastructureMng/maintainPlan/index.vue
index ed5a45a..044cd99 100644
--- a/src/views/work/qualityInfo/infrastructureMng/maintainPlan/index.vue
+++ b/src/views/work/qualityInfo/infrastructureMng/maintainPlan/index.vue
@@ -8,9 +8,10 @@
               plain
               icon="Plus"
               @click="openDialog('add',{})"
+              v-hasPermi="['maintainPlan:list:add']"
           >新增</el-button>
         </el-form-item>
-        <el-form-item v-if="isAdmin" label="企业:" >
+        <el-form-item v-if="isAdmin" label="单位:" >
           <el-select v-model="data.queryParams.companyId" placeholder="请选择" clearable>
             <el-option
                 v-for="item in companyList"
@@ -43,9 +44,9 @@
       <el-table-column label="操作" align="center">
         <template #default="scope">
           <el-button link type="primary" @click="openDialog('view',scope.row)">查看</el-button>
-          <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button>
+          <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['maintainPlan:list:edit']">编辑</el-button>
           <el-button link type="primary" @click="downloadFile(scope.row)">导出</el-button>
-          <el-button link type="danger" @click="handleDelete(scope.row)">删除</el-button>
+          <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['maintainPlan:list:del']">删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -185,7 +186,7 @@
       const wb = utils.book_new();
       const wsData = [];
 
-      // 第一行:企业名称(合并A1-T1)
+      // 第一行:单位名称(合并A1-T1)
       wsData.push([{ v: tableData.companyName, t: 's', s: { font: { bold: true, sz: 16 }, alignment: { horizontal: 'center' } } }]);
 
       // 第二行:标题(合并A2-T2)

--
Gitblit v1.9.2