From a390dbc5239ac26f093c6670c12cfd6a49ca6037 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 20 十一月 2025 15:06:47 +0800
Subject: [PATCH] 修改

---
 src/views/work/marketingManagement/customerList/need/index.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/work/marketingManagement/customerList/need/index.vue b/src/views/work/marketingManagement/customerList/need/index.vue
index b4a076f..99a4ef5 100644
--- a/src/views/work/marketingManagement/customerList/need/index.vue
+++ b/src/views/work/marketingManagement/customerList/need/index.vue
@@ -8,9 +8,10 @@
               plain
               icon="Plus"
               @click="openDialog('add',{})"
+              v-hasPermi="['customerNeed:add']"
           >新增</el-button>
         </el-form-item>
-        <el-form-item label="企业名称:" v-if="data.isAdmin" style="margin-left: 20px">
+        <el-form-item label="单位名称:" v-if="data.isAdmin" style="margin-left: 20px">
           <el-select v-model="data.queryParams.companyId" placeholder="请选择" filterable clearable>
             <el-option
                 v-for="item in data.companyList"
@@ -20,7 +21,7 @@
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item>
+        <el-form-item v-if="data.isAdmin">
           <el-button type="primary" style="margin-left: 30px" @click="searchClick">查询</el-button>
           <el-button plain @click="reset">重置</el-button>
         </el-form-item>
@@ -36,7 +37,7 @@
     <el-table v-loading="loading" :data="dataList" :border="true"  @selection-change="handleSelectionChange">
       <el-table-column type="selection" width="55" />
       <el-table-column type="index" label="序号" width="80" align="center"></el-table-column>
-      <el-table-column label="企业名称" prop="companyName" align="center" v-if="data.isAdmin" />
+      <el-table-column label="单位名称" prop="companyName" align="center" v-if="data.isAdmin" />
       <el-table-column label="名称"  align="center">
         <template #default="scope">
           <span>{{scope.row.recordName}}需求登记</span>
@@ -45,8 +46,8 @@
       <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160">
         <template #default="scope">
           <el-button link type="primary"  @click="openDialog('review',scope.row)" >查看</el-button>
-          <el-button link type="primary"  @click="openDialog('edit',scope.row)" >编辑</el-button>
-          <el-button link type="danger"  @click="handleDelete(scope.row)" >删除</el-button>
+          <el-button link type="primary"  @click="openDialog('edit',scope.row)" v-hasPermi="['customerNeed:edit']">编辑</el-button>
+          <el-button link type="danger"  @click="handleDelete(scope.row)" v-hasPermi="['customerNeed:del']">删除</el-button>
         </template>
       </el-table-column>
     </el-table>

--
Gitblit v1.9.2