Browse Source

按钮权限配置

Rockery 3 years ago
parent
commit
25697b90c1

+ 8 - 6
src/views/PartyBuildingMgr/FullPartyMember/FullPartyMemberIndex.vue

@@ -3,7 +3,7 @@
  * @Author: Rockery
  * @Date: 2021-12-10 10:39:07
  * @LastEditors: Rockery
- * @LastEditTime: 2022-01-21 10:52:39
+ * @LastEditTime: 2022-01-21 15:52:53
  * @FilePath: \party_construct_web\src\views\PartyBuildingMgr\FullPartyMember\FullPartyMemberIndex.vue
  * @Copyright: Copyright (c) 2016~2021 Rockery(1113269755@qq.com)
 -->
@@ -89,14 +89,14 @@
             </el-form-item>
             <el-form-item>
               <el-button
-                v-hasPermi="['partybuildingmgr:situationdesc:query']"
+                v-hasPermi="['partybuildingmgr:fullpartymember:query']"
                 type="primary"
                 icon="el-icon-search"
                 size="mini"
                 @click="handleQueryClick"
               >搜索</el-button>
               <el-button
-                v-hasPermi="['partybuildingmgr:situationdesc:reset']"
+                v-hasPermi="['partybuildingmgr:fullpartymember:reset']"
                 icon="el-icon-refresh"
                 size="mini"
                 @click="resetQueryClick"
@@ -133,14 +133,16 @@
                                 class="shield-content-datetime"
                               >{{ parseTime(item.applyAddPartyTime, '{y}年{m}月{d}日') || ' - 年 - 月 - 日' }}</div>
                               <el-button
+                                v-hasPermi="['partybuildingmgr:fullpartymember:view']"
                                 type="rocwhiteplainbtn"
                                 style="width: 100%;"
                                 @click="handleViewClick(item)"
                               >查看资料</el-button>
                               <div
+                                v-hasPermi="['partybuildingmgr:fullpartymember:reactivate']"
                                 class="shield-content-relation"
                                 @click="handleReactivateClick(item)"
-                              >组织关系变更 ></div>
+                              >组织关系变更</div>
                             </div>
                           </div>
                         </div>
@@ -219,7 +221,7 @@
                   >
                     <template slot-scope="scope">
                       <el-button
-                        v-hasPermi="['partybuildingmgr:partymemberdevelop:view']"
+                        v-hasPermi="['partybuildingmgr:fullpartymember:view']"
                         size="mini"
                         type="text"
                         icon="el-icon-view"
@@ -227,7 +229,7 @@
                         @click="handleViewClick(scope.row)"
                       >详情</el-button>
                       <el-button
-                        v-hasPermi="['partybuildingmgr:partymemberdevelop:reactivate']"
+                        v-hasPermi="['partybuildingmgr:fullpartymember:reactivate']"
                         size="mini"
                         type="text"
                         style="color: #de0010;"

+ 2 - 2
src/views/PartyBuildingMgr/OrgRelationship/OrgRelationshipIndex.vue

@@ -3,7 +3,7 @@
  * @Author: Rockery
  * @Date: 2021-12-10 10:45:41
  * @LastEditors: Rockery
- * @LastEditTime: 2022-01-21 11:24:32
+ * @LastEditTime: 2022-01-21 16:07:36
  * @FilePath: \party_construct_web\src\views\PartyBuildingMgr\OrgRelationship\OrgRelationshipIndex.vue
  * @Copyright: Copyright (c) 2016~2021 Rockery(1113269755@qq.com)
 -->
@@ -81,7 +81,7 @@
             </el-col>
             <el-col :span="24">
               <el-button
-                v-hasPermi="['partybuildingmgr:partymemberdevelop:add']"
+                v-hasPermi="['partybuildingmgr:orgrelationship:add']"
                 type="rocpartyprimarybtn"
                 icon="el-icon-circle-plus-outline"
                 class="fr mb10"

+ 1 - 0
src/views/index.vue

@@ -149,6 +149,7 @@
                       <div class="home-main-list_card-status">{{ item.descrption || '—' }}</div>
                       <div class="home-main-list_card-btn">
                         <el-button
+                          v-hasPermi="['home:index:processing']"
                           type="rocpartyprimarybtn"
                           @click="handleImmediateProcessingClick(item)"
                         >立即处理</el-button>