Browse Source

1. 优化

MONSTER-ygh 5 months ago
parent
commit
6f515170ab

+ 5 - 1
src/views/tourism/membershipManagement/equityCard/equityCardManage.vue

@@ -106,7 +106,9 @@
                 v-hasPermi="configPermi.details"
               >详情</el-button>
               <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" >
-                  <el-button size="mini" type="text" icon="el-icon-d-arrow-right" v-hasPermi="[...configPermi.Password, ...configPermi.AuthRole]">更多</el-button>
+                  <el-button size="mini" type="text" icon="el-icon-d-arrow-right" v-if="checkPermi(configPermi.Password) && checkPermi(configPermi.AuthRole)">更多</el-button>
+                  <el-button size="mini" type="text" icon="el-icon-d-arrow-right" v-else-if="checkPermi(configPermi.AuthRole) && !checkPermi(configPermi.Password) && scope.row.actStatus != 1">更多</el-button>
+                  <el-button size="mini" type="text" icon="el-icon-d-arrow-right" v-else-if="!checkPermi(configPermi.AuthRole) && checkPermi(configPermi.Password)">更多</el-button>
                   <el-dropdown-menu slot="dropdown">
                       <el-dropdown-item command="handleAuthRole" v-if="scope.row.actStatus != 1" icon="el-icon-circle-check"
                       v-hasPermi="configPermi.AuthRole">审核</el-dropdown-item>
@@ -145,6 +147,7 @@ import {
 } from "@/api/CURD";
 import addAndEdit from "./formBox/equityCardManagementForm.vue"
 import detailsBox from "./detailsBox/equityCardManagementDetails.vue"
+import { checkPermi } from "@/utils/permission"
 export default {
   name: "User",
   dicts: ['activate_status'],
@@ -212,6 +215,7 @@ export default {
     this.getList();
   },
   methods: {
+    checkPermi,
     /** 查询权益卡类型列表 */
     getListCopy() {
       listTableApi(