Browse Source

bug bug bug

cxmo 1 year ago
parent
commit
c3673053a8

+ 3 - 2
src/views/system_manage/departManage.vue

@@ -77,8 +77,9 @@
 					label="姓名"
 					align="center">
 						<template slot-scope="scope">
-							<el-tag v-permission="permissionBtn.sysDepartPermission.sysDepart_saveUser_LabelVal"
-								size="small" v-if="scope.row.LabelVal" :style="scope.row.LabelVal==1||scope.row.LabelVal==2?'color:#fff;background:#409EFF':'color:#409EFF;background:#ECF5FF'" style="position:absolute;left:10px">{{scope.row.LabelVal==1?'超管':scope.row.LabelVal==2?'管理员':scope.row.LabelVal==3?'部门经理':scope.row.LabelVal==4?'组长':'主管'}}</el-tag>
+							<el-tag size="small" 
+								v-if="scope.row.LabelVal&&permissionBtn.checkPermissionBtn(permissionBtn.sysDepartPermission.sysDepart_saveUser_LabelVal)" 
+								:style="scope.row.LabelVal==1||scope.row.LabelVal==2?'color:#fff;background:#409EFF':'color:#409EFF;background:#ECF5FF'" style="position:absolute;left:10px">{{scope.row.LabelVal==1?'超管':scope.row.LabelVal==2?'管理员':scope.row.LabelVal==3?'部门经理':scope.row.LabelVal==4?'组长':'主管'}}</el-tag>
 							<span style="position: relative;">{{scope.row.RealName}}</span>
 						</template>
 					</el-table-column>

+ 2 - 2
src/views/system_manage/operateAuthManage.vue

@@ -89,8 +89,8 @@
           <template slot-scope="{row}">
             <template v-if="item.key==='handle'">
               <span class="editsty" @click="edbAuthSetHandle(row)" v-if="[3,4].includes(default_tab
-        )">权限设置</span>
-              <span class="editsty" @click="editAuthHandle(row)">编辑</span>
+        )&&authBtn('auth')">权限设置</span>
+              <span class="editsty" @click="editAuthHandle(row)" v-if="[3,4].includes(default_tab)?authBtn('edit'):authTabs.length">编辑</span>
             </template>
 
             <span v-else>{{ row[item.key] }}</span>